From 3784f0700fdc232189db8309727de7ed7012f365 Mon Sep 17 00:00:00 2001 From: Jack Delahunt <45426048+jackdelahunt@users.noreply.github.com> Date: Fri, 11 Nov 2022 14:43:50 +0000 Subject: [PATCH 01/13] feat: added go-sdk generation script --- .errors/index.js | 30 +- .github/workflows/api-update.yaml | 4 +- .github/workflows/generate-errors.yaml | 27 + .github/workflows/generate-sdks.yaml | 27 + .gitignore | 1 + .openapi/ams.json.orig | 9466 +++++++ .openapi/registry-instance.json | 8 +- .../accountmgmt/apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 404 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../accountmgmt/apiv1/client/.travis.yml | 8 + .../accountmgmt/apiv1/client/README.md | 458 + .../accountmgmt/apiv1/client/api/openapi.yaml | 11660 +++++++++ .../apiv1/client/api_app_services.go | 702 + .../accountmgmt/apiv1/client/api_default.go | 21840 ++++++++++++++++ .../accountmgmt/apiv1/client/client.go | 548 + .../accountmgmt/apiv1/client/configuration.go | 238 + .../apiv1/client/docs/AccessReview.md | 197 + .../apiv1/client/docs/AccessReviewResponse.md | 233 + .../apiv1/client/docs/AccessTokenCfg.md | 51 + .../accountmgmt/apiv1/client/docs/Account.md | 519 + .../apiv1/client/docs/AccountAllOf.md | 441 + .../apiv1/client/docs/AccountGroup.md | 244 + .../apiv1/client/docs/AccountGroupAllOf.md | 166 + .../client/docs/AccountGroupAssignment.md | 202 + .../docs/AccountGroupAssignmentAllOf.md | 124 + .../client/docs/AccountGroupAssignmentList.md | 135 + .../docs/AccountGroupAssignmentListAllOf.md | 56 + .../apiv1/client/docs/AccountGroupList.md | 135 + .../client/docs/AccountGroupListAllOf.md | 56 + .../apiv1/client/docs/AccountGroupRequest.md | 150 + .../client/docs/AccountGroupRequestAllOf.md | 72 + .../apiv1/client/docs/AccountList.md | 135 + .../apiv1/client/docs/AccountListAllOf.md | 56 + .../apiv1/client/docs/AccountPatchRequest.md | 238 + .../apiv1/client/docs/AccountReference.md | 186 + .../client/docs/AccountReferenceAllOf.md | 108 + .../apiv1/client/docs/AppServicesApi.md | 275 + .../apiv1/client/docs/Capability.md | 171 + .../apiv1/client/docs/CapabilityAllOf.md | 93 + .../apiv1/client/docs/CapabilityReview.md | 51 + .../client/docs/CapabilityReviewRequest.md | 171 + .../apiv1/client/docs/Certificate.md | 156 + .../apiv1/client/docs/CertificateSerial.md | 135 + .../apiv1/client/docs/CertificatesRequest.md | 77 + .../apiv1/client/docs/CloudAccount.md | 82 + .../apiv1/client/docs/CloudResource.md | 446 + .../apiv1/client/docs/CloudResourceAllOf.md | 368 + .../apiv1/client/docs/CloudResourceList.md | 135 + .../client/docs/CloudResourceListAllOf.md | 56 + .../docs/ClusterAuthorizationRequest.md | 410 + .../docs/ClusterAuthorizationResponse.md | 124 + .../apiv1/client/docs/ClusterMetricsNodes.md | 134 + .../client/docs/ClusterRegistrationRequest.md | 82 + .../docs/ClusterRegistrationResponse.md | 134 + .../apiv1/client/docs/ClusterResource.md | 93 + .../apiv1/client/docs/ClusterResourceTotal.md | 72 + .../apiv1/client/docs/ClusterTransfer.md | 316 + .../apiv1/client/docs/ClusterTransferAllOf.md | 238 + .../apiv1/client/docs/ClusterTransferList.md | 135 + .../client/docs/ClusterTransferListAllOf.md | 56 + .../docs/ClusterTransferPatchRequest.md | 56 + .../client/docs/ClusterTransferRequest.md | 108 + .../apiv1/client/docs/ClusterUpgrade.md | 134 + .../apiv1/client/docs/ConsumedQuota.md | 358 + .../apiv1/client/docs/ConsumedQuotaAllOf.md | 280 + .../apiv1/client/docs/ConsumedQuotaList.md | 135 + .../client/docs/ConsumedQuotaListAllOf.md | 56 + .../apiv1/client/docs/DefaultApi.md | 9022 +++++++ .../apiv1/client/docs/DeletedSubscription.md | 935 + .../client/docs/DeletedSubscriptionAllOf.md | 134 + .../client/docs/DeletedSubscriptionList.md | 135 + .../docs/DeletedSubscriptionListAllOf.md | 56 + .../client/docs/EphemeralResourceQuota.md | 186 + .../accountmgmt/apiv1/client/docs/Error.md | 186 + .../apiv1/client/docs/ErrorAllOf.md | 108 + .../apiv1/client/docs/ErrorList.md | 135 + .../apiv1/client/docs/ErrorListAllOf.md | 56 + .../apiv1/client/docs/ExcessResource.md | 259 + .../apiv1/client/docs/ExcessResourceAllOf.md | 181 + .../apiv1/client/docs/ExportControlReview.md | 51 + .../client/docs/ExportControlReviewRequest.md | 77 + .../apiv1/client/docs/FeatureReview.md | 103 + .../client/docs/FeatureReviewResponse.md | 72 + .../apiv1/client/docs/FeatureToggle.md | 129 + .../apiv1/client/docs/FeatureToggleAllOf.md | 51 + .../client/docs/FeatureToggleQueryRequest.md | 51 + .../docs/FeatureToggleQueryRequestAllOf.md | 51 + .../accountmgmt/apiv1/client/docs/Label.md | 327 + .../apiv1/client/docs/LabelAllOf.md | 249 + .../apiv1/client/docs/LabelList.md | 135 + .../apiv1/client/docs/LabelListAllOf.md | 56 + .../apiv1/client/docs/LandingPageCTLItem.md | 56 + .../client/docs/LandingPageCTLItemShape.md | 108 + .../client/docs/LandingPageEstateItem.md | 108 + .../apiv1/client/docs/LandingPageLinkShape.md | 82 + .../accountmgmt/apiv1/client/docs/List.md | 114 + .../accountmgmt/apiv1/client/docs/Metric.md | 212 + .../apiv1/client/docs/MetricAllOf.md | 160 + .../apiv1/client/docs/MetricsList.md | 135 + .../apiv1/client/docs/MetricsListAllOf.md | 56 + .../docs/NotificationContactCreateRequest.md | 56 + .../apiv1/client/docs/NotificationRequest.md | 259 + .../apiv1/client/docs/ObjectReference.md | 108 + .../apiv1/client/docs/OneMetric.md | 617 + .../apiv1/client/docs/Organization.md | 290 + .../apiv1/client/docs/OrganizationAllOf.md | 212 + .../apiv1/client/docs/OrganizationList.md | 135 + .../client/docs/OrganizationListAllOf.md | 56 + .../client/docs/OrganizationPatchRequest.md | 108 + .../apiv1/client/docs/Permission.md | 82 + .../apiv1/client/docs/PermissionAllOf.md | 82 + .../apiv1/client/docs/PermissionList.md | 135 + .../apiv1/client/docs/PermissionListAllOf.md | 56 + .../accountmgmt/apiv1/client/docs/Plan.md | 186 + .../apiv1/client/docs/PlanAllOf.md | 108 + .../accountmgmt/apiv1/client/docs/PlanList.md | 135 + .../apiv1/client/docs/PlanListAllOf.md | 56 + .../apiv1/client/docs/PullSecretRequest.md | 51 + .../accountmgmt/apiv1/client/docs/Quota.md | 212 + .../apiv1/client/docs/QuotaAllOf.md | 134 + .../apiv1/client/docs/QuotaCost.md | 275 + .../apiv1/client/docs/QuotaCostAllOf.md | 197 + .../apiv1/client/docs/QuotaCostList.md | 135 + .../apiv1/client/docs/QuotaCostListAllOf.md | 56 + .../apiv1/client/docs/QuotaList.md | 135 + .../apiv1/client/docs/QuotaListAllOf.md | 56 + .../apiv1/client/docs/QuotaRules.md | 337 + .../apiv1/client/docs/QuotaRulesAllOf.md | 259 + .../apiv1/client/docs/QuotaRulesList.md | 135 + .../apiv1/client/docs/QuotaRulesListAllOf.md | 56 + .../accountmgmt/apiv1/client/docs/Registry.md | 316 + .../apiv1/client/docs/RegistryAllOf.md | 238 + .../client/docs/RegistryCreateRequest.md | 171 + .../apiv1/client/docs/RegistryCredential.md | 290 + .../client/docs/RegistryCredentialAllOf.md | 212 + .../client/docs/RegistryCredentialList.md | 135 + .../docs/RegistryCredentialListAllOf.md | 56 + .../docs/RegistryCredentialPatchRequest.md | 160 + .../apiv1/client/docs/RegistryList.md | 135 + .../apiv1/client/docs/RegistryListAllOf.md | 56 + .../apiv1/client/docs/RegistryRequest.md | 186 + .../apiv1/client/docs/RelatedResource.md | 307 + .../apiv1/client/docs/RelatedResourceAllOf.md | 229 + .../apiv1/client/docs/ReservedResource.md | 389 + .../client/docs/ReservedResourceAllOf.md | 311 + .../apiv1/client/docs/ReservedResourceList.md | 135 + .../client/docs/ReservedResourceListAllOf.md | 56 + .../docs/ReservedResourcePatchRequest.md | 56 + .../apiv1/client/docs/ResourceQuota.md | 259 + .../apiv1/client/docs/ResourceQuotaAllOf.md | 181 + .../apiv1/client/docs/ResourceQuotaList.md | 135 + .../client/docs/ResourceQuotaListAllOf.md | 56 + .../apiv1/client/docs/ResourceQuotaRequest.md | 98 + .../apiv1/client/docs/ResourceReview.md | 177 + .../client/docs/ResourceReviewRequest.md | 108 + .../accountmgmt/apiv1/client/docs/Role.md | 160 + .../apiv1/client/docs/RoleAllOf.md | 82 + .../apiv1/client/docs/RoleBinding.md | 368 + .../apiv1/client/docs/RoleBindingAllOf.md | 290 + .../client/docs/RoleBindingCreateRequest.md | 228 + .../apiv1/client/docs/RoleBindingList.md | 135 + .../apiv1/client/docs/RoleBindingListAllOf.md | 56 + .../apiv1/client/docs/RoleBindingRequest.md | 238 + .../accountmgmt/apiv1/client/docs/RoleList.md | 135 + .../apiv1/client/docs/RoleListAllOf.md | 56 + .../accountmgmt/apiv1/client/docs/SKU.md | 186 + .../accountmgmt/apiv1/client/docs/SKUAllOf.md | 108 + .../apiv1/client/docs/SelfAccessReview.md | 176 + .../client/docs/SelfEntitlementStatus.md | 82 + .../apiv1/client/docs/SelfFeatureReview.md | 51 + .../apiv1/client/docs/SelfResourceReview.md | 156 + .../client/docs/SelfResourceReviewRequest.md | 82 + .../docs/SelfServiceLandingPageSchema.md | 82 + ...fServiceLandingPageSchemaConfigTryLearn.md | 82 + .../SelfServiceLandingPageSchemaEstate.md | 56 + .../apiv1/client/docs/SelfTermsReview.md | 108 + .../accountmgmt/apiv1/client/docs/SkuList.md | 135 + .../apiv1/client/docs/SkuListAllOf.md | 56 + .../accountmgmt/apiv1/client/docs/SkuRules.md | 186 + .../apiv1/client/docs/SkuRulesAllOf.md | 108 + .../apiv1/client/docs/SkuRulesList.md | 135 + .../apiv1/client/docs/SkuRulesListAllOf.md | 56 + .../apiv1/client/docs/Subscription.md | 1091 + .../apiv1/client/docs/SubscriptionAllOf.md | 264 + .../client/docs/SubscriptionCommonFields.md | 857 + .../docs/SubscriptionCommonFieldsAllOf.md | 779 + .../client/docs/SubscriptionCreateRequest.md | 145 + .../apiv1/client/docs/SubscriptionList.md | 135 + .../client/docs/SubscriptionListAllOf.md | 56 + .../apiv1/client/docs/SubscriptionMetric.md | 56 + .../client/docs/SubscriptionMetricAllOf.md | 56 + .../client/docs/SubscriptionMetricList.md | 135 + .../docs/SubscriptionMetricListAllOf.md | 56 + .../client/docs/SubscriptionPatchRequest.md | 680 + .../client/docs/SubscriptionRoleBinding.md | 290 + .../docs/SubscriptionRoleBindingAllOf.md | 212 + .../SubscriptionRoleBindingCreateRequest.md | 72 + .../docs/SubscriptionRoleBindingList.md | 135 + .../docs/SubscriptionRoleBindingListAllOf.md | 56 + .../accountmgmt/apiv1/client/docs/Summary.md | 155 + .../apiv1/client/docs/SummaryAllOf.md | 77 + .../apiv1/client/docs/SummaryMetrics.md | 82 + .../apiv1/client/docs/SummaryMetricsAllOf.md | 82 + .../apiv1/client/docs/SummaryVector.md | 82 + .../apiv1/client/docs/SummaryVectorAllOf.md | 82 + .../docs/SupportCasesCreatedResponse.md | 264 + .../apiv1/client/docs/SupportCasesRequest.md | 353 + .../apiv1/client/docs/TemplateParameter.md | 72 + .../apiv1/client/docs/TermsReview.md | 129 + .../apiv1/client/docs/TermsReviewResponse.md | 140 + .../client/docs/TokenAuthorizationRequest.md | 56 + .../client/docs/TokenAuthorizationResponse.md | 56 + .../accountmgmt/apiv1/client/git_push.sh | 58 + .../accountmgmt/apiv1/client/go.mod | 7 + .../accountmgmt/apiv1/client/go.sum | 13 + .../apiv1/client/model_access_review.go | 310 + .../client/model_access_review_response.go | 360 + .../apiv1/client/model_access_token_cfg.go | 108 + .../accountmgmt/apiv1/client/model_account.go | 765 + .../apiv1/client/model_account_all_of.go | 657 + .../apiv1/client/model_account_group.go | 376 + .../client/model_account_group_all_of.go | 268 + .../client/model_account_group_assignment.go | 318 + .../model_account_group_assignment_all_of.go | 210 + .../model_account_group_assignment_list.go | 224 + ...el_account_group_assignment_list_all_of.go | 115 + .../apiv1/client/model_account_group_list.go | 224 + .../client/model_account_group_list_all_of.go | 115 + .../client/model_account_group_request.go | 245 + .../model_account_group_request_all_of.go | 137 + .../apiv1/client/model_account_list.go | 224 + .../apiv1/client/model_account_list_all_of.go | 115 + .../client/model_account_patch_request.go | 367 + .../apiv1/client/model_account_reference.go | 295 + .../client/model_account_reference_all_of.go | 187 + .../apiv1/client/model_capability.go | 274 + .../apiv1/client/model_capability_all_of.go | 166 + .../apiv1/client/model_capability_review.go | 108 + .../client/model_capability_review_request.go | 274 + .../apiv1/client/model_certificate.go | 253 + .../apiv1/client/model_certificate_serial.go | 225 + .../client/model_certificates_request.go | 144 + .../apiv1/client/model_cloud_account.go | 151 + .../apiv1/client/model_cloud_resource.go | 660 + .../client/model_cloud_resource_all_of.go | 552 + .../apiv1/client/model_cloud_resource_list.go | 224 + .../model_cloud_resource_list_all_of.go | 115 + .../model_cluster_authorization_request.go | 609 + .../model_cluster_authorization_response.go | 209 + .../client/model_cluster_metrics_nodes.go | 223 + .../model_cluster_registration_request.go | 151 + .../model_cluster_registration_response.go | 224 + .../apiv1/client/model_cluster_resource.go | 167 + .../client/model_cluster_resource_total.go | 137 + .../apiv1/client/model_cluster_transfer.go | 476 + .../client/model_cluster_transfer_all_of.go | 368 + .../client/model_cluster_transfer_list.go | 224 + .../model_cluster_transfer_list_all_of.go | 115 + .../model_cluster_transfer_patch_request.go | 115 + .../client/model_cluster_transfer_request.go | 187 + .../apiv1/client/model_cluster_upgrade.go | 224 + .../apiv1/client/model_consumed_quota.go | 533 + .../client/model_consumed_quota_all_of.go | 425 + .../apiv1/client/model_consumed_quota_list.go | 224 + .../model_consumed_quota_list_all_of.go | 115 + .../client/model_deleted_subscription.go | 1338 + .../model_deleted_subscription_all_of.go | 224 + .../client/model_deleted_subscription_list.go | 224 + .../model_deleted_subscription_list_all_of.go | 115 + .../client/model_ephemeral_resource_quota.go | 295 + .../accountmgmt/apiv1/client/model_error.go | 295 + .../apiv1/client/model_error_all_of.go | 187 + .../apiv1/client/model_error_list.go | 224 + .../apiv1/client/model_error_list_all_of.go | 115 + .../apiv1/client/model_excess_resource.go | 396 + .../client/model_excess_resource_all_of.go | 288 + .../client/model_export_control_review.go | 108 + .../model_export_control_review_request.go | 144 + .../apiv1/client/model_feature_review.go | 180 + .../client/model_feature_review_response.go | 139 + .../apiv1/client/model_feature_toggle.go | 218 + .../client/model_feature_toggle_all_of.go | 110 + .../model_feature_toggle_query_request.go | 108 + ...del_feature_toggle_query_request_all_of.go | 108 + .../accountmgmt/apiv1/client/model_label.go | 491 + .../apiv1/client/model_label_all_of.go | 383 + .../apiv1/client/model_label_list.go | 224 + .../apiv1/client/model_label_list_all_of.go | 115 + .../client/model_landing_page_ctl_item.go | 115 + .../model_landing_page_ctl_item_shape.go | 187 + .../client/model_landing_page_estate_item.go | 187 + .../client/model_landing_page_link_shape.go | 151 + .../accountmgmt/apiv1/client/model_list.go | 195 + .../accountmgmt/apiv1/client/model_metric.go | 332 + .../apiv1/client/model_metric_all_of.go | 260 + .../apiv1/client/model_metrics_list.go | 224 + .../apiv1/client/model_metrics_list_all_of.go | 115 + ...del_notification_contact_create_request.go | 115 + .../client/model_notification_request.go | 396 + .../apiv1/client/model_object_reference.go | 187 + .../apiv1/client/model_one_metric.go | 891 + .../apiv1/client/model_organization.go | 440 + .../apiv1/client/model_organization_all_of.go | 332 + .../apiv1/client/model_organization_list.go | 224 + .../client/model_organization_list_all_of.go | 115 + .../model_organization_patch_request.go | 187 + .../apiv1/client/model_permission.go | 151 + .../apiv1/client/model_permission_all_of.go | 151 + .../apiv1/client/model_permission_list.go | 224 + .../client/model_permission_list_all_of.go | 115 + .../accountmgmt/apiv1/client/model_plan.go | 295 + .../apiv1/client/model_plan_all_of.go | 187 + .../apiv1/client/model_plan_list.go | 224 + .../apiv1/client/model_plan_list_all_of.go | 115 + .../apiv1/client/model_pull_secret_request.go | 108 + .../accountmgmt/apiv1/client/model_quota.go | 332 + .../apiv1/client/model_quota_all_of.go | 224 + .../apiv1/client/model_quota_cost.go | 418 + .../apiv1/client/model_quota_cost_all_of.go | 310 + .../apiv1/client/model_quota_cost_list.go | 224 + .../client/model_quota_cost_list_all_of.go | 115 + .../apiv1/client/model_quota_list.go | 224 + .../apiv1/client/model_quota_list_all_of.go | 115 + .../apiv1/client/model_quota_rules.go | 504 + .../apiv1/client/model_quota_rules_all_of.go | 396 + .../apiv1/client/model_quota_rules_list.go | 224 + .../client/model_quota_rules_list_all_of.go | 115 + .../apiv1/client/model_registry.go | 476 + .../apiv1/client/model_registry_all_of.go | 368 + .../client/model_registry_create_request.go | 274 + .../apiv1/client/model_registry_credential.go | 440 + .../model_registry_credential_all_of.go | 332 + .../client/model_registry_credential_list.go | 224 + .../model_registry_credential_list_all_of.go | 115 + ...model_registry_credential_patch_request.go | 259 + .../apiv1/client/model_registry_list.go | 224 + .../client/model_registry_list_all_of.go | 115 + .../apiv1/client/model_registry_request.go | 295 + .../apiv1/client/model_related_resource.go | 462 + .../client/model_related_resource_all_of.go | 354 + .../apiv1/client/model_reserved_resource.go | 577 + .../client/model_reserved_resource_all_of.go | 469 + .../client/model_reserved_resource_list.go | 224 + .../model_reserved_resource_list_all_of.go | 115 + .../model_reserved_resource_patch_request.go | 115 + .../apiv1/client/model_resource_quota.go | 397 + .../client/model_resource_quota_all_of.go | 289 + .../apiv1/client/model_resource_quota_list.go | 224 + .../model_resource_quota_list_all_of.go | 115 + .../client/model_resource_quota_request.go | 173 + .../apiv1/client/model_resource_review.go | 282 + .../client/model_resource_review_request.go | 187 + .../accountmgmt/apiv1/client/model_role.go | 259 + .../apiv1/client/model_role_all_of.go | 151 + .../apiv1/client/model_role_binding.go | 548 + .../apiv1/client/model_role_binding_all_of.go | 440 + .../model_role_binding_create_request.go | 353 + .../apiv1/client/model_role_binding_list.go | 224 + .../client/model_role_binding_list_all_of.go | 115 + .../client/model_role_binding_request.go | 367 + .../apiv1/client/model_role_list.go | 224 + .../apiv1/client/model_role_list_all_of.go | 115 + .../apiv1/client/model_self_access_review.go | 281 + .../client/model_self_entitlement_status.go | 151 + .../apiv1/client/model_self_feature_review.go | 108 + .../client/model_self_resource_review.go | 253 + .../model_self_resource_review_request.go | 151 + .../model_self_service_landing_page_schema.go | 151 + ...ce_landing_page_schema_config_try_learn.go | 151 + ...self_service_landing_page_schema_estate.go | 115 + .../apiv1/client/model_self_terms_review.go | 191 + .../accountmgmt/apiv1/client/model_sku.go | 296 + .../apiv1/client/model_sku_all_of.go | 188 + .../apiv1/client/model_sku_list.go | 224 + .../apiv1/client/model_sku_list_all_of.go | 115 + .../apiv1/client/model_sku_rules.go | 295 + .../apiv1/client/model_sku_rules_all_of.go | 187 + .../apiv1/client/model_sku_rules_list.go | 224 + .../client/model_sku_rules_list_all_of.go | 115 + .../apiv1/client/model_subscription.go | 1555 ++ .../apiv1/client/model_subscription_all_of.go | 405 + .../model_subscription_common_fields.go | 1230 + ...model_subscription_common_fields_all_of.go | 1122 + .../model_subscription_create_request.go | 238 + .../apiv1/client/model_subscription_list.go | 224 + .../client/model_subscription_list_all_of.go | 115 + .../apiv1/client/model_subscription_metric.go | 115 + .../model_subscription_metric_all_of.go | 115 + .../client/model_subscription_metric_list.go | 224 + .../model_subscription_metric_list_all_of.go | 115 + .../model_subscription_patch_request.go | 980 + .../client/model_subscription_role_binding.go | 440 + .../model_subscription_role_binding_all_of.go | 332 + ...ubscription_role_binding_create_request.go | 137 + .../model_subscription_role_binding_list.go | 224 + ...l_subscription_role_binding_list_all_of.go | 115 + .../accountmgmt/apiv1/client/model_summary.go | 252 + .../apiv1/client/model_summary_all_of.go | 144 + .../apiv1/client/model_summary_metrics.go | 151 + .../client/model_summary_metrics_all_of.go | 151 + .../apiv1/client/model_summary_vector.go | 152 + .../client/model_summary_vector_all_of.go | 152 + .../model_support_cases_created_response.go | 403 + .../client/model_support_cases_request.go | 534 + .../apiv1/client/model_template_parameter.go | 137 + .../apiv1/client/model_terms_review.go | 220 + .../client/model_terms_review_response.go | 231 + .../model_token_authorization_request.go | 115 + .../model_token_authorization_response.go | 115 + .../accountmgmt/apiv1/client/response.go | 47 + .../accountmgmt/apiv1/client/utils.go | 328 + .../connectormgmt/apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 132 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../connectormgmt/apiv1/client/.travis.yml | 8 + .../connectormgmt/apiv1/client/README.md | 196 + .../apiv1/client/api/openapi.yaml | 2453 ++ .../apiv1/client/api_connector_clusters.go | 1181 + .../apiv1/client/api_connector_namespaces.go | 514 + .../apiv1/client/api_connector_service.go | 147 + .../apiv1/client/api_connector_types.go | 510 + .../apiv1/client/api_connectors.go | 853 + .../connectormgmt/apiv1/client/client.go | 558 + .../apiv1/client/configuration.go | 243 + .../apiv1/client/docs/AddonParameter.md | 82 + .../apiv1/client/docs/Channel.md | 11 + .../apiv1/client/docs/Connector.md | 437 + .../apiv1/client/docs/ConnectorCluster.md | 238 + .../apiv1/client/docs/ConnectorClusterList.md | 135 + .../client/docs/ConnectorClusterListAllOf.md | 56 + .../apiv1/client/docs/ConnectorClusterMeta.md | 134 + .../client/docs/ConnectorClusterRequest.md | 56 + .../docs/ConnectorClusterRequestMeta.md | 56 + .../client/docs/ConnectorClusterState.md | 15 + .../client/docs/ConnectorClusterStatus.md | 56 + .../docs/ConnectorClusterStatusStatus.md | 82 + .../apiv1/client/docs/ConnectorClustersApi.md | 515 + .../client/docs/ConnectorConfiguration.md | 119 + .../client/docs/ConnectorDesiredState.md | 17 + .../apiv1/client/docs/ConnectorList.md | 135 + .../apiv1/client/docs/ConnectorListAllOf.md | 56 + .../apiv1/client/docs/ConnectorMeta.md | 244 + .../apiv1/client/docs/ConnectorMetaAllOf.md | 56 + .../apiv1/client/docs/ConnectorNamespace.md | 364 + .../client/docs/ConnectorNamespaceAllOf.md | 140 + .../docs/ConnectorNamespaceEvalRequest.md | 82 + .../client/docs/ConnectorNamespaceList.md | 135 + .../docs/ConnectorNamespaceListAllOf.md | 56 + .../client/docs/ConnectorNamespaceMeta.md | 212 + .../docs/ConnectorNamespaceMetaAllOf.md | 82 + .../docs/ConnectorNamespacePatchRequest.md | 82 + .../client/docs/ConnectorNamespaceQuota.md | 160 + .../client/docs/ConnectorNamespaceRequest.md | 119 + .../docs/ConnectorNamespaceRequestAllOf.md | 82 + .../docs/ConnectorNamespaceRequestMeta.md | 82 + .../client/docs/ConnectorNamespaceState.md | 17 + .../client/docs/ConnectorNamespaceStatus.md | 124 + .../client/docs/ConnectorNamespaceTenant.md | 72 + .../docs/ConnectorNamespaceTenantKind.md | 13 + .../client/docs/ConnectorNamespacesApi.md | 219 + .../apiv1/client/docs/ConnectorRequest.md | 229 + .../apiv1/client/docs/ConnectorRequestMeta.md | 140 + .../apiv1/client/docs/ConnectorServiceApi.md | 70 + .../apiv1/client/docs/ConnectorState.md | 29 + .../apiv1/client/docs/ConnectorStatus.md | 56 + .../client/docs/ConnectorStatusStatus.md | 82 + .../apiv1/client/docs/ConnectorType.md | 327 + .../apiv1/client/docs/ConnectorTypeAllOf.md | 264 + .../client/docs/ConnectorTypeLabelCount.md | 72 + .../docs/ConnectorTypeLabelCountList.md | 56 + .../apiv1/client/docs/ConnectorTypeList.md | 135 + .../client/docs/ConnectorTypeListAllOf.md | 56 + .../apiv1/client/docs/ConnectorTypesApi.md | 221 + .../apiv1/client/docs/ConnectorsApi.md | 365 + .../connectormgmt/apiv1/client/docs/Error.md | 161 + .../client/docs/KafkaConnectionSettings.md | 72 + .../connectormgmt/apiv1/client/docs/List.md | 135 + .../apiv1/client/docs/ObjectMeta.md | 108 + .../apiv1/client/docs/ObjectReference.md | 108 + .../docs/SchemaRegistryConnectionSettings.md | 72 + .../apiv1/client/docs/ServiceAccount.md | 72 + .../client/docs/ServiceConnectionSettings.md | 72 + .../apiv1/client/docs/VersionMetadata.md | 134 + .../apiv1/client/docs/VersionMetadataAllOf.md | 56 + .../connectormgmt/apiv1/client/git_push.sh | 58 + .../connectormgmt/apiv1/client/go.mod | 7 + .../connectormgmt/apiv1/client/go.sum | 13 + .../apiv1/client/model_addon_parameter.go | 152 + .../apiv1/client/model_channel.go | 109 + .../apiv1/client/model_connector.go | 648 + .../apiv1/client/model_connector_cluster.go | 369 + .../client/model_connector_cluster_list.go | 225 + .../model_connector_cluster_list_all_of.go | 116 + .../client/model_connector_cluster_meta.go | 225 + .../client/model_connector_cluster_request.go | 116 + .../model_connector_cluster_request_meta.go | 116 + .../client/model_connector_cluster_state.go | 113 + .../client/model_connector_cluster_status.go | 116 + .../model_connector_cluster_status_status.go | 152 + .../client/model_connector_configuration.go | 203 + .../client/model_connector_desired_state.go | 115 + .../apiv1/client/model_connector_list.go | 225 + .../client/model_connector_list_all_of.go | 116 + .../apiv1/client/model_connector_meta.go | 381 + .../client/model_connector_meta_all_of.go | 116 + .../apiv1/client/model_connector_namespace.go | 544 + .../model_connector_namespace_all_of.go | 233 + .../model_connector_namespace_eval_request.go | 153 + .../client/model_connector_namespace_list.go | 225 + .../model_connector_namespace_list_all_of.go | 116 + .../client/model_connector_namespace_meta.go | 334 + .../model_connector_namespace_meta_all_of.go | 152 + ...model_connector_namespace_patch_request.go | 153 + .../client/model_connector_namespace_quota.go | 264 + .../model_connector_namespace_request.go | 204 + ...odel_connector_namespace_request_all_of.go | 152 + .../model_connector_namespace_request_meta.go | 153 + .../client/model_connector_namespace_state.go | 115 + .../model_connector_namespace_status.go | 210 + .../model_connector_namespace_tenant.go | 139 + .../model_connector_namespace_tenant_kind.go | 111 + .../apiv1/client/model_connector_request.go | 359 + .../client/model_connector_request_meta.go | 236 + .../apiv1/client/model_connector_state.go | 127 + .../apiv1/client/model_connector_status.go | 116 + .../client/model_connector_status_status.go | 152 + .../apiv1/client/model_connector_type.go | 500 + .../client/model_connector_type_all_of.go | 413 + .../model_connector_type_label_count.go | 140 + .../model_connector_type_label_count_list.go | 116 + .../apiv1/client/model_connector_type_list.go | 225 + .../model_connector_type_list_all_of.go | 116 + .../connectormgmt/apiv1/client/model_error.go | 261 + .../client/model_kafka_connection_settings.go | 138 + .../connectormgmt/apiv1/client/model_list.go | 225 + .../apiv1/client/model_object_meta.go | 189 + .../apiv1/client/model_object_reference.go | 188 + ...del_schema_registry_connection_settings.go | 138 + .../apiv1/client/model_service_account.go | 138 + .../model_service_connection_settings.go | 138 + .../apiv1/client/model_version_metadata.go | 224 + .../client/model_version_metadata_all_of.go | 116 + .../connectormgmt/apiv1/client/response.go | 48 + .../connectormgmt/apiv1/client/utils.go | 329 + .../connectormgmt/apiv1/error/errors.go | 126 + .../kafkainstance/apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 126 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../kafkainstance/apiv1/client/.travis.yml | 8 + .../kafkainstance/apiv1/client/README.md | 219 + .../apiv1/client/api/openapi.yaml | 2382 ++ .../kafkainstance/apiv1/client/api_acls.go | 788 + .../kafkainstance/apiv1/client/api_errors.go | 292 + .../kafkainstance/apiv1/client/api_groups.go | 809 + .../kafkainstance/apiv1/client/api_records.go | 431 + .../kafkainstance/apiv1/client/api_topics.go | 939 + .../kafkainstance/apiv1/client/client.go | 557 + .../apiv1/client/configuration.go | 230 + .../apiv1/client/docs/AclBinding.md | 234 + .../apiv1/client/docs/AclBindingAllOf.md | 156 + .../apiv1/client/docs/AclBindingListPage.md | 150 + .../client/docs/AclBindingListPageAllOf.md | 56 + .../apiv1/client/docs/AclBindingOrderKey.md | 21 + .../apiv1/client/docs/AclOperation.md | 27 + .../apiv1/client/docs/AclOperationFilter.md | 29 + .../apiv1/client/docs/AclPatternType.md | 13 + .../apiv1/client/docs/AclPatternTypeFilter.md | 17 + .../apiv1/client/docs/AclPermissionType.md | 13 + .../client/docs/AclPermissionTypeFilter.md | 15 + .../apiv1/client/docs/AclResourceType.md | 17 + .../client/docs/AclResourceTypeFilter.md | 19 + .../apiv1/client/docs/AclsApi.md | 297 + .../apiv1/client/docs/ConfigEntry.md | 72 + .../apiv1/client/docs/Consumer.md | 187 + .../apiv1/client/docs/ConsumerGroup.md | 202 + .../apiv1/client/docs/ConsumerGroupAllOf.md | 124 + .../docs/ConsumerGroupDescriptionOrderKey.md | 17 + .../apiv1/client/docs/ConsumerGroupList.md | 228 + .../client/docs/ConsumerGroupListAllOf.md | 56 + .../apiv1/client/docs/ConsumerGroupMetrics.md | 108 + .../client/docs/ConsumerGroupOrderKey.md | 11 + .../ConsumerGroupResetOffsetParameters.md | 103 + .../docs/ConsumerGroupResetOffsetResult.md | 150 + .../ConsumerGroupResetOffsetResultAllOf.md | 56 + .../ConsumerGroupResetOffsetResultItem.md | 108 + .../apiv1/client/docs/ConsumerGroupState.md | 21 + .../kafkainstance/apiv1/client/docs/Error.md | 238 + .../apiv1/client/docs/ErrorAllOf.md | 160 + .../apiv1/client/docs/ErrorList.md | 150 + .../apiv1/client/docs/ErrorListAllOf.md | 82 + .../apiv1/client/docs/ErrorsApi.md | 137 + .../apiv1/client/docs/GroupsApi.md | 308 + .../kafkainstance/apiv1/client/docs/List.md | 150 + .../apiv1/client/docs/ListDeprecated.md | 228 + .../apiv1/client/docs/ListDeprecatedAllOf.md | 108 + .../apiv1/client/docs/NewTopicInput.md | 72 + .../kafkainstance/apiv1/client/docs/Node.md | 56 + .../apiv1/client/docs/ObjectReference.md | 108 + .../apiv1/client/docs/OffsetType.md | 17 + .../apiv1/client/docs/Partition.md | 155 + .../kafkainstance/apiv1/client/docs/Record.md | 285 + .../apiv1/client/docs/RecordAllOf.md | 207 + .../client/docs/RecordIncludedProperty.md | 23 + .../apiv1/client/docs/RecordList.md | 150 + .../apiv1/client/docs/RecordListAllOf.md | 134 + .../apiv1/client/docs/RecordsApi.md | 164 + .../apiv1/client/docs/SortDirection.md | 13 + .../kafkainstance/apiv1/client/docs/Topic.md | 212 + .../apiv1/client/docs/TopicAllOf.md | 134 + .../apiv1/client/docs/TopicOrderKey.md | 17 + .../apiv1/client/docs/TopicSettings.md | 82 + .../apiv1/client/docs/TopicsApi.md | 367 + .../apiv1/client/docs/TopicsList.md | 228 + .../apiv1/client/docs/TopicsListAllOf.md | 56 + .../apiv1/client/docs/TopicsToResetOffset.md | 77 + .../kafkainstance/apiv1/client/git_push.sh | 58 + .../kafkainstance/apiv1/client/go.mod | 7 + .../kafkainstance/apiv1/client/go.sum | 13 + .../apiv1/client/model_acl_binding.go | 364 + .../apiv1/client/model_acl_binding_all_of.go | 254 + .../client/model_acl_binding_list_page.go | 248 + .../model_acl_binding_list_page_all_of.go | 115 + .../client/model_acl_binding_order_key.go | 118 + .../apiv1/client/model_acl_operation.go | 124 + .../client/model_acl_operation_filter.go | 126 + .../apiv1/client/model_acl_pattern_type.go | 110 + .../client/model_acl_pattern_type_filter.go | 114 + .../apiv1/client/model_acl_permission_type.go | 110 + .../model_acl_permission_type_filter.go | 112 + .../apiv1/client/model_acl_resource_type.go | 114 + .../client/model_acl_resource_type_filter.go | 116 + .../apiv1/client/model_config_entry.go | 139 + .../apiv1/client/model_consumer.go | 303 + .../apiv1/client/model_consumer_group.go | 321 + .../client/model_consumer_group_all_of.go | 211 + ...el_consumer_group_description_order_key.go | 114 + .../apiv1/client/model_consumer_group_list.go | 359 + .../model_consumer_group_list_all_of.go | 115 + .../client/model_consumer_group_metrics.go | 187 + .../client/model_consumer_group_order_key.go | 108 + ..._consumer_group_reset_offset_parameters.go | 181 + ...odel_consumer_group_reset_offset_result.go | 248 + ...nsumer_group_reset_offset_result_all_of.go | 115 + ...consumer_group_reset_offset_result_item.go | 187 + .../client/model_consumer_group_state.go | 118 + .../kafkainstance/apiv1/client/model_error.go | 371 + .../apiv1/client/model_error_all_of.go | 261 + .../apiv1/client/model_error_list.go | 248 + .../apiv1/client/model_error_list_all_of.go | 152 + .../kafkainstance/apiv1/client/model_list.go | 248 + .../apiv1/client/model_list_deprecated.go | 359 + .../client/model_list_deprecated_all_of.go | 190 + .../apiv1/client/model_new_topic_input.go | 138 + .../kafkainstance/apiv1/client/model_node.go | 115 + .../apiv1/client/model_object_reference.go | 189 + .../apiv1/client/model_offset_type.go | 114 + .../apiv1/client/model_partition.go | 256 + .../apiv1/client/model_record.go | 442 + .../apiv1/client/model_record_all_of.go | 332 + .../client/model_record_included_property.go | 120 + .../apiv1/client/model_record_list.go | 248 + .../apiv1/client/model_record_list_all_of.go | 226 + .../apiv1/client/model_sort_direction.go | 110 + .../kafkainstance/apiv1/client/model_topic.go | 336 + .../apiv1/client/model_topic_all_of.go | 226 + .../apiv1/client/model_topic_order_key.go | 114 + .../apiv1/client/model_topic_settings.go | 153 + .../apiv1/client/model_topics_list.go | 359 + .../apiv1/client/model_topics_list_all_of.go | 115 + .../client/model_topics_to_reset_offset.go | 144 + .../kafkainstance/apiv1/client/response.go | 47 + .../kafkainstance/apiv1/client/utils.go | 328 + .../kafkamgmt/apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 102 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../kafkamgmt/apiv1/client/.travis.yml | 8 + .../kafkamgmt/apiv1/client/README.md | 184 + .../kafkamgmt/apiv1/client/api/openapi.yaml | 2383 ++ .../kafkamgmt/apiv1/client/api_default.go | 2013 ++ .../kafkamgmt/apiv1/client/api_errors.go | 269 + .../kafkamgmt/apiv1/client/api_security.go | 896 + .../kafkamgmt/apiv1/client/client.go | 552 + .../kafkamgmt/apiv1/client/configuration.go | 243 + .../apiv1/client/docs/CloudProvider.md | 155 + .../apiv1/client/docs/CloudProviderList.md | 135 + .../client/docs/CloudProviderListAllOf.md | 56 + .../apiv1/client/docs/CloudRegion.md | 150 + .../apiv1/client/docs/CloudRegionList.md | 135 + .../apiv1/client/docs/CloudRegionListAllOf.md | 56 + .../kafkamgmt/apiv1/client/docs/DefaultApi.md | 868 + .../kafkamgmt/apiv1/client/docs/Error.md | 161 + .../kafkamgmt/apiv1/client/docs/ErrorList.md | 135 + .../apiv1/client/docs/ErrorListAllOf.md | 56 + .../kafkamgmt/apiv1/client/docs/ErrorsApi.md | 141 + .../apiv1/client/docs/InstantQuery.md | 103 + .../apiv1/client/docs/KafkaRequest.md | 847 + .../apiv1/client/docs/KafkaRequestAllOf.md | 784 + .../apiv1/client/docs/KafkaRequestList.md | 135 + .../client/docs/KafkaRequestListAllOf.md | 56 + .../apiv1/client/docs/KafkaRequestPayload.md | 273 + .../apiv1/client/docs/KafkaUpdateRequest.md | 102 + .../kafkamgmt/apiv1/client/docs/List.md | 135 + .../client/docs/MetricsInstantQueryList.md | 108 + .../docs/MetricsInstantQueryListAllOf.md | 108 + .../client/docs/MetricsRangeQueryList.md | 108 + .../client/docs/MetricsRangeQueryListAllOf.md | 108 + .../apiv1/client/docs/ObjectReference.md | 93 + .../kafkamgmt/apiv1/client/docs/RangeQuery.md | 82 + .../client/docs/RegionCapacityListItem.md | 72 + .../apiv1/client/docs/SecurityApi.md | 417 + .../apiv1/client/docs/ServiceAccount.md | 275 + .../apiv1/client/docs/ServiceAccountAllOf.md | 238 + .../apiv1/client/docs/ServiceAccountList.md | 72 + .../client/docs/ServiceAccountListAllOf.md | 72 + .../client/docs/ServiceAccountListItem.md | 249 + .../docs/ServiceAccountListItemAllOf.md | 212 + .../client/docs/ServiceAccountRequest.md | 77 + .../apiv1/client/docs/SsoProvider.md | 223 + .../apiv1/client/docs/SsoProviderAllOf.md | 160 + .../client/docs/SupportedKafkaBillingModel.md | 114 + .../client/docs/SupportedKafkaInstanceType.md | 129 + .../docs/SupportedKafkaInstanceTypesList.md | 56 + .../SupportedKafkaInstanceTypesListAllOf.md | 56 + .../apiv1/client/docs/SupportedKafkaSize.md | 508 + .../docs/SupportedKafkaSizeBytesValueItem.md | 56 + .../kafkamgmt/apiv1/client/docs/Values.md | 77 + .../apiv1/client/docs/VersionMetadata.md | 145 + .../apiv1/client/docs/VersionMetadataAllOf.md | 82 + .../kafkamgmt/apiv1/client/git_push.sh | 58 + .../kafkamgmt/apiv1/client/go.mod | 7 + .../kafkamgmt/apiv1/client/go.sum | 13 + .../apiv1/client/model_cloud_provider.go | 258 + .../apiv1/client/model_cloud_provider_list.go | 225 + .../model_cloud_provider_list_all_of.go | 116 + .../apiv1/client/model_cloud_region.go | 253 + .../apiv1/client/model_cloud_region_list.go | 225 + .../client/model_cloud_region_list_all_of.go | 116 + .../kafkamgmt/apiv1/client/model_error.go | 261 + .../apiv1/client/model_error_list.go | 225 + .../apiv1/client/model_error_list_all_of.go | 116 + .../apiv1/client/model_instant_query.go | 181 + .../apiv1/client/model_kafka_request.go | 1220 + .../client/model_kafka_request_all_of.go | 1133 + .../apiv1/client/model_kafka_request_list.go | 225 + .../client/model_kafka_request_list_all_of.go | 116 + .../client/model_kafka_request_payload.go | 409 + .../client/model_kafka_update_request.go | 173 + .../kafkamgmt/apiv1/client/model_list.go | 225 + .../model_metrics_instant_query_list.go | 188 + ...model_metrics_instant_query_list_all_of.go | 188 + .../client/model_metrics_range_query_list.go | 188 + .../model_metrics_range_query_list_all_of.go | 188 + .../apiv1/client/model_object_reference.go | 167 + .../apiv1/client/model_range_query.go | 152 + .../client/model_region_capacity_list_item.go | 140 + .../apiv1/client/model_service_account.go | 421 + .../client/model_service_account_all_of.go | 370 + .../client/model_service_account_list.go | 138 + .../model_service_account_list_all_of.go | 138 + .../client/model_service_account_list_item.go | 391 + .../model_service_account_list_item_all_of.go | 340 + .../client/model_service_account_request.go | 147 + .../apiv1/client/model_sso_provider.go | 349 + .../apiv1/client/model_sso_provider_all_of.go | 262 + .../model_supported_kafka_billing_model.go | 200 + .../model_supported_kafka_instance_type.go | 221 + ...del_supported_kafka_instance_types_list.go | 116 + ...ported_kafka_instance_types_list_all_of.go | 116 + .../client/model_supported_kafka_size.go | 752 + ...l_supported_kafka_size_bytes_value_item.go | 116 + .../kafkamgmt/apiv1/client/model_values.go | 145 + .../apiv1/client/model_version_metadata.go | 239 + .../client/model_version_metadata_all_of.go | 152 + .../kafkamgmt/apiv1/client/response.go | 48 + .../kafkamgmt/apiv1/client/utils.go | 329 + .../kafkamgmt/apiv1/error/errors.go | 135 + .../apiv1internal/client/.gitignore | 24 + .../client/.openapi-generator-ignore | 23 + .../client/.openapi-generator/FILES | 100 + .../client/.openapi-generator/VERSION | 1 + .../apiv1internal/client/.travis.yml | 8 + .../apiv1internal/client/README.md | 207 + .../apiv1internal/client/api/openapi.yaml | 4961 ++++ .../apiv1internal/client/api_admin.go | 2125 ++ .../client/api_artifact_rules.go | 1200 + .../apiv1internal/client/api_artifacts.go | 2240 ++ .../apiv1internal/client/api_global_rules.go | 911 + .../apiv1internal/client/api_metadata.go | 1323 + .../apiv1internal/client/api_search.go | 451 + .../apiv1internal/client/api_system.go | 283 + .../apiv1internal/client/api_users.go | 156 + .../apiv1internal/client/api_versions.go | 963 + .../apiv1internal/client/client.go | 570 + .../apiv1internal/client/configuration.go | 231 + .../apiv1internal/client/docs/AdminApi.md | 1032 + .../client/docs/ArtifactMetaData.md | 396 + .../client/docs/ArtifactOwner.md | 56 + .../client/docs/ArtifactReference.md | 119 + .../client/docs/ArtifactRulesApi.md | 533 + .../client/docs/ArtifactSearchResults.md | 72 + .../client/docs/ArtifactState.md | 15 + .../apiv1internal/client/docs/ArtifactType.md | 29 + .../apiv1internal/client/docs/ArtifactsApi.md | 987 + .../client/docs/ConfigurationProperty.md | 135 + .../client/docs/ContentCreateRequest.md | 72 + .../apiv1internal/client/docs/DownloadRef.md | 77 + .../client/docs/EditableMetaData.md | 134 + .../apiv1internal/client/docs/Error.md | 134 + .../client/docs/GlobalRulesApi.md | 408 + .../apiv1internal/client/docs/IfExists.md | 17 + .../apiv1internal/client/docs/Limits.md | 342 + .../client/docs/LogConfiguration.md | 51 + .../apiv1internal/client/docs/LogLevel.md | 31 + .../apiv1internal/client/docs/MetadataApi.md | 611 + .../client/docs/NamedLogConfiguration.md | 72 + .../client/docs/NamedLogConfigurationAllOf.md | 51 + .../apiv1internal/client/docs/RoleMapping.md | 98 + .../apiv1internal/client/docs/RoleType.md | 15 + .../apiv1internal/client/docs/Rule.md | 77 + .../apiv1internal/client/docs/RuleType.md | 13 + .../client/docs/RuleViolationCause.md | 82 + .../client/docs/RuleViolationError.md | 155 + .../client/docs/RuleViolationErrorAllOf.md | 51 + .../apiv1internal/client/docs/SearchApi.md | 174 + .../client/docs/SearchedArtifact.md | 291 + .../client/docs/SearchedVersion.md | 302 + .../apiv1internal/client/docs/SortBy.md | 13 + .../apiv1internal/client/docs/SortOrder.md | 13 + .../apiv1internal/client/docs/SystemApi.md | 132 + .../apiv1internal/client/docs/SystemInfo.md | 134 + .../docs/UpdateConfigurationProperty.md | 51 + .../apiv1internal/client/docs/UpdateRole.md | 51 + .../apiv1internal/client/docs/UpdateState.md | 51 + .../apiv1internal/client/docs/UserInfo.md | 160 + .../apiv1internal/client/docs/UsersApi.md | 70 + .../client/docs/VersionMetaData.md | 333 + .../client/docs/VersionSearchResults.md | 72 + .../apiv1internal/client/docs/VersionsApi.md | 405 + .../apiv1internal/client/git_push.sh | 58 + .../apiv1internal/client/go.mod | 7 + .../apiv1internal/client/go.sum | 13 + .../client/model_artifact_meta_data.go | 589 + .../client/model_artifact_owner.go | 116 + .../client/model_artifact_reference.go | 203 + .../client/model_artifact_search_results.go | 140 + .../client/model_artifact_state.go | 113 + .../client/model_artifact_type.go | 127 + .../client/model_configuration_property.go | 225 + .../client/model_content_create_request.go | 140 + .../client/model_download_ref.go | 145 + .../client/model_editable_meta_data.go | 225 + .../apiv1internal/client/model_error.go | 228 + .../apiv1internal/client/model_if_exists.go | 115 + .../apiv1internal/client/model_limits.go | 512 + .../client/model_log_configuration.go | 109 + .../apiv1internal/client/model_log_level.go | 129 + .../client/model_named_log_configuration.go | 138 + .../model_named_log_configuration_all_of.go | 109 + .../client/model_role_mapping.go | 175 + .../apiv1internal/client/model_role_type.go | 113 + .../apiv1internal/client/model_rule.go | 145 + .../apiv1internal/client/model_rule_type.go | 111 + .../client/model_rule_violation_cause.go | 152 + .../client/model_rule_violation_error.go | 258 + .../model_rule_violation_error_all_of.go | 110 + .../client/model_searched_artifact.go | 443 + .../client/model_searched_version.go | 457 + .../apiv1internal/client/model_sort_by.go | 111 + .../apiv1internal/client/model_sort_order.go | 111 + .../apiv1internal/client/model_system_info.go | 224 + .../model_update_configuration_property.go | 109 + .../apiv1internal/client/model_update_role.go | 109 + .../client/model_update_state.go | 109 + .../apiv1internal/client/model_user_info.go | 260 + .../client/model_version_meta_data.go | 502 + .../client/model_version_search_results.go | 140 + .../apiv1internal/client/response.go | 48 + .../apiv1internal/client/utils.go | 329 + .../registrymgmt/apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 44 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../registrymgmt/apiv1/client/.travis.yml | 8 + .../registrymgmt/apiv1/client/README.md | 143 + .../apiv1/client/api/openapi.yaml | 746 + .../registrymgmt/apiv1/client/api_default.go | 156 + .../registrymgmt/apiv1/client/api_errors.go | 316 + .../apiv1/client/api_registries.go | 652 + .../registrymgmt/apiv1/client/client.go | 552 + .../apiv1/client/configuration.go | 243 + .../apiv1/client/docs/DefaultApi.md | 70 + .../registrymgmt/apiv1/client/docs/Error.md | 161 + .../apiv1/client/docs/ErrorList.md | 135 + .../apiv1/client/docs/ErrorListAllOf.md | 56 + .../apiv1/client/docs/ErrorsApi.md | 148 + .../registrymgmt/apiv1/client/docs/List.md | 135 + .../apiv1/client/docs/ObjectReference.md | 93 + .../apiv1/client/docs/RegistriesApi.md | 288 + .../apiv1/client/docs/Registry.md | 323 + .../apiv1/client/docs/RegistryCreate.md | 77 + .../client/docs/RegistryInstanceTypeValue.md | 13 + .../apiv1/client/docs/RegistryList.md | 135 + .../apiv1/client/docs/RegistryListAllOf.md | 51 + .../apiv1/client/docs/RegistryStatusValue.md | 21 + .../apiv1/client/docs/RootTypeForRegistry.md | 281 + .../apiv1/client/docs/ServiceStatus.md | 56 + .../registrymgmt/apiv1/client/git_push.sh | 58 + .../registrymgmt/apiv1/client/go.mod | 7 + .../registrymgmt/apiv1/client/go.sum | 13 + .../registrymgmt/apiv1/client/model_error.go | 261 + .../apiv1/client/model_error_list.go | 225 + .../apiv1/client/model_error_list_all_of.go | 116 + .../registrymgmt/apiv1/client/model_list.go | 225 + .../apiv1/client/model_object_reference.go | 167 + .../apiv1/client/model_registry.go | 492 + .../apiv1/client/model_registry_create.go | 147 + .../model_registry_instance_type_value.go | 111 + .../apiv1/client/model_registry_list.go | 225 + .../client/model_registry_list_all_of.go | 109 + .../client/model_registry_status_value.go | 119 + .../client/model_root_type_for_registry.go | 434 + .../apiv1/client/model_service_status.go | 117 + .../registrymgmt/apiv1/client/response.go | 48 + .../registrymgmt/apiv1/client/utils.go | 329 + .../registrymgmt/apiv1/error/errors.go | 48 + .../apiv1/client/.gitignore | 24 + .../apiv1/client/.openapi-generator-ignore | 23 + .../apiv1/client/.openapi-generator/FILES | 26 + .../apiv1/client/.openapi-generator/VERSION | 1 + .../apiv1/client/.travis.yml | 8 + .../serviceaccountmgmt/apiv1/client/README.md | 194 + .../apiv1/client/api/openapi.yaml | 479 + .../apiv1/client/api_service_accounts.go | 923 + .../serviceaccountmgmt/apiv1/client/client.go | 546 + .../apiv1/client/configuration.go | 239 + .../apiv1/client/docs/Error.md | 51 + .../client/docs/RedHatErrorRepresentation.md | 82 + .../docs/ServiceAccountCreateRequestData.md | 77 + .../apiv1/client/docs/ServiceAccountData.md | 212 + .../client/docs/ServiceAccountRequestData.md | 82 + .../apiv1/client/docs/ServiceAccountsApi.md | 430 + .../client/docs/ValidationExceptionData.md | 108 + .../apiv1/client/git_push.sh | 58 + .../serviceaccountmgmt/apiv1/client/go.mod | 7 + .../serviceaccountmgmt/apiv1/client/go.sum | 13 + .../apiv1/client/model_error.go | 110 + .../model_red_hat_error_representation.go | 152 + ...del_service_account_create_request_data.go | 145 + .../client/model_service_account_data.go | 333 + .../model_service_account_request_data.go | 152 + .../client/model_validation_exception_data.go | 188 + .../apiv1/client/response.go | 48 + .../serviceaccountmgmt/apiv1/client/utils.go | 329 + .../apiv1alpha/client/.gitignore | 24 + .../client/.openapi-generator-ignore | 23 + .../client/.openapi-generator/FILES | 80 + .../client/.openapi-generator/VERSION | 1 + .../apiv1alpha/client/.travis.yml | 8 + .../apiv1alpha/client/README.md | 160 + .../apiv1alpha/client/api/openapi.yaml | 1266 +- .../apiv1alpha/client/api_bridges.go | 861 + .../apiv1alpha/client/api_cloud_providers.go | 495 + .../apiv1alpha/client/api_error_catalog.go | 323 + .../apiv1alpha/client/api_processors.go | 876 + .../apiv1alpha/client/api_schema_catalog.go | 447 + .../apiv1alpha/client/client.go | 558 + .../apiv1alpha/client/configuration.go | 243 + .../apiv1alpha/client/docs/Action.md | 72 + .../apiv1alpha/client/docs/BaseFilter.md | 77 + .../apiv1alpha/client/docs/BridgeError.md | 134 + .../client/docs/BridgeErrorInstance.md | 160 + .../apiv1alpha/client/docs/BridgeErrorType.md | 13 + .../client/docs/BridgeListResponse.md | 140 + .../apiv1alpha/client/docs/BridgeRequest.md | 119 + .../apiv1alpha/client/docs/BridgeResponse.md | 364 + .../apiv1alpha/client/docs/BridgesApi.md | 361 + .../client/docs/CloudProviderListResponse.md | 140 + .../client/docs/CloudProviderResponse.md | 161 + .../client/docs/CloudProvidersApi.md | 223 + .../client/docs/CloudRegionListResponse.md | 140 + .../client/docs/CloudRegionResponse.md | 114 + .../apiv1alpha/client/docs/Error.md | 166 + .../apiv1alpha/client/docs/ErrorCatalogApi.md | 148 + .../client/docs/ErrorListResponse.md | 140 + .../apiv1alpha/client/docs/ErrorsList.md | 77 + .../apiv1alpha/client/docs/List.md | 140 + .../apiv1alpha/client/docs/ListAllOf.md | 93 + .../apiv1alpha/client/docs/ListResponse.md | 77 + .../client/docs/ManagedResourceStatus.md | 25 + .../apiv1alpha/client/docs/ObjectReference.md | 119 + .../docs/ProcessingErrorListResponse.md | 140 + .../client/docs/ProcessingErrorResponse.md | 108 + .../client/docs/ProcessorCatalogResponse.md | 77 + .../client/docs/ProcessorListResponse.md | 140 + .../client/docs/ProcessorRequest.md | 155 + .../client/docs/ProcessorResponse.md | 385 + .../docs/ProcessorSchemaEntryResponse.md | 156 + .../apiv1alpha/client/docs/ProcessorType.md | 15 + .../apiv1alpha/client/docs/ProcessorsApi.md | 384 + .../client/docs/SchemaCatalogApi.md | 212 + .../apiv1alpha/client/docs/Source.md | 72 + .../apiv1alpha/client/git_push.sh | 58 + .../smarteventsmgmt/apiv1alpha/client/go.mod | 7 + .../smarteventsmgmt/apiv1alpha/client/go.sum | 13 + .../apiv1alpha/client/model_action.go | 138 + .../apiv1alpha/client/model_base_filter.go | 145 + .../apiv1alpha/client/model_bridge_error.go | 224 + .../client/model_bridge_error_instance.go | 260 + .../client/model_bridge_error_type.go | 111 + .../client/model_bridge_list_response.go | 232 + .../apiv1alpha/client/model_bridge_request.go | 203 + .../client/model_bridge_response.go | 543 + .../model_cloud_provider_list_response.go | 232 + .../client/model_cloud_provider_response.go | 261 + .../model_cloud_region_list_response.go | 232 + .../client/model_cloud_region_response.go | 196 + .../apiv1alpha/client/model_error.go | 268 + .../client/model_error_list_response.go | 232 + .../apiv1alpha/client/model_errors_list.go | 145 + .../apiv1alpha/client/model_list.go | 232 + .../apiv1alpha/client/model_list_all_of.go | 167 + .../apiv1alpha/client/model_list_response.go | 145 + .../client/model_managed_resource_status.go | 123 + .../client/model_object_reference.go | 203 + .../model_processing_error_list_response.go | 232 + .../client/model_processing_error_response.go | 189 + .../model_processor_catalog_response.go | 145 + .../client/model_processor_list_response.go | 232 + .../client/model_processor_request.go | 253 + .../client/model_processor_response.go | 572 + .../model_processor_schema_entry_response.go | 254 + .../apiv1alpha/client/model_processor_type.go | 113 + .../apiv1alpha/client/model_source.go | 138 + .../apiv1alpha/client/response.go | 48 + .../apiv1alpha/client/utils.go | 329 + scripts/errors/fetch-errors.sh | 12 + scripts/errors/generate_errors.js | 37 + scripts/generate-go.sh | 107 + 1043 files changed, 279170 insertions(+), 515 deletions(-) create mode 100644 .github/workflows/generate-errors.yaml create mode 100644 .github/workflows/generate-sdks.yaml create mode 100644 .openapi/ams.json.orig create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/README.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/api_app_services.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/api_default.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/client.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReviewResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessTokenCfg.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Account.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroup.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignment.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequestAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountPatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReference.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReferenceAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/AppServicesApi.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Capability.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReviewRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Certificate.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificateSerial.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificatesRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudAccount.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResource.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterMetricsNodes.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResource.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResourceTotal.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransfer.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferPatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterUpgrade.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuota.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/DefaultApi.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscription.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/EphemeralResourceQuota.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResource.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResourceAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReviewRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReviewResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggle.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequestAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Label.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItem.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItemShape.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageEstateItem.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageLinkShape.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/List.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Metric.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationContactCreateRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/OneMetric.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Organization.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationPatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Permission.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Plan.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/PullSecretRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Quota.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCost.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRules.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Registry.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCreateRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredential.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialPatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResource.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResourceAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResource.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourcePatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuota.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReviewRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Role.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBinding.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingCreateRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SKU.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SKUAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfAccessReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfEntitlementStatus.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfFeatureReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReviewRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchema.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaConfigTryLearn.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaEstate.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfTermsReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRules.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Subscription.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFields.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFieldsAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCreateRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetric.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionPatchRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBinding.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingCreateRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingList.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingListAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/Summary.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetrics.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetricsAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVector.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVectorAllOf.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesCreatedResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/TemplateParameter.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReview.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReviewResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationRequest.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationResponse.md create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/go.mod create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/go.sum create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_access_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_access_review_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_access_token_cfg.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_capability.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_capability_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_certificate.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_certificate_serial.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_certificates_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_account.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_metrics_nodes.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource_total.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_upgrade.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_ephemeral_resource_quota.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_error_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_error_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_error_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_label.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_label_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_label_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_label_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item_shape.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_estate_item.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_link_shape.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_metric.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_metric_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_notification_contact_create_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_notification_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_object_reference.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_one_metric.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_organization.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_organization_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_organization_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_permission.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_permission_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_plan.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_plan_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_pull_secret_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_create_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_registry_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_create_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_role_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_access_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_entitlement_status.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_feature_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_config_try_learn.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_estate.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_self_terms_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_create_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_patch_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_create_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector_all_of.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_created_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_template_parameter.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_request.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/response.go create mode 100644 app-services-sdk-go/accountmgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/README.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api_connector_clusters.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api_connector_namespaces.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api_connector_service.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api_connector_types.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/api_connectors.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/client.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/AddonParameter.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/Channel.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/Connector.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorCluster.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterList.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterListAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequest.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequestMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterState.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatus.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatusStatus.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClustersApi.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorConfiguration.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorDesiredState.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorList.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorListAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMetaAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespace.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceEvalRequest.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceList.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceListAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMetaAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacePatchRequest.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceQuota.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequest.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceState.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceStatus.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenant.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenantKind.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacesApi.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequest.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequestMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorServiceApi.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorState.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatus.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatusStatus.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorType.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCount.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCountList.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeList.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeListAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypesApi.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorsApi.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/KafkaConnectionSettings.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/List.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectMeta.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/SchemaRegistryConnectionSettings.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceAccount.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceConnectionSettings.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadata.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadataAllOf.md create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/go.mod create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/go.sum create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_addon_parameter.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_channel.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_state.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status_status.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_configuration.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_desired_state.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_eval_request.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_patch_request.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_quota.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_state.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_status.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant_kind.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_state.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status_status.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_kafka_connection_settings.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_list.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_object_meta.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_object_reference.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_schema_registry_connection_settings.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_service_account.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_service_connection_settings.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata_all_of.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/response.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-go/connectormgmt/apiv1/error/errors.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/README.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api_acls.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api_errors.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api_groups.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api_records.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/api_topics.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/client.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBinding.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPage.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPageAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingOrderKey.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperation.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperationFilter.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternType.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternTypeFilter.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionType.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionTypeFilter.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceType.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceTypeFilter.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/AclsApi.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConfigEntry.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Consumer.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroup.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupDescriptionOrderKey.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupList.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupListAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupMetrics.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupOrderKey.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetParameters.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResult.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultItem.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupState.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorList.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorListAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorsApi.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/GroupsApi.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/List.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecated.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecatedAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/NewTopicInput.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Node.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/OffsetType.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Partition.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Record.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordIncludedProperty.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordList.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordListAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordsApi.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/SortDirection.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/Topic.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicOrderKey.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicSettings.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsApi.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsList.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsListAllOf.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsToResetOffset.md create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/go.mod create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/go.sum create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_order_key.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation_filter.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type_filter.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type_filter.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type_filter.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_config_entry.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_description_order_key.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_metrics.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_order_key.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_parameters.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_item.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_state.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_error_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_error_list.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_error_list_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_list.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_new_topic_input.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_node.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_object_reference.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_offset_type.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_partition.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_record.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_record_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_record_included_property.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_record_list.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_record_list_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_sort_direction.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topic.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topic_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topic_order_key.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topic_settings.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list_all_of.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/model_topics_to_reset_offset.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/response.go create mode 100644 app-services-sdk-go/kafkainstance/apiv1/client/utils.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/README.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/client.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/go.mod create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/go.sum create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/response.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-go/kafkamgmt/apiv1/error/errors.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/.gitignore create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/.travis.yml create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/README.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api/openapi.yaml create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_admin.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_artifact_rules.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_artifacts.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_global_rules.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_metadata.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_search.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_system.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_users.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/api_versions.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/client.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/configuration.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/AdminApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactOwner.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactReference.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactSearchResults.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactState.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactType.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactsApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ConfigurationProperty.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/ContentCreateRequest.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/DownloadRef.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/EditableMetaData.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/Error.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/IfExists.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/Limits.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogConfiguration.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogLevel.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/MetadataApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfiguration.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfigurationAllOf.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleMapping.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleType.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/Rule.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleType.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationCause.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationError.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationErrorAllOf.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedArtifact.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedVersion.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortBy.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortOrder.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemInfo.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateConfigurationProperty.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateRole.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateState.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/UserInfo.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/UsersApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionMetaData.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionSearchResults.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionsApi.md create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/git_push.sh create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/go.mod create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/go.sum create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_meta_data.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_owner.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_reference.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_search_results.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_state.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_type.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_configuration_property.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_content_create_request.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_download_ref.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_editable_meta_data.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_error.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_if_exists.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_limits.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_log_configuration.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_log_level.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_role_mapping.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_role_type.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_rule.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_type.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_cause.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_artifact.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_version.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_by.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_order.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_system_info.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_update_configuration_property.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_update_role.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_update_state.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_user_info.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_version_meta_data.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/model_version_search_results.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/response.go create mode 100644 app-services-sdk-go/registryinstance/apiv1internal/client/utils.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/README.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/api_default.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/client.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/DefaultApi.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorList.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorListAllOf.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorsApi.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/List.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistriesApi.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/Registry.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryCreate.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryInstanceTypeValue.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryList.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryListAllOf.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryStatusValue.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/docs/ServiceStatus.md create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/go.mod create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/go.sum create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_list.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/response.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-go/registrymgmt/apiv1/error/errors.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/.gitignore create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/.travis.yml create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/README.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/api/openapi.yaml create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/api_service_accounts.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/client.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/configuration.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/Error.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/RedHatErrorRepresentation.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountCreateRequestData.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountData.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountRequestData.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountsApi.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ValidationExceptionData.md create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/git_push.sh create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.mod create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.sum create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_error.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_red_hat_error_representation.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_create_request_data.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_data.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_request_data.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_validation_exception_data.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/response.go create mode 100644 app-services-sdk-go/serviceaccountmgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.gitignore create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator-ignore create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/FILES create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/VERSION create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.travis.yml create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/README.md rename .openapi/smartevents-mgmt.yaml => app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api/openapi.yaml (78%) create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_bridges.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_cloud_providers.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_error_catalog.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_processors.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_schema_catalog.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/client.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/configuration.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Action.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BaseFilter.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeError.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorInstance.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorType.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeRequest.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgesApi.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProvidersApi.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Error.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorCatalogApi.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorsList.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/List.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListAllOf.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ManagedResourceStatus.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ObjectReference.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorCatalogResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorListResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorRequest.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorSchemaEntryResponse.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorType.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorsApi.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/SchemaCatalogApi.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Source.md create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/git_push.sh create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.mod create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.sum create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_action.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_base_filter.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_instance.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_type.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_request.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_errors_list.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_all_of.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_managed_resource_status.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_object_reference.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_catalog_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_list_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_request.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_schema_entry_response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_type.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_source.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/response.go create mode 100644 app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/utils.go create mode 100644 scripts/errors/fetch-errors.sh create mode 100644 scripts/errors/generate_errors.js create mode 100644 scripts/generate-go.sh diff --git a/.errors/index.js b/.errors/index.js index d9f5211c..07ac96a4 100644 --- a/.errors/index.js +++ b/.errors/index.js @@ -2,21 +2,19 @@ module.exports ={ - kafka: { - definition: require("./errors_kafka_mgmt.json"), - file: "packages/kafka-management-sdk/src/errors.ts" - }, - srs: { - definition: require("./errors_srs_mgmt.json"), - file: "packages/registry-management-sdk/src/errors.ts" - }, - connector: { - definition: require("./errors_connector_mgmt.json"), - file: "packages/connector-management-sdk/src/errors.ts" - }, - kafkainstance: { - definition: require("./errors_kafka_instance.json"), - file: "packages/kafka-instance-sdk/src/errors.ts" - }, + go : { + kafkamgmt: { + definition: require("./errors_kafka_mgmt.json"), + file: "app-services-sdk-go/kafkamgmt/apiv1/error/errors.go" + }, + registrymgmt: { + definition: require("./errors_srs_mgmt.json"), + file: "app-services-sdk-go/registrymgmt/apiv1/error/errors.go" + }, + connectormgmt: { + definition: require("./errors_connector_mgmt.json"), + file: "app-services-sdk-go/connectormgmt/apiv1/error/errors.go" + }, + } } diff --git a/.github/workflows/api-update.yaml b/.github/workflows/api-update.yaml index b5eb6192..24f6291d 100644 --- a/.github/workflows/api-update.yaml +++ b/.github/workflows/api-update.yaml @@ -5,7 +5,7 @@ on: ## Manual request that can be used for testing and retriggering failed updates workflow_dispatch: jobs: - generate_client: + generate_api_specs: env: APP_SERVICES_TOKEN: ${{ secrets.APP_SERVICES_TOKEN }} BF2_TOKEN: ${{ secrets.BF2_TOKEN }} @@ -31,6 +31,6 @@ jobs: branch-suffix: timestamp delete-branch: true body: | - _This pull request was auto-generated_ + _This pull request was auto-generated from [api-update.yaml](https://github.com/redhat-developer/app-services-sdk-core/blob/main/.github/workflows/api-update.yaml)_ This PR adds the latest openapi files diff --git a/.github/workflows/generate-errors.yaml b/.github/workflows/generate-errors.yaml new file mode 100644 index 00000000..42a91d68 --- /dev/null +++ b/.github/workflows/generate-errors.yaml @@ -0,0 +1,27 @@ +name: Generate Errors +on: + workflow_dispatch: +jobs: + generate_errors: + env: + APP_SERVICES_TOKEN: ${{ secrets.APP_SERVICES_TOKEN }} + BF2_TOKEN: ${{ secrets.BF2_TOKEN }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Generate errors + run: bash scripts/errors/fetch-errors.sh + - name: Make pull request + uses: peter-evans/create-pull-request@v4 + with: + title: "fix(${{ github.event.client_payload.id }}): new generation of SDK errors update" + commit-message: "New generation of apis for each SDK - this pr is auto generated" + author: "app-services-ci " + branch: chore/generate-api-clients + branch-suffix: timestamp + delete-branch: true + body: | + _This pull request was auto-generated from [generate_errors.yaml](https://github.com/redhat-developer/app-services-sdk-core/blob/main/.github/workflows/generate_errors.yaml)_ + + This PR adds the latest error files diff --git a/.github/workflows/generate-sdks.yaml b/.github/workflows/generate-sdks.yaml new file mode 100644 index 00000000..8f2caa42 --- /dev/null +++ b/.github/workflows/generate-sdks.yaml @@ -0,0 +1,27 @@ +name: Generate SDK +on: + workflow_dispatch: +jobs: + generate_sdks: + env: + APP_SERVICES_TOKEN: ${{ secrets.APP_SERVICES_TOKEN }} + BF2_TOKEN: ${{ secrets.BF2_TOKEN }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Generate SDKs + run: bash scripts/generate-go.sh + - name: Make pull request + uses: peter-evans/create-pull-request@v4 + with: + title: "fix: new generation of SDKs update" + commit-message: "Regenerated SDKs - this pr is auto generated" + author: "app-services-ci " + branch: chore/generate-api-clients + branch-suffix: timestamp + delete-branch: true + body: | + _This pull request was auto-generated from [generate_sdks.yaml](https://github.com/redhat-developer/app-services-sdk-core/blob/main/.github/workflows/generate_sdks.yaml)_ + + This PR adds the latest openapi files diff --git a/.gitignore b/.gitignore index 3c3629e6..559019e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +openapitools.json \ No newline at end of file diff --git a/.openapi/ams.json.orig b/.openapi/ams.json.orig new file mode 100644 index 00000000..168ff7ad --- /dev/null +++ b/.openapi/ams.json.orig @@ -0,0 +1,9466 @@ +{ + "components": { + "parameters": { + "accountId": { + "description": "The id of account", + "in": "path", + "name": "accountId", + "required": true, + "schema": { "type": "string" } + }, + "acctGrpAsgnId": { + "description": "The id of account group assignment", + "in": "path", + "name": "acctGrpAsgnId", + "required": true, + "schema": { "type": "string" } + }, + "acctGrpId": { + "description": "The id of account group", + "in": "path", + "name": "acctGrpId", + "required": true, + "schema": { "type": "string" } + }, + "caseId": { + "description": "The id of a support case", + "in": "path", + "name": "caseId", + "required": true, + "schema": { "type": "string" } + }, + "dryRun": { + "description": "If true, instructs API to avoid making any changes, but rather run through validations only.", + "in": "query", + "name": "dryRun", + "required": false, + "schema": { "type": "boolean" } + }, + "externalResourceId": { + "description": "The external resource id of record", + "in": "path", + "name": "externalResourceId", + "required": true, + "schema": { "type": "string" } + }, + "fetchAccounts": { + "description": "If true, includes the account reference information in the output. Could slow request response time.", + "in": "query", + "name": "fetchAccounts", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchCapabilities": { + "description": "If true, includes the capabilities on a subscription in the output. Could slow request response time.", + "in": "query", + "name": "fetchCapabilities", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchCloudAccounts": { + "description": "If true, includes the marketplace cloud accounts in the output. Could slow request response time.", + "in": "query", + "name": "fetchCloudAccounts", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchCpuAndSocket": { + "description": "If true, fetches, from the clusters service, the total numbers of CPU's and sockets under an obligation, and includes in the output. Could slow request response time.", + "in": "query", + "name": "fetchCpuAndSocket", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchLabels": { + "description": "If true, includes the labels on a subscription/organization/account in the output. Could slow request response time.", + "in": "query", + "name": "fetchLabels", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchRelatedResources": { + "description": "If true, includes the related resources in the output. Could slow request response time.", + "in": "query", + "name": "fetchRelatedResources", + "required": false, + "schema": { "type": "boolean" } + }, + "fetchRhit": { + "description": "If true, includes the RHIT account_id in the output. Could slow request response time.", + "in": "query", + "name": "fetchRhit", + "required": false, + "schema": { "type": "boolean" } + }, + "fields": { + "description": "Supplies a comma-separated list of fields to be returned.\nFields of sub-structures and of arrays use \u003cstructure\u003e.\u003cfield\u003e notation.\n\u003cstucture\u003e.* means all field of a structure\nExample: For each Subscription to get id, href, plan(id and kind) and labels (all fields)\n\n```\nocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true\n```", + "in": "query", + "name": "fields", + "required": false, + "schema": { "type": "string" } + }, + "forceRecalc": { + "description": "If true, includes that ConsumedQuota should be recalculated.", + "in": "query", + "name": "forceRecalc", + "required": false, + "schema": { "type": "boolean" } + }, + "id": { + "description": "The id of record", + "in": "path", + "name": "id", + "required": true, + "schema": { "type": "string" } + }, + "key": { + "description": "The key of the label", + "in": "path", + "name": "key", + "required": true, + "schema": { "type": "string" } + }, + "labels": { + "description": "Specifies the criteria to filter the subscription resource based on their labels.\nA label is represented as a `key=value` pair,\n\n```\nlabels = \"foo=bar\"\n```\n\nand multiple labels are separated by comma,\n\n```\nlabels = \"foo=bar,fooz=barz\"\n```", + "in": "query", + "name": "labels", + "required": false, + "schema": { "type": "string" } + }, + "metricName": { + "description": "The name of the metric", + "in": "path", + "name": "metric_name", + "required": true, + "schema": { "type": "string" } + }, + "metricSearch": { + "description": "The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at\nhttps://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors.\nIt only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection.\nFor example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`:\n\n```\nname=~'managed.*',channel='production'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the records will be returned.", + "in": "query", + "name": "search", + "required": false, + "schema": { "type": "string" } + }, + "orderBy": { + "description": "Specifies the order by criteria. The syntax of this parameter is\nsimilar to the syntax of the _order by_ clause of an SQL statement,\nbut using the names of the json attributes / column of the account.\nFor example, in order to retrieve all accounts ordered by username:\n\n```sql\nusername asc\n```\n\nOr in order to retrieve all accounts ordered by username _and_ first name:\n\n```sql\nusername asc, firstName asc\n```\n\nIf the parameter isn't provided, or if the value is empty, then\nno explicit ordering will be applied.", + "in": "query", + "name": "orderBy", + "required": false, + "schema": { "type": "string" } + }, + "orgId": { + "description": "The id of organization", + "in": "path", + "name": "orgId", + "required": true, + "schema": { "type": "string" } + }, + "page": { + "description": "Page number of record list when record list exceeds specified page size", + "in": "query", + "name": "page", + "required": false, + "schema": { "default": 1, "minimum": 1, "type": "integer" } + }, + "product": { + "description": "The product for self_entitlement. The supported products are [rosa].", + "in": "path", + "name": "product", + "required": true, + "schema": { "type": "string" } + }, + "quotaId": { + "description": "The id of quota", + "in": "path", + "name": "quotaId", + "required": true, + "schema": { "type": "string" } + }, + "reduceClusterList": { + "description": "If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list.", + "in": "query", + "name": "reduceClusterList", + "required": false, + "schema": { "type": "boolean" } + }, + "reservedResourceId": { + "description": "The id of reserved resource", + "in": "path", + "name": "reservedResourceId", + "required": true, + "schema": { "type": "string" } + }, + "search": { + "description": "Specifies the search criteria. The syntax of this parameter is\nsimilar to the syntax of the _where_ clause of an SQL statement,\nusing the names of the json attributes / column names of the account.\nFor example, in order to retrieve all the accounts with a username\nstarting with `my`:\n\n```sql\nusername like 'my%'\n```\n\nThe search criteria can also be applied on related resource.\nFor example, in order to retrieve all the subscriptions labeled by `foo=bar`,\n\n```sql\nlabels.key = 'foo' and labels.value = 'bar'\n```\n\nIf the parameter isn't provided, or if the value is empty, then\nall the accounts that the user has permission to see will be\nreturned.", + "in": "query", + "name": "search", + "required": false, + "schema": { "type": "string" } + }, + "size": { + "description": "Maximum number of records to return", + "in": "query", + "name": "size", + "required": false, + "schema": { "default": 100, "minimum": 0, "type": "integer" } + }, + "subId": { + "description": "The id of subscription", + "in": "path", + "name": "subId", + "required": true, + "schema": { "type": "string" } + } + }, + "schemas": { + "AccessReview": { + "properties": { + "account_username": { "type": "string" }, + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "organization_id": { "type": "string" }, + "resource_type": { + "enum": [ + "AddOn", + "Flavour", + "Account", + "AccountPool", + "Cluster", + "Plan", + "Subscription", + "Organization", + "Role", + "Permission", + "RoleBinding", + "Registry", + "RegistryCredential", + "CurrentAccount", + "AccessReview", + "SelfAcccessReview", + "ResourceReview", + "SelfResourceReview", + "ClusterRegistration", + "AccessToken", + "ClusterAuthorization", + "SelfManagedCluster", + "RedhatManagedCluster", + "ExportControlReview", + "ClusterLog", + "ClusterCredential", + "ClusterMetric", + "ResourceQuota", + "ReservedResource", + "Dashboard", + "ClusterProviderAndRegion", + "ServiceLog", + "InternalServiceLog", + "CSLogs", + "SubscriptionLabel", + "OrganizationLabel", + "SubscriptionLabelInternal", + "SelfAccessReview", + "SubscriptionInternal", + "SubscriptionRoleBinding" + ], + "type": "string" + }, + "subscription_id": { "type": "string" } + }, + "required": ["action", "resource_type", "account_username"], + "type": "object" + }, + "AccessReviewResponse": { + "properties": { + "account_id": { "type": "string" }, + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "allowed": { "type": "boolean" }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "organization_id": { "type": "string" }, + "resource_type": { + "enum": [ + "AddOn", + "Flavour", + "Account", + "AccountPool", + "Cluster", + "Plan", + "Subscription", + "Organization", + "Role", + "Permission", + "RoleBinding", + "Registry", + "RegistryCredential", + "CurrentAccount", + "AccessReview", + "SelfAcccessReview", + "ResourceReview", + "SelfResourceReview", + "ClusterRegistration", + "AccessToken", + "ClusterAuthorization", + "SelfManagedCluster", + "RedhatManagedCluster", + "ExportControlReview", + "ClusterLog", + "ClusterCredential", + "ClusterMetric", + "ResourceQuota", + "ReservedResource", + "Dashboard", + "ClusterProviderAndRegion", + "ServiceLog", + "InternalServiceLog", + "CSLogs", + "SubscriptionLabel", + "OrganizationLabel", + "SubscriptionLabelInternal", + "SelfAccessReview", + "SubscriptionInternal", + "SubscriptionRoleBinding" + ], + "type": "string" + }, + "subscription_id": { "type": "string" } + }, + "required": ["allowed"], + "type": "object" + }, + "AccessTokenCfg": { + "properties": { + "auths": { "additionalProperties": true, "type": "object" } + }, + "required": ["auths"], + "type": "object" + }, + "Account": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "ban_code": { "type": "string" }, + "ban_description": { "type": "string" }, + "banned": { "default": false, "type": "boolean" }, + "capabilities": { + "items": { "$ref": "#/components/schemas/Capability" }, + "type": "array" + }, + "created_at": { "format": "date-time", "type": "string" }, + "email": { "format": "email", "type": "string" }, + "first_name": { "type": "string" }, + "labels": { + "items": { "$ref": "#/components/schemas/Label" }, + "type": "array" + }, + "last_name": { "type": "string" }, + "organization": { "$ref": "#/components/schemas/Organization" }, + "organization_id": { "type": "string" }, + "rhit_account_id": { "type": "string" }, + "rhit_web_user_id": { "type": "string" }, + "service_account": { "default": false, "type": "boolean" }, + "updated_at": { "format": "date-time", "type": "string" }, + "username": { "type": "string" } + }, + "required": ["username"], + "type": "object" + } + ] + }, + "AccountGroup": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "created_at": { "format": "date-time", "type": "string" }, + "description": { "type": "string" }, + "managed_by": { "enum": ["SSO", "OCM"], "type": "string" }, + "name": { "type": "string" }, + "organization_id": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "required": [ + "name", + "description", + "organization_id", + "managed_by" + ], + "type": "object" + } + ] + }, + "AccountGroupAssignment": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "account_group_id": { "type": "string" }, + "account_id": { "type": "string" }, + "created_at": { "format": "date-time", "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "required": ["account_id", "account_group_id"], + "type": "object" + } + ] + }, + "AccountGroupAssignmentList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "allOf": [ + { "$ref": "#/components/schemas/AccountGroupAssignment" } + ] + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "AccountGroupList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "allOf": [{ "$ref": "#/components/schemas/AccountGroup" }] + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "AccountGroupRequest": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "description": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["name", "description"], + "type": "object" + } + ] + }, + "AccountList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "allOf": [{ "$ref": "#/components/schemas/Account" }] + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "AccountPatchRequest": { + "properties": { + "ban_code": { "type": "string" }, + "ban_description": { "type": "string" }, + "banned": { "type": "boolean" }, + "email": { "format": "email", "type": "string" }, + "first_name": { "type": "string" }, + "last_name": { "type": "string" }, + "organization_id": { "type": "string" }, + "service_account": { "type": "boolean" } + }, + "type": "object" + }, + "AccountReference": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "email": { "type": "string" }, + "name": { "type": "string" }, + "username": { "type": "string" } + }, + "type": "object" + } + ] + }, + "Capability": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "inherited": { "type": "boolean" }, + "name": { "type": "string" }, + "value": { "type": "string" } + }, + "required": ["name", "value", "inherited"], + "type": "object" + } + ] + }, + "CapabilityReview": { + "properties": { "result": { "type": "string" } }, + "required": ["result"], + "type": "object" + }, + "CapabilityReviewRequest": { + "properties": { + "account_username": { "type": "string" }, + "capability": { "enum": ["manage_cluster_admin"], "type": "string" }, + "cluster_id": { "type": "string" }, + "organization_id": { "type": "string" }, + "subscription_id": { "type": "string" }, + "type": { "enum": ["Cluster"], "type": "string" } + }, + "required": ["account_username", "type", "capability"], + "type": "object" + }, + "Certificate": { + "properties": { + "cert": { "type": "string" }, + "id": { "type": "string" }, + "key": { "type": "string" }, + "metadata": { + "additionalProperties": { "type": "string" }, + "type": "object" + }, + "organization_id": { "type": "string" }, + "serial": { "$ref": "#/components/schemas/CertificateSerial" } + }, + "required": [ + "id", + "organization_id", + "metadata", + "key", + "cert", + "serial" + ], + "type": "object" + }, + "CertificateSerial": { + "properties": { + "created": { "format": "date-time", "type": "string" }, + "expiration": { "format": "date-time", "type": "string" }, + "id": { "format": "int64", "type": "integer" }, + "serial": { "format": "int64", "type": "integer" }, + "updated": { "format": "date-time", "type": "string" } + }, + "required": ["id", "serial", "created", "updated", "expiration"], + "type": "object" + }, + "CertificatesRequest": { + "properties": { + "arch": { + "enum": [ + "x86", + "x86_64", + "ppc", + "ppc64", + "ppc64le", + "s390", + "s390x", + "ia64", + "aarch64" + ], + "type": "string" + }, + "type": { "enum": ["sca"], "type": "string" } + }, + "required": ["type"], + "type": "object" + }, + "CloudAccount": { + "properties": { + "cloud_account_id": { "type": "string" }, + "cloud_provider_id": { "type": "string" } + }, + "type": "object" + }, + "CloudResource": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "active": { "default": true, "type": "boolean" }, + "category": { "type": "string" }, + "category_pretty": { "type": "string" }, + "cloud_provider": { "type": "string" }, + "cpu_cores": { "type": "integer" }, + "created_at": { "format": "date-time", "type": "string" }, + "generic_name": { "type": "string" }, + "memory": { "format": "int64", "type": "integer" }, + "memory_pretty": { "type": "string" }, + "name_pretty": { "type": "string" }, + "resource_type": { + "enum": [ + "addon", + "compute.node", + "cluster", + "network.io", + "network.loadbalancer", + "pv.storage" + ], + "type": "string" + }, + "size_pretty": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "CloudResourceList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/CloudResource" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "ClusterAuthorizationRequest": { + "properties": { + "account_username": { "type": "string" }, + "availability_zone": { "type": "string" }, + "byoc": { "type": "boolean" }, + "cloud_account_id": { "type": "string" }, + "cloud_provider_id": { "type": "string" }, + "cluster_id": { "type": "string" }, + "disconnected": { "type": "boolean" }, + "display_name": { "type": "string" }, + "external_cluster_id": { "type": "string" }, + "managed": { "type": "boolean" }, + "product_category": { "enum": ["assistedInstall"], "type": "string" }, + "product_id": { + "default": "osd", + "enum": ["ocp", "osd", "osdtrial", "moa", "rhmi"], + "type": "string" + }, + "quota_version": { "type": "string" }, + "reserve": { "type": "boolean" }, + "resources": { + "items": { "$ref": "#/components/schemas/ReservedResource" }, + "type": "array" + } + }, + "required": ["cluster_id", "account_username"], + "type": "object" + }, + "ClusterAuthorizationResponse": { + "properties": { + "allowed": { "type": "boolean" }, + "excess_resources": { + "items": { "$ref": "#/components/schemas/ExcessResource" }, + "type": "array" + }, + "organization_id": { "type": "string" }, + "subscription": { "$ref": "#/components/schemas/ObjectReference" } + }, + "required": ["allowed", "excess_resources"], + "type": "object" + }, + "ClusterMetricsNodes": { + "properties": { + "compute": { "type": "double" }, + "infra": { "type": "double" }, + "master": { "type": "double" }, + "total": { "type": "double" } + }, + "type": "object" + }, + "ClusterRegistrationRequest": { + "properties": { + "authorization_token": { "type": "string" }, + "cluster_id": { "type": "string" } + }, + "type": "object" + }, + "ClusterRegistrationResponse": { + "properties": { + "account_id": { "type": "string" }, + "authorization_token": { "type": "string" }, + "cluster_id": { "type": "string" }, + "expires_at": { + "description": "Cluster Registration expiration in Unix time", + "type": "string" + } + }, + "type": "object" + }, + "ClusterResource": { + "properties": { + "total": { + "properties": { + "unit": { "type": "string" }, + "value": { "type": "double" } + }, + "required": ["value", "unit"], + "type": "object" + }, + "updated_timestamp": { "format": "date-time", "type": "string" }, + "used": { + "properties": { + "unit": { "type": "string" }, + "value": { "type": "double" } + }, + "required": ["value", "unit"], + "type": "object" + } + }, + "required": ["used", "total", "updated_timestamp"], + "type": "object" + }, + "ClusterTransfer": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "cluster_uuid": { "type": "string" }, + "created_at": { "format": "date-time", "type": "string" }, + "expiration_date": { "format": "date-time", "type": "string" }, + "owner": { "type": "string" }, + "recipient": { "type": "string" }, + "secret": { "type": "string" }, + "status": { + "enum": [ + "Pending", + "Accepted", + "Declined", + "Rescinded", + "Completed" + ], + "type": "string" + }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "ClusterTransferList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "allOf": [{ "$ref": "#/components/schemas/ClusterTransfer" }] + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "ClusterTransferPatchRequest": { + "properties": { "status": { "type": "string" } }, + "type": "object" + }, + "ClusterTransferRequest": { + "properties": { + "cluster_uuid": { "type": "string" }, + "owner": { "type": "string" }, + "recipient": { "type": "string" } + }, + "type": "object" + }, + "ClusterUpgrade": { + "properties": { + "available": { "type": "boolean" }, + "state": { "type": "string" }, + "updated_timestamp": { "format": "date-time", "type": "string" }, + "version": { "type": "string" } + }, + "type": "object" + }, + "ConsumedQuota": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "availability_zone_type": { "type": "string" }, + "billing_model": { "type": "string" }, + "byoc": { "type": "boolean" }, + "cloud_provider_id": { "type": "string" }, + "count": { "type": "integer" }, + "organization_id": { "type": "string" }, + "plan_id": { "type": "string" }, + "resource_name": { "type": "string" }, + "resource_type": { "type": "string" }, + "version": { "type": "string" } + }, + "required": ["byoc", "count"], + "type": "object" + } + ] + }, + "ConsumedQuotaList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/ConsumedQuota" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "DeletedSubscription": { + "allOf": [ + { "$ref": "#/components/schemas/SubscriptionCommonFields" }, + { + "properties": { + "created_at": { "format": "date-time", "type": "string" }, + "id": { "type": "string" }, + "metrics": { "type": "string" }, + "query_timestamp": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "DeletedSubscriptionList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/DeletedSubscription" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "EphemeralResourceQuota": { + "properties": { + "availability_zone_type": { "type": "string" }, + "byoc": { "type": "boolean" }, + "resource_name": { "type": "string" }, + "resource_type": { "type": "string" }, + "sku": { "type": "string" }, + "sku_count": { "type": "integer" } + }, + "type": "object" + }, + "Error": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "code": { "type": "string" }, + "operation_id": { "type": "string" }, + "reason": { "type": "string" } + }, + "type": "object" + } + ] + }, + "ErrorList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Error" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "ExcessResource": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "availability_zone_type": { "type": "string" }, + "billing_model": { "type": "string" }, + "byoc": { "type": "boolean" }, + "count": { "type": "integer" }, + "resource_name": { "type": "string" }, + "resource_type": { "type": "string" } + }, + "required": ["byoc"], + "type": "object" + } + ] + }, + "ExportControlReview": { + "properties": { "restricted": { "type": "boolean" } }, + "required": ["restricted"], + "type": "object" + }, + "ExportControlReviewRequest": { + "properties": { + "account_username": { "type": "string" }, + "ignore_cache": { "type": "boolean" } + }, + "required": ["account_username"], + "type": "object" + }, + "FeatureReview": { + "properties": { + "account_username": { "type": "string" }, + "feature": { "type": "string" }, + "organization_id": { "type": "string" } + }, + "required": ["feature"], + "type": "object" + }, + "FeatureReviewResponse": { + "properties": { + "enabled": { "default": false, "type": "boolean" }, + "feature_id": { "type": "string" } + }, + "required": ["enabled", "feature_id"], + "type": "object" + }, + "FeatureToggle": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "enabled": { "default": false, "type": "boolean" } + }, + "required": ["enabled"], + "type": "object" + } + ] + }, + "FeatureToggleQueryRequest": { + "allOf": [ + { + "properties": { "organization_id": { "type": "string" } }, + "required": ["organization_id"], + "type": "object" + } + ] + }, + "Label": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "account_id": { "type": "string" }, + "created_at": { "format": "date-time", "type": "string" }, + "internal": { "type": "boolean" }, + "key": { "type": "string" }, + "organization_id": { "type": "string" }, + "subscription_id": { "type": "string" }, + "type": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" }, + "value": { "type": "string" } + }, + "required": ["key", "value", "internal"], + "type": "object" + } + ] + }, + "LabelList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Label" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "LandingPageCTLItem": { + "properties": { + "shape": { + "properties": { + "description": { "type": "string" }, + "link": { "$ref": "#/components/schemas/LandingPageLinkShape" }, + "title": { "type": "string" } + }, + "type": "object" + } + }, + "type": "object" + }, + "LandingPageEstateItem": { + "properties": { + "count": { "format": "int64", "type": "integer" }, + "id": { "type": "string" }, + "shape": { "$ref": "#/components/schemas/LandingPageLinkShape" } + }, + "type": "object" + }, + "LandingPageLinkShape": { + "properties": { + "href": { "type": "string" }, + "title": { "type": "string" } + }, + "type": "object" + }, + "List": { + "properties": { + "kind": { "type": "string" }, + "page": { "type": "integer" }, + "size": { "type": "integer" }, + "total": { "type": "integer" } + }, + "required": ["kind", "page", "size", "total", "items"], + "type": "object" + }, + "Metric": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "external_id": { "type": "string" }, + "health_state": { "type": "string" }, + "id": { "type": "string" }, + "metrics": { "type": "string" }, + "query_timestamp": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "MetricsList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Metric" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "NotificationContactCreateRequest": { + "properties": { "account_identifier": { "type": "string" } }, + "type": "object" + }, + "NotificationRequest": { + "properties": { + "bcc_address": { "type": "string" }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "include_red_hat_associates": { "type": "boolean" }, + "internal_only": { "type": "boolean" }, + "subject": { "type": "string" }, + "subscription_id": { "type": "string" }, + "template_name": { "type": "string" }, + "template_parameters": { + "items": { "$ref": "#/components/schemas/TemplateParameter" }, + "type": "array" + } + }, + "required": ["template_name"], + "type": "object" + }, + "ObjectReference": { + "properties": { + "href": { "type": "string" }, + "id": { "type": "string" }, + "kind": { "type": "string" } + }, + "type": "object" + }, + "OneMetric": { + "properties": { + "arch": { "type": "string" }, + "channel_info": { "type": "string" }, + "cloud_provider": { "type": "string" }, + "cluster_type": { "type": "string" }, + "compute_nodes_cpu": { + "$ref": "#/components/schemas/ClusterResource" + }, + "compute_nodes_memory": { + "$ref": "#/components/schemas/ClusterResource" + }, + "compute_nodes_sockets": { + "$ref": "#/components/schemas/ClusterResource" + }, + "console_url": { "type": "string" }, + "cpu": { "$ref": "#/components/schemas/ClusterResource" }, + "critical_alerts_firing": { "type": "double" }, + "health_state": { + "enum": ["healthy", "unhealthy", "unknown"], + "type": "string" + }, + "memory": { "$ref": "#/components/schemas/ClusterResource" }, + "nodes": { "$ref": "#/components/schemas/ClusterMetricsNodes" }, + "non_virt_nodes": { "type": "double" }, + "openshift_version": { "type": "string" }, + "operating_system": { "type": "string" }, + "operators_condition_failing": { "type": "double" }, + "query_timestamp": { "format": "date-time", "type": "string" }, + "region": { "type": "string" }, + "sockets": { "$ref": "#/components/schemas/ClusterResource" }, + "state": { "type": "string" }, + "state_description": { "type": "string" }, + "storage": { "$ref": "#/components/schemas/ClusterResource" }, + "subscription_cpu_total": { "type": "double" }, + "subscription_obligation_exists": { "type": "double" }, + "subscription_socket_total": { "type": "double" }, + "upgrade": { "$ref": "#/components/schemas/ClusterUpgrade" } + }, + "required": [ + "HealthState", + "memory", + "cpu", + "sockets", + "compute_nodes_memory", + "compute_nodes_cpu", + "compute_nodes_sockets", + "storage", + "nodes", + "operating_system", + "upgrade", + "state", + "state_description", + "openshift_version", + "cloud_provider", + "region", + "console_url", + "critical_alerts_firing", + "operators_condition_failing", + "subscription_cpu_total", + "subscription_socket_total", + "subscription_obligation_exists", + "cluster_type", + "non_virt_nodes" + ], + "type": "object" + }, + "Organization": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "capabilities": { + "items": { "$ref": "#/components/schemas/Capability" }, + "type": "array" + }, + "created_at": { "format": "date-time", "type": "string" }, + "ebs_account_id": { "type": "string" }, + "external_id": { "type": "string" }, + "labels": { + "items": { "$ref": "#/components/schemas/Label" }, + "type": "array" + }, + "name": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "OrganizationList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "allOf": [{ "$ref": "#/components/schemas/Organization" }] + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "OrganizationPatchRequest": { + "properties": { + "ebs_account_id": { "type": "string" }, + "external_id": { "type": "string" }, + "name": { "type": "string" } + }, + "type": "object" + }, + "Permission": { + "allOf": [ + { + "properties": { + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "resource": { "type": "string" } + }, + "type": "object" + } + ] + }, + "PermissionList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Permission" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "Plan": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "category": { "type": "string" }, + "name": { "type": "string" }, + "type": { "type": "string" } + }, + "type": "object" + } + ] + }, + "PlanList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Plan" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "PullSecretRequest": { + "properties": { "external_resource_id": { "type": "string" } }, + "required": ["external_resource_id"], + "type": "object" + }, + "Quota": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "created_at": { "format": "date-time", "type": "string" }, + "description": { "type": "string" }, + "resource_type": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "QuotaCost": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "allowed": { "type": "integer" }, + "cloud_accounts": { + "items": { "$ref": "#/components/schemas/CloudAccount" }, + "type": "array" + }, + "consumed": { "type": "integer" }, + "organization_id": { "type": "string" }, + "quota_id": { "type": "string" }, + "related_resources": { + "items": { "$ref": "#/components/schemas/RelatedResource" }, + "type": "array" + }, + "version": { "type": "string" } + }, + "required": ["quota_id", "consumed", "allowed"], + "type": "object" + } + ] + }, + "QuotaCostList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/QuotaCost" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "QuotaList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Quota" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "QuotaRules": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "availability_zone": { "type": "string" }, + "billing_model": { "type": "string" }, + "byoc": { "type": "string" }, + "cloud": { "type": "string" }, + "cost": { "type": "integer" }, + "name": { "type": "string" }, + "product": { "type": "string" }, + "quota_id": { "type": "string" }, + "type": { "type": "string" } + }, + "required": ["cost"], + "type": "object" + } + ] + }, + "QuotaRulesList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/QuotaRules" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "Registry": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "cloudAlias": { "type": "boolean" }, + "created_at": { "format": "date-time", "type": "string" }, + "name": { "type": "string" }, + "org_name": { "type": "string" }, + "team_name": { "type": "string" }, + "type": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" }, + "url": { "type": "string" } + }, + "type": "object" + } + ] + }, + "RegistryAddress": { + "additionalProperties": { + "properties": { + "auth": { "type": "string" }, + "email": { "format": "email", "type": "string" } + }, + "type": "object" + }, + "type": "object" + }, + "RegistryCreateRequest": { + "allOf": [ + { "$ref": "#/components/schemas/RegistryRequest" }, + { "required": ["name", "url", "type"] } + ], + "type": "object" + }, + "RegistryCredential": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "account": { "$ref": "#/components/schemas/ObjectReference" }, + "created_at": { "format": "date-time", "type": "string" }, + "external_resource_id": { "type": "string" }, + "registry": { "$ref": "#/components/schemas/ObjectReference" }, + "token": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" }, + "username": { "type": "string" } + }, + "type": "object" + } + ] + }, + "RegistryCredentialList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/RegistryCredential" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "RegistryCredentialPatchRequest": { + "properties": { + "account_id": { "type": "string" }, + "external_resource_id": { "type": "string" }, + "registry_id": { "type": "string" }, + "token": { "type": "string" }, + "username": { "type": "string" } + }, + "type": "object" + }, + "RegistryList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Registry" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "RegistryRequest": { + "properties": { + "cloudAlias": { "type": "boolean" }, + "name": { "type": "string" }, + "org_name": { "type": "string" }, + "team_name": { "type": "string" }, + "type": { "type": "string" }, + "url": { "type": "string" } + }, + "type": "object" + }, + "RelatedResource": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "availability_zone_type": { "type": "string" }, + "billing_model": { "type": "string" }, + "byoc": { "type": "string" }, + "cloud_provider": { "type": "string" }, + "cost": { "type": "integer" }, + "product": { "type": "string" }, + "product_id": { "type": "string" }, + "resource_name": { "type": "string" }, + "resource_type": { "type": "string" } + }, + "required": [ + "resource_type", + "resource_anme", + "byoc", + "availability_zone_type", + "cloud_provider", + "product", + "billing_model", + "cost" + ], + "type": "object" + } + ] + }, + "ReservedResource": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "availability_zone_type": { "type": "string" }, + "billing_marketplace_account": { "type": "string" }, + "billing_model": { "type": "string" }, + "byoc": { "type": "boolean" }, + "cluster": { "type": "boolean" }, + "count": { "type": "integer" }, + "created_at": { "format": "date-time", "type": "string" }, + "resource_name": { "type": "string" }, + "resource_type": { "type": "string" }, + "subscription": { + "$ref": "#/components/schemas/ObjectReference" + }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "required": ["byoc"], + "type": "object" + } + ] + }, + "ReservedResourceList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/ReservedResource" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "ReservedResourcePatchRequest": { + "properties": { "billing_model": { "type": "string" } }, + "type": "object" + }, + "ResourceQuota": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "created_at": { "format": "date-time", "type": "string" }, + "organization_id": { "type": "string" }, + "sku": { "type": "string" }, + "sku_count": { "type": "integer" }, + "type": { + "enum": ["Config", "Manual", "Subscription"], + "type": "string" + }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "required": ["sku_count"], + "type": "object" + } + ] + }, + "ResourceQuotaList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/ResourceQuota" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "ResourceQuotaRequest": { + "properties": { + "sku": { "type": "string" }, + "sku_count": { "type": "integer" }, + "type": { + "enum": ["Config", "Manual", "Subscription"], + "type": "string" + } + }, + "required": ["sku", "sku_count", "count"], + "type": "object" + }, + "ResourceReview": { + "properties": { + "account_username": { "type": "string" }, + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "cluster_ids": { "items": { "type": "string" }, "type": "array" }, + "cluster_uuids": { "items": { "type": "string" }, "type": "array" }, + "organization_ids": { + "items": { "type": "string" }, + "type": "array" + }, + "resource_type": { + "enum": ["Cluster", "Subscription"], + "type": "string" + }, + "subscription_ids": { "items": { "type": "string" }, "type": "array" } + }, + "required": [ + "action", + "resource_type", + "account_username", + "cluster_uuids", + "cluster_ids", + "subscription_ids", + "organization_ids" + ], + "type": "object" + }, + "ResourceReviewRequest": { + "properties": { + "account_username": { "type": "string" }, + "action": { "enum": ["get", "delete", "update"], "type": "string" }, + "resource_type": { + "enum": ["Cluster", "Subscription"], + "type": "string" + } + }, + "type": "object" + }, + "Role": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "name": { "type": "string" }, + "permissions": { + "items": { "$ref": "#/components/schemas/Permission" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "RoleBinding": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "account": { "$ref": "#/components/schemas/ObjectReference" }, + "account_group": { + "$ref": "#/components/schemas/ObjectReference" + }, + "config_managed": { "type": "boolean" }, + "created_at": { "format": "date-time", "type": "string" }, + "managed_by": { "enum": ["Config", "User"], "type": "string" }, + "organization": { + "$ref": "#/components/schemas/ObjectReference" + }, + "role": { "$ref": "#/components/schemas/ObjectReference" }, + "subscription": { + "$ref": "#/components/schemas/ObjectReference" + }, + "type": { + "enum": ["Application", "Subscription", "Organization"], + "type": "string" + }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "RoleBindingCreateRequest": { + "allOf": [ + { "$ref": "#/components/schemas/RoleBindingRequest" }, + { "required": ["role_id", "type"] } + ] + }, + "RoleBindingList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/RoleBinding" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "RoleBindingRequest": { + "properties": { + "account_group_id": { "type": "string" }, + "account_id": { "type": "string" }, + "config_managed": { "type": "boolean" }, + "managed_by": { "type": "string" }, + "organization_id": { "type": "string" }, + "role_id": { "type": "string" }, + "subscription_id": { "type": "string" }, + "type": { "type": "string" } + }, + "type": "object" + }, + "RoleList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Role" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "SKU": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "created_at": { "format": "date-time", "type": "string" }, + "description": { "type": "string" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "SelfAccessReview": { + "properties": { + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "organization_id": { "type": "string" }, + "resource_type": { + "enum": [ + "AddOn", + "Flavour", + "Account", + "AccountPool", + "Cluster", + "Plan", + "Subscription", + "Organization", + "Role", + "Permission", + "RoleBinding", + "Registry", + "RegistryCredential", + "CurrentAccount", + "AccessReview", + "SelfAcccessReview", + "ResourceReview", + "SelfResourceReview", + "ClusterRegistration", + "AccessToken", + "ClusterAuthorization", + "SelfManagedCluster", + "RedhatManagedCluster", + "ExportControlReview", + "ClusterLog", + "ClusterCredential", + "ClusterMetric", + "ResourceQuota", + "ReservedResource", + "Dashboard", + "ClusterProviderAndRegion", + "ServiceLog", + "InternalServiceLog", + "CSLogs", + "SubscriptionLabel", + "OrganizationLabel", + "SubscriptionLabelInternal", + "SelfAccessReview", + "SubscriptionInternal", + "SubscriptionRoleBinding" + ], + "type": "string" + }, + "subscription_id": { "type": "string" } + }, + "required": ["action", "resource_type"], + "type": "object" + }, + "SelfEntitlementStatus": { + "properties": { + "product": { "type": "string" }, + "status": { "type": "string" } + }, + "type": "object" + }, + "SelfFeatureReview": { + "properties": { "feature": { "type": "string" } }, + "required": ["feature"], + "type": "object" + }, + "SelfResourceReview": { + "properties": { + "action": { + "enum": ["get", "list", "create", "delete", "update"], + "type": "string" + }, + "cluster_ids": { "items": { "type": "string" }, "type": "array" }, + "cluster_uuids": { "items": { "type": "string" }, "type": "array" }, + "organization_ids": { + "items": { "type": "string" }, + "type": "array" + }, + "resource_type": { + "enum": ["Cluster", "Subscription"], + "type": "string" + }, + "subscription_ids": { "items": { "type": "string" }, "type": "array" } + }, + "required": [ + "action", + "resource_type", + "cluster_uuids", + "cluster_ids", + "subscription_ids", + "organization_ids" + ], + "type": "object" + }, + "SelfResourceReviewRequest": { + "properties": { + "action": { "enum": ["get", "delete", "update"], "type": "string" }, + "resource_type": { + "enum": ["Cluster", "Subscription"], + "type": "string" + } + }, + "type": "object" + }, + "SelfServiceLandingPageSchema": { + "properties": { + "configTryLearn": { + "properties": { + "configure": { + "items": { "$ref": "#/components/schemas/LandingPageCTLItem" }, + "type": "array" + }, + "try": { + "items": { "$ref": "#/components/schemas/LandingPageCTLItem" }, + "type": "array" + } + }, + "type": "object" + }, + "estate": { + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/LandingPageEstateItem" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "SelfTermsReview": { + "properties": { + "check_optional_terms": { "default": true, "type": "boolean" }, + "event_code": { "type": "string" }, + "site_code": { "type": "string" } + }, + "type": "object" + }, + "SkuList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/SKU" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "SkuRules": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "allowed": { "type": "integer" }, + "quota_id": { "type": "string" }, + "sku": { "type": "string" } + }, + "type": "object" + } + ] + }, + "SkuRulesList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/SkuRules" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "Subscription": { + "allOf": [ + { "$ref": "#/components/schemas/SubscriptionCommonFields" }, + { + "properties": { + "capabilities": { + "items": { "$ref": "#/components/schemas/Capability" }, + "type": "array" + }, + "created_at": { "format": "date-time", "type": "string" }, + "creator": { "$ref": "#/components/schemas/AccountReference" }, + "eval_expiration_date": { + "description": "Calulated as the subscription created date + 60 days", + "format": "date-time", + "type": "string" + }, + "labels": { + "items": { "$ref": "#/components/schemas/Label" }, + "type": "array" + }, + "metrics": { + "items": { "$ref": "#/components/schemas/OneMetric" }, + "maxItems": 1, + "type": "array" + }, + "notification_contacts": { + "items": { "$ref": "#/components/schemas/Account" }, + "type": "array" + }, + "plan": { "$ref": "#/components/schemas/Plan" }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "SubscriptionCommonFields": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "billing_expiration_date": { + "description": "If set, the date the subscription expires based on the billing model", + "format": "date-time", + "type": "string" + }, + "billing_marketplace_account": { "type": "string" }, + "cloud_account_id": { "type": "string" }, + "cloud_provider_id": { "type": "string" }, + "cluster_billing_model": { "type": "string" }, + "cluster_id": { "type": "string" }, + "console_url": { "type": "string" }, + "consumer_uuid": { "type": "string" }, + "cpu_total": { "type": "integer" }, + "creator_id": { "type": "string" }, + "display_name": { "type": "string" }, + "external_cluster_id": { "type": "string" }, + "last_reconcile_date": { + "description": "Last time this subscription were reconciled about cluster usage", + "format": "date-time", + "type": "string" + }, + "last_released_at": { + "description": "Last time status was set to Released for this cluster/subscription in Unix time", + "format": "date-time", + "type": "string" + }, + "last_telemetry_date": { + "description": "Last telemetry authorization request for this cluster/subscription in Unix time", + "format": "date-time", + "type": "string" + }, + "managed": { "type": "boolean" }, + "organization_id": { "type": "string" }, + "plan_id": { "type": "string" }, + "product_bundle": { + "enum": ["Openshift", "JBoss-Middleware", "IBM-CloudPak"], + "type": "string" + }, + "provenance": { "type": "string" }, + "region_id": { "type": "string" }, + "released": { "type": "boolean" }, + "service_level": { + "enum": ["L1-L3", "L3-only"], + "type": "string" + }, + "socket_total": { "type": "integer" }, + "status": { "type": "string" }, + "support_level": { + "enum": ["Eval", "Standard", "Premium", "Self-Support", "None"], + "type": "string" + }, + "system_units": { + "enum": ["Cores/vCPU", "Sockets"], + "type": "string" + }, + "trial_end_date": { + "description": "If the subscription is a trial, date the trial ends", + "format": "date-time", + "type": "string" + }, + "usage": { + "enum": [ + "Production", + "Development/Test", + "Disaster Recovery", + "Academic" + ], + "type": "string" + } + }, + "required": ["managed"], + "type": "object" + } + ] + }, + "SubscriptionCreateRequest": { + "properties": { + "cluster_uuid": { "type": "string" }, + "console_url": { "type": "string" }, + "display_name": { "type": "string" }, + "plan_id": { "enum": ["OCP"], "type": "string" }, + "status": { "enum": ["Disconnected"], "type": "string" } + }, + "required": ["cluster_uuid", "status", "plan_id"], + "type": "object" + }, + "SubscriptionList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/Subscription" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "SubscriptionMetric": { + "allOf": [ + { "properties": { "_id": { "type": "string" } }, "type": "object" } + ] + }, + "SubscriptionMetricList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { "$ref": "#/components/schemas/SubscriptionMetric" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "SubscriptionPatchRequest": { + "properties": { + "billing_expiration_date": { + "format": "date-time", + "type": "string" + }, + "cloud_account_id": { "type": "string" }, + "cloud_provider_id": { "type": "string" }, + "cluster_billing_model": { + "enum": [ + "standard", + "marketplace", + "marketplace-aws", + "marketplace-azure", + "marketplace-rhm" + ], + "type": "string" + }, + "cluster_id": { "type": "string" }, + "console_url": { "type": "string" }, + "consumer_uuid": { "type": "string" }, + "cpu_total": { "type": "integer" }, + "creator_id": { "type": "string" }, + "display_name": { "type": "string" }, + "external_cluster_id": { "type": "string" }, + "managed": { "type": "boolean" }, + "organization_id": { "type": "string" }, + "plan_id": { "type": "string" }, + "product_bundle": { + "enum": ["Openshift", "JBoss-Middleware", "IBM-CloudPak"], + "type": "string" + }, + "provenance": { "type": "string" }, + "region_id": { "type": "string" }, + "released": { "type": "boolean" }, + "service_level": { "enum": ["L1-L3", "L3-only"], "type": "string" }, + "socket_total": { "type": "integer" }, + "status": { "type": "string" }, + "support_level": { + "enum": ["Eval", "Standard", "Premium", "Self-Support", "None"], + "type": "string" + }, + "system_units": { + "enum": ["Cores/vCPU", "Sockets"], + "type": "string" + }, + "trial_end_date": { "format": "date-time", "type": "string" }, + "usage": { + "enum": [ + "Production", + "Development/Test", + "Disaster Recovery", + "Academic" + ], + "type": "string" + } + }, + "type": "object" + }, + "SubscriptionRoleBinding": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "account": { "$ref": "#/components/schemas/AccountReference" }, + "account_email": { "type": "string" }, + "account_username": { "type": "string" }, + "created_at": { "format": "date-time", "type": "string" }, + "role": { "$ref": "#/components/schemas/ObjectReference" }, + "subscription": { + "$ref": "#/components/schemas/ObjectReference" + }, + "updated_at": { "format": "date-time", "type": "string" } + }, + "type": "object" + } + ] + }, + "SubscriptionRoleBindingCreateRequest": { + "properties": { + "account_username": { "type": "string" }, + "role_id": { "type": "string" } + }, + "required": ["role_id", "account_username"], + "type": "object" + }, + "SubscriptionRoleBindingList": { + "allOf": [ + { "$ref": "#/components/schemas/List" }, + { + "properties": { + "items": { + "items": { + "$ref": "#/components/schemas/SubscriptionRoleBinding" + }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "Summary": { + "allOf": [ + { "$ref": "#/components/schemas/ObjectReference" }, + { + "properties": { + "metrics": { + "items": { "$ref": "#/components/schemas/SummaryMetrics" }, + "type": "array" + }, + "name": { "type": "string" } + }, + "required": ["metrics"], + "type": "object" + } + ] + }, + "SummaryMetrics": { + "allOf": [ + { + "properties": { + "name": { "type": "string" }, + "vector": { + "items": { "$ref": "#/components/schemas/SummaryVector" }, + "type": "array" + } + }, + "type": "object" + } + ] + }, + "SummaryVector": { + "allOf": [ + { + "properties": { + "time": { "format": "date-time", "type": "string" }, + "value": { "type": "double" } + }, + "type": "object" + } + ] + }, + "SupportCasesCreatedResponse": { + "properties": { + "caseNumber": { "type": "string" }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "description": { "type": "string" }, + "severity": { "type": "string" }, + "status": { "type": "string" }, + "subscription_id": { "type": "string" }, + "summary": { "type": "string" }, + "uri": { "type": "string" } + }, + "type": "object" + }, + "SupportCasesRequest": { + "properties": { + "account_number": { "type": "string" }, + "case_language": { "type": "string" }, + "cluster_id": { "type": "string" }, + "cluster_uuid": { "type": "string" }, + "contact_sso_name": { "type": "string" }, + "description": { "type": "string" }, + "event_stream_id": { "type": "string" }, + "openshift_cluster_id": { "type": "string" }, + "product": { + "default": "OpenShift Container Platform", + "type": "string" + }, + "severity": { + "enum": ["1 (Urgent)", "2 (High)", "3 (Normal)", "4 (Low)"], + "type": "string" + }, + "subscription_id": { "type": "string" }, + "summary": { "type": "string" }, + "version": { "default": "4.10", "type": "string" } + }, + "required": ["summary", "description", "severity"], + "type": "object" + }, + "TemplateParameter": { + "properties": { + "content": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["name", "content"], + "type": "object" + }, + "TermsReview": { + "properties": { + "account_username": { "type": "string" }, + "check_optional_terms": { "default": true, "type": "boolean" }, + "event_code": { "type": "string" }, + "site_code": { "type": "string" } + }, + "required": ["account_username"], + "type": "object" + }, + "TermsReviewResponse": { + "properties": { + "account_id": { "type": "string" }, + "organization_id": { "type": "string" }, + "redirect_url": { "type": "string" }, + "terms_available": { "type": "boolean" }, + "terms_required": { "type": "boolean" } + }, + "required": [ + "account_id", + "organization_id", + "terms_available", + "terms_required" + ], + "type": "object" + }, + "TokenAuthorizationRequest": { + "properties": { "authorization_token": { "type": "string" } }, + "type": "object" + }, + "TokenAuthorizationResponse": { + "properties": { "account": { "$ref": "#/components/schemas/Account" } }, + "type": "object" + } + }, + "securitySchemes": { + "AccessToken": { + "description": "Authorization: AccessToken {cluster-uuid}:{access-token}", + "in": "header", + "name": "Authorization", + "type": "apiKey" + }, + "Bearer": { "bearerFormat": "JWT", "scheme": "bearer", "type": "http" } + } + }, + "info": { + "description": "Manage user subscriptions and clusters", + "title": "Account Management Service API", + "version": "0.0.1" + }, + "openapi": "3.0.0", + "paths": { + "/api/accounts_mgmt/v1/access_token": { + "post": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccessTokenCfg" } + } + }, + "description": "access token from registries in docker format" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Cannot find registry" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Return access token generated from registries in docker format" + } + }, + "/api/accounts_mgmt/v1/accounts": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" }, + { "$ref": "#/components/parameters/fields" }, + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountList" } + } + }, + "description": "A JSON array of account objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of accounts" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/dryRun" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Account data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Account can be created without dryRun parameter" + }, + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Account already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the account" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new account" + } + }, + "/api/accounts_mgmt/v1/accounts/{id}": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" }, + { "$ref": "#/components/parameters/fetchRhit" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Account found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No account with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get an account by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountPatchRequest" } + } + }, + "description": "Updated account data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Account updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No account with specified id exists" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Account already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating account" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update an account" + } + }, + "/api/accounts_mgmt/v1/accounts/{id}/labels": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/LabelList" } + } + }, + "description": "A JSON array of label" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of labels" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/accounts/{id}/labels/{key}": { + "delete": { + "responses": { + "204": { "description": "Label successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified organizations id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a label" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Labels found by key" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified organizations id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get subscription labels by label key" + }, + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/key" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Label already exists and cannot be updated" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating organizations label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/certificates": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CertificatesRequest" } + } + }, + "description": "# The payload depends on the type of the requested certificate\nThe examples for supported types:\n* {\"type\": \"sca\", \"arch\": \"x86_64\"}\n", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Certificate" } + } + }, + "description": "The certificate associated with the organization" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "The certificate is not avaialbe for the organization" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }, { "AccessToken": [] }], + "summary": "Fetch certificates of a particular type" + } + }, + "/api/accounts_mgmt/v1/cloud_resources": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResourceList" } + } + }, + "description": "A JSON array of cloud resource objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of cloud resources" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResource" } + } + }, + "description": "Cloud resource data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResource" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Resource already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new cloud resource" + } + }, + "/api/accounts_mgmt/v1/cloud_resources/{id}": { + "delete": { + "responses": { + "204": { "description": "Cloud resource successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No resource with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a cloud resource" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResource" } + } + }, + "description": "Cloud resource found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No cloud resource with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a cloud resource" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResource" } + } + }, + "description": "Updated cloud resource data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CloudResource" } + } + }, + "description": "Cloud resource updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No resource with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a cloud resource" + } + }, + "/api/accounts_mgmt/v1/cluster_authorizations": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAuthorizationRequest" + } + } + }, + "description": "Cluster and authorization data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAuthorizationResponse" + } + } + }, + "description": "The authorization is successful, the requested cluster has a valid subscription and is within resource limits." + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "AMS subscription exists but is associated with another account" + }, + "429": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "The limits for this subscription are exceeded." + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Other cluster authorization error" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Authorizes new cluster creation against an exsiting RH Subscription." + } + }, + "/api/accounts_mgmt/v1/cluster_registrations": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterRegistrationRequest" + } + } + }, + "description": "Cluster and authorization data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterRegistrationResponse" + } + } + }, + "description": "A cluster with the specified cluster_id exists and belongs to the user with the specified registry credential token" + }, + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterRegistrationResponse" + } + } + }, + "description": "No cluster with the specified cluster exists, one was successfully created and associated with the account with the specified registry credential token" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Registry credential token is invalid" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Cluster with specified cluster_id already associated with another user" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "cluster_id provided is invalid" + }, + "429": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Too many clusters have been associated with this user recently" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Other cluster registration error" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Finds or creates a cluster registration with a registy credential token and cluster ID" + } + }, + "/api/accounts_mgmt/v1/cluster_transfers": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ClusterTransferList" } + } + }, + "description": "cluster transfer detected" + }, + "204": { + "description": "ClusterTransfer does not exist for a specific cluster" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }, { "AccessToken": [] }], + "summary": "List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window." + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterTransferRequest" + } + } + }, + "description": "The contents of the cluster transfer creation request", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ClusterTransfer" } + } + }, + "description": "the cluster transfer has been created" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Initiate cluster transfer." + } + }, + "/api/accounts_mgmt/v1/cluster_transfers/{id}": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterTransferPatchRequest" + } + } + }, + "description": "Updated cluster transfer", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ClusterTransfer" } + } + }, + "description": "Cluster transfer updated successfully" + }, + "204": { + "description": "ClusterTransfer does not exist for a specific cluster" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Conflict during cluster transfer update" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating cluster transfer" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update specific cluster transfer" + } + }, + "/api/accounts_mgmt/v1/config/skus": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuList" } + } + }, + "description": "A JSON array of sku objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of skus" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "Sku data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Sku already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating sku" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new sku" + } + }, + "/api/accounts_mgmt/v1/config/skus/{id}": { + "delete": { + "responses": { + "204": { "description": "Sku successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the sku" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a sku" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "Sku found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No SKU with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a sku" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "Updated sku data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "Sku updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating sku" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a Sku" + } + }, + "/api/accounts_mgmt/v1/current_account": { + "get": { + "parameters": [{ "$ref": "#/components/parameters/fetchLabels" }], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Account found via JWT" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }, { "AccessToken": [] }], + "summary": "Get the authenticated account" + } + }, + "/api/accounts_mgmt/v1/deleted_subscriptions": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletedSubscriptionList" + } + } + }, + "description": "A JSON array of deleted subscription objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }, { "AccessToken": [] }], + "summary": "Returns a list of deleted subscriptions" + } + }, + "/api/accounts_mgmt/v1/errors": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ErrorList" } + } + }, + "description": "A JSON array or errors" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "summary": "Returns a list of errors" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ] + }, + "/api/accounts_mgmt/v1/errors/{id}": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Error found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No error with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "summary": "Get an error by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/feature_toggles/{id}/query": { + "post": { + "deprecated": true, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FeatureToggleQueryRequest" + } + } + }, + "description": "The context of the query", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/FeatureToggle" } + } + }, + "description": "Feature toggle found by id" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Query a feature toggle by id" + } + }, + "/api/accounts_mgmt/v1/labels": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/LabelList" } + } + }, + "description": "A JSON array of label objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of labels" + } + }, + "/api/accounts_mgmt/v1/landing_page/self_service": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelfServiceLandingPageSchema" + } + } + }, + "description": "self service schema created" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a console.redhat.com landing page content JSON schema" + } + }, + "/api/accounts_mgmt/v1/metrics": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/MetricsList" } + } + }, + "description": "A JSON array of metrics objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of metrics" + }, + "parameters": [{ "$ref": "#/components/parameters/search" }] + }, + "/api/accounts_mgmt/v1/notify": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/NotificationRequest" } + } + }, + "description": "The contents of the notification to send to the owner of a cluster/subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID", + "required": true + }, + "responses": { + "202": { + "description": "Notification created and queued to be sent soon" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Notify the owner of cluster/subscription" + } + }, + "/api/accounts_mgmt/v1/organizations": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" }, + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" }, + { "$ref": "#/components/parameters/fields" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/OrganizationList" } + } + }, + "description": "A JSON array of organization objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of organizations" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Organization" } + } + }, + "description": "Organization data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Organization" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Organization already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the organization" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new organization" + } + }, + "/api/accounts_mgmt/v1/organizations/{id}": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Organization" } + } + }, + "description": "Organization found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get an organization by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationPatchRequest" + } + } + }, + "description": "Updated organization data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Organization" } + } + }, + "description": "Organization updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating organization" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update an organization" + } + }, + "/api/accounts_mgmt/v1/organizations/{id}/labels": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/LabelList" } + } + }, + "description": "A JSON array of label" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of labels" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/organizations/{id}/labels/{key}": { + "delete": { + "responses": { + "204": { "description": "Label successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified organizations id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a label" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Labels found by key" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified organizations id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get subscription labels by label key" + }, + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/key" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Label already exists and cannot be updated" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating organizations label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/organizations/{id}/summary_dashboard": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Summary" } + } + }, + "description": "A JSON array of metrics objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a summary of organizations clusters based on metrics" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountGroupAssignmentList" + } + } + }, + "description": "A JSON array of account groups" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of account group assignments for the given org" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/orgId" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountGroupAssignment" + } + } + }, + "description": "New AccountGroup data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountGroupAssignment" + } + } + }, + "description": "Created AccountGroupAssignment successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new AccountGroupAssignment" + } + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}": { + "delete": { + "responses": { + "204": { + "description": "Account group assignment successfully deleted" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization or account group assignment with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the account group assignment" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete an account group assignment" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountGroupAssignment" + } + } + }, + "description": "Account group assignment found" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get account group assignment by id" + }, + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/acctGrpAsgnId" } + ] + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroupList" } + } + }, + "description": "A JSON array of account groups" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of account groups for the given org" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/orgId" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroupRequest" } + } + }, + "description": "New AccountGroup data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroup" } + } + }, + "description": "Created AccountGroup successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new AccountGroup" + } + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}": { + "delete": { + "responses": { + "204": { "description": "Account group successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization or account group with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the account group" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete an account group" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroup" } + } + }, + "description": "Account group found" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization or account group with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get account group by id" + }, + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/acctGrpId" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroupRequest" } + } + }, + "description": "Updated account group data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountGroup" } + } + }, + "description": "Account group updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No account group with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating account group" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update an account group" + } + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ConsumedQuotaList" } + } + }, + "description": "A JSON array of ConsumedQuota objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of consumed quota for an organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/forceRecalc" } + ] + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/quota_cost": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/QuotaCostList" } + } + }, + "description": "A JSON array of QuotaCost objects" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a summary of quota cost" + }, + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/fetchRelatedResources" }, + { "$ref": "#/components/parameters/forceRecalc" }, + { "$ref": "#/components/parameters/fetchCloudAccounts" } + ] + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" }, + { "$ref": "#/components/parameters/orgId" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuotaList" } + } + }, + "description": "A JSON array of ResourceQuota objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No organization with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of resource quota objects" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/orgId" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuotaRequest" } + } + }, + "description": "Resource quota data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuota" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "ResourceQuota already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the resource quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new resource quota" + } + }, + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}": { + "delete": { + "responses": { + "204": { "description": "Resource Quota successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No Resource Quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the Resource Quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a resource quota" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuota" } + } + }, + "description": "Resource quota found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No resource quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a resource quota by id" + }, + "parameters": [ + { "$ref": "#/components/parameters/orgId" }, + { "$ref": "#/components/parameters/quotaId" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuotaRequest" } + } + }, + "description": "Updated resource quota data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuota" } + } + }, + "description": "Resource Quota updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No resource quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating resource quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a resource quota" + } + }, + "/api/accounts_mgmt/v1/plans": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PlanList" } + } + }, + "description": "Plans list" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get all plans" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ] + }, + "/api/accounts_mgmt/v1/plans/{id}": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Plan" } + } + }, + "description": "Plan found" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No plan with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a plan by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/pull_secrets": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PullSecretRequest" } + } + }, + "description": "Identifier of the resource in the external service that this pull secret relates to", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccessTokenCfg" } + } + }, + "description": "access token from registries in docker format" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Cannot find registry" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Return access token generated from registries in docker format" + } + }, + "/api/accounts_mgmt/v1/pull_secrets/{externalResourceId}": { + "delete": { + "responses": { + "204": { "description": "Pull secret successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to delete pull secret" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No Pull secret with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the pull secret" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a pull secret" + }, + "parameters": [{ "$ref": "#/components/parameters/externalResourceId" }] + }, + "/api/accounts_mgmt/v1/quota_cost": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/QuotaCostList" } + } + }, + "description": "A JSON array of QuotaCost objects" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a summary of quota cost for the authenticated user" + }, + "parameters": [ + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/fetchRelatedResources" }, + { "$ref": "#/components/parameters/fetchCloudAccounts" } + ] + }, + "/api/accounts_mgmt/v1/quota_rules": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/QuotaRulesList" } + } + }, + "description": "A JSON array of quota rules objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of UHC product Quota Rules" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ] + }, + "/api/accounts_mgmt/v1/quotas": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/QuotaList" } + } + }, + "description": "A JSON array of quota objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of quotas" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quota" } + } + }, + "description": "Quota data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quota" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Quota already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new quota" + } + }, + "/api/accounts_mgmt/v1/quotas/{id}": { + "delete": { + "responses": { + "204": { "description": "Quota successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a quota" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quota" } + } + }, + "description": "Quota found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a quota" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quota" } + } + }, + "description": "Updated quota data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quota" } + } + }, + "description": "Quota updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No quota with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating quota" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a quota" + } + }, + "/api/accounts_mgmt/v1/registries": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RegistryList" } + } + }, + "description": "A JSON array of registry objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of registries" + } + }, + "/api/accounts_mgmt/v1/registries/{id}": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Registry" } + } + }, + "description": "Registry found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No registry with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get an registry by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/registry_credentials": { + "get": { + "description": "List Registry Credentials", + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegistryCredentialList" + } + } + }, + "description": "A JSON array of RegistryCredential objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Not allowed to list RegistryCredentials" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + } + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RegistryCredential" } + } + }, + "description": "Registry credential data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RegistryCredential" } + } + }, + "description": "Registry credential created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Not allowed to create RegistryCredentials" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "A RegistryCredential with this type already exists for this user" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unable to create Registry Credential" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Request the creation of a registry credential" + } + }, + "/api/accounts_mgmt/v1/registry_credentials/{id}": { + "delete": { + "responses": { + "204": { "description": "Registry credential successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No registry credential with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the registry credential" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a registry credential by id" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RegistryCredential" } + } + }, + "description": "Registry credential found" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No registry credential with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a registry credentials by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegistryCredentialPatchRequest" + } + } + }, + "description": "Updated registry credential data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RegistryCredential" } + } + }, + "description": "Registry credential updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Not allowed to update registry credential or the specified field(s)" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No registry credential with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating registry credential" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a registry credential" + } + }, + "/api/accounts_mgmt/v1/reserved_resources": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReservedResourceList" + } + } + }, + "description": "A JSON array of reserved resource objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of reserved resources" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ] + }, + "/api/accounts_mgmt/v1/resource_quota": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceQuotaList" } + } + }, + "description": "A JSON array of ResourceQuota objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred when getting this resource" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of resource quota objects" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ] + }, + "/api/accounts_mgmt/v1/role_bindings": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleBindingList" } + } + }, + "description": "A JSON array of role binding objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of role bindings" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoleBindingCreateRequest" + } + } + }, + "description": "Role binding data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleBinding" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Role binding already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating role binding" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new role binding" + } + }, + "/api/accounts_mgmt/v1/role_bindings/{id}": { + "delete": { + "responses": { + "204": { "description": "Role binding successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No role binding with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the role binding" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a role binding" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleBinding" } + } + }, + "description": "Role binding found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No role binding with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a role binding" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleBindingRequest" } + } + }, + "description": "Updated role binding data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleBinding" } + } + }, + "description": "Role Binding updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No role binding with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating role binding" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a role binding" + } + }, + "/api/accounts_mgmt/v1/roles": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/RoleList" } + } + }, + "description": "A JSON array of role objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of roles" + }, + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" } + ] + }, + "/api/accounts_mgmt/v1/roles/{id}": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Role" } + } + }, + "description": "Role found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No role with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a role by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/self_entitlement/{product}": { + "parameters": [{ "$ref": "#/components/parameters/product" }], + "post": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelfEntitlementStatus" + } + } + }, + "description": "the requested entitlement already exists" + }, + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelfEntitlementStatus" + } + } + }, + "description": "the requested entitlement has been created or renewed" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Cannot find account or organization" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create or renew the entitlement to support a product for the user's organization." + } + }, + "/api/accounts_mgmt/v1/sku_rules": { + "get": { + "parameters": [{ "$ref": "#/components/parameters/search" }], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRulesList" } + } + }, + "description": "A JSON array of sku rules objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of UHC product SKU Rules" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRules" } + } + }, + "description": "Sku rule data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRules" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Sku rule already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating sku rule" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new sku rule" + } + }, + "/api/accounts_mgmt/v1/sku_rules/{id}": { + "delete": { + "responses": { + "204": { "description": "Sku rule successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku rule with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the sku rule" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a sku rule" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRules" } + } + }, + "description": "sku rules found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku rules with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a sku rules by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRules" } + } + }, + "description": "Updated sku rule data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuRules" } + } + }, + "description": "Sku rule updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku rule with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating sku rule" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a sku rule" + } + }, + "/api/accounts_mgmt/v1/skus": { + "get": { + "deprecated": true, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SkuList" } + } + }, + "description": "A JSON array of sku objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of UHC product SKUs" + }, + "parameters": [{ "$ref": "#/components/parameters/search" }] + }, + "/api/accounts_mgmt/v1/skus/{id}": { + "get": { + "deprecated": true, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SKU" } + } + }, + "description": "sku found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No sku with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a sku by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/subscriptions": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/fetchAccounts" }, + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" }, + { "$ref": "#/components/parameters/fields" }, + { "$ref": "#/components/parameters/orderBy" }, + { "$ref": "#/components/parameters/labels" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SubscriptionList" } + } + }, + "description": "A JSON array of subscription objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }, { "AccessToken": [] }], + "summary": "Returns a list of subscriptions" + }, + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionCreateRequest" + } + } + }, + "description": "Subscription Creation data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Subscription" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Subscription already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating subscription" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new subscription" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}": { + "delete": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "responses": { + "200": { "description": "Subscription deprovisioned by id" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No subscription with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Deletes a subscription by id" + }, + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/fetchAccounts" }, + { "$ref": "#/components/parameters/fetchLabels" }, + { "$ref": "#/components/parameters/fetchCapabilities" }, + { "$ref": "#/components/parameters/fetchCpuAndSocket" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Subscription" } + } + }, + "description": "Subscription found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No subscription with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a subscription by id" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPatchRequest" + } + } + }, + "description": "Updated subscription data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Subscription" } + } + }, + "description": "Subscription updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Not allowed to update subscriptions or the specified field(s)" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No subscription with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating subscription" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a subscription" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/labels": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/LabelList" } + } + }, + "description": "A JSON array of label" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of labels" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}": { + "delete": { + "responses": { + "204": { "description": "Label successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified subscription id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a label" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Labels found by key" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No label with specified key on specified subscription id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get subscription labels by label key" + }, + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/key" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Label data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Label" } + } + }, + "description": "Created or updated label successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Label already exists and cannot be updated" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error updating subscription label" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new label or update an existing label" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name}": { + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionMetricList" + } + } + }, + "description": "Metrics' data" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Metric name is invalid" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get subscription's metrics by metric name" + }, + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/metricName" }, + { "$ref": "#/components/parameters/metricSearch" }, + { "$ref": "#/components/parameters/fields" } + ] + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/notify": { + "parameters": [{ "$ref": "#/components/parameters/id" }], + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/NotificationRequest" } + } + }, + "description": "The contents of the notification to send to the owner of a subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID", + "required": true + }, + "responses": { + "202": { + "description": "Notification created and queued to be sent soon" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Notify the owner of a subscription" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReservedResourceList" + } + } + }, + "description": "A JSON array of reserved resource objects" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of reserved resources" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{id}/support_cases": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" } + ], + "responses": { + "200": { "description": "A JSON array of support cases objects" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of open support creates opened against the external cluster id of this subscrption" + }, + "parameters": [{ "$ref": "#/components/parameters/id" }] + }, + "/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/subId" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/fields" }, + { "$ref": "#/components/parameters/orderBy" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccountList" } + } + }, + "description": "A JSON array of account objects that are notification contacts for this subscription" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Returns a list of notification contacts for the given subscription" + }, + "post": { + "parameters": [{ "$ref": "#/components/parameters/subId" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotificationContactCreateRequest" + } + } + }, + "description": "Add a notification contact by an account's username", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Account" } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Notification contact already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating notification contact" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Add an account as a notification contact to this subscription" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId}": { + "delete": { + "parameters": [ + { "$ref": "#/components/parameters/subId" }, + { "$ref": "#/components/parameters/accountId" } + ], + "responses": { + "200": { + "description": "Notification contact deleted by subscription and account id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No notification contact with specified subscription and account id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Deletes a notification contact by subscription and account id" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}": { + "delete": { + "responses": { + "204": { "description": "Reserved resources deleted by id" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No reserved resources with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete reserved resources by id" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ReservedResource" } + } + }, + "description": "Reserved resources found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No reserved resources with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get reserved resources by id" + }, + "parameters": [ + { "$ref": "#/components/parameters/subId" }, + { "$ref": "#/components/parameters/reservedResourceId" } + ], + "patch": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReservedResourcePatchRequest" + } + } + }, + "description": "Updated reserved resource data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ReservedResource" } + } + }, + "description": "Reserved resources updated successfully" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No reserved resources with specified id exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Update a reserved resource" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings": { + "get": { + "parameters": [ + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/size" }, + { "$ref": "#/components/parameters/search" }, + { "$ref": "#/components/parameters/orderBy" }, + { "$ref": "#/components/parameters/fetchAccounts" } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionRoleBindingList" + } + } + }, + "description": "Subscription role bindings found, or none exist" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get subscription role bindings" + }, + "parameters": [{ "$ref": "#/components/parameters/subId" }], + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionRoleBindingCreateRequest" + } + } + }, + "description": "Subscription role binding data", + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionRoleBinding" + } + } + }, + "description": "Created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "409": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Subscription role binding already exists" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred creating the subscription role binding" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Create a new subscription role binding" + } + }, + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}": { + "delete": { + "responses": { + "204": { + "description": "Subscription role binding successfully deleted" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No Subscription Role Binding with specified Id is accessible" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the Subscription Role Binding" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a subscription role binding" + }, + "get": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionRoleBinding" + } + } + }, + "description": "Subscription Role Binding found by id" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No Subscription Role Binding with the specified id is accessible" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Get a Subscription Role Binding by id" + }, + "parameters": [ + { "$ref": "#/components/parameters/id" }, + { "$ref": "#/components/parameters/subId" } + ] + }, + "/api/accounts_mgmt/v1/support_cases": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SupportCasesRequest" } + } + }, + "description": "The contents of the support case to be created", + "required": true + }, + "responses": { + "202": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SupportCasesCreatedResponse" + } + } + }, + "description": "Support case created" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred" + } + }, + "security": [{ "Bearer": [] }], + "summary": "create a support case for the subscription" + } + }, + "/api/accounts_mgmt/v1/support_cases/{caseId}": { + "delete": { + "responses": { + "204": { "description": "Support case successfully deleted" }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "404": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "No support case with specified case id on specified subscription id exists" + }, + "405": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Not allowed to close a case that is already closed" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "An unexpected error occurred deleting the support case" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Delete a support case" + }, + "parameters": [{ "$ref": "#/components/parameters/caseId" }] + }, + "/api/accounts_mgmt/v1/token_authorization": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenAuthorizationRequest" + } + } + }, + "description": "Token authorization data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenAuthorizationResponse" + } + } + }, + "description": "The account belongs to the user with the specified registry credential token" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Registry credential token is invalid" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Other token authorization error" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Finds the account owner of the provided token" + } + }, + "/api/authorizations/v1/access_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/AccessReview" } + } + }, + "description": "Access review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessReviewResponse" + } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action, non-existent resource type, or non-existent account" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating access review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review an account's access to perform an action on a particular resource or resource type" + } + }, + "/api/authorizations/v1/capability_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CapabilityReviewRequest" + } + } + }, + "description": "Capability review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CapabilityReview" } + } + }, + "description": "Successful review" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform capability reviews" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating capability review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review an account's capabilities" + } + }, + "/api/authorizations/v1/export_control_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExportControlReviewRequest" + } + } + }, + "description": "Export control review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ExportControlReview" } + } + }, + "description": "Successful review" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating access review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Determine whether a user is restricted from downloading Red Hat software based on export control compliance.\n" + } + }, + "/api/authorizations/v1/feature_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/FeatureReview" } + } + }, + "description": "Feature review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FeatureReviewResponse" + } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating feature review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review feature to perform an action on it such as toggle a feature on/off" + } + }, + "/api/authorizations/v1/resource_review": { + "post": { + "deprecated": true, + "parameters": [{ "$ref": "#/components/parameters/reduceClusterList" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceReviewRequest" } + } + }, + "description": "Resource review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ResourceReview" } + } + }, + "description": "Successful review" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform resource reviews" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action or non-existent resource type" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating access review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids." + } + }, + "/api/authorizations/v1/self_access_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SelfAccessReview" } + } + }, + "description": "Self access review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessReviewResponse" + } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action or non-existent resource type" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating access review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review your ability to perform an action on a particular resource or resource type" + } + }, + "/api/authorizations/v1/self_feature_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SelfFeatureReview" } + } + }, + "description": "Self feature review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FeatureReviewResponse" + } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating feature review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review your ability to toggle a feature" + } + }, + "/api/authorizations/v1/self_resource_review": { + "post": { + "parameters": [{ "$ref": "#/components/parameters/reduceClusterList" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelfResourceReviewRequest" + } + } + }, + "description": "Self resource review data", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SelfResourceReview" } + } + }, + "description": "Successful review" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform self resource reviews" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action or non-existent resource type" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating access review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids." + } + }, + "/api/authorizations/v1/self_terms_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SelfTermsReview" } + } + }, + "description": "Data to check self terms for", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/TermsReviewResponse" } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action or non-existent resource type" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating terms review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review your status of Terms" + } + }, + "/api/authorizations/v1/terms_review": { + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/TermsReview" } + } + }, + "description": "Data to check terms for", + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/TermsReviewResponse" } + } + }, + "description": "Review successfully generated" + }, + "400": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Validation errors occurred" + }, + "401": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Auth token is invalid" + }, + "403": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unauthorized to perform operation" + }, + "422": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unsupported action, non-existent resource type, or non-existent account" + }, + "500": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Error" } + } + }, + "description": "Unexpected error occurred while generating terms review" + } + }, + "security": [{ "Bearer": [] }], + "summary": "Review an account's status of Terms" + } + } + }, + "servers": [ + { "description": "current domain", "url": "http://localhost:14321" }, + { + "description": "Main (production) server", + "url": "https://api.openshift.com" + }, + { + "description": "Staging server", + "url": "https://api.stage.openshift.com" + } + ] +} diff --git a/.openapi/registry-instance.json b/.openapi/registry-instance.json index f571d13c..751e18a2 100644 --- a/.openapi/registry-instance.json +++ b/.openapi/registry-instance.json @@ -1,10 +1,10 @@ { "openapi": "3.0.2", "info": { - "title": "Service Registry API", - "version": "2.2.5.Final", - "description": "Service Registry Instance API \nNOTE: This API cannot be called directly from the portal.", - "contact": { + "title": "Service Registry API", + "version": "2.2.5.Final", + "description": "Service Registry Instance API \nNOTE: This API cannot be called directly from the portal.", + "contact": { "name": "Apicurio", "url": "https://github.com/apicurio/apicurio-registry", "email": "apicurio@lists.jboss.org" diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/.gitignore b/app-services-sdk-go/accountmgmt/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..5a0bccc9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,404 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_app_services.go +api_default.go +client.go +configuration.go +docs/AccessReview.md +docs/AccessReviewResponse.md +docs/AccessTokenCfg.md +docs/Account.md +docs/AccountAllOf.md +docs/AccountGroup.md +docs/AccountGroupAllOf.md +docs/AccountGroupAssignment.md +docs/AccountGroupAssignmentAllOf.md +docs/AccountGroupAssignmentList.md +docs/AccountGroupAssignmentListAllOf.md +docs/AccountGroupList.md +docs/AccountGroupListAllOf.md +docs/AccountGroupRequest.md +docs/AccountGroupRequestAllOf.md +docs/AccountList.md +docs/AccountListAllOf.md +docs/AccountPatchRequest.md +docs/AccountReference.md +docs/AccountReferenceAllOf.md +docs/AppServicesApi.md +docs/Capability.md +docs/CapabilityAllOf.md +docs/CapabilityReview.md +docs/CapabilityReviewRequest.md +docs/Certificate.md +docs/CertificateSerial.md +docs/CertificatesRequest.md +docs/CloudAccount.md +docs/CloudResource.md +docs/CloudResourceAllOf.md +docs/CloudResourceList.md +docs/CloudResourceListAllOf.md +docs/ClusterAuthorizationRequest.md +docs/ClusterAuthorizationResponse.md +docs/ClusterMetricsNodes.md +docs/ClusterRegistrationRequest.md +docs/ClusterRegistrationResponse.md +docs/ClusterResource.md +docs/ClusterResourceTotal.md +docs/ClusterTransfer.md +docs/ClusterTransferAllOf.md +docs/ClusterTransferList.md +docs/ClusterTransferListAllOf.md +docs/ClusterTransferPatchRequest.md +docs/ClusterTransferRequest.md +docs/ClusterUpgrade.md +docs/ConsumedQuota.md +docs/ConsumedQuotaAllOf.md +docs/ConsumedQuotaList.md +docs/ConsumedQuotaListAllOf.md +docs/DefaultApi.md +docs/DeletedSubscription.md +docs/DeletedSubscriptionAllOf.md +docs/DeletedSubscriptionList.md +docs/DeletedSubscriptionListAllOf.md +docs/EphemeralResourceQuota.md +docs/Error.md +docs/ErrorAllOf.md +docs/ErrorList.md +docs/ErrorListAllOf.md +docs/ExcessResource.md +docs/ExcessResourceAllOf.md +docs/ExportControlReview.md +docs/ExportControlReviewRequest.md +docs/FeatureReview.md +docs/FeatureReviewResponse.md +docs/FeatureToggle.md +docs/FeatureToggleAllOf.md +docs/FeatureToggleQueryRequest.md +docs/FeatureToggleQueryRequestAllOf.md +docs/Label.md +docs/LabelAllOf.md +docs/LabelList.md +docs/LabelListAllOf.md +docs/LandingPageCTLItem.md +docs/LandingPageCTLItemShape.md +docs/LandingPageEstateItem.md +docs/LandingPageLinkShape.md +docs/List.md +docs/Metric.md +docs/MetricAllOf.md +docs/MetricsList.md +docs/MetricsListAllOf.md +docs/NotificationContactCreateRequest.md +docs/NotificationRequest.md +docs/ObjectReference.md +docs/OneMetric.md +docs/Organization.md +docs/OrganizationAllOf.md +docs/OrganizationList.md +docs/OrganizationListAllOf.md +docs/OrganizationPatchRequest.md +docs/Permission.md +docs/PermissionAllOf.md +docs/PermissionList.md +docs/PermissionListAllOf.md +docs/Plan.md +docs/PlanAllOf.md +docs/PlanList.md +docs/PlanListAllOf.md +docs/PullSecretRequest.md +docs/Quota.md +docs/QuotaAllOf.md +docs/QuotaCost.md +docs/QuotaCostAllOf.md +docs/QuotaCostList.md +docs/QuotaCostListAllOf.md +docs/QuotaList.md +docs/QuotaListAllOf.md +docs/QuotaRules.md +docs/QuotaRulesAllOf.md +docs/QuotaRulesList.md +docs/QuotaRulesListAllOf.md +docs/Registry.md +docs/RegistryAllOf.md +docs/RegistryCreateRequest.md +docs/RegistryCredential.md +docs/RegistryCredentialAllOf.md +docs/RegistryCredentialList.md +docs/RegistryCredentialListAllOf.md +docs/RegistryCredentialPatchRequest.md +docs/RegistryList.md +docs/RegistryListAllOf.md +docs/RegistryRequest.md +docs/RelatedResource.md +docs/RelatedResourceAllOf.md +docs/ReservedResource.md +docs/ReservedResourceAllOf.md +docs/ReservedResourceList.md +docs/ReservedResourceListAllOf.md +docs/ReservedResourcePatchRequest.md +docs/ResourceQuota.md +docs/ResourceQuotaAllOf.md +docs/ResourceQuotaList.md +docs/ResourceQuotaListAllOf.md +docs/ResourceQuotaRequest.md +docs/ResourceReview.md +docs/ResourceReviewRequest.md +docs/Role.md +docs/RoleAllOf.md +docs/RoleBinding.md +docs/RoleBindingAllOf.md +docs/RoleBindingCreateRequest.md +docs/RoleBindingList.md +docs/RoleBindingListAllOf.md +docs/RoleBindingRequest.md +docs/RoleList.md +docs/RoleListAllOf.md +docs/SKU.md +docs/SKUAllOf.md +docs/SelfAccessReview.md +docs/SelfEntitlementStatus.md +docs/SelfFeatureReview.md +docs/SelfResourceReview.md +docs/SelfResourceReviewRequest.md +docs/SelfServiceLandingPageSchema.md +docs/SelfServiceLandingPageSchemaConfigTryLearn.md +docs/SelfServiceLandingPageSchemaEstate.md +docs/SelfTermsReview.md +docs/SkuList.md +docs/SkuListAllOf.md +docs/SkuRules.md +docs/SkuRulesAllOf.md +docs/SkuRulesList.md +docs/SkuRulesListAllOf.md +docs/Subscription.md +docs/SubscriptionAllOf.md +docs/SubscriptionCommonFields.md +docs/SubscriptionCommonFieldsAllOf.md +docs/SubscriptionCreateRequest.md +docs/SubscriptionList.md +docs/SubscriptionListAllOf.md +docs/SubscriptionMetric.md +docs/SubscriptionMetricAllOf.md +docs/SubscriptionMetricList.md +docs/SubscriptionMetricListAllOf.md +docs/SubscriptionPatchRequest.md +docs/SubscriptionRoleBinding.md +docs/SubscriptionRoleBindingAllOf.md +docs/SubscriptionRoleBindingCreateRequest.md +docs/SubscriptionRoleBindingList.md +docs/SubscriptionRoleBindingListAllOf.md +docs/Summary.md +docs/SummaryAllOf.md +docs/SummaryMetrics.md +docs/SummaryMetricsAllOf.md +docs/SummaryVector.md +docs/SummaryVectorAllOf.md +docs/SupportCasesCreatedResponse.md +docs/SupportCasesRequest.md +docs/TemplateParameter.md +docs/TermsReview.md +docs/TermsReviewResponse.md +docs/TokenAuthorizationRequest.md +docs/TokenAuthorizationResponse.md +git_push.sh +go.mod +go.sum +model_access_review.go +model_access_review_response.go +model_access_token_cfg.go +model_account.go +model_account_all_of.go +model_account_group.go +model_account_group_all_of.go +model_account_group_assignment.go +model_account_group_assignment_all_of.go +model_account_group_assignment_list.go +model_account_group_assignment_list_all_of.go +model_account_group_list.go +model_account_group_list_all_of.go +model_account_group_request.go +model_account_group_request_all_of.go +model_account_list.go +model_account_list_all_of.go +model_account_patch_request.go +model_account_reference.go +model_account_reference_all_of.go +model_capability.go +model_capability_all_of.go +model_capability_review.go +model_capability_review_request.go +model_certificate.go +model_certificate_serial.go +model_certificates_request.go +model_cloud_account.go +model_cloud_resource.go +model_cloud_resource_all_of.go +model_cloud_resource_list.go +model_cloud_resource_list_all_of.go +model_cluster_authorization_request.go +model_cluster_authorization_response.go +model_cluster_metrics_nodes.go +model_cluster_registration_request.go +model_cluster_registration_response.go +model_cluster_resource.go +model_cluster_resource_total.go +model_cluster_transfer.go +model_cluster_transfer_all_of.go +model_cluster_transfer_list.go +model_cluster_transfer_list_all_of.go +model_cluster_transfer_patch_request.go +model_cluster_transfer_request.go +model_cluster_upgrade.go +model_consumed_quota.go +model_consumed_quota_all_of.go +model_consumed_quota_list.go +model_consumed_quota_list_all_of.go +model_deleted_subscription.go +model_deleted_subscription_all_of.go +model_deleted_subscription_list.go +model_deleted_subscription_list_all_of.go +model_ephemeral_resource_quota.go +model_error.go +model_error_all_of.go +model_error_list.go +model_error_list_all_of.go +model_excess_resource.go +model_excess_resource_all_of.go +model_export_control_review.go +model_export_control_review_request.go +model_feature_review.go +model_feature_review_response.go +model_feature_toggle.go +model_feature_toggle_all_of.go +model_feature_toggle_query_request.go +model_feature_toggle_query_request_all_of.go +model_label.go +model_label_all_of.go +model_label_list.go +model_label_list_all_of.go +model_landing_page_ctl_item.go +model_landing_page_ctl_item_shape.go +model_landing_page_estate_item.go +model_landing_page_link_shape.go +model_list.go +model_metric.go +model_metric_all_of.go +model_metrics_list.go +model_metrics_list_all_of.go +model_notification_contact_create_request.go +model_notification_request.go +model_object_reference.go +model_one_metric.go +model_organization.go +model_organization_all_of.go +model_organization_list.go +model_organization_list_all_of.go +model_organization_patch_request.go +model_permission.go +model_permission_all_of.go +model_permission_list.go +model_permission_list_all_of.go +model_plan.go +model_plan_all_of.go +model_plan_list.go +model_plan_list_all_of.go +model_pull_secret_request.go +model_quota.go +model_quota_all_of.go +model_quota_cost.go +model_quota_cost_all_of.go +model_quota_cost_list.go +model_quota_cost_list_all_of.go +model_quota_list.go +model_quota_list_all_of.go +model_quota_rules.go +model_quota_rules_all_of.go +model_quota_rules_list.go +model_quota_rules_list_all_of.go +model_registry.go +model_registry_all_of.go +model_registry_create_request.go +model_registry_credential.go +model_registry_credential_all_of.go +model_registry_credential_list.go +model_registry_credential_list_all_of.go +model_registry_credential_patch_request.go +model_registry_list.go +model_registry_list_all_of.go +model_registry_request.go +model_related_resource.go +model_related_resource_all_of.go +model_reserved_resource.go +model_reserved_resource_all_of.go +model_reserved_resource_list.go +model_reserved_resource_list_all_of.go +model_reserved_resource_patch_request.go +model_resource_quota.go +model_resource_quota_all_of.go +model_resource_quota_list.go +model_resource_quota_list_all_of.go +model_resource_quota_request.go +model_resource_review.go +model_resource_review_request.go +model_role.go +model_role_all_of.go +model_role_binding.go +model_role_binding_all_of.go +model_role_binding_create_request.go +model_role_binding_list.go +model_role_binding_list_all_of.go +model_role_binding_request.go +model_role_list.go +model_role_list_all_of.go +model_self_access_review.go +model_self_entitlement_status.go +model_self_feature_review.go +model_self_resource_review.go +model_self_resource_review_request.go +model_self_service_landing_page_schema.go +model_self_service_landing_page_schema_config_try_learn.go +model_self_service_landing_page_schema_estate.go +model_self_terms_review.go +model_sku.go +model_sku_all_of.go +model_sku_list.go +model_sku_list_all_of.go +model_sku_rules.go +model_sku_rules_all_of.go +model_sku_rules_list.go +model_sku_rules_list_all_of.go +model_subscription.go +model_subscription_all_of.go +model_subscription_common_fields.go +model_subscription_common_fields_all_of.go +model_subscription_create_request.go +model_subscription_list.go +model_subscription_list_all_of.go +model_subscription_metric.go +model_subscription_metric_all_of.go +model_subscription_metric_list.go +model_subscription_metric_list_all_of.go +model_subscription_patch_request.go +model_subscription_role_binding.go +model_subscription_role_binding_all_of.go +model_subscription_role_binding_create_request.go +model_subscription_role_binding_list.go +model_subscription_role_binding_list_all_of.go +model_summary.go +model_summary_all_of.go +model_summary_metrics.go +model_summary_metrics_all_of.go +model_summary_vector.go +model_summary_vector_all_of.go +model_support_cases_created_response.go +model_support_cases_request.go +model_template_parameter.go +model_terms_review.go +model_terms_review_response.go +model_token_authorization_request.go +model_token_authorization_response.go +response.go +utils.go diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/.travis.yml b/app-services-sdk-go/accountmgmt/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/README.md b/app-services-sdk-go/accountmgmt/apiv1/client/README.md new file mode 100644 index 00000000..c89f6d74 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/README.md @@ -0,0 +1,458 @@ +# Go API client for accountmgmtclient + +Manage user subscriptions and clusters + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./accountmgmtclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:14321* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AppServicesApi* | [**ApiAccountsMgmtV1AccessTokenPost**](docs/AppServicesApi.md#apiaccountsmgmtv1accesstokenpost) | **Post** /api/accounts_mgmt/v1/access_token | Return access token generated from registries in docker format +*AppServicesApi* | [**ApiAccountsMgmtV1CurrentAccountGet**](docs/AppServicesApi.md#apiaccountsmgmtv1currentaccountget) | **Get** /api/accounts_mgmt/v1/current_account | Get the authenticated account +*AppServicesApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet**](docs/AppServicesApi.md#apiaccountsmgmtv1organizationsorgidquotacostget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/quota_cost | Returns a summary of quota cost +*AppServicesApi* | [**ApiAuthorizationsV1SelfTermsReviewPost**](docs/AppServicesApi.md#apiauthorizationsv1selftermsreviewpost) | **Post** /api/authorizations/v1/self_terms_review | Review your status of Terms +*DefaultApi* | [**ApiAccountsMgmtV1AccountsGet**](docs/DefaultApi.md#apiaccountsmgmtv1accountsget) | **Get** /api/accounts_mgmt/v1/accounts | Returns a list of accounts +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidget) | **Get** /api/accounts_mgmt/v1/accounts/{id} | Get an account by id +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdLabelsGet**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidlabelsget) | **Get** /api/accounts_mgmt/v1/accounts/{id}/labels | Returns a list of labels +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdLabelsKeyDelete**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidlabelskeydelete) | **Delete** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Delete a label +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdLabelsKeyGet**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidlabelskeyget) | **Get** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Get subscription labels by label key +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdLabelsKeyPatch**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidlabelskeypatch) | **Patch** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdLabelsPost**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidlabelspost) | **Post** /api/accounts_mgmt/v1/accounts/{id}/labels | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1AccountsIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1accountsidpatch) | **Patch** /api/accounts_mgmt/v1/accounts/{id} | Update an account +*DefaultApi* | [**ApiAccountsMgmtV1AccountsPost**](docs/DefaultApi.md#apiaccountsmgmtv1accountspost) | **Post** /api/accounts_mgmt/v1/accounts | Create a new account +*DefaultApi* | [**ApiAccountsMgmtV1CertificatesPost**](docs/DefaultApi.md#apiaccountsmgmtv1certificatespost) | **Post** /api/accounts_mgmt/v1/certificates | Fetch certificates of a particular type +*DefaultApi* | [**ApiAccountsMgmtV1CloudResourcesGet**](docs/DefaultApi.md#apiaccountsmgmtv1cloudresourcesget) | **Get** /api/accounts_mgmt/v1/cloud_resources | Returns a list of cloud resources +*DefaultApi* | [**ApiAccountsMgmtV1CloudResourcesIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1cloudresourcesiddelete) | **Delete** /api/accounts_mgmt/v1/cloud_resources/{id} | Delete a cloud resource +*DefaultApi* | [**ApiAccountsMgmtV1CloudResourcesIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1cloudresourcesidget) | **Get** /api/accounts_mgmt/v1/cloud_resources/{id} | Get a cloud resource +*DefaultApi* | [**ApiAccountsMgmtV1CloudResourcesIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1cloudresourcesidpatch) | **Patch** /api/accounts_mgmt/v1/cloud_resources/{id} | Update a cloud resource +*DefaultApi* | [**ApiAccountsMgmtV1CloudResourcesPost**](docs/DefaultApi.md#apiaccountsmgmtv1cloudresourcespost) | **Post** /api/accounts_mgmt/v1/cloud_resources | Create a new cloud resource +*DefaultApi* | [**ApiAccountsMgmtV1ClusterAuthorizationsPost**](docs/DefaultApi.md#apiaccountsmgmtv1clusterauthorizationspost) | **Post** /api/accounts_mgmt/v1/cluster_authorizations | Authorizes new cluster creation against an exsiting RH Subscription. +*DefaultApi* | [**ApiAccountsMgmtV1ClusterRegistrationsPost**](docs/DefaultApi.md#apiaccountsmgmtv1clusterregistrationspost) | **Post** /api/accounts_mgmt/v1/cluster_registrations | Finds or creates a cluster registration with a registy credential token and cluster ID +*DefaultApi* | [**ApiAccountsMgmtV1ClusterTransfersGet**](docs/DefaultApi.md#apiaccountsmgmtv1clustertransfersget) | **Get** /api/accounts_mgmt/v1/cluster_transfers | List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. +*DefaultApi* | [**ApiAccountsMgmtV1ClusterTransfersIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1clustertransfersidpatch) | **Patch** /api/accounts_mgmt/v1/cluster_transfers/{id} | Update specific cluster transfer +*DefaultApi* | [**ApiAccountsMgmtV1ClusterTransfersPost**](docs/DefaultApi.md#apiaccountsmgmtv1clustertransferspost) | **Post** /api/accounts_mgmt/v1/cluster_transfers | Initiate cluster transfer. +*DefaultApi* | [**ApiAccountsMgmtV1ConfigSkusGet**](docs/DefaultApi.md#apiaccountsmgmtv1configskusget) | **Get** /api/accounts_mgmt/v1/config/skus | Returns a list of skus +*DefaultApi* | [**ApiAccountsMgmtV1ConfigSkusIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1configskusiddelete) | **Delete** /api/accounts_mgmt/v1/config/skus/{id} | Delete a sku +*DefaultApi* | [**ApiAccountsMgmtV1ConfigSkusIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1configskusidget) | **Get** /api/accounts_mgmt/v1/config/skus/{id} | Get a sku +*DefaultApi* | [**ApiAccountsMgmtV1ConfigSkusIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1configskusidpatch) | **Patch** /api/accounts_mgmt/v1/config/skus/{id} | Update a Sku +*DefaultApi* | [**ApiAccountsMgmtV1ConfigSkusPost**](docs/DefaultApi.md#apiaccountsmgmtv1configskuspost) | **Post** /api/accounts_mgmt/v1/config/skus | Create a new sku +*DefaultApi* | [**ApiAccountsMgmtV1DeletedSubscriptionsGet**](docs/DefaultApi.md#apiaccountsmgmtv1deletedsubscriptionsget) | **Get** /api/accounts_mgmt/v1/deleted_subscriptions | Returns a list of deleted subscriptions +*DefaultApi* | [**ApiAccountsMgmtV1ErrorsGet**](docs/DefaultApi.md#apiaccountsmgmtv1errorsget) | **Get** /api/accounts_mgmt/v1/errors | Returns a list of errors +*DefaultApi* | [**ApiAccountsMgmtV1ErrorsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1errorsidget) | **Get** /api/accounts_mgmt/v1/errors/{id} | Get an error by id +*DefaultApi* | [**ApiAccountsMgmtV1FeatureTogglesIdQueryPost**](docs/DefaultApi.md#apiaccountsmgmtv1featuretogglesidquerypost) | **Post** /api/accounts_mgmt/v1/feature_toggles/{id}/query | Query a feature toggle by id +*DefaultApi* | [**ApiAccountsMgmtV1LabelsGet**](docs/DefaultApi.md#apiaccountsmgmtv1labelsget) | **Get** /api/accounts_mgmt/v1/labels | Returns a list of labels +*DefaultApi* | [**ApiAccountsMgmtV1LandingPageSelfServiceGet**](docs/DefaultApi.md#apiaccountsmgmtv1landingpageselfserviceget) | **Get** /api/accounts_mgmt/v1/landing_page/self_service | Get a console.redhat.com landing page content JSON schema +*DefaultApi* | [**ApiAccountsMgmtV1MetricsGet**](docs/DefaultApi.md#apiaccountsmgmtv1metricsget) | **Get** /api/accounts_mgmt/v1/metrics | Returns a list of metrics +*DefaultApi* | [**ApiAccountsMgmtV1NotifyPost**](docs/DefaultApi.md#apiaccountsmgmtv1notifypost) | **Post** /api/accounts_mgmt/v1/notify | Notify the owner of cluster/subscription +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsget) | **Get** /api/accounts_mgmt/v1/organizations | Returns a list of organizations +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidget) | **Get** /api/accounts_mgmt/v1/organizations/{id} | Get an organization by id +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdLabelsGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidlabelsget) | **Get** /api/accounts_mgmt/v1/organizations/{id}/labels | Returns a list of labels +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidlabelskeydelete) | **Delete** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Delete a label +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidlabelskeyget) | **Get** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Get subscription labels by label key +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidlabelskeypatch) | **Patch** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdLabelsPost**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidlabelspost) | **Post** /api/accounts_mgmt/v1/organizations/{id}/labels | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidpatch) | **Patch** /api/accounts_mgmt/v1/organizations/{id} | Update an organization +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsidsummarydashboardget) | **Get** /api/accounts_mgmt/v1/organizations/{id}/summary_dashboard | Returns a summary of organizations clusters based on metrics +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupassignmentsacctgrpasgniddelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId} | Delete an account group assignment +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupassignmentsacctgrpasgnidget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId} | Get account group assignment by id +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupassignmentsget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments | Returns a list of account group assignments for the given org +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupassignmentspost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments | Create a new AccountGroupAssignment +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupsacctgrpiddelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Delete an account group +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupsacctgrpidget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Get account group by id +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupsacctgrpidpatch) | **Patch** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Update an account group +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupsget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups | Returns a list of account groups for the given org +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidaccountgroupspost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups | Create a new AccountGroup +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidconsumedquotaget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota | Returns a list of consumed quota for an organization +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidresourcequotaget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota | Returns a list of resource quota objects +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidresourcequotapost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota | Create a new resource quota +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidresourcequotaquotaiddelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Delete a resource quota +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidresourcequotaquotaidget) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Get a resource quota by id +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1organizationsorgidresourcequotaquotaidpatch) | **Patch** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Update a resource quota +*DefaultApi* | [**ApiAccountsMgmtV1OrganizationsPost**](docs/DefaultApi.md#apiaccountsmgmtv1organizationspost) | **Post** /api/accounts_mgmt/v1/organizations | Create a new organization +*DefaultApi* | [**ApiAccountsMgmtV1PlansGet**](docs/DefaultApi.md#apiaccountsmgmtv1plansget) | **Get** /api/accounts_mgmt/v1/plans | Get all plans +*DefaultApi* | [**ApiAccountsMgmtV1PlansIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1plansidget) | **Get** /api/accounts_mgmt/v1/plans/{id} | Get a plan by id +*DefaultApi* | [**ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1pullsecretsexternalresourceiddelete) | **Delete** /api/accounts_mgmt/v1/pull_secrets/{externalResourceId} | Delete a pull secret +*DefaultApi* | [**ApiAccountsMgmtV1PullSecretsPost**](docs/DefaultApi.md#apiaccountsmgmtv1pullsecretspost) | **Post** /api/accounts_mgmt/v1/pull_secrets | Return access token generated from registries in docker format +*DefaultApi* | [**ApiAccountsMgmtV1QuotaCostGet**](docs/DefaultApi.md#apiaccountsmgmtv1quotacostget) | **Get** /api/accounts_mgmt/v1/quota_cost | Returns a summary of quota cost for the authenticated user +*DefaultApi* | [**ApiAccountsMgmtV1QuotaRulesGet**](docs/DefaultApi.md#apiaccountsmgmtv1quotarulesget) | **Get** /api/accounts_mgmt/v1/quota_rules | Returns a list of UHC product Quota Rules +*DefaultApi* | [**ApiAccountsMgmtV1QuotasGet**](docs/DefaultApi.md#apiaccountsmgmtv1quotasget) | **Get** /api/accounts_mgmt/v1/quotas | Returns a list of quotas +*DefaultApi* | [**ApiAccountsMgmtV1QuotasIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1quotasiddelete) | **Delete** /api/accounts_mgmt/v1/quotas/{id} | Delete a quota +*DefaultApi* | [**ApiAccountsMgmtV1QuotasIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1quotasidget) | **Get** /api/accounts_mgmt/v1/quotas/{id} | Get a quota +*DefaultApi* | [**ApiAccountsMgmtV1QuotasIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1quotasidpatch) | **Patch** /api/accounts_mgmt/v1/quotas/{id} | Update a quota +*DefaultApi* | [**ApiAccountsMgmtV1QuotasPost**](docs/DefaultApi.md#apiaccountsmgmtv1quotaspost) | **Post** /api/accounts_mgmt/v1/quotas | Create a new quota +*DefaultApi* | [**ApiAccountsMgmtV1RegistriesGet**](docs/DefaultApi.md#apiaccountsmgmtv1registriesget) | **Get** /api/accounts_mgmt/v1/registries | Returns a list of registries +*DefaultApi* | [**ApiAccountsMgmtV1RegistriesIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1registriesidget) | **Get** /api/accounts_mgmt/v1/registries/{id} | Get an registry by id +*DefaultApi* | [**ApiAccountsMgmtV1RegistryCredentialsGet**](docs/DefaultApi.md#apiaccountsmgmtv1registrycredentialsget) | **Get** /api/accounts_mgmt/v1/registry_credentials | +*DefaultApi* | [**ApiAccountsMgmtV1RegistryCredentialsIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1registrycredentialsiddelete) | **Delete** /api/accounts_mgmt/v1/registry_credentials/{id} | Delete a registry credential by id +*DefaultApi* | [**ApiAccountsMgmtV1RegistryCredentialsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1registrycredentialsidget) | **Get** /api/accounts_mgmt/v1/registry_credentials/{id} | Get a registry credentials by id +*DefaultApi* | [**ApiAccountsMgmtV1RegistryCredentialsIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1registrycredentialsidpatch) | **Patch** /api/accounts_mgmt/v1/registry_credentials/{id} | Update a registry credential +*DefaultApi* | [**ApiAccountsMgmtV1RegistryCredentialsPost**](docs/DefaultApi.md#apiaccountsmgmtv1registrycredentialspost) | **Post** /api/accounts_mgmt/v1/registry_credentials | Request the creation of a registry credential +*DefaultApi* | [**ApiAccountsMgmtV1ReservedResourcesGet**](docs/DefaultApi.md#apiaccountsmgmtv1reservedresourcesget) | **Get** /api/accounts_mgmt/v1/reserved_resources | Returns a list of reserved resources +*DefaultApi* | [**ApiAccountsMgmtV1ResourceQuotaGet**](docs/DefaultApi.md#apiaccountsmgmtv1resourcequotaget) | **Get** /api/accounts_mgmt/v1/resource_quota | Returns a list of resource quota objects +*DefaultApi* | [**ApiAccountsMgmtV1RoleBindingsGet**](docs/DefaultApi.md#apiaccountsmgmtv1rolebindingsget) | **Get** /api/accounts_mgmt/v1/role_bindings | Returns a list of role bindings +*DefaultApi* | [**ApiAccountsMgmtV1RoleBindingsIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1rolebindingsiddelete) | **Delete** /api/accounts_mgmt/v1/role_bindings/{id} | Delete a role binding +*DefaultApi* | [**ApiAccountsMgmtV1RoleBindingsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1rolebindingsidget) | **Get** /api/accounts_mgmt/v1/role_bindings/{id} | Get a role binding +*DefaultApi* | [**ApiAccountsMgmtV1RoleBindingsIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1rolebindingsidpatch) | **Patch** /api/accounts_mgmt/v1/role_bindings/{id} | Update a role binding +*DefaultApi* | [**ApiAccountsMgmtV1RoleBindingsPost**](docs/DefaultApi.md#apiaccountsmgmtv1rolebindingspost) | **Post** /api/accounts_mgmt/v1/role_bindings | Create a new role binding +*DefaultApi* | [**ApiAccountsMgmtV1RolesGet**](docs/DefaultApi.md#apiaccountsmgmtv1rolesget) | **Get** /api/accounts_mgmt/v1/roles | Returns a list of roles +*DefaultApi* | [**ApiAccountsMgmtV1RolesIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1rolesidget) | **Get** /api/accounts_mgmt/v1/roles/{id} | Get a role by id +*DefaultApi* | [**ApiAccountsMgmtV1SelfEntitlementProductPost**](docs/DefaultApi.md#apiaccountsmgmtv1selfentitlementproductpost) | **Post** /api/accounts_mgmt/v1/self_entitlement/{product} | Create or renew the entitlement to support a product for the user's organization. +*DefaultApi* | [**ApiAccountsMgmtV1SkuRulesGet**](docs/DefaultApi.md#apiaccountsmgmtv1skurulesget) | **Get** /api/accounts_mgmt/v1/sku_rules | Returns a list of UHC product SKU Rules +*DefaultApi* | [**ApiAccountsMgmtV1SkuRulesIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1skurulesiddelete) | **Delete** /api/accounts_mgmt/v1/sku_rules/{id} | Delete a sku rule +*DefaultApi* | [**ApiAccountsMgmtV1SkuRulesIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1skurulesidget) | **Get** /api/accounts_mgmt/v1/sku_rules/{id} | Get a sku rules by id +*DefaultApi* | [**ApiAccountsMgmtV1SkuRulesIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1skurulesidpatch) | **Patch** /api/accounts_mgmt/v1/sku_rules/{id} | Update a sku rule +*DefaultApi* | [**ApiAccountsMgmtV1SkuRulesPost**](docs/DefaultApi.md#apiaccountsmgmtv1skurulespost) | **Post** /api/accounts_mgmt/v1/sku_rules | Create a new sku rule +*DefaultApi* | [**ApiAccountsMgmtV1SkusGet**](docs/DefaultApi.md#apiaccountsmgmtv1skusget) | **Get** /api/accounts_mgmt/v1/skus | Returns a list of UHC product SKUs +*DefaultApi* | [**ApiAccountsMgmtV1SkusIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1skusidget) | **Get** /api/accounts_mgmt/v1/skus/{id} | Get a sku by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsget) | **Get** /api/accounts_mgmt/v1/subscriptions | Returns a list of subscriptions +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsiddelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{id} | Deletes a subscription by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id} | Get a subscription by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdLabelsGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidlabelsget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/labels | Returns a list of labels +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidlabelskeydelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Delete a label +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidlabelskeyget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Get subscription labels by label key +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidlabelskeypatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdLabelsPost**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidlabelspost) | **Post** /api/accounts_mgmt/v1/subscriptions/{id}/labels | Create a new label or update an existing label +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidmetricsmetricnameget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name} | Get subscription's metrics by metric name +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdNotifyPost**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidnotifypost) | **Post** /api/accounts_mgmt/v1/subscriptions/{id}/notify | Notify the owner of a subscription +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidpatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{id} | Update a subscription +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidreservedresourcesget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources | Returns a list of reserved resources +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionsidsupportcasesget) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/support_cases | Returns a list of open support creates opened against the external cluster id of this subscrption +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsPost**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionspost) | **Post** /api/accounts_mgmt/v1/subscriptions | Create a new subscription +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidnotificationcontactsaccountiddelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId} | Deletes a notification contact by subscription and account id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidnotificationcontactsget) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts | Returns a list of notification contacts for the given subscription +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidnotificationcontactspost) | **Post** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts | Add an account as a notification contact to this subscription +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidreservedresourcesreservedresourceiddelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Delete reserved resources by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidreservedresourcesreservedresourceidget) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Get reserved resources by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidreservedresourcesreservedresourceidpatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Update a reserved resource +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidrolebindingsget) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings | Get subscription role bindings +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidrolebindingsiddelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id} | Delete a subscription role binding +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidrolebindingsidget) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id} | Get a Subscription Role Binding by id +*DefaultApi* | [**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost**](docs/DefaultApi.md#apiaccountsmgmtv1subscriptionssubidrolebindingspost) | **Post** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings | Create a new subscription role binding +*DefaultApi* | [**ApiAccountsMgmtV1SupportCasesCaseIdDelete**](docs/DefaultApi.md#apiaccountsmgmtv1supportcasescaseiddelete) | **Delete** /api/accounts_mgmt/v1/support_cases/{caseId} | Delete a support case +*DefaultApi* | [**ApiAccountsMgmtV1SupportCasesPost**](docs/DefaultApi.md#apiaccountsmgmtv1supportcasespost) | **Post** /api/accounts_mgmt/v1/support_cases | create a support case for the subscription +*DefaultApi* | [**ApiAccountsMgmtV1TokenAuthorizationPost**](docs/DefaultApi.md#apiaccountsmgmtv1tokenauthorizationpost) | **Post** /api/accounts_mgmt/v1/token_authorization | Finds the account owner of the provided token +*DefaultApi* | [**ApiAuthorizationsV1AccessReviewPost**](docs/DefaultApi.md#apiauthorizationsv1accessreviewpost) | **Post** /api/authorizations/v1/access_review | Review an account's access to perform an action on a particular resource or resource type +*DefaultApi* | [**ApiAuthorizationsV1CapabilityReviewPost**](docs/DefaultApi.md#apiauthorizationsv1capabilityreviewpost) | **Post** /api/authorizations/v1/capability_review | Review an account's capabilities +*DefaultApi* | [**ApiAuthorizationsV1ExportControlReviewPost**](docs/DefaultApi.md#apiauthorizationsv1exportcontrolreviewpost) | **Post** /api/authorizations/v1/export_control_review | Determine whether a user is restricted from downloading Red Hat software based on export control compliance. +*DefaultApi* | [**ApiAuthorizationsV1FeatureReviewPost**](docs/DefaultApi.md#apiauthorizationsv1featurereviewpost) | **Post** /api/authorizations/v1/feature_review | Review feature to perform an action on it such as toggle a feature on/off +*DefaultApi* | [**ApiAuthorizationsV1ResourceReviewPost**](docs/DefaultApi.md#apiauthorizationsv1resourcereviewpost) | **Post** /api/authorizations/v1/resource_review | Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. +*DefaultApi* | [**ApiAuthorizationsV1SelfAccessReviewPost**](docs/DefaultApi.md#apiauthorizationsv1selfaccessreviewpost) | **Post** /api/authorizations/v1/self_access_review | Review your ability to perform an action on a particular resource or resource type +*DefaultApi* | [**ApiAuthorizationsV1SelfFeatureReviewPost**](docs/DefaultApi.md#apiauthorizationsv1selffeaturereviewpost) | **Post** /api/authorizations/v1/self_feature_review | Review your ability to toggle a feature +*DefaultApi* | [**ApiAuthorizationsV1SelfResourceReviewPost**](docs/DefaultApi.md#apiauthorizationsv1selfresourcereviewpost) | **Post** /api/authorizations/v1/self_resource_review | Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. +*DefaultApi* | [**ApiAuthorizationsV1TermsReviewPost**](docs/DefaultApi.md#apiauthorizationsv1termsreviewpost) | **Post** /api/authorizations/v1/terms_review | Review an account's status of Terms + + +## Documentation For Models + + - [AccessReview](docs/AccessReview.md) + - [AccessReviewResponse](docs/AccessReviewResponse.md) + - [AccessTokenCfg](docs/AccessTokenCfg.md) + - [Account](docs/Account.md) + - [AccountAllOf](docs/AccountAllOf.md) + - [AccountGroup](docs/AccountGroup.md) + - [AccountGroupAllOf](docs/AccountGroupAllOf.md) + - [AccountGroupAssignment](docs/AccountGroupAssignment.md) + - [AccountGroupAssignmentAllOf](docs/AccountGroupAssignmentAllOf.md) + - [AccountGroupAssignmentList](docs/AccountGroupAssignmentList.md) + - [AccountGroupAssignmentListAllOf](docs/AccountGroupAssignmentListAllOf.md) + - [AccountGroupList](docs/AccountGroupList.md) + - [AccountGroupListAllOf](docs/AccountGroupListAllOf.md) + - [AccountGroupRequest](docs/AccountGroupRequest.md) + - [AccountGroupRequestAllOf](docs/AccountGroupRequestAllOf.md) + - [AccountList](docs/AccountList.md) + - [AccountListAllOf](docs/AccountListAllOf.md) + - [AccountPatchRequest](docs/AccountPatchRequest.md) + - [AccountReference](docs/AccountReference.md) + - [AccountReferenceAllOf](docs/AccountReferenceAllOf.md) + - [Capability](docs/Capability.md) + - [CapabilityAllOf](docs/CapabilityAllOf.md) + - [CapabilityReview](docs/CapabilityReview.md) + - [CapabilityReviewRequest](docs/CapabilityReviewRequest.md) + - [Certificate](docs/Certificate.md) + - [CertificateSerial](docs/CertificateSerial.md) + - [CertificatesRequest](docs/CertificatesRequest.md) + - [CloudAccount](docs/CloudAccount.md) + - [CloudResource](docs/CloudResource.md) + - [CloudResourceAllOf](docs/CloudResourceAllOf.md) + - [CloudResourceList](docs/CloudResourceList.md) + - [CloudResourceListAllOf](docs/CloudResourceListAllOf.md) + - [ClusterAuthorizationRequest](docs/ClusterAuthorizationRequest.md) + - [ClusterAuthorizationResponse](docs/ClusterAuthorizationResponse.md) + - [ClusterMetricsNodes](docs/ClusterMetricsNodes.md) + - [ClusterRegistrationRequest](docs/ClusterRegistrationRequest.md) + - [ClusterRegistrationResponse](docs/ClusterRegistrationResponse.md) + - [ClusterResource](docs/ClusterResource.md) + - [ClusterResourceTotal](docs/ClusterResourceTotal.md) + - [ClusterTransfer](docs/ClusterTransfer.md) + - [ClusterTransferAllOf](docs/ClusterTransferAllOf.md) + - [ClusterTransferList](docs/ClusterTransferList.md) + - [ClusterTransferListAllOf](docs/ClusterTransferListAllOf.md) + - [ClusterTransferPatchRequest](docs/ClusterTransferPatchRequest.md) + - [ClusterTransferRequest](docs/ClusterTransferRequest.md) + - [ClusterUpgrade](docs/ClusterUpgrade.md) + - [ConsumedQuota](docs/ConsumedQuota.md) + - [ConsumedQuotaAllOf](docs/ConsumedQuotaAllOf.md) + - [ConsumedQuotaList](docs/ConsumedQuotaList.md) + - [ConsumedQuotaListAllOf](docs/ConsumedQuotaListAllOf.md) + - [DeletedSubscription](docs/DeletedSubscription.md) + - [DeletedSubscriptionAllOf](docs/DeletedSubscriptionAllOf.md) + - [DeletedSubscriptionList](docs/DeletedSubscriptionList.md) + - [DeletedSubscriptionListAllOf](docs/DeletedSubscriptionListAllOf.md) + - [EphemeralResourceQuota](docs/EphemeralResourceQuota.md) + - [Error](docs/Error.md) + - [ErrorAllOf](docs/ErrorAllOf.md) + - [ErrorList](docs/ErrorList.md) + - [ErrorListAllOf](docs/ErrorListAllOf.md) + - [ExcessResource](docs/ExcessResource.md) + - [ExcessResourceAllOf](docs/ExcessResourceAllOf.md) + - [ExportControlReview](docs/ExportControlReview.md) + - [ExportControlReviewRequest](docs/ExportControlReviewRequest.md) + - [FeatureReview](docs/FeatureReview.md) + - [FeatureReviewResponse](docs/FeatureReviewResponse.md) + - [FeatureToggle](docs/FeatureToggle.md) + - [FeatureToggleAllOf](docs/FeatureToggleAllOf.md) + - [FeatureToggleQueryRequest](docs/FeatureToggleQueryRequest.md) + - [FeatureToggleQueryRequestAllOf](docs/FeatureToggleQueryRequestAllOf.md) + - [Label](docs/Label.md) + - [LabelAllOf](docs/LabelAllOf.md) + - [LabelList](docs/LabelList.md) + - [LabelListAllOf](docs/LabelListAllOf.md) + - [LandingPageCTLItem](docs/LandingPageCTLItem.md) + - [LandingPageCTLItemShape](docs/LandingPageCTLItemShape.md) + - [LandingPageEstateItem](docs/LandingPageEstateItem.md) + - [LandingPageLinkShape](docs/LandingPageLinkShape.md) + - [List](docs/List.md) + - [Metric](docs/Metric.md) + - [MetricAllOf](docs/MetricAllOf.md) + - [MetricsList](docs/MetricsList.md) + - [MetricsListAllOf](docs/MetricsListAllOf.md) + - [NotificationContactCreateRequest](docs/NotificationContactCreateRequest.md) + - [NotificationRequest](docs/NotificationRequest.md) + - [ObjectReference](docs/ObjectReference.md) + - [OneMetric](docs/OneMetric.md) + - [Organization](docs/Organization.md) + - [OrganizationAllOf](docs/OrganizationAllOf.md) + - [OrganizationList](docs/OrganizationList.md) + - [OrganizationListAllOf](docs/OrganizationListAllOf.md) + - [OrganizationPatchRequest](docs/OrganizationPatchRequest.md) + - [Permission](docs/Permission.md) + - [PermissionAllOf](docs/PermissionAllOf.md) + - [PermissionList](docs/PermissionList.md) + - [PermissionListAllOf](docs/PermissionListAllOf.md) + - [Plan](docs/Plan.md) + - [PlanAllOf](docs/PlanAllOf.md) + - [PlanList](docs/PlanList.md) + - [PlanListAllOf](docs/PlanListAllOf.md) + - [PullSecretRequest](docs/PullSecretRequest.md) + - [Quota](docs/Quota.md) + - [QuotaAllOf](docs/QuotaAllOf.md) + - [QuotaCost](docs/QuotaCost.md) + - [QuotaCostAllOf](docs/QuotaCostAllOf.md) + - [QuotaCostList](docs/QuotaCostList.md) + - [QuotaCostListAllOf](docs/QuotaCostListAllOf.md) + - [QuotaList](docs/QuotaList.md) + - [QuotaListAllOf](docs/QuotaListAllOf.md) + - [QuotaRules](docs/QuotaRules.md) + - [QuotaRulesAllOf](docs/QuotaRulesAllOf.md) + - [QuotaRulesList](docs/QuotaRulesList.md) + - [QuotaRulesListAllOf](docs/QuotaRulesListAllOf.md) + - [Registry](docs/Registry.md) + - [RegistryAllOf](docs/RegistryAllOf.md) + - [RegistryCreateRequest](docs/RegistryCreateRequest.md) + - [RegistryCredential](docs/RegistryCredential.md) + - [RegistryCredentialAllOf](docs/RegistryCredentialAllOf.md) + - [RegistryCredentialList](docs/RegistryCredentialList.md) + - [RegistryCredentialListAllOf](docs/RegistryCredentialListAllOf.md) + - [RegistryCredentialPatchRequest](docs/RegistryCredentialPatchRequest.md) + - [RegistryList](docs/RegistryList.md) + - [RegistryListAllOf](docs/RegistryListAllOf.md) + - [RegistryRequest](docs/RegistryRequest.md) + - [RelatedResource](docs/RelatedResource.md) + - [RelatedResourceAllOf](docs/RelatedResourceAllOf.md) + - [ReservedResource](docs/ReservedResource.md) + - [ReservedResourceAllOf](docs/ReservedResourceAllOf.md) + - [ReservedResourceList](docs/ReservedResourceList.md) + - [ReservedResourceListAllOf](docs/ReservedResourceListAllOf.md) + - [ReservedResourcePatchRequest](docs/ReservedResourcePatchRequest.md) + - [ResourceQuota](docs/ResourceQuota.md) + - [ResourceQuotaAllOf](docs/ResourceQuotaAllOf.md) + - [ResourceQuotaList](docs/ResourceQuotaList.md) + - [ResourceQuotaListAllOf](docs/ResourceQuotaListAllOf.md) + - [ResourceQuotaRequest](docs/ResourceQuotaRequest.md) + - [ResourceReview](docs/ResourceReview.md) + - [ResourceReviewRequest](docs/ResourceReviewRequest.md) + - [Role](docs/Role.md) + - [RoleAllOf](docs/RoleAllOf.md) + - [RoleBinding](docs/RoleBinding.md) + - [RoleBindingAllOf](docs/RoleBindingAllOf.md) + - [RoleBindingCreateRequest](docs/RoleBindingCreateRequest.md) + - [RoleBindingList](docs/RoleBindingList.md) + - [RoleBindingListAllOf](docs/RoleBindingListAllOf.md) + - [RoleBindingRequest](docs/RoleBindingRequest.md) + - [RoleList](docs/RoleList.md) + - [RoleListAllOf](docs/RoleListAllOf.md) + - [SKU](docs/SKU.md) + - [SKUAllOf](docs/SKUAllOf.md) + - [SelfAccessReview](docs/SelfAccessReview.md) + - [SelfEntitlementStatus](docs/SelfEntitlementStatus.md) + - [SelfFeatureReview](docs/SelfFeatureReview.md) + - [SelfResourceReview](docs/SelfResourceReview.md) + - [SelfResourceReviewRequest](docs/SelfResourceReviewRequest.md) + - [SelfServiceLandingPageSchema](docs/SelfServiceLandingPageSchema.md) + - [SelfServiceLandingPageSchemaConfigTryLearn](docs/SelfServiceLandingPageSchemaConfigTryLearn.md) + - [SelfServiceLandingPageSchemaEstate](docs/SelfServiceLandingPageSchemaEstate.md) + - [SelfTermsReview](docs/SelfTermsReview.md) + - [SkuList](docs/SkuList.md) + - [SkuListAllOf](docs/SkuListAllOf.md) + - [SkuRules](docs/SkuRules.md) + - [SkuRulesAllOf](docs/SkuRulesAllOf.md) + - [SkuRulesList](docs/SkuRulesList.md) + - [SkuRulesListAllOf](docs/SkuRulesListAllOf.md) + - [Subscription](docs/Subscription.md) + - [SubscriptionAllOf](docs/SubscriptionAllOf.md) + - [SubscriptionCommonFields](docs/SubscriptionCommonFields.md) + - [SubscriptionCommonFieldsAllOf](docs/SubscriptionCommonFieldsAllOf.md) + - [SubscriptionCreateRequest](docs/SubscriptionCreateRequest.md) + - [SubscriptionList](docs/SubscriptionList.md) + - [SubscriptionListAllOf](docs/SubscriptionListAllOf.md) + - [SubscriptionMetric](docs/SubscriptionMetric.md) + - [SubscriptionMetricAllOf](docs/SubscriptionMetricAllOf.md) + - [SubscriptionMetricList](docs/SubscriptionMetricList.md) + - [SubscriptionMetricListAllOf](docs/SubscriptionMetricListAllOf.md) + - [SubscriptionPatchRequest](docs/SubscriptionPatchRequest.md) + - [SubscriptionRoleBinding](docs/SubscriptionRoleBinding.md) + - [SubscriptionRoleBindingAllOf](docs/SubscriptionRoleBindingAllOf.md) + - [SubscriptionRoleBindingCreateRequest](docs/SubscriptionRoleBindingCreateRequest.md) + - [SubscriptionRoleBindingList](docs/SubscriptionRoleBindingList.md) + - [SubscriptionRoleBindingListAllOf](docs/SubscriptionRoleBindingListAllOf.md) + - [Summary](docs/Summary.md) + - [SummaryAllOf](docs/SummaryAllOf.md) + - [SummaryMetrics](docs/SummaryMetrics.md) + - [SummaryMetricsAllOf](docs/SummaryMetricsAllOf.md) + - [SummaryVector](docs/SummaryVector.md) + - [SummaryVectorAllOf](docs/SummaryVectorAllOf.md) + - [SupportCasesCreatedResponse](docs/SupportCasesCreatedResponse.md) + - [SupportCasesRequest](docs/SupportCasesRequest.md) + - [TemplateParameter](docs/TemplateParameter.md) + - [TermsReview](docs/TermsReview.md) + - [TermsReviewResponse](docs/TermsReviewResponse.md) + - [TokenAuthorizationRequest](docs/TokenAuthorizationRequest.md) + - [TokenAuthorizationResponse](docs/TokenAuthorizationResponse.md) + + +## Documentation For Authorization + + + +### AccessToken + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. + + +### Bearer + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/accountmgmt/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..08d0f7e6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/api/openapi.yaml @@ -0,0 +1,11660 @@ +openapi: 3.0.0 +info: + description: Manage user subscriptions and clusters + title: Account Management Service API + version: 0.0.1 +servers: +- description: current domain + url: http://localhost:14321 +- description: Main (production) server + url: https://api.openshift.com +- description: Staging server + url: https://api.stage.openshift.com +paths: + /api/accounts_mgmt/v1/access_token: + post: + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessTokenCfg' + description: access token from registries in docker format + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Cannot find registry + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Return access token generated from registries in docker format + tags: + - AppServices + /api/accounts_mgmt/v1/accounts: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountList' + description: A JSON array of account objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of accounts + post: + parameters: + - description: If true, instructs API to avoid making any changes, but rather + run through validations only. + explode: true + in: query + name: dryRun + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Account data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Account can be created without dryRun parameter + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Account already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the account + security: + - Bearer: [] + summary: Create a new account + /api/accounts_mgmt/v1/accounts/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + - description: If true, includes the RHIT account_id in the output. Could slow + request response time. + explode: true + in: query + name: fetchRhit + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Account found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No account with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get an account by id + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountPatchRequest' + description: Updated account data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Account updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No account with specified id exists + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Account already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating account + security: + - Bearer: [] + summary: Update an account + /api/accounts_mgmt/v1/accounts/{id}/labels: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/LabelList' + description: A JSON array of label + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of labels + post: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/accounts/{id}/labels/{key}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "204": + description: Label successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified organizations id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the label + security: + - Bearer: [] + summary: Delete a label + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Labels found by key + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified organizations id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get subscription labels by label key + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Label already exists and cannot be updated + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating organizations label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/certificates: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CertificatesRequest' + description: | + # The payload depends on the type of the requested certificate + The examples for supported types: + * {"type": "sca", "arch": "x86_64"} + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Certificate' + description: The certificate associated with the organization + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The certificate is not avaialbe for the organization + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + - AccessToken: [] + summary: Fetch certificates of a particular type + /api/accounts_mgmt/v1/cloud_resources: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResourceList' + description: A JSON array of cloud resource objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of cloud resources + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResource' + description: Cloud resource data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResource' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Resource already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating resource + security: + - Bearer: [] + summary: Create a new cloud resource + /api/accounts_mgmt/v1/cloud_resources/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Cloud resource successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No resource with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the resource + security: + - Bearer: [] + summary: Delete a cloud resource + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResource' + description: Cloud resource found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No cloud resource with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a cloud resource + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResource' + description: Updated cloud resource data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudResource' + description: Cloud resource updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No resource with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating resource + security: + - Bearer: [] + summary: Update a cloud resource + /api/accounts_mgmt/v1/cluster_authorizations: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterAuthorizationRequest' + description: Cluster and authorization data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterAuthorizationResponse' + description: The authorization is successful, the requested cluster has + a valid subscription and is within resource limits. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: AMS subscription exists but is associated with another account + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The limits for this subscription are exceeded. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Other cluster authorization error + security: + - Bearer: [] + summary: Authorizes new cluster creation against an exsiting RH Subscription. + /api/accounts_mgmt/v1/cluster_registrations: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterRegistrationRequest' + description: Cluster and authorization data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterRegistrationResponse' + description: A cluster with the specified cluster_id exists and belongs + to the user with the specified registry credential token + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterRegistrationResponse' + description: No cluster with the specified cluster exists, one was successfully + created and associated with the account with the specified registry credential + token + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Registry credential token is invalid + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Cluster with specified cluster_id already associated with another + user + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: cluster_id provided is invalid + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Too many clusters have been associated with this user recently + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Other cluster registration error + security: + - Bearer: [] + summary: Finds or creates a cluster registration with a registy credential token + and cluster ID + /api/accounts_mgmt/v1/cluster_transfers: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTransferList' + description: cluster transfer detected + "204": + description: ClusterTransfer does not exist for a specific cluster + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + - AccessToken: [] + summary: List cluster transfers - returns either an empty result set or a valid + ClusterTransfer instance that is within a valid transfer window. + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTransferRequest' + description: The contents of the cluster transfer creation request + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTransfer' + description: the cluster transfer has been created + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Initiate cluster transfer. + /api/accounts_mgmt/v1/cluster_transfers/{id}: + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTransferPatchRequest' + description: Updated cluster transfer + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTransfer' + description: Cluster transfer updated successfully + "204": + description: ClusterTransfer does not exist for a specific cluster + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Conflict during cluster transfer update + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating cluster transfer + security: + - Bearer: [] + summary: Update specific cluster transfer + /api/accounts_mgmt/v1/config/skus: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuList' + description: A JSON array of sku objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of skus + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: Sku data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Sku already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating sku + security: + - Bearer: [] + summary: Create a new sku + /api/accounts_mgmt/v1/config/skus/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Sku successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the sku + security: + - Bearer: [] + summary: Delete a sku + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: Sku found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No SKU with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a sku + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: Updated sku data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: Sku updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating sku + security: + - Bearer: [] + summary: Update a Sku + /api/accounts_mgmt/v1/current_account: + get: + parameters: + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Account found via JWT + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + - AccessToken: [] + summary: Get the authenticated account + tags: + - AppServices + /api/accounts_mgmt/v1/deleted_subscriptions: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DeletedSubscriptionList' + description: A JSON array of deleted subscription objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + - AccessToken: [] + summary: Returns a list of deleted subscriptions + /api/accounts_mgmt/v1/errors: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorList' + description: A JSON array or errors + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + summary: Returns a list of errors + /api/accounts_mgmt/v1/errors/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Error found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No error with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + summary: Get an error by id + /api/accounts_mgmt/v1/feature_toggles/{id}/query: + post: + deprecated: true + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureToggleQueryRequest' + description: The context of the query + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureToggle' + description: Feature toggle found by id + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Query a feature toggle by id + /api/accounts_mgmt/v1/labels: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/LabelList' + description: A JSON array of label objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of labels + /api/accounts_mgmt/v1/landing_page/self_service: + get: + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SelfServiceLandingPageSchema' + description: self service schema created + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a console.redhat.com landing page content JSON schema + /api/accounts_mgmt/v1/metrics: + get: + parameters: + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MetricsList' + description: A JSON array of metrics objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of metrics + /api/accounts_mgmt/v1/notify: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationRequest' + description: The contents of the notification to send to the owner of a cluster/subscription + in addition to the set of template parameters which are sent automatically + ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + required: true + responses: + "202": + description: Notification created and queued to be sent soon + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Notify the owner of cluster/subscription + /api/accounts_mgmt/v1/organizations: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + - description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationList' + description: A JSON array of organization objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of organizations + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: Organization data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Organization already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the organization + security: + - Bearer: [] + summary: Create a new organization + /api/accounts_mgmt/v1/organizations/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: Organization found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get an organization by id + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPatchRequest' + description: Updated organization data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Organization' + description: Organization updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating organization + security: + - Bearer: [] + summary: Update an organization + /api/accounts_mgmt/v1/organizations/{id}/labels: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/LabelList' + description: A JSON array of label + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of labels + post: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/organizations/{id}/labels/{key}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "204": + description: Label successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified organizations id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the label + security: + - Bearer: [] + summary: Delete a label + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Labels found by key + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified organizations id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get subscription labels by label key + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Label already exists and cannot be updated + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating organizations label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/organizations/{id}/summary_dashboard: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Summary' + description: A JSON array of metrics objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a summary of organizations clusters based on metrics + /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments: + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupAssignmentList' + description: A JSON array of account groups + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of account group assignments for the given org + post: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupAssignment' + description: New AccountGroup data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupAssignment' + description: Created AccountGroupAssignment successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the label + security: + - Bearer: [] + summary: Create a new AccountGroupAssignment + /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}: + delete: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of account group assignment + explode: false + in: path + name: acctGrpAsgnId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Account group assignment successfully deleted + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization or account group assignment with specified + id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the account group assignment + security: + - Bearer: [] + summary: Delete an account group assignment + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of account group assignment + explode: false + in: path + name: acctGrpAsgnId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupAssignment' + description: Account group assignment found + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get account group assignment by id + /api/accounts_mgmt/v1/organizations/{orgId}/account_groups: + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupList' + description: A JSON array of account groups + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of account groups for the given org + post: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupRequest' + description: New AccountGroup data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroup' + description: Created AccountGroup successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the label + security: + - Bearer: [] + summary: Create a new AccountGroup + /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}: + delete: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of account group + explode: false + in: path + name: acctGrpId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Account group successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization or account group with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the account group + security: + - Bearer: [] + summary: Delete an account group + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of account group + explode: false + in: path + name: acctGrpId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroup' + description: Account group found + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization or account group with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get account group by id + patch: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of account group + explode: false + in: path + name: acctGrpId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroupRequest' + description: Updated account group data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountGroup' + description: Account group updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No account group with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating account group + security: + - Bearer: [] + summary: Update an account group + /api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota: + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: If true, includes that ConsumedQuota should be recalculated. + explode: true + in: query + name: forceRecalc + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConsumedQuotaList' + description: A JSON array of ConsumedQuota objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Returns a list of consumed quota for an organization + /api/accounts_mgmt/v1/organizations/{orgId}/quota_cost: + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: If true, includes the related resources in the output. Could + slow request response time. + explode: true + in: query + name: fetchRelatedResources + required: false + schema: + type: boolean + style: form + - description: If true, includes that ConsumedQuota should be recalculated. + explode: true + in: query + name: forceRecalc + required: false + schema: + type: boolean + style: form + - description: If true, includes the marketplace cloud accounts in the output. + Could slow request response time. + explode: true + in: query + name: fetchCloudAccounts + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotaCostList' + description: A JSON array of QuotaCost objects + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Returns a summary of quota cost + tags: + - AppServices + /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuotaList' + description: A JSON array of ResourceQuota objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No organization with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Returns a list of resource quota objects + post: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuotaRequest' + description: Resource quota data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuota' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: ResourceQuota already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the resource quota + security: + - Bearer: [] + summary: Create a new resource quota + /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}: + delete: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of quota + explode: false + in: path + name: quotaId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Resource Quota successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No Resource Quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the Resource Quota + security: + - Bearer: [] + summary: Delete a resource quota + get: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of quota + explode: false + in: path + name: quotaId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuota' + description: Resource quota found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No resource quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Get a resource quota by id + patch: + parameters: + - description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + - description: The id of quota + explode: false + in: path + name: quotaId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuotaRequest' + description: Updated resource quota data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuota' + description: Resource Quota updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No resource quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating resource quota + security: + - Bearer: [] + summary: Update a resource quota + /api/accounts_mgmt/v1/plans: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PlanList' + description: Plans list + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get all plans + /api/accounts_mgmt/v1/plans/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Plan' + description: Plan found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No plan with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a plan by id + /api/accounts_mgmt/v1/pull_secrets: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PullSecretRequest' + description: Identifier of the resource in the external service that this + pull secret relates to + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessTokenCfg' + description: access token from registries in docker format + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Cannot find registry + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Return access token generated from registries in docker format + /api/accounts_mgmt/v1/pull_secrets/{externalResourceId}: + delete: + parameters: + - description: The external resource id of record + explode: false + in: path + name: externalResourceId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Pull secret successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to delete pull secret + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No Pull secret with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the pull secret + security: + - Bearer: [] + summary: Delete a pull secret + /api/accounts_mgmt/v1/quota_cost: + get: + parameters: + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: If true, includes the related resources in the output. Could + slow request response time. + explode: true + in: query + name: fetchRelatedResources + required: false + schema: + type: boolean + style: form + - description: If true, includes the marketplace cloud accounts in the output. + Could slow request response time. + explode: true + in: query + name: fetchCloudAccounts + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotaCostList' + description: A JSON array of QuotaCost objects + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Returns a summary of quota cost for the authenticated user + /api/accounts_mgmt/v1/quota_rules: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotaRulesList' + description: A JSON array of quota rules objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of UHC product Quota Rules + /api/accounts_mgmt/v1/quotas: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotaList' + description: A JSON array of quota objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of quotas + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Quota' + description: Quota data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Quota' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Quota already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating quota + security: + - Bearer: [] + summary: Create a new quota + /api/accounts_mgmt/v1/quotas/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Quota successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the quota + security: + - Bearer: [] + summary: Delete a quota + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Quota' + description: Quota found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a quota + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Quota' + description: Updated quota data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Quota' + description: Quota updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No quota with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating quota + security: + - Bearer: [] + summary: Update a quota + /api/accounts_mgmt/v1/registries: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryList' + description: A JSON array of registry objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of registries + /api/accounts_mgmt/v1/registries/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Registry' + description: Registry found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No registry with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get an registry by id + /api/accounts_mgmt/v1/registry_credentials: + get: + description: List Registry Credentials + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredentialList' + description: A JSON array of RegistryCredential objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not allowed to list RegistryCredentials + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredential' + description: Registry credential data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredential' + description: Registry credential created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not allowed to create RegistryCredentials + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: A RegistryCredential with this type already exists for this + user + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unable to create Registry Credential + security: + - Bearer: [] + summary: Request the creation of a registry credential + /api/accounts_mgmt/v1/registry_credentials/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Registry credential successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No registry credential with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the registry credential + security: + - Bearer: [] + summary: Delete a registry credential by id + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredential' + description: Registry credential found + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No registry credential with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a registry credentials by id + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredentialPatchRequest' + description: Updated registry credential data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCredential' + description: Registry credential updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not allowed to update registry credential or the specified + field(s) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No registry credential with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating registry credential + security: + - Bearer: [] + summary: Update a registry credential + /api/accounts_mgmt/v1/reserved_resources: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ReservedResourceList' + description: A JSON array of reserved resource objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of reserved resources + /api/accounts_mgmt/v1/resource_quota: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceQuotaList' + description: A JSON array of ResourceQuota objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred when getting this resource + security: + - Bearer: [] + summary: Returns a list of resource quota objects + /api/accounts_mgmt/v1/role_bindings: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBindingList' + description: A JSON array of role binding objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of role bindings + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBindingCreateRequest' + description: Role binding data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBinding' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Role binding already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating role binding + security: + - Bearer: [] + summary: Create a new role binding + /api/accounts_mgmt/v1/role_bindings/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Role binding successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No role binding with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the role binding + security: + - Bearer: [] + summary: Delete a role binding + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBinding' + description: Role binding found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No role binding with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a role binding + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBindingRequest' + description: Updated role binding data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleBinding' + description: Role Binding updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No role binding with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating role binding + security: + - Bearer: [] + summary: Update a role binding + /api/accounts_mgmt/v1/roles: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleList' + description: A JSON array of role objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of roles + /api/accounts_mgmt/v1/roles/{id}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Role' + description: Role found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No role with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a role by id + /api/accounts_mgmt/v1/self_entitlement/{product}: + post: + parameters: + - description: The product for self_entitlement. The supported products are + [rosa]. + explode: false + in: path + name: product + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SelfEntitlementStatus' + description: the requested entitlement already exists + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SelfEntitlementStatus' + description: the requested entitlement has been created or renewed + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Cannot find account or organization + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Create or renew the entitlement to support a product for the user's + organization. + /api/accounts_mgmt/v1/sku_rules: + get: + parameters: + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRulesList' + description: A JSON array of sku rules objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of UHC product SKU Rules + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRules' + description: Sku rule data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRules' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Sku rule already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating sku rule + security: + - Bearer: [] + summary: Create a new sku rule + /api/accounts_mgmt/v1/sku_rules/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Sku rule successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku rule with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the sku rule + security: + - Bearer: [] + summary: Delete a sku rule + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRules' + description: sku rules found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku rules with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a sku rules by id + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRules' + description: Updated sku rule data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuRules' + description: Sku rule updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku rule with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating sku rule + security: + - Bearer: [] + summary: Update a sku rule + /api/accounts_mgmt/v1/skus: + get: + deprecated: true + parameters: + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SkuList' + description: A JSON array of sku objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of UHC product SKUs + /api/accounts_mgmt/v1/skus/{id}: + get: + deprecated: true + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SKU' + description: sku found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No sku with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a sku by id + /api/accounts_mgmt/v1/subscriptions: + get: + parameters: + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: If true, includes the account reference information in the output. + Could slow request response time. + explode: true + in: query + name: fetchAccounts + required: false + schema: + type: boolean + style: form + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + - description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: |- + Specifies the criteria to filter the subscription resource based on their labels. + A label is represented as a `key=value` pair, + + ``` + labels = "foo=bar" + ``` + + and multiple labels are separated by comma, + + ``` + labels = "foo=bar,fooz=barz" + ``` + explode: true + in: query + name: labels + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionList' + description: A JSON array of subscription objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + - AccessToken: [] + summary: Returns a list of subscriptions + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionCreateRequest' + description: Subscription Creation data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Subscription already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating subscription + security: + - Bearer: [] + summary: Create a new subscription + /api/accounts_mgmt/v1/subscriptions/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + description: Subscription deprovisioned by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No subscription with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Deletes a subscription by id + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: If true, includes the account reference information in the output. + Could slow request response time. + explode: true + in: query + name: fetchAccounts + required: false + schema: + type: boolean + style: form + - description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + - description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + - description: If true, fetches, from the clusters service, the total numbers + of CPU's and sockets under an obligation, and includes in the output. Could + slow request response time. + explode: true + in: query + name: fetchCpuAndSocket + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: Subscription found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No subscription with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a subscription by id + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionPatchRequest' + description: Updated subscription data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: Subscription updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not allowed to update subscriptions or the specified field(s) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No subscription with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating subscription + security: + - Bearer: [] + summary: Update a subscription + /api/accounts_mgmt/v1/subscriptions/{id}/labels: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/LabelList' + description: A JSON array of label + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of labels + post: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "204": + description: Label successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified subscription id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the label + security: + - Bearer: [] + summary: Delete a label + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Labels found by key + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No label with specified key on specified subscription id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get subscription labels by label key + patch: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Label data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Label' + description: Created or updated label successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Label already exists and cannot be updated + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error updating subscription label + security: + - Bearer: [] + summary: Create a new label or update an existing label + /api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name}: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The name of the metric + explode: false + in: path + name: metric_name + required: true + schema: + type: string + style: simple + - description: |- + The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at + https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors. + It only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection. + For example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`: + + ``` + name=~'managed.*',channel='production' + ``` + + If the parameter isn't provided, or if the value is empty, then all the records will be returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionMetricList' + description: Metrics' data + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Metric name is invalid + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get subscription's metrics by metric name + /api/accounts_mgmt/v1/subscriptions/{id}/notify: + post: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationRequest' + description: The contents of the notification to send to the owner of a subscription + in addition to the set of template parameters which are sent automatically + ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + required: true + responses: + "202": + description: Notification created and queued to be sent soon + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Notify the owner of a subscription + /api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ReservedResourceList' + description: A JSON array of reserved resource objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of reserved resources + /api/accounts_mgmt/v1/subscriptions/{id}/support_cases: + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + responses: + "200": + description: A JSON array of support cases objects + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of open support creates opened against the external + cluster id of this subscrption + /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts: + get: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccountList' + description: A JSON array of account objects that are notification contacts + for this subscription + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of notification contacts for the given subscription + post: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationContactCreateRequest' + description: Add a notification contact by an account's username + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Account' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Notification contact already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating notification contact + security: + - Bearer: [] + summary: Add an account as a notification contact to this subscription + /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId}: + delete: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: The id of account + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + responses: + "200": + description: Notification contact deleted by subscription and account id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No notification contact with specified subscription and account + id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Deletes a notification contact by subscription and account id + /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}: + delete: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: The id of reserved resource + explode: false + in: path + name: reservedResourceId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Reserved resources deleted by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No reserved resources with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Delete reserved resources by id + get: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: The id of reserved resource + explode: false + in: path + name: reservedResourceId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ReservedResource' + description: Reserved resources found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No reserved resources with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get reserved resources by id + patch: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: The id of reserved resource + explode: false + in: path + name: reservedResourceId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ReservedResourcePatchRequest' + description: Updated reserved resource data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ReservedResource' + description: Reserved resources updated successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No reserved resources with specified id exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Update a reserved resource + /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings: + get: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + - description: Page number of record list when record list exceeds specified + page size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + - description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: If true, includes the account reference information in the output. + Could slow request response time. + explode: true + in: query + name: fetchAccounts + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRoleBindingList' + description: Subscription role bindings found, or none exist + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get subscription role bindings + post: + parameters: + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRoleBindingCreateRequest' + description: Subscription role binding data + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRoleBinding' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Subscription role binding already exists + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the subscription role + binding + security: + - Bearer: [] + summary: Create a new subscription role binding + /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}: + delete: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Subscription role binding successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No Subscription Role Binding with specified Id is accessible + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the Subscription Role + Binding + security: + - Bearer: [] + summary: Delete a subscription role binding + get: + parameters: + - description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRoleBinding' + description: Subscription Role Binding found by id + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No Subscription Role Binding with the specified id is accessible + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a Subscription Role Binding by id + /api/accounts_mgmt/v1/support_cases: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SupportCasesRequest' + description: The contents of the support case to be created + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/SupportCasesCreatedResponse' + description: Support case created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: create a support case for the subscription + /api/accounts_mgmt/v1/support_cases/{caseId}: + delete: + parameters: + - description: The id of a support case + explode: false + in: path + name: caseId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Support case successfully deleted + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: No support case with specified case id on specified subscription + id exists + "405": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Not allowed to close a case that is already closed + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred deleting the support case + security: + - Bearer: [] + summary: Delete a support case + /api/accounts_mgmt/v1/token_authorization: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenAuthorizationRequest' + description: Token authorization data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TokenAuthorizationResponse' + description: The account belongs to the user with the specified registry + credential token + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Registry credential token is invalid + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Other token authorization error + security: + - Bearer: [] + summary: Finds the account owner of the provided token + /api/authorizations/v1/access_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessReview' + description: Access review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action, non-existent resource type, or non-existent + account + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating access review + security: + - Bearer: [] + summary: Review an account's access to perform an action on a particular resource + or resource type + /api/authorizations/v1/capability_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CapabilityReviewRequest' + description: Capability review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CapabilityReview' + description: Successful review + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform capability reviews + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating capability review + security: + - Bearer: [] + summary: Review an account's capabilities + /api/authorizations/v1/export_control_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportControlReviewRequest' + description: Export control review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ExportControlReview' + description: Successful review + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating access review + security: + - Bearer: [] + summary: | + Determine whether a user is restricted from downloading Red Hat software based on export control compliance. + /api/authorizations/v1/feature_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureReview' + description: Feature review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating feature review + security: + - Bearer: [] + summary: Review feature to perform an action on it such as toggle a feature + on/off + /api/authorizations/v1/resource_review: + post: + deprecated: true + parameters: + - description: If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, + if those are already included in one of the organizations provided in organization_ids, + do not include it in the list. + explode: true + in: query + name: reduceClusterList + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceReviewRequest' + description: Resource review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ResourceReview' + description: Successful review + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform resource reviews + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action or non-existent resource type + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating access review + security: + - Bearer: [] + summary: Obtain resource ids for resources an account may perform the specified + action upon. Resource ids returned as ["*"] is shorthand for all ids. + /api/authorizations/v1/self_access_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SelfAccessReview' + description: Self access review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action or non-existent resource type + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating access review + security: + - Bearer: [] + summary: Review your ability to perform an action on a particular resource or + resource type + /api/authorizations/v1/self_feature_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SelfFeatureReview' + description: Self feature review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/FeatureReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating feature review + security: + - Bearer: [] + summary: Review your ability to toggle a feature + /api/authorizations/v1/self_resource_review: + post: + parameters: + - description: If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, + if those are already included in one of the organizations provided in organization_ids, + do not include it in the list. + explode: true + in: query + name: reduceClusterList + required: false + schema: + type: boolean + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SelfResourceReviewRequest' + description: Self resource review data + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SelfResourceReview' + description: Successful review + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform self resource reviews + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action or non-existent resource type + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating access review + security: + - Bearer: [] + summary: Obtain resource ids for resources you may perform the specified action + upon. Resource ids returned as ["*"] is shorthand for all ids. + /api/authorizations/v1/self_terms_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SelfTermsReview' + description: Data to check self terms for + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TermsReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action or non-existent resource type + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating terms review + security: + - Bearer: [] + summary: Review your status of Terms + tags: + - AppServices + /api/authorizations/v1/terms_review: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TermsReview' + description: Data to check terms for + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TermsReviewResponse' + description: Review successfully generated + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized to perform operation + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unsupported action, non-existent resource type, or non-existent + account + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred while generating terms review + security: + - Bearer: [] + summary: Review an account's status of Terms +components: + parameters: + accountId: + description: The id of account + explode: false + in: path + name: accountId + required: true + schema: + type: string + style: simple + acctGrpAsgnId: + description: The id of account group assignment + explode: false + in: path + name: acctGrpAsgnId + required: true + schema: + type: string + style: simple + acctGrpId: + description: The id of account group + explode: false + in: path + name: acctGrpId + required: true + schema: + type: string + style: simple + caseId: + description: The id of a support case + explode: false + in: path + name: caseId + required: true + schema: + type: string + style: simple + dryRun: + description: If true, instructs API to avoid making any changes, but rather + run through validations only. + explode: true + in: query + name: dryRun + required: false + schema: + type: boolean + style: form + externalResourceId: + description: The external resource id of record + explode: false + in: path + name: externalResourceId + required: true + schema: + type: string + style: simple + fetchAccounts: + description: If true, includes the account reference information in the output. + Could slow request response time. + explode: true + in: query + name: fetchAccounts + required: false + schema: + type: boolean + style: form + fetchCapabilities: + description: If true, includes the capabilities on a subscription in the output. + Could slow request response time. + explode: true + in: query + name: fetchCapabilities + required: false + schema: + type: boolean + style: form + fetchCloudAccounts: + description: If true, includes the marketplace cloud accounts in the output. + Could slow request response time. + explode: true + in: query + name: fetchCloudAccounts + required: false + schema: + type: boolean + style: form + fetchCpuAndSocket: + description: If true, fetches, from the clusters service, the total numbers + of CPU's and sockets under an obligation, and includes in the output. Could + slow request response time. + explode: true + in: query + name: fetchCpuAndSocket + required: false + schema: + type: boolean + style: form + fetchLabels: + description: If true, includes the labels on a subscription/organization/account + in the output. Could slow request response time. + explode: true + in: query + name: fetchLabels + required: false + schema: + type: boolean + style: form + fetchRelatedResources: + description: If true, includes the related resources in the output. Could slow + request response time. + explode: true + in: query + name: fetchRelatedResources + required: false + schema: + type: boolean + style: form + fetchRhit: + description: If true, includes the RHIT account_id in the output. Could slow + request response time. + explode: true + in: query + name: fetchRhit + required: false + schema: + type: boolean + style: form + fields: + description: |- + Supplies a comma-separated list of fields to be returned. + Fields of sub-structures and of arrays use . notation. + .* means all field of a structure + Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) + + ``` + ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true + ``` + explode: true + in: query + name: fields + required: false + schema: + type: string + style: form + forceRecalc: + description: If true, includes that ConsumedQuota should be recalculated. + explode: true + in: query + name: forceRecalc + required: false + schema: + type: boolean + style: form + id: + description: The id of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + key: + description: The key of the label + explode: false + in: path + name: key + required: true + schema: + type: string + style: simple + labels: + description: |- + Specifies the criteria to filter the subscription resource based on their labels. + A label is represented as a `key=value` pair, + + ``` + labels = "foo=bar" + ``` + + and multiple labels are separated by comma, + + ``` + labels = "foo=bar,fooz=barz" + ``` + explode: true + in: query + name: labels + required: false + schema: + type: string + style: form + metricName: + description: The name of the metric + explode: false + in: path + name: metric_name + required: true + schema: + type: string + style: simple + metricSearch: + description: |- + The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at + https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors. + It only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection. + For example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`: + + ``` + name=~'managed.*',channel='production' + ``` + + If the parameter isn't provided, or if the value is empty, then all the records will be returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + orderBy: + description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the _order by_ clause of an SQL statement, + but using the names of the json attributes / column of the account. + For example, in order to retrieve all accounts ordered by username: + + ```sql + username asc + ``` + + Or in order to retrieve all accounts ordered by username _and_ first name: + + ```sql + username asc, firstName asc + ``` + + If the parameter isn't provided, or if the value is empty, then + no explicit ordering will be applied. + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + orgId: + description: The id of organization + explode: false + in: path + name: orgId + required: true + schema: + type: string + style: simple + page: + description: Page number of record list when record list exceeds specified page + size + explode: true + in: query + name: page + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + product: + description: The product for self_entitlement. The supported products are [rosa]. + explode: false + in: path + name: product + required: true + schema: + type: string + style: simple + quotaId: + description: The id of quota + explode: false + in: path + name: quotaId + required: true + schema: + type: string + style: simple + reduceClusterList: + description: If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, + if those are already included in one of the organizations provided in organization_ids, + do not include it in the list. + explode: true + in: query + name: reduceClusterList + required: false + schema: + type: boolean + style: form + reservedResourceId: + description: The id of reserved resource + explode: false + in: path + name: reservedResourceId + required: true + schema: + type: string + style: simple + search: + description: |- + Specifies the search criteria. The syntax of this parameter is + similar to the syntax of the _where_ clause of an SQL statement, + using the names of the json attributes / column names of the account. + For example, in order to retrieve all the accounts with a username + starting with `my`: + + ```sql + username like 'my%' + ``` + + The search criteria can also be applied on related resource. + For example, in order to retrieve all the subscriptions labeled by `foo=bar`, + + ```sql + labels.key = 'foo' and labels.value = 'bar' + ``` + + If the parameter isn't provided, or if the value is empty, then + all the accounts that the user has permission to see will be + returned. + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + size: + description: Maximum number of records to return + explode: true + in: query + name: size + required: false + schema: + default: 100 + minimum: 0 + type: integer + style: form + subId: + description: The id of subscription + explode: false + in: path + name: subId + required: true + schema: + type: string + style: simple + schemas: + AccessReview: + example: + subscription_id: subscription_id + cluster_id: cluster_id + cluster_uuid: cluster_uuid + account_username: account_username + organization_id: organization_id + resource_type: AddOn + action: get + properties: + account_username: + type: string + action: + enum: + - get + - list + - create + - delete + - update + type: string + cluster_id: + type: string + cluster_uuid: + type: string + organization_id: + type: string + resource_type: + enum: + - AddOn + - Flavour + - Account + - AccountPool + - Cluster + - Plan + - Subscription + - Organization + - Role + - Permission + - RoleBinding + - Registry + - RegistryCredential + - CurrentAccount + - AccessReview + - SelfAcccessReview + - ResourceReview + - SelfResourceReview + - ClusterRegistration + - AccessToken + - ClusterAuthorization + - SelfManagedCluster + - RedhatManagedCluster + - ExportControlReview + - ClusterLog + - ClusterCredential + - ClusterMetric + - ResourceQuota + - ReservedResource + - Dashboard + - ClusterProviderAndRegion + - ServiceLog + - InternalServiceLog + - CSLogs + - SubscriptionLabel + - OrganizationLabel + - SubscriptionLabelInternal + - SelfAccessReview + - SubscriptionInternal + - SubscriptionRoleBinding + type: string + subscription_id: + type: string + required: + - account_username + - action + - resource_type + type: object + AccessReviewResponse: + example: + subscription_id: subscription_id + cluster_id: cluster_id + account_id: account_id + cluster_uuid: cluster_uuid + allowed: true + organization_id: organization_id + resource_type: AddOn + action: get + properties: + account_id: + type: string + action: + enum: + - get + - list + - create + - delete + - update + type: string + allowed: + type: boolean + cluster_id: + type: string + cluster_uuid: + type: string + organization_id: + type: string + resource_type: + enum: + - AddOn + - Flavour + - Account + - AccountPool + - Cluster + - Plan + - Subscription + - Organization + - Role + - Permission + - RoleBinding + - Registry + - RegistryCredential + - CurrentAccount + - AccessReview + - SelfAcccessReview + - ResourceReview + - SelfResourceReview + - ClusterRegistration + - AccessToken + - ClusterAuthorization + - SelfManagedCluster + - RedhatManagedCluster + - ExportControlReview + - ClusterLog + - ClusterCredential + - ClusterMetric + - ResourceQuota + - ReservedResource + - Dashboard + - ClusterProviderAndRegion + - ServiceLog + - InternalServiceLog + - CSLogs + - SubscriptionLabel + - OrganizationLabel + - SubscriptionLabelInternal + - SelfAccessReview + - SubscriptionInternal + - SubscriptionRoleBinding + type: string + subscription_id: + type: string + required: + - allowed + type: object + AccessTokenCfg: + example: + auths: + key: '{}' + properties: + auths: + additionalProperties: true + type: object + required: + - auths + type: object + Account: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Account_allOf' + AccountGroup: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/AccountGroup_allOf' + AccountGroupAssignment: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/AccountGroupAssignment_allOf' + AccountGroupAssignmentList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/AccountGroupAssignmentList_allOf' + AccountGroupList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/AccountGroupList_allOf' + AccountGroupRequest: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/AccountGroupRequest_allOf' + AccountList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/AccountList_allOf' + AccountPatchRequest: + example: + service_account: true + ban_code: ban_code + organization_id: organization_id + last_name: last_name + ban_description: ban_description + banned: true + first_name: first_name + email: email + properties: + ban_code: + type: string + ban_description: + type: string + banned: + type: boolean + email: + format: email + type: string + first_name: + type: string + last_name: + type: string + organization_id: + type: string + service_account: + type: boolean + type: object + AccountReference: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/AccountReference_allOf' + Capability: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Capability_allOf' + CapabilityReview: + example: + result: result + properties: + result: + type: string + required: + - result + type: object + CapabilityReviewRequest: + example: + subscription_id: subscription_id + capability: manage_cluster_admin + cluster_id: cluster_id + account_username: account_username + organization_id: organization_id + type: Cluster + properties: + account_username: + type: string + capability: + enum: + - manage_cluster_admin + type: string + cluster_id: + type: string + organization_id: + type: string + subscription_id: + type: string + type: + enum: + - Cluster + type: string + required: + - account_username + - capability + - type + type: object + Certificate: + example: + metadata: + key: metadata + serial: + serial: 6 + created: 2000-01-23T04:56:07.000+00:00 + expiration: 2000-01-23T04:56:07.000+00:00 + id: 0 + updated: 2000-01-23T04:56:07.000+00:00 + organization_id: organization_id + cert: cert + id: id + key: key + properties: + cert: + type: string + id: + type: string + key: + type: string + metadata: + additionalProperties: + type: string + type: object + organization_id: + type: string + serial: + $ref: '#/components/schemas/CertificateSerial' + required: + - cert + - id + - key + - metadata + - organization_id + - serial + type: object + CertificateSerial: + example: + serial: 6 + created: 2000-01-23T04:56:07.000+00:00 + expiration: 2000-01-23T04:56:07.000+00:00 + id: 0 + updated: 2000-01-23T04:56:07.000+00:00 + properties: + created: + format: date-time + type: string + expiration: + format: date-time + type: string + id: + format: int64 + type: integer + serial: + format: int64 + type: integer + updated: + format: date-time + type: string + required: + - created + - expiration + - id + - serial + - updated + type: object + CertificatesRequest: + example: + arch: x86 + type: sca + properties: + arch: + enum: + - x86 + - x86_64 + - ppc + - ppc64 + - ppc64le + - s390 + - s390x + - ia64 + - aarch64 + type: string + type: + enum: + - sca + type: string + required: + - type + type: object + CloudAccount: + properties: + cloud_account_id: + type: string + cloud_provider_id: + type: string + type: object + CloudResource: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/CloudResource_allOf' + CloudResourceList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/CloudResourceList_allOf' + ClusterAuthorizationRequest: + example: + availability_zone: availability_zone + byoc: true + resources: + - null + - null + display_name: display_name + cloud_account_id: cloud_account_id + cluster_id: cluster_id + disconnected: true + managed: true + account_username: account_username + product_id: osd + reserve: true + cloud_provider_id: cloud_provider_id + quota_version: quota_version + external_cluster_id: external_cluster_id + product_category: assistedInstall + properties: + account_username: + type: string + availability_zone: + type: string + byoc: + type: boolean + cloud_account_id: + type: string + cloud_provider_id: + type: string + cluster_id: + type: string + disconnected: + type: boolean + display_name: + type: string + external_cluster_id: + type: string + managed: + type: boolean + product_category: + enum: + - assistedInstall + type: string + product_id: + default: osd + enum: + - ocp + - osd + - osdtrial + - moa + - rhmi + type: string + quota_version: + type: string + reserve: + type: boolean + resources: + items: + $ref: '#/components/schemas/ReservedResource' + type: array + required: + - account_username + - cluster_id + type: object + ClusterAuthorizationResponse: + example: + allowed: true + organization_id: organization_id + subscription: + kind: kind + href: href + id: id + excess_resources: + - null + - null + properties: + allowed: + type: boolean + excess_resources: + items: + $ref: '#/components/schemas/ExcessResource' + type: array + organization_id: + type: string + subscription: + $ref: '#/components/schemas/ObjectReference' + required: + - allowed + - excess_resources + type: object + ClusterMetricsNodes: + properties: + compute: + type: double + infra: + type: double + master: + type: double + total: + type: double + type: object + ClusterRegistrationRequest: + example: + cluster_id: cluster_id + authorization_token: authorization_token + properties: + authorization_token: + type: string + cluster_id: + type: string + type: object + ClusterRegistrationResponse: + example: + cluster_id: cluster_id + account_id: account_id + expires_at: expires_at + authorization_token: authorization_token + properties: + account_id: + type: string + authorization_token: + type: string + cluster_id: + type: string + expires_at: + description: Cluster Registration expiration in Unix time + type: string + type: object + ClusterResource: + properties: + total: + $ref: '#/components/schemas/ClusterResource_total' + updated_timestamp: + format: date-time + type: string + used: + $ref: '#/components/schemas/ClusterResource_total' + required: + - total + - updated_timestamp + - used + type: object + ClusterTransfer: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ClusterTransfer_allOf' + ClusterTransferList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ClusterTransferList_allOf' + ClusterTransferPatchRequest: + example: + status: status + properties: + status: + type: string + type: object + ClusterTransferRequest: + example: + owner: owner + cluster_uuid: cluster_uuid + recipient: recipient + properties: + cluster_uuid: + type: string + owner: + type: string + recipient: + type: string + type: object + ClusterUpgrade: + properties: + available: + type: boolean + state: + type: string + updated_timestamp: + format: date-time + type: string + version: + type: string + type: object + ConsumedQuota: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConsumedQuota_allOf' + ConsumedQuotaList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConsumedQuotaList_allOf' + DeletedSubscription: + allOf: + - $ref: '#/components/schemas/SubscriptionCommonFields' + - $ref: '#/components/schemas/DeletedSubscription_allOf' + DeletedSubscriptionList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/DeletedSubscriptionList_allOf' + EphemeralResourceQuota: + properties: + availability_zone_type: + type: string + byoc: + type: boolean + resource_name: + type: string + resource_type: + type: string + sku: + type: string + sku_count: + type: integer + type: object + Error: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Error_allOf' + ErrorList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ErrorList_allOf' + ExcessResource: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ExcessResource_allOf' + ExportControlReview: + example: + restricted: true + properties: + restricted: + type: boolean + required: + - restricted + type: object + ExportControlReviewRequest: + example: + ignore_cache: true + account_username: account_username + properties: + account_username: + type: string + ignore_cache: + type: boolean + required: + - account_username + type: object + FeatureReview: + example: + feature: feature + account_username: account_username + organization_id: organization_id + properties: + account_username: + type: string + feature: + type: string + organization_id: + type: string + required: + - feature + type: object + FeatureReviewResponse: + example: + feature_id: feature_id + enabled: false + properties: + enabled: + default: false + type: boolean + feature_id: + type: string + required: + - enabled + - feature_id + type: object + FeatureToggle: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/FeatureToggle_allOf' + FeatureToggleQueryRequest: + allOf: + - $ref: '#/components/schemas/FeatureToggleQueryRequest_allOf' + Label: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Label_allOf' + LabelList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/LabelList_allOf' + LandingPageCTLItem: + example: + shape: + link: + href: href + title: title + description: description + title: title + properties: + shape: + $ref: '#/components/schemas/LandingPageCTLItem_shape' + type: object + LandingPageEstateItem: + example: + shape: + href: href + title: title + count: 0 + id: id + properties: + count: + format: int64 + type: integer + id: + type: string + shape: + $ref: '#/components/schemas/LandingPageLinkShape' + type: object + LandingPageLinkShape: + example: + href: href + title: title + properties: + href: + type: string + title: + type: string + type: object + List: + properties: + kind: + type: string + page: + type: integer + size: + type: integer + total: + type: integer + required: + - items + - kind + - page + - size + - total + type: object + Metric: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Metric_allOf' + MetricsList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/MetricsList_allOf' + NotificationContactCreateRequest: + example: + account_identifier: account_identifier + properties: + account_identifier: + type: string + type: object + NotificationRequest: + example: + internal_only: true + subscription_id: subscription_id + cluster_id: cluster_id + template_name: template_name + include_red_hat_associates: true + template_parameters: + - name: name + content: content + - name: name + content: content + cluster_uuid: cluster_uuid + bcc_address: bcc_address + subject: subject + properties: + bcc_address: + type: string + cluster_id: + type: string + cluster_uuid: + type: string + include_red_hat_associates: + type: boolean + internal_only: + type: boolean + subject: + type: string + subscription_id: + type: string + template_name: + type: string + template_parameters: + items: + $ref: '#/components/schemas/TemplateParameter' + type: array + required: + - template_name + type: object + ObjectReference: + example: + kind: kind + href: href + id: id + properties: + href: + type: string + id: + type: string + kind: + type: string + type: object + OneMetric: + properties: + arch: + type: string + channel_info: + type: string + cloud_provider: + type: string + cluster_type: + type: string + compute_nodes_cpu: + $ref: '#/components/schemas/ClusterResource' + compute_nodes_memory: + $ref: '#/components/schemas/ClusterResource' + compute_nodes_sockets: + $ref: '#/components/schemas/ClusterResource' + console_url: + type: string + cpu: + $ref: '#/components/schemas/ClusterResource' + critical_alerts_firing: + type: double + health_state: + enum: + - healthy + - unhealthy + - unknown + type: string + memory: + $ref: '#/components/schemas/ClusterResource' + nodes: + $ref: '#/components/schemas/ClusterMetricsNodes' + non_virt_nodes: + type: double + openshift_version: + type: string + operating_system: + type: string + operators_condition_failing: + type: double + query_timestamp: + format: date-time + type: string + region: + type: string + sockets: + $ref: '#/components/schemas/ClusterResource' + state: + type: string + state_description: + type: string + storage: + $ref: '#/components/schemas/ClusterResource' + subscription_cpu_total: + type: double + subscription_obligation_exists: + type: double + subscription_socket_total: + type: double + upgrade: + $ref: '#/components/schemas/ClusterUpgrade' + required: + - HealthState + - cloud_provider + - cluster_type + - compute_nodes_cpu + - compute_nodes_memory + - compute_nodes_sockets + - console_url + - cpu + - critical_alerts_firing + - memory + - nodes + - non_virt_nodes + - openshift_version + - operating_system + - operators_condition_failing + - region + - sockets + - state + - state_description + - storage + - subscription_cpu_total + - subscription_obligation_exists + - subscription_socket_total + - upgrade + type: object + Organization: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Organization_allOf' + OrganizationList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/OrganizationList_allOf' + OrganizationPatchRequest: + example: + ebs_account_id: ebs_account_id + name: name + external_id: external_id + properties: + ebs_account_id: + type: string + external_id: + type: string + name: + type: string + type: object + Permission: + allOf: + - $ref: '#/components/schemas/Permission_allOf' + PermissionList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/PermissionList_allOf' + Plan: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Plan_allOf' + PlanList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/PlanList_allOf' + PullSecretRequest: + example: + external_resource_id: external_resource_id + properties: + external_resource_id: + type: string + required: + - external_resource_id + type: object + Quota: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Quota_allOf' + QuotaCost: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/QuotaCost_allOf' + QuotaCostList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/QuotaCostList_allOf' + QuotaList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/QuotaList_allOf' + QuotaRules: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/QuotaRules_allOf' + QuotaRulesList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/QuotaRulesList_allOf' + Registry: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Registry_allOf' + RegistryAddress: + additionalProperties: + properties: + auth: + type: string + email: + format: email + type: string + type: object + type: object + RegistryCreateRequest: + allOf: + - $ref: '#/components/schemas/RegistryRequest' + - required: + - name + - type + - url + type: object + RegistryCredential: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/RegistryCredential_allOf' + RegistryCredentialList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RegistryCredentialList_allOf' + RegistryCredentialPatchRequest: + example: + account_id: account_id + external_resource_id: external_resource_id + registry_id: registry_id + token: token + username: username + properties: + account_id: + type: string + external_resource_id: + type: string + registry_id: + type: string + token: + type: string + username: + type: string + type: object + RegistryList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RegistryList_allOf' + RegistryRequest: + properties: + cloudAlias: + type: boolean + name: + type: string + org_name: + type: string + team_name: + type: string + type: + type: string + url: + type: string + type: object + RelatedResource: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/RelatedResource_allOf' + ReservedResource: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ReservedResource_allOf' + ReservedResourceList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ReservedResourceList_allOf' + ReservedResourcePatchRequest: + example: + billing_model: billing_model + properties: + billing_model: + type: string + type: object + ResourceQuota: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ResourceQuota_allOf' + ResourceQuotaList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ResourceQuotaList_allOf' + ResourceQuotaRequest: + example: + sku_count: 0 + sku: sku + type: Config + properties: + sku: + type: string + sku_count: + type: integer + type: + enum: + - Config + - Manual + - Subscription + type: string + required: + - count + - sku + - sku_count + type: object + ResourceReview: + example: + subscription_ids: + - subscription_ids + - subscription_ids + account_username: account_username + cluster_uuids: + - cluster_uuids + - cluster_uuids + resource_type: Cluster + action: get + cluster_ids: + - cluster_ids + - cluster_ids + organization_ids: + - organization_ids + - organization_ids + properties: + account_username: + type: string + action: + enum: + - get + - list + - create + - delete + - update + type: string + cluster_ids: + items: + type: string + type: array + cluster_uuids: + items: + type: string + type: array + organization_ids: + items: + type: string + type: array + resource_type: + enum: + - Cluster + - Subscription + type: string + subscription_ids: + items: + type: string + type: array + required: + - account_username + - action + - cluster_ids + - cluster_uuids + - organization_ids + - resource_type + - subscription_ids + type: object + ResourceReviewRequest: + example: + account_username: account_username + resource_type: Cluster + action: get + properties: + account_username: + type: string + action: + enum: + - get + - delete + - update + type: string + resource_type: + enum: + - Cluster + - Subscription + type: string + type: object + Role: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Role_allOf' + RoleBinding: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/RoleBinding_allOf' + RoleBindingCreateRequest: + allOf: + - $ref: '#/components/schemas/RoleBindingRequest' + - required: + - role_id + - type + RoleBindingList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RoleBindingList_allOf' + RoleBindingRequest: + example: + subscription_id: subscription_id + account_id: account_id + managed_by: managed_by + role_id: role_id + organization_id: organization_id + account_group_id: account_group_id + config_managed: true + type: type + properties: + account_group_id: + type: string + account_id: + type: string + config_managed: + type: boolean + managed_by: + type: string + organization_id: + type: string + role_id: + type: string + subscription_id: + type: string + type: + type: string + type: object + RoleList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RoleList_allOf' + SKU: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/SKU_allOf' + SelfAccessReview: + example: + subscription_id: subscription_id + cluster_id: cluster_id + cluster_uuid: cluster_uuid + organization_id: organization_id + resource_type: AddOn + action: get + properties: + action: + enum: + - get + - list + - create + - delete + - update + type: string + cluster_id: + type: string + cluster_uuid: + type: string + organization_id: + type: string + resource_type: + enum: + - AddOn + - Flavour + - Account + - AccountPool + - Cluster + - Plan + - Subscription + - Organization + - Role + - Permission + - RoleBinding + - Registry + - RegistryCredential + - CurrentAccount + - AccessReview + - SelfAcccessReview + - ResourceReview + - SelfResourceReview + - ClusterRegistration + - AccessToken + - ClusterAuthorization + - SelfManagedCluster + - RedhatManagedCluster + - ExportControlReview + - ClusterLog + - ClusterCredential + - ClusterMetric + - ResourceQuota + - ReservedResource + - Dashboard + - ClusterProviderAndRegion + - ServiceLog + - InternalServiceLog + - CSLogs + - SubscriptionLabel + - OrganizationLabel + - SubscriptionLabelInternal + - SelfAccessReview + - SubscriptionInternal + - SubscriptionRoleBinding + type: string + subscription_id: + type: string + required: + - action + - resource_type + type: object + SelfEntitlementStatus: + example: + product: product + status: status + properties: + product: + type: string + status: + type: string + type: object + SelfFeatureReview: + example: + feature: feature + properties: + feature: + type: string + required: + - feature + type: object + SelfResourceReview: + example: + subscription_ids: + - subscription_ids + - subscription_ids + cluster_uuids: + - cluster_uuids + - cluster_uuids + resource_type: Cluster + action: get + cluster_ids: + - cluster_ids + - cluster_ids + organization_ids: + - organization_ids + - organization_ids + properties: + action: + enum: + - get + - list + - create + - delete + - update + type: string + cluster_ids: + items: + type: string + type: array + cluster_uuids: + items: + type: string + type: array + organization_ids: + items: + type: string + type: array + resource_type: + enum: + - Cluster + - Subscription + type: string + subscription_ids: + items: + type: string + type: array + required: + - action + - cluster_ids + - cluster_uuids + - organization_ids + - resource_type + - subscription_ids + type: object + SelfResourceReviewRequest: + example: + resource_type: Cluster + action: get + properties: + action: + enum: + - get + - delete + - update + type: string + resource_type: + enum: + - Cluster + - Subscription + type: string + type: object + SelfServiceLandingPageSchema: + example: + estate: + items: + - shape: + href: href + title: title + count: 0 + id: id + - shape: + href: href + title: title + count: 0 + id: id + configTryLearn: + try: + - shape: + link: + href: href + title: title + description: description + title: title + - shape: + link: + href: href + title: title + description: description + title: title + configure: + - shape: + link: + href: href + title: title + description: description + title: title + - shape: + link: + href: href + title: title + description: description + title: title + properties: + configTryLearn: + $ref: '#/components/schemas/SelfServiceLandingPageSchema_configTryLearn' + estate: + $ref: '#/components/schemas/SelfServiceLandingPageSchema_estate' + type: object + SelfTermsReview: + example: + check_optional_terms: true + event_code: event_code + site_code: site_code + properties: + check_optional_terms: + default: true + type: boolean + event_code: + type: string + site_code: + type: string + type: object + SkuList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/SkuList_allOf' + SkuRules: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/SkuRules_allOf' + SkuRulesList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/SkuRulesList_allOf' + Subscription: + allOf: + - $ref: '#/components/schemas/SubscriptionCommonFields' + - $ref: '#/components/schemas/Subscription_allOf' + SubscriptionCommonFields: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/SubscriptionCommonFields_allOf' + SubscriptionCreateRequest: + example: + cluster_uuid: cluster_uuid + console_url: console_url + display_name: display_name + plan_id: OCP + status: Disconnected + properties: + cluster_uuid: + type: string + console_url: + type: string + display_name: + type: string + plan_id: + enum: + - OCP + type: string + status: + enum: + - Disconnected + type: string + required: + - cluster_uuid + - plan_id + - status + type: object + SubscriptionList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/SubscriptionList_allOf' + SubscriptionMetric: + allOf: + - $ref: '#/components/schemas/SubscriptionMetric_allOf' + SubscriptionMetricList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/SubscriptionMetricList_allOf' + SubscriptionPatchRequest: + example: + usage: Production + cpu_total: 0 + trial_end_date: 2000-01-23T04:56:07.000+00:00 + product_bundle: Openshift + consumer_uuid: consumer_uuid + cloud_account_id: cloud_account_id + cluster_id: cluster_id + provenance: provenance + managed: true + billing_expiration_date: 2000-01-23T04:56:07.000+00:00 + system_units: Cores/vCPU + external_cluster_id: external_cluster_id + released: true + service_level: L1-L3 + region_id: region_id + support_level: Eval + display_name: display_name + socket_total: 6 + console_url: console_url + organization_id: organization_id + creator_id: creator_id + cloud_provider_id: cloud_provider_id + cluster_billing_model: standard + plan_id: plan_id + status: status + properties: + billing_expiration_date: + format: date-time + type: string + cloud_account_id: + type: string + cloud_provider_id: + type: string + cluster_billing_model: + enum: + - standard + - marketplace + - marketplace-aws + - marketplace-azure + - marketplace-rhm + type: string + cluster_id: + type: string + console_url: + type: string + consumer_uuid: + type: string + cpu_total: + type: integer + creator_id: + type: string + display_name: + type: string + external_cluster_id: + type: string + managed: + type: boolean + organization_id: + type: string + plan_id: + type: string + product_bundle: + enum: + - Openshift + - JBoss-Middleware + - IBM-CloudPak + type: string + provenance: + type: string + region_id: + type: string + released: + type: boolean + service_level: + enum: + - L1-L3 + - L3-only + type: string + socket_total: + type: integer + status: + type: string + support_level: + enum: + - Eval + - Standard + - Premium + - Self-Support + - None + type: string + system_units: + enum: + - Cores/vCPU + - Sockets + type: string + trial_end_date: + format: date-time + type: string + usage: + enum: + - Production + - Development/Test + - Disaster Recovery + - Academic + type: string + type: object + SubscriptionRoleBinding: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/SubscriptionRoleBinding_allOf' + SubscriptionRoleBindingCreateRequest: + example: + role_id: role_id + account_username: account_username + properties: + account_username: + type: string + role_id: + type: string + required: + - account_username + - role_id + type: object + SubscriptionRoleBindingList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/SubscriptionRoleBindingList_allOf' + Summary: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Summary_allOf' + SummaryMetrics: + allOf: + - $ref: '#/components/schemas/SummaryMetrics_allOf' + SummaryVector: + allOf: + - $ref: '#/components/schemas/SummaryVector_allOf' + SupportCasesCreatedResponse: + example: + severity: severity + subscription_id: subscription_id + summary: summary + cluster_id: cluster_id + cluster_uuid: cluster_uuid + caseNumber: caseNumber + description: description + uri: uri + status: status + properties: + caseNumber: + type: string + cluster_id: + type: string + cluster_uuid: + type: string + description: + type: string + severity: + type: string + status: + type: string + subscription_id: + type: string + summary: + type: string + uri: + type: string + type: object + SupportCasesRequest: + example: + severity: 1 (Urgent) + summary: summary + account_number: account_number + product: OpenShift Container Platform + description: description + contact_sso_name: contact_sso_name + version: "4.10" + case_language: case_language + openshift_cluster_id: openshift_cluster_id + subscription_id: subscription_id + event_stream_id: event_stream_id + cluster_id: cluster_id + cluster_uuid: cluster_uuid + properties: + account_number: + type: string + case_language: + type: string + cluster_id: + type: string + cluster_uuid: + type: string + contact_sso_name: + type: string + description: + type: string + event_stream_id: + type: string + openshift_cluster_id: + type: string + product: + default: OpenShift Container Platform + type: string + severity: + enum: + - 1 (Urgent) + - 2 (High) + - 3 (Normal) + - 4 (Low) + type: string + subscription_id: + type: string + summary: + type: string + version: + default: "4.10" + type: string + required: + - description + - severity + - summary + type: object + TemplateParameter: + example: + name: name + content: content + properties: + content: + type: string + name: + type: string + required: + - content + - name + type: object + TermsReview: + example: + check_optional_terms: true + event_code: event_code + account_username: account_username + site_code: site_code + properties: + account_username: + type: string + check_optional_terms: + default: true + type: boolean + event_code: + type: string + site_code: + type: string + required: + - account_username + type: object + TermsReviewResponse: + example: + account_id: account_id + terms_available: true + organization_id: organization_id + terms_required: true + redirect_url: redirect_url + properties: + account_id: + type: string + organization_id: + type: string + redirect_url: + type: string + terms_available: + type: boolean + terms_required: + type: boolean + required: + - account_id + - organization_id + - terms_available + - terms_required + type: object + TokenAuthorizationRequest: + example: + authorization_token: authorization_token + properties: + authorization_token: + type: string + type: object + TokenAuthorizationResponse: + example: {} + properties: + account: + $ref: '#/components/schemas/Account' + type: object + Account_allOf: + properties: + ban_code: + type: string + ban_description: + type: string + banned: + default: false + type: boolean + capabilities: + items: + $ref: '#/components/schemas/Capability' + type: array + created_at: + format: date-time + type: string + email: + format: email + type: string + first_name: + type: string + labels: + items: + $ref: '#/components/schemas/Label' + type: array + last_name: + type: string + organization: + $ref: '#/components/schemas/Organization' + organization_id: + type: string + rhit_account_id: + type: string + rhit_web_user_id: + type: string + service_account: + default: false + type: boolean + updated_at: + format: date-time + type: string + username: + type: string + required: + - username + type: object + AccountGroup_allOf: + properties: + created_at: + format: date-time + type: string + description: + type: string + managed_by: + enum: + - SSO + - OCM + type: string + name: + type: string + organization_id: + type: string + updated_at: + format: date-time + type: string + required: + - description + - managed_by + - name + - organization_id + type: object + AccountGroupAssignment_allOf: + properties: + account_group_id: + type: string + account_id: + type: string + created_at: + format: date-time + type: string + updated_at: + format: date-time + type: string + required: + - account_group_id + - account_id + type: object + AccountGroupAssignmentList_allOf: + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/AccountGroupAssignment' + type: array + type: object + AccountGroupList_allOf: + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/AccountGroup' + type: array + type: object + AccountGroupRequest_allOf: + properties: + description: + type: string + name: + type: string + required: + - description + - name + type: object + AccountList_allOf: + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/Account' + type: array + type: object + AccountReference_allOf: + properties: + email: + type: string + name: + type: string + username: + type: string + type: object + Capability_allOf: + properties: + inherited: + type: boolean + name: + type: string + value: + type: string + required: + - inherited + - name + - value + type: object + CloudResource_allOf: + properties: + active: + default: true + type: boolean + category: + type: string + category_pretty: + type: string + cloud_provider: + type: string + cpu_cores: + type: integer + created_at: + format: date-time + type: string + generic_name: + type: string + memory: + format: int64 + type: integer + memory_pretty: + type: string + name_pretty: + type: string + resource_type: + enum: + - addon + - compute.node + - cluster + - network.io + - network.loadbalancer + - pv.storage + type: string + size_pretty: + type: string + updated_at: + format: date-time + type: string + type: object + CloudResourceList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/CloudResource' + type: array + type: object + ClusterResource_total: + properties: + unit: + type: string + value: + type: double + required: + - unit + - value + type: object + ClusterTransfer_allOf: + properties: + cluster_uuid: + type: string + created_at: + format: date-time + type: string + expiration_date: + format: date-time + type: string + owner: + type: string + recipient: + type: string + secret: + type: string + status: + enum: + - Pending + - Accepted + - Declined + - Rescinded + - Completed + type: string + updated_at: + format: date-time + type: string + type: object + ClusterTransferList_allOf: + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/ClusterTransfer' + type: array + type: object + ConsumedQuota_allOf: + properties: + availability_zone_type: + type: string + billing_model: + type: string + byoc: + type: boolean + cloud_provider_id: + type: string + count: + type: integer + organization_id: + type: string + plan_id: + type: string + resource_name: + type: string + resource_type: + type: string + version: + type: string + required: + - byoc + - count + type: object + ConsumedQuotaList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ConsumedQuota' + type: array + type: object + DeletedSubscription_allOf: + properties: + created_at: + format: date-time + type: string + id: + type: string + metrics: + type: string + query_timestamp: + format: date-time + type: string + type: object + DeletedSubscriptionList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/DeletedSubscription' + type: array + type: object + Error_allOf: + properties: + code: + type: string + operation_id: + type: string + reason: + type: string + type: object + ErrorList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Error' + type: array + type: object + ExcessResource_allOf: + properties: + availability_zone_type: + type: string + billing_model: + type: string + byoc: + type: boolean + count: + type: integer + resource_name: + type: string + resource_type: + type: string + required: + - byoc + type: object + FeatureToggle_allOf: + properties: + enabled: + default: false + type: boolean + required: + - enabled + type: object + FeatureToggleQueryRequest_allOf: + properties: + organization_id: + type: string + required: + - organization_id + type: object + Label_allOf: + properties: + account_id: + type: string + created_at: + format: date-time + type: string + internal: + type: boolean + key: + type: string + organization_id: + type: string + subscription_id: + type: string + type: + type: string + updated_at: + format: date-time + type: string + value: + type: string + required: + - internal + - key + - value + type: object + LabelList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Label' + type: array + type: object + LandingPageCTLItem_shape: + example: + link: + href: href + title: title + description: description + title: title + properties: + description: + type: string + link: + $ref: '#/components/schemas/LandingPageLinkShape' + title: + type: string + type: object + Metric_allOf: + properties: + external_id: + type: string + health_state: + type: string + id: + type: string + metrics: + type: string + query_timestamp: + format: date-time + type: string + type: object + MetricsList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Metric' + type: array + type: object + Organization_allOf: + properties: + capabilities: + items: + $ref: '#/components/schemas/Capability' + type: array + created_at: + format: date-time + type: string + ebs_account_id: + type: string + external_id: + type: string + labels: + items: + $ref: '#/components/schemas/Label' + type: array + name: + type: string + updated_at: + format: date-time + type: string + type: object + OrganizationList_allOf: + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/Organization' + type: array + type: object + Permission_allOf: + properties: + action: + enum: + - get + - list + - create + - delete + - update + type: string + resource: + type: string + type: object + PermissionList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Permission' + type: array + type: object + Plan_allOf: + properties: + category: + type: string + name: + type: string + type: + type: string + type: object + PlanList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Plan' + type: array + type: object + Quota_allOf: + properties: + created_at: + format: date-time + type: string + description: + type: string + resource_type: + type: string + updated_at: + format: date-time + type: string + type: object + QuotaCost_allOf: + properties: + allowed: + type: integer + cloud_accounts: + items: + $ref: '#/components/schemas/CloudAccount' + type: array + consumed: + type: integer + organization_id: + type: string + quota_id: + type: string + related_resources: + items: + $ref: '#/components/schemas/RelatedResource' + type: array + version: + type: string + required: + - allowed + - consumed + - quota_id + type: object + QuotaCostList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/QuotaCost' + type: array + type: object + QuotaList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Quota' + type: array + type: object + QuotaRules_allOf: + properties: + availability_zone: + type: string + billing_model: + type: string + byoc: + type: string + cloud: + type: string + cost: + type: integer + name: + type: string + product: + type: string + quota_id: + type: string + type: + type: string + required: + - cost + type: object + QuotaRulesList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/QuotaRules' + type: array + type: object + Registry_allOf: + properties: + cloudAlias: + type: boolean + created_at: + format: date-time + type: string + name: + type: string + org_name: + type: string + team_name: + type: string + type: + type: string + updated_at: + format: date-time + type: string + url: + type: string + type: object + RegistryCredential_allOf: + properties: + account: + $ref: '#/components/schemas/ObjectReference' + created_at: + format: date-time + type: string + external_resource_id: + type: string + registry: + $ref: '#/components/schemas/ObjectReference' + token: + type: string + updated_at: + format: date-time + type: string + username: + type: string + type: object + RegistryCredentialList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/RegistryCredential' + type: array + type: object + RegistryList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Registry' + type: array + type: object + RelatedResource_allOf: + properties: + availability_zone_type: + type: string + billing_model: + type: string + byoc: + type: string + cloud_provider: + type: string + cost: + type: integer + product: + type: string + product_id: + type: string + resource_name: + type: string + resource_type: + type: string + required: + - availability_zone_type + - billing_model + - byoc + - cloud_provider + - cost + - product + - resource_anme + - resource_type + type: object + ReservedResource_allOf: + properties: + availability_zone_type: + type: string + billing_marketplace_account: + type: string + billing_model: + type: string + byoc: + type: boolean + cluster: + type: boolean + count: + type: integer + created_at: + format: date-time + type: string + resource_name: + type: string + resource_type: + type: string + subscription: + $ref: '#/components/schemas/ObjectReference' + updated_at: + format: date-time + type: string + required: + - byoc + type: object + ReservedResourceList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ReservedResource' + type: array + type: object + ResourceQuota_allOf: + properties: + created_at: + format: date-time + type: string + organization_id: + type: string + sku: + type: string + sku_count: + type: integer + type: + enum: + - Config + - Manual + - Subscription + type: string + updated_at: + format: date-time + type: string + required: + - sku_count + type: object + ResourceQuotaList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ResourceQuota' + type: array + type: object + Role_allOf: + properties: + name: + type: string + permissions: + items: + $ref: '#/components/schemas/Permission' + type: array + type: object + RoleBinding_allOf: + properties: + account: + $ref: '#/components/schemas/ObjectReference' + account_group: + $ref: '#/components/schemas/ObjectReference' + config_managed: + type: boolean + created_at: + format: date-time + type: string + managed_by: + enum: + - Config + - User + type: string + organization: + $ref: '#/components/schemas/ObjectReference' + role: + $ref: '#/components/schemas/ObjectReference' + subscription: + $ref: '#/components/schemas/ObjectReference' + type: + enum: + - Application + - Subscription + - Organization + type: string + updated_at: + format: date-time + type: string + type: object + RoleBindingList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/RoleBinding' + type: array + type: object + RoleList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Role' + type: array + type: object + SKU_allOf: + properties: + created_at: + format: date-time + type: string + description: + type: string + updated_at: + format: date-time + type: string + type: object + SelfServiceLandingPageSchema_configTryLearn: + example: + try: + - shape: + link: + href: href + title: title + description: description + title: title + - shape: + link: + href: href + title: title + description: description + title: title + configure: + - shape: + link: + href: href + title: title + description: description + title: title + - shape: + link: + href: href + title: title + description: description + title: title + properties: + configure: + items: + $ref: '#/components/schemas/LandingPageCTLItem' + type: array + try: + items: + $ref: '#/components/schemas/LandingPageCTLItem' + type: array + type: object + SelfServiceLandingPageSchema_estate: + example: + items: + - shape: + href: href + title: title + count: 0 + id: id + - shape: + href: href + title: title + count: 0 + id: id + properties: + items: + items: + $ref: '#/components/schemas/LandingPageEstateItem' + type: array + type: object + SkuList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/SKU' + type: array + type: object + SkuRules_allOf: + properties: + allowed: + type: integer + quota_id: + type: string + sku: + type: string + type: object + SkuRulesList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/SkuRules' + type: array + type: object + Subscription_allOf: + properties: + capabilities: + items: + $ref: '#/components/schemas/Capability' + type: array + created_at: + format: date-time + type: string + creator: + $ref: '#/components/schemas/AccountReference' + eval_expiration_date: + description: Calulated as the subscription created date + 60 days + format: date-time + type: string + labels: + items: + $ref: '#/components/schemas/Label' + type: array + metrics: + items: + $ref: '#/components/schemas/OneMetric' + maxItems: 1 + type: array + notification_contacts: + items: + $ref: '#/components/schemas/Account' + type: array + plan: + $ref: '#/components/schemas/Plan' + updated_at: + format: date-time + type: string + type: object + SubscriptionCommonFields_allOf: + properties: + billing_expiration_date: + description: If set, the date the subscription expires based on the billing + model + format: date-time + type: string + billing_marketplace_account: + type: string + cloud_account_id: + type: string + cloud_provider_id: + type: string + cluster_billing_model: + type: string + cluster_id: + type: string + console_url: + type: string + consumer_uuid: + type: string + cpu_total: + type: integer + creator_id: + type: string + display_name: + type: string + external_cluster_id: + type: string + last_reconcile_date: + description: Last time this subscription were reconciled about cluster usage + format: date-time + type: string + last_released_at: + description: Last time status was set to Released for this cluster/subscription + in Unix time + format: date-time + type: string + last_telemetry_date: + description: Last telemetry authorization request for this cluster/subscription + in Unix time + format: date-time + type: string + managed: + type: boolean + organization_id: + type: string + plan_id: + type: string + product_bundle: + enum: + - Openshift + - JBoss-Middleware + - IBM-CloudPak + type: string + provenance: + type: string + region_id: + type: string + released: + type: boolean + service_level: + enum: + - L1-L3 + - L3-only + type: string + socket_total: + type: integer + status: + type: string + support_level: + enum: + - Eval + - Standard + - Premium + - Self-Support + - None + type: string + system_units: + enum: + - Cores/vCPU + - Sockets + type: string + trial_end_date: + description: If the subscription is a trial, date the trial ends + format: date-time + type: string + usage: + enum: + - Production + - Development/Test + - Disaster Recovery + - Academic + type: string + required: + - managed + type: object + SubscriptionList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Subscription' + type: array + type: object + SubscriptionMetric_allOf: + properties: + _id: + type: string + type: object + SubscriptionMetricList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/SubscriptionMetric' + type: array + type: object + SubscriptionRoleBinding_allOf: + properties: + account: + $ref: '#/components/schemas/AccountReference' + account_email: + type: string + account_username: + type: string + created_at: + format: date-time + type: string + role: + $ref: '#/components/schemas/ObjectReference' + subscription: + $ref: '#/components/schemas/ObjectReference' + updated_at: + format: date-time + type: string + type: object + SubscriptionRoleBindingList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/SubscriptionRoleBinding' + type: array + type: object + Summary_allOf: + properties: + metrics: + items: + $ref: '#/components/schemas/SummaryMetrics' + type: array + name: + type: string + required: + - metrics + type: object + SummaryMetrics_allOf: + properties: + name: + type: string + vector: + items: + $ref: '#/components/schemas/SummaryVector' + type: array + type: object + SummaryVector_allOf: + properties: + time: + format: date-time + type: string + value: + type: double + type: object + securitySchemes: + AccessToken: + description: 'Authorization: AccessToken {cluster-uuid}:{access-token}' + in: header + name: Authorization + type: apiKey + Bearer: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/api_app_services.go b/app-services-sdk-go/accountmgmt/apiv1/client/api_app_services.go new file mode 100644 index 00000000..b6bf636f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/api_app_services.go @@ -0,0 +1,702 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type AppServicesApi interface { + + /* + * ApiAccountsMgmtV1AccessTokenPost Return access token generated from registries in docker format + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccessTokenPostRequest + */ + ApiAccountsMgmtV1AccessTokenPost(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest + + /* + * ApiAccountsMgmtV1AccessTokenPostExecute executes the request + * @return AccessTokenCfg + */ + ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CurrentAccountGet Get the authenticated account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CurrentAccountGetRequest + */ + ApiAccountsMgmtV1CurrentAccountGet(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest + + /* + * ApiAccountsMgmtV1CurrentAccountGetExecute executes the request + * @return Account + */ + ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet Returns a summary of quota cost + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute executes the request + * @return QuotaCostList + */ + ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1SelfTermsReviewPost Review your status of Terms + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfTermsReviewPostRequest + */ + ApiAuthorizationsV1SelfTermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest + + /* + * ApiAuthorizationsV1SelfTermsReviewPostExecute executes the request + * @return TermsReviewResponse + */ + ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) +} + +// AppServicesApiService AppServicesApi service +type AppServicesApiService service + +type ApiApiAccountsMgmtV1AccessTokenPostRequest struct { + ctx _context.Context + ApiService AppServicesApi +} + + +func (r ApiApiAccountsMgmtV1AccessTokenPostRequest) Execute() (AccessTokenCfg, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccessTokenPostExecute(r) +} + +/* + * ApiAccountsMgmtV1AccessTokenPost Return access token generated from registries in docker format + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccessTokenPostRequest + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1AccessTokenPost(ctx _context.Context) ApiApiAccountsMgmtV1AccessTokenPostRequest { + return ApiApiAccountsMgmtV1AccessTokenPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AccessTokenCfg + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1AccessTokenPostExecute(r ApiApiAccountsMgmtV1AccessTokenPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccessTokenCfg + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppServicesApiService.ApiAccountsMgmtV1AccessTokenPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/access_token" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CurrentAccountGetRequest struct { + ctx _context.Context + ApiService AppServicesApi + fetchLabels *bool +} + +func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1CurrentAccountGetRequest { + r.fetchLabels = &fetchLabels + return r +} + +func (r ApiApiAccountsMgmtV1CurrentAccountGetRequest) Execute() (Account, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CurrentAccountGetExecute(r) +} + +/* + * ApiAccountsMgmtV1CurrentAccountGet Get the authenticated account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CurrentAccountGetRequest + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1CurrentAccountGet(ctx _context.Context) ApiApiAccountsMgmtV1CurrentAccountGetRequest { + return ApiApiAccountsMgmtV1CurrentAccountGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Account + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1CurrentAccountGetExecute(r ApiApiAccountsMgmtV1CurrentAccountGetRequest) (Account, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Account + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppServicesApiService.ApiAccountsMgmtV1CurrentAccountGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/current_account" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest struct { + ctx _context.Context + ApiService AppServicesApi + orgId string + search *string + fetchRelatedResources *bool + forceRecalc *bool + fetchCloudAccounts *bool +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) FetchRelatedResources(fetchRelatedResources bool) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { + r.fetchRelatedResources = &fetchRelatedResources + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) ForceRecalc(forceRecalc bool) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { + r.forceRecalc = &forceRecalc + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) FetchCloudAccounts(fetchCloudAccounts bool) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { + r.fetchCloudAccounts = &fetchCloudAccounts + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) Execute() (QuotaCostList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet Returns a summary of quota cost + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return QuotaCostList + */ +func (a *AppServicesApiService) ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaCostList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppServicesApiService.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/quota_cost" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.fetchRelatedResources != nil { + localVarQueryParams.Add("fetchRelatedResources", parameterToString(*r.fetchRelatedResources, "")) + } + if r.forceRecalc != nil { + localVarQueryParams.Add("forceRecalc", parameterToString(*r.forceRecalc, "")) + } + if r.fetchCloudAccounts != nil { + localVarQueryParams.Add("fetchCloudAccounts", parameterToString(*r.fetchCloudAccounts, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1SelfTermsReviewPostRequest struct { + ctx _context.Context + ApiService AppServicesApi + selfTermsReview *SelfTermsReview +} + +func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) SelfTermsReview(selfTermsReview SelfTermsReview) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { + r.selfTermsReview = &selfTermsReview + return r +} + +func (r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) Execute() (TermsReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1SelfTermsReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1SelfTermsReviewPost Review your status of Terms + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfTermsReviewPostRequest + */ +func (a *AppServicesApiService) ApiAuthorizationsV1SelfTermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfTermsReviewPostRequest { + return ApiApiAuthorizationsV1SelfTermsReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return TermsReviewResponse + */ +func (a *AppServicesApiService) ApiAuthorizationsV1SelfTermsReviewPostExecute(r ApiApiAuthorizationsV1SelfTermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue TermsReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppServicesApiService.ApiAuthorizationsV1SelfTermsReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/self_terms_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.selfTermsReview == nil { + return localVarReturnValue, nil, reportError("selfTermsReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.selfTermsReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/api_default.go b/app-services-sdk-go/accountmgmt/apiv1/client/api_default.go new file mode 100644 index 00000000..dd6229ba --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/api_default.go @@ -0,0 +1,21840 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type DefaultApi interface { + + /* + * ApiAccountsMgmtV1AccountsGet Returns a list of accounts + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccountsGetRequest + */ + ApiAccountsMgmtV1AccountsGet(ctx _context.Context) ApiApiAccountsMgmtV1AccountsGetRequest + + /* + * ApiAccountsMgmtV1AccountsGetExecute executes the request + * @return AccountList + */ + ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdGet Get an account by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdGetRequest + */ + ApiAccountsMgmtV1AccountsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest + + /* + * ApiAccountsMgmtV1AccountsIdGetExecute executes the request + * @return Account + */ + ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest + */ + ApiAccountsMgmtV1AccountsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest + + /* + * ApiAccountsMgmtV1AccountsIdLabelsGetExecute executes the request + * @return LabelList + */ + ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute executes the request + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest + + /* + * ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest + */ + ApiAccountsMgmtV1AccountsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest + + /* + * ApiAccountsMgmtV1AccountsIdLabelsPostExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsIdPatch Update an account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdPatchRequest + */ + ApiAccountsMgmtV1AccountsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest + + /* + * ApiAccountsMgmtV1AccountsIdPatchExecute executes the request + * @return Account + */ + ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1AccountsPost Create a new account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccountsPostRequest + */ + ApiAccountsMgmtV1AccountsPost(ctx _context.Context) ApiApiAccountsMgmtV1AccountsPostRequest + + /* + * ApiAccountsMgmtV1AccountsPostExecute executes the request + * @return Account + */ + ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CertificatesPost Fetch certificates of a particular type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CertificatesPostRequest + */ + ApiAccountsMgmtV1CertificatesPost(ctx _context.Context) ApiApiAccountsMgmtV1CertificatesPostRequest + + /* + * ApiAccountsMgmtV1CertificatesPostExecute executes the request + * @return Certificate + */ + ApiAccountsMgmtV1CertificatesPostExecute(r ApiApiAccountsMgmtV1CertificatesPostRequest) (Certificate, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CloudResourcesGet Returns a list of cloud resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CloudResourcesGetRequest + */ + ApiAccountsMgmtV1CloudResourcesGet(ctx _context.Context) ApiApiAccountsMgmtV1CloudResourcesGetRequest + + /* + * ApiAccountsMgmtV1CloudResourcesGetExecute executes the request + * @return CloudResourceList + */ + ApiAccountsMgmtV1CloudResourcesGetExecute(r ApiApiAccountsMgmtV1CloudResourcesGetRequest) (CloudResourceList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CloudResourcesIdDelete Delete a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest + */ + ApiAccountsMgmtV1CloudResourcesIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest + + /* + * ApiAccountsMgmtV1CloudResourcesIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1CloudResourcesIdDeleteExecute(r ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CloudResourcesIdGet Get a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdGetRequest + */ + ApiAccountsMgmtV1CloudResourcesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdGetRequest + + /* + * ApiAccountsMgmtV1CloudResourcesIdGetExecute executes the request + * @return CloudResource + */ + ApiAccountsMgmtV1CloudResourcesIdGetExecute(r ApiApiAccountsMgmtV1CloudResourcesIdGetRequest) (CloudResource, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CloudResourcesIdPatch Update a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest + */ + ApiAccountsMgmtV1CloudResourcesIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest + + /* + * ApiAccountsMgmtV1CloudResourcesIdPatchExecute executes the request + * @return CloudResource + */ + ApiAccountsMgmtV1CloudResourcesIdPatchExecute(r ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest) (CloudResource, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1CloudResourcesPost Create a new cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CloudResourcesPostRequest + */ + ApiAccountsMgmtV1CloudResourcesPost(ctx _context.Context) ApiApiAccountsMgmtV1CloudResourcesPostRequest + + /* + * ApiAccountsMgmtV1CloudResourcesPostExecute executes the request + * @return CloudResource + */ + ApiAccountsMgmtV1CloudResourcesPostExecute(r ApiApiAccountsMgmtV1CloudResourcesPostRequest) (CloudResource, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ClusterAuthorizationsPost Authorizes new cluster creation against an exsiting RH Subscription. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest + */ + ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest + + /* + * ApiAccountsMgmtV1ClusterAuthorizationsPostExecute executes the request + * @return ClusterAuthorizationResponse + */ + ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ClusterRegistrationsPost Finds or creates a cluster registration with a registy credential token and cluster ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest + */ + ApiAccountsMgmtV1ClusterRegistrationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest + + /* + * ApiAccountsMgmtV1ClusterRegistrationsPostExecute executes the request + * @return ClusterRegistrationResponse + */ + ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ClusterTransfersGet List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterTransfersGetRequest + */ + ApiAccountsMgmtV1ClusterTransfersGet(ctx _context.Context) ApiApiAccountsMgmtV1ClusterTransfersGetRequest + + /* + * ApiAccountsMgmtV1ClusterTransfersGetExecute executes the request + * @return ClusterTransferList + */ + ApiAccountsMgmtV1ClusterTransfersGetExecute(r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) (ClusterTransferList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ClusterTransfersIdPatch Update specific cluster transfer + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest + */ + ApiAccountsMgmtV1ClusterTransfersIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest + + /* + * ApiAccountsMgmtV1ClusterTransfersIdPatchExecute executes the request + * @return ClusterTransfer + */ + ApiAccountsMgmtV1ClusterTransfersIdPatchExecute(r ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest) (ClusterTransfer, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ClusterTransfersPost Initiate cluster transfer. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterTransfersPostRequest + */ + ApiAccountsMgmtV1ClusterTransfersPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterTransfersPostRequest + + /* + * ApiAccountsMgmtV1ClusterTransfersPostExecute executes the request + * @return ClusterTransfer + */ + ApiAccountsMgmtV1ClusterTransfersPostExecute(r ApiApiAccountsMgmtV1ClusterTransfersPostRequest) (ClusterTransfer, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ConfigSkusGet Returns a list of skus + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ConfigSkusGetRequest + */ + ApiAccountsMgmtV1ConfigSkusGet(ctx _context.Context) ApiApiAccountsMgmtV1ConfigSkusGetRequest + + /* + * ApiAccountsMgmtV1ConfigSkusGetExecute executes the request + * @return SkuList + */ + ApiAccountsMgmtV1ConfigSkusGetExecute(r ApiApiAccountsMgmtV1ConfigSkusGetRequest) (SkuList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ConfigSkusIdDelete Delete a sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest + */ + ApiAccountsMgmtV1ConfigSkusIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest + + /* + * ApiAccountsMgmtV1ConfigSkusIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1ConfigSkusIdDeleteExecute(r ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ConfigSkusIdGet Get a sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdGetRequest + */ + ApiAccountsMgmtV1ConfigSkusIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdGetRequest + + /* + * ApiAccountsMgmtV1ConfigSkusIdGetExecute executes the request + * @return SKU + */ + ApiAccountsMgmtV1ConfigSkusIdGetExecute(r ApiApiAccountsMgmtV1ConfigSkusIdGetRequest) (SKU, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ConfigSkusIdPatch Update a Sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest + */ + ApiAccountsMgmtV1ConfigSkusIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest + + /* + * ApiAccountsMgmtV1ConfigSkusIdPatchExecute executes the request + * @return SKU + */ + ApiAccountsMgmtV1ConfigSkusIdPatchExecute(r ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest) (SKU, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ConfigSkusPost Create a new sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ConfigSkusPostRequest + */ + ApiAccountsMgmtV1ConfigSkusPost(ctx _context.Context) ApiApiAccountsMgmtV1ConfigSkusPostRequest + + /* + * ApiAccountsMgmtV1ConfigSkusPostExecute executes the request + * @return SKU + */ + ApiAccountsMgmtV1ConfigSkusPostExecute(r ApiApiAccountsMgmtV1ConfigSkusPostRequest) (SKU, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1DeletedSubscriptionsGet Returns a list of deleted subscriptions + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest + */ + ApiAccountsMgmtV1DeletedSubscriptionsGet(ctx _context.Context) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest + + /* + * ApiAccountsMgmtV1DeletedSubscriptionsGetExecute executes the request + * @return DeletedSubscriptionList + */ + ApiAccountsMgmtV1DeletedSubscriptionsGetExecute(r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) (DeletedSubscriptionList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ErrorsGet Returns a list of errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ErrorsGetRequest + */ + ApiAccountsMgmtV1ErrorsGet(ctx _context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest + + /* + * ApiAccountsMgmtV1ErrorsGetExecute executes the request + * @return ErrorList + */ + ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ErrorsIdGet Get an error by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ErrorsIdGetRequest + */ + ApiAccountsMgmtV1ErrorsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest + + /* + * ApiAccountsMgmtV1ErrorsIdGetExecute executes the request + * @return Error + */ + ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1FeatureTogglesIdQueryPost Query a feature toggle by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest + */ + ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest + + /* + * ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute executes the request + * @return FeatureToggle + */ + ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1LabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1LabelsGetRequest + */ + ApiAccountsMgmtV1LabelsGet(ctx _context.Context) ApiApiAccountsMgmtV1LabelsGetRequest + + /* + * ApiAccountsMgmtV1LabelsGetExecute executes the request + * @return LabelList + */ + ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1LandingPageSelfServiceGet Get a console.redhat.com landing page content JSON schema + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest + */ + ApiAccountsMgmtV1LandingPageSelfServiceGet(ctx _context.Context) ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest + + /* + * ApiAccountsMgmtV1LandingPageSelfServiceGetExecute executes the request + * @return SelfServiceLandingPageSchema + */ + ApiAccountsMgmtV1LandingPageSelfServiceGetExecute(r ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest) (SelfServiceLandingPageSchema, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1MetricsGet Returns a list of metrics + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1MetricsGetRequest + */ + ApiAccountsMgmtV1MetricsGet(ctx _context.Context) ApiApiAccountsMgmtV1MetricsGetRequest + + /* + * ApiAccountsMgmtV1MetricsGetExecute executes the request + * @return MetricsList + */ + ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1NotifyPost Notify the owner of cluster/subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1NotifyPostRequest + */ + ApiAccountsMgmtV1NotifyPost(ctx _context.Context) ApiApiAccountsMgmtV1NotifyPostRequest + + /* + * ApiAccountsMgmtV1NotifyPostExecute executes the request + */ + ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsGet Returns a list of organizations + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1OrganizationsGetRequest + */ + ApiAccountsMgmtV1OrganizationsGet(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsGetExecute executes the request + * @return OrganizationList + */ + ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdGet Get an organization by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdGetRequest + */ + ApiAccountsMgmtV1OrganizationsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdGetExecute executes the request + * @return Organization + */ + ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest + */ + ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute executes the request + * @return LabelList + */ + ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute executes the request + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest + */ + ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdPatch Update an organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdPatchRequest + */ + ApiAccountsMgmtV1OrganizationsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdPatchExecute executes the request + * @return Organization + */ + ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet Returns a summary of organizations clusters based on metrics + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest + */ + ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute executes the request + * @return Summary + */ + ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete Delete an account group assignment + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpAsgnId The id of account group assignment + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete(ctx _context.Context, orgId string, acctGrpAsgnId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet Get account group assignment by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpAsgnId The id of account group assignment + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet(ctx _context.Context, orgId string, acctGrpAsgnId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetExecute executes the request + * @return AccountGroupAssignment + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest) (AccountGroupAssignment, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet Returns a list of account group assignments for the given org + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetExecute executes the request + * @return AccountGroupAssignmentList + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) (AccountGroupAssignmentList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost Create a new AccountGroupAssignment + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostExecute executes the request + * @return AccountGroupAssignment + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest) (AccountGroupAssignment, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete Delete an account group + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet Get account group by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetExecute executes the request + * @return AccountGroup + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest) (AccountGroup, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch Update an account group + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchExecute executes the request + * @return AccountGroup + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest) (AccountGroup, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet Returns a list of account groups for the given org + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetExecute executes the request + * @return AccountGroupList + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) (AccountGroupList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost Create a new AccountGroup + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostExecute executes the request + * @return AccountGroup + */ + ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest) (AccountGroup, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet Returns a list of consumed quota for an organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetExecute executes the request + * @return ConsumedQuotaList + */ + ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest) (ConsumedQuotaList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet Returns a list of resource quota objects + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute executes the request + * @return ResourceQuotaList + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost Create a new resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute executes the request + * @return ResourceQuota + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete Delete a resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet Get a resource quota by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute executes the request + * @return ResourceQuota + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch Update a resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest + + /* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute executes the request + * @return ResourceQuota + */ + ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1OrganizationsPost Create a new organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1OrganizationsPostRequest + */ + ApiAccountsMgmtV1OrganizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest + + /* + * ApiAccountsMgmtV1OrganizationsPostExecute executes the request + * @return Organization + */ + ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1PlansGet Get all plans + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1PlansGetRequest + */ + ApiAccountsMgmtV1PlansGet(ctx _context.Context) ApiApiAccountsMgmtV1PlansGetRequest + + /* + * ApiAccountsMgmtV1PlansGetExecute executes the request + * @return PlanList + */ + ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1PlansIdGet Get a plan by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1PlansIdGetRequest + */ + ApiAccountsMgmtV1PlansIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest + + /* + * ApiAccountsMgmtV1PlansIdGetExecute executes the request + * @return Plan + */ + ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete Delete a pull secret + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param externalResourceId The external resource id of record + * @return ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest + */ + ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(ctx _context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest + + /* + * ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1PullSecretsPost Return access token generated from registries in docker format + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1PullSecretsPostRequest + */ + ApiAccountsMgmtV1PullSecretsPost(ctx _context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest + + /* + * ApiAccountsMgmtV1PullSecretsPostExecute executes the request + * @return AccessTokenCfg + */ + ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotaCostGet Returns a summary of quota cost for the authenticated user + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotaCostGetRequest + */ + ApiAccountsMgmtV1QuotaCostGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotaCostGetRequest + + /* + * ApiAccountsMgmtV1QuotaCostGetExecute executes the request + * @return QuotaCostList + */ + ApiAccountsMgmtV1QuotaCostGetExecute(r ApiApiAccountsMgmtV1QuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotaRulesGet Returns a list of UHC product Quota Rules + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotaRulesGetRequest + */ + ApiAccountsMgmtV1QuotaRulesGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotaRulesGetRequest + + /* + * ApiAccountsMgmtV1QuotaRulesGetExecute executes the request + * @return QuotaRulesList + */ + ApiAccountsMgmtV1QuotaRulesGetExecute(r ApiApiAccountsMgmtV1QuotaRulesGetRequest) (QuotaRulesList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotasGet Returns a list of quotas + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotasGetRequest + */ + ApiAccountsMgmtV1QuotasGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotasGetRequest + + /* + * ApiAccountsMgmtV1QuotasGetExecute executes the request + * @return QuotaList + */ + ApiAccountsMgmtV1QuotasGetExecute(r ApiApiAccountsMgmtV1QuotasGetRequest) (QuotaList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotasIdDelete Delete a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdDeleteRequest + */ + ApiAccountsMgmtV1QuotasIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdDeleteRequest + + /* + * ApiAccountsMgmtV1QuotasIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1QuotasIdDeleteExecute(r ApiApiAccountsMgmtV1QuotasIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotasIdGet Get a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdGetRequest + */ + ApiAccountsMgmtV1QuotasIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdGetRequest + + /* + * ApiAccountsMgmtV1QuotasIdGetExecute executes the request + * @return Quota + */ + ApiAccountsMgmtV1QuotasIdGetExecute(r ApiApiAccountsMgmtV1QuotasIdGetRequest) (Quota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotasIdPatch Update a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdPatchRequest + */ + ApiAccountsMgmtV1QuotasIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdPatchRequest + + /* + * ApiAccountsMgmtV1QuotasIdPatchExecute executes the request + * @return Quota + */ + ApiAccountsMgmtV1QuotasIdPatchExecute(r ApiApiAccountsMgmtV1QuotasIdPatchRequest) (Quota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1QuotasPost Create a new quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotasPostRequest + */ + ApiAccountsMgmtV1QuotasPost(ctx _context.Context) ApiApiAccountsMgmtV1QuotasPostRequest + + /* + * ApiAccountsMgmtV1QuotasPostExecute executes the request + * @return Quota + */ + ApiAccountsMgmtV1QuotasPostExecute(r ApiApiAccountsMgmtV1QuotasPostRequest) (Quota, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistriesGet Returns a list of registries + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistriesGetRequest + */ + ApiAccountsMgmtV1RegistriesGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest + + /* + * ApiAccountsMgmtV1RegistriesGetExecute executes the request + * @return RegistryList + */ + ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistriesIdGet Get an registry by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistriesIdGetRequest + */ + ApiAccountsMgmtV1RegistriesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest + + /* + * ApiAccountsMgmtV1RegistriesIdGetExecute executes the request + * @return Registry + */ + ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistryCredentialsGet Method for ApiAccountsMgmtV1RegistryCredentialsGet + * List Registry Credentials + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistryCredentialsGetRequest + */ + ApiAccountsMgmtV1RegistryCredentialsGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest + + /* + * ApiAccountsMgmtV1RegistryCredentialsGetExecute executes the request + * @return RegistryCredentialList + */ + ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdDelete Delete a registry credential by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest + */ + ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdGet Get a registry credentials by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest + */ + ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdGetExecute executes the request + * @return RegistryCredential + */ + ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdPatch Update a registry credential + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest + */ + ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest + + /* + * ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute executes the request + * @return RegistryCredential + */ + ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RegistryCredentialsPost Request the creation of a registry credential + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistryCredentialsPostRequest + */ + ApiAccountsMgmtV1RegistryCredentialsPost(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest + + /* + * ApiAccountsMgmtV1RegistryCredentialsPostExecute executes the request + * @return RegistryCredential + */ + ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ReservedResourcesGet Returns a list of reserved resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ReservedResourcesGetRequest + */ + ApiAccountsMgmtV1ReservedResourcesGet(ctx _context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest + + /* + * ApiAccountsMgmtV1ReservedResourcesGetExecute executes the request + * @return ReservedResourceList + */ + ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1ResourceQuotaGet Returns a list of resource quota objects + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ResourceQuotaGetRequest + */ + ApiAccountsMgmtV1ResourceQuotaGet(ctx _context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest + + /* + * ApiAccountsMgmtV1ResourceQuotaGetExecute executes the request + * @return ResourceQuotaList + */ + ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RoleBindingsGet Returns a list of role bindings + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RoleBindingsGetRequest + */ + ApiAccountsMgmtV1RoleBindingsGet(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest + + /* + * ApiAccountsMgmtV1RoleBindingsGetExecute executes the request + * @return RoleBindingList + */ + ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RoleBindingsIdDelete Delete a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest + */ + ApiAccountsMgmtV1RoleBindingsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest + + /* + * ApiAccountsMgmtV1RoleBindingsIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RoleBindingsIdGet Get a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdGetRequest + */ + ApiAccountsMgmtV1RoleBindingsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest + + /* + * ApiAccountsMgmtV1RoleBindingsIdGetExecute executes the request + * @return RoleBinding + */ + ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RoleBindingsIdPatch Update a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest + */ + ApiAccountsMgmtV1RoleBindingsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest + + /* + * ApiAccountsMgmtV1RoleBindingsIdPatchExecute executes the request + * @return RoleBinding + */ + ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RoleBindingsPost Create a new role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RoleBindingsPostRequest + */ + ApiAccountsMgmtV1RoleBindingsPost(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest + + /* + * ApiAccountsMgmtV1RoleBindingsPostExecute executes the request + * @return RoleBinding + */ + ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RolesGet Returns a list of roles + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RolesGetRequest + */ + ApiAccountsMgmtV1RolesGet(ctx _context.Context) ApiApiAccountsMgmtV1RolesGetRequest + + /* + * ApiAccountsMgmtV1RolesGetExecute executes the request + * @return RoleList + */ + ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1RolesIdGet Get a role by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RolesIdGetRequest + */ + ApiAccountsMgmtV1RolesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest + + /* + * ApiAccountsMgmtV1RolesIdGetExecute executes the request + * @return Role + */ + ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SelfEntitlementProductPost Create or renew the entitlement to support a product for the user's organization. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param product The product for self_entitlement. The supported products are [rosa]. + * @return ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest + */ + ApiAccountsMgmtV1SelfEntitlementProductPost(ctx _context.Context, product string) ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest + + /* + * ApiAccountsMgmtV1SelfEntitlementProductPostExecute executes the request + * @return SelfEntitlementStatus + */ + ApiAccountsMgmtV1SelfEntitlementProductPostExecute(r ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest) (SelfEntitlementStatus, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkuRulesGet Returns a list of UHC product SKU Rules + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkuRulesGetRequest + */ + ApiAccountsMgmtV1SkuRulesGet(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest + + /* + * ApiAccountsMgmtV1SkuRulesGetExecute executes the request + * @return SkuRulesList + */ + ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkuRulesIdDelete Delete a sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest + */ + ApiAccountsMgmtV1SkuRulesIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest + + /* + * ApiAccountsMgmtV1SkuRulesIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SkuRulesIdDeleteExecute(r ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkuRulesIdGet Get a sku rules by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdGetRequest + */ + ApiAccountsMgmtV1SkuRulesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest + + /* + * ApiAccountsMgmtV1SkuRulesIdGetExecute executes the request + * @return SkuRules + */ + ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkuRulesIdPatch Update a sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdPatchRequest + */ + ApiAccountsMgmtV1SkuRulesIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdPatchRequest + + /* + * ApiAccountsMgmtV1SkuRulesIdPatchExecute executes the request + * @return SkuRules + */ + ApiAccountsMgmtV1SkuRulesIdPatchExecute(r ApiApiAccountsMgmtV1SkuRulesIdPatchRequest) (SkuRules, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkuRulesPost Create a new sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkuRulesPostRequest + */ + ApiAccountsMgmtV1SkuRulesPost(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesPostRequest + + /* + * ApiAccountsMgmtV1SkuRulesPostExecute executes the request + * @return SkuRules + */ + ApiAccountsMgmtV1SkuRulesPostExecute(r ApiApiAccountsMgmtV1SkuRulesPostRequest) (SkuRules, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkusGet Returns a list of UHC product SKUs + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkusGetRequest + */ + ApiAccountsMgmtV1SkusGet(ctx _context.Context) ApiApiAccountsMgmtV1SkusGetRequest + + /* + * ApiAccountsMgmtV1SkusGetExecute executes the request + * @return SkuList + */ + ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SkusIdGet Get a sku by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkusIdGetRequest + */ + ApiAccountsMgmtV1SkusIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest + + /* + * ApiAccountsMgmtV1SkusIdGetExecute executes the request + * @return SKU + */ + ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsGet Returns a list of subscriptions + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SubscriptionsGetRequest + */ + ApiAccountsMgmtV1SubscriptionsGet(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsGetExecute executes the request + * @return SubscriptionList + */ + ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdDelete Deletes a subscription by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest + */ + ApiAccountsMgmtV1SubscriptionsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdGet Get a subscription by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdGetExecute executes the request + * @return Subscription + */ + ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute executes the request + * @return LabelList + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute executes the request + * @return Label + */ + ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet Get subscription's metrics by metric name + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param metricName The name of the metric + * @return ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet(ctx _context.Context, id string, metricName string) ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetExecute executes the request + * @return SubscriptionMetricList + */ + ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest) (SubscriptionMetricList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdNotifyPost Notify the owner of a subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest + */ + ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdPatch Update a subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest + */ + ApiAccountsMgmtV1SubscriptionsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdPatchExecute executes the request + * @return Subscription + */ + ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet Returns a list of reserved resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute executes the request + * @return ReservedResourceList + */ + ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet Returns a list of open support creates opened against the external cluster id of this subscrption + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest + */ + ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsPost Create a new subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SubscriptionsPostRequest + */ + ApiAccountsMgmtV1SubscriptionsPost(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest + + /* + * ApiAccountsMgmtV1SubscriptionsPostExecute executes the request + * @return Subscription + */ + ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete Deletes a notification contact by subscription and account id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param accountId The id of account + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(ctx _context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet Returns a list of notification contacts for the given subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute executes the request + * @return AccountList + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost Add an account as a notification contact to this subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute executes the request + * @return Account + */ + ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete Delete reserved resources by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet Get reserved resources by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute executes the request + * @return ReservedResource + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch Update a reserved resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchExecute executes the request + * @return ReservedResource + */ + ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest) (ReservedResource, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet Get subscription role bindings + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetExecute executes the request + * @return SubscriptionRoleBindingList + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) (SubscriptionRoleBindingList, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete Delete a subscription role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete(ctx _context.Context, id string, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet Get a Subscription Role Binding by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet(ctx _context.Context, id string, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetExecute executes the request + * @return SubscriptionRoleBinding + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest) (SubscriptionRoleBinding, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost Create a new subscription role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest + + /* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostExecute executes the request + * @return SubscriptionRoleBinding + */ + ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest) (SubscriptionRoleBinding, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SupportCasesCaseIdDelete Delete a support case + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param caseId The id of a support case + * @return ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest + */ + ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx _context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest + + /* + * ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute executes the request + */ + ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1SupportCasesPost create a support case for the subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SupportCasesPostRequest + */ + ApiAccountsMgmtV1SupportCasesPost(ctx _context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest + + /* + * ApiAccountsMgmtV1SupportCasesPostExecute executes the request + * @return SupportCasesCreatedResponse + */ + ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) + + /* + * ApiAccountsMgmtV1TokenAuthorizationPost Finds the account owner of the provided token + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1TokenAuthorizationPostRequest + */ + ApiAccountsMgmtV1TokenAuthorizationPost(ctx _context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest + + /* + * ApiAccountsMgmtV1TokenAuthorizationPostExecute executes the request + * @return TokenAuthorizationResponse + */ + ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1AccessReviewPost Review an account's access to perform an action on a particular resource or resource type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1AccessReviewPostRequest + */ + ApiAuthorizationsV1AccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest + + /* + * ApiAuthorizationsV1AccessReviewPostExecute executes the request + * @return AccessReviewResponse + */ + ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1CapabilityReviewPost Review an account's capabilities + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1CapabilityReviewPostRequest + */ + ApiAuthorizationsV1CapabilityReviewPost(ctx _context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest + + /* + * ApiAuthorizationsV1CapabilityReviewPostExecute executes the request + * @return CapabilityReview + */ + ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1ExportControlReviewPost Determine whether a user is restricted from downloading Red Hat software based on export control compliance. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1ExportControlReviewPostRequest + */ + ApiAuthorizationsV1ExportControlReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest + + /* + * ApiAuthorizationsV1ExportControlReviewPostExecute executes the request + * @return ExportControlReview + */ + ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1FeatureReviewPost Review feature to perform an action on it such as toggle a feature on/off + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1FeatureReviewPostRequest + */ + ApiAuthorizationsV1FeatureReviewPost(ctx _context.Context) ApiApiAuthorizationsV1FeatureReviewPostRequest + + /* + * ApiAuthorizationsV1FeatureReviewPostExecute executes the request + * @return FeatureReviewResponse + */ + ApiAuthorizationsV1FeatureReviewPostExecute(r ApiApiAuthorizationsV1FeatureReviewPostRequest) (FeatureReviewResponse, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1ResourceReviewPost Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1ResourceReviewPostRequest + */ + ApiAuthorizationsV1ResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest + + /* + * ApiAuthorizationsV1ResourceReviewPostExecute executes the request + * @return ResourceReview + */ + ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1SelfAccessReviewPost Review your ability to perform an action on a particular resource or resource type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfAccessReviewPostRequest + */ + ApiAuthorizationsV1SelfAccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest + + /* + * ApiAuthorizationsV1SelfAccessReviewPostExecute executes the request + * @return AccessReviewResponse + */ + ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1SelfFeatureReviewPost Review your ability to toggle a feature + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfFeatureReviewPostRequest + */ + ApiAuthorizationsV1SelfFeatureReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfFeatureReviewPostRequest + + /* + * ApiAuthorizationsV1SelfFeatureReviewPostExecute executes the request + * @return FeatureReviewResponse + */ + ApiAuthorizationsV1SelfFeatureReviewPostExecute(r ApiApiAuthorizationsV1SelfFeatureReviewPostRequest) (FeatureReviewResponse, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1SelfResourceReviewPost Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfResourceReviewPostRequest + */ + ApiAuthorizationsV1SelfResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest + + /* + * ApiAuthorizationsV1SelfResourceReviewPostExecute executes the request + * @return SelfResourceReview + */ + ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) + + /* + * ApiAuthorizationsV1TermsReviewPost Review an account's status of Terms + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1TermsReviewPostRequest + */ + ApiAuthorizationsV1TermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest + + /* + * ApiAuthorizationsV1TermsReviewPostExecute executes the request + * @return TermsReviewResponse + */ + ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) +} + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiApiAccountsMgmtV1AccountsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fields *string + fetchLabels *bool + fetchCapabilities *bool +} + +func (r ApiApiAccountsMgmtV1AccountsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsGetRequest { + r.orderBy = &orderBy + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1AccountsGetRequest { + r.fields = &fields + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1AccountsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} + +func (r ApiApiAccountsMgmtV1AccountsGetRequest) Execute() (AccountList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsGet Returns a list of accounts + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccountsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGet(ctx _context.Context) ApiApiAccountsMgmtV1AccountsGetRequest { + return ApiApiAccountsMgmtV1AccountsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AccountList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsGetExecute(r ApiApiAccountsMgmtV1AccountsGetRequest) (AccountList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool + fetchCapabilities *bool + fetchRhit *bool +} + +func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} +func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) FetchRhit(fetchRhit bool) ApiApiAccountsMgmtV1AccountsIdGetRequest { + r.fetchRhit = &fetchRhit + return r +} + +func (r ApiApiAccountsMgmtV1AccountsIdGetRequest) Execute() (Account, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdGet Get an account by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdGetRequest { + return ApiApiAccountsMgmtV1AccountsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Account + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdGetExecute(r ApiApiAccountsMgmtV1AccountsIdGetRequest) (Account, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Account + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + if r.fetchRhit != nil { + localVarQueryParams.Add("fetchRhit", parameterToString(*r.fetchRhit, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) Execute() (LabelList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest { + return ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return LabelList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LabelList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdLabelsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest { + return ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest { + return ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string + label *Label +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest { + return ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdLabelsKeyPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + label *Label +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest { + return ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdLabelsPostExecute(r ApiApiAccountsMgmtV1AccountsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdLabelsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + accountPatchRequest *AccountPatchRequest +} + +func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) AccountPatchRequest(accountPatchRequest AccountPatchRequest) ApiApiAccountsMgmtV1AccountsIdPatchRequest { + r.accountPatchRequest = &accountPatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1AccountsIdPatchRequest) Execute() (Account, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsIdPatch Update an account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1AccountsIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1AccountsIdPatchRequest { + return ApiApiAccountsMgmtV1AccountsIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Account + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsIdPatchExecute(r ApiApiAccountsMgmtV1AccountsIdPatchRequest) (Account, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Account + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.accountPatchRequest == nil { + return localVarReturnValue, nil, reportError("accountPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accountPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1AccountsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + account *Account + dryRun *bool +} + +func (r ApiApiAccountsMgmtV1AccountsPostRequest) Account(account Account) ApiApiAccountsMgmtV1AccountsPostRequest { + r.account = &account + return r +} +func (r ApiApiAccountsMgmtV1AccountsPostRequest) DryRun(dryRun bool) ApiApiAccountsMgmtV1AccountsPostRequest { + r.dryRun = &dryRun + return r +} + +func (r ApiApiAccountsMgmtV1AccountsPostRequest) Execute() (Account, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1AccountsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1AccountsPost Create a new account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1AccountsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPost(ctx _context.Context) ApiApiAccountsMgmtV1AccountsPostRequest { + return ApiApiAccountsMgmtV1AccountsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Account + */ +func (a *DefaultApiService) ApiAccountsMgmtV1AccountsPostExecute(r ApiApiAccountsMgmtV1AccountsPostRequest) (Account, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Account + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1AccountsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.account == nil { + return localVarReturnValue, nil, reportError("account is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.account + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CertificatesPostRequest struct { + ctx _context.Context + ApiService DefaultApi + certificatesRequest *CertificatesRequest +} + +func (r ApiApiAccountsMgmtV1CertificatesPostRequest) CertificatesRequest(certificatesRequest CertificatesRequest) ApiApiAccountsMgmtV1CertificatesPostRequest { + r.certificatesRequest = &certificatesRequest + return r +} + +func (r ApiApiAccountsMgmtV1CertificatesPostRequest) Execute() (Certificate, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CertificatesPostExecute(r) +} + +/* + * ApiAccountsMgmtV1CertificatesPost Fetch certificates of a particular type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CertificatesPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CertificatesPost(ctx _context.Context) ApiApiAccountsMgmtV1CertificatesPostRequest { + return ApiApiAccountsMgmtV1CertificatesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Certificate + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CertificatesPostExecute(r ApiApiAccountsMgmtV1CertificatesPostRequest) (Certificate, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Certificate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CertificatesPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/certificates" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.certificatesRequest == nil { + return localVarReturnValue, nil, reportError("certificatesRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.certificatesRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CloudResourcesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1CloudResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1CloudResourcesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1CloudResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1CloudResourcesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1CloudResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1CloudResourcesGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1CloudResourcesGetRequest) Execute() (CloudResourceList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CloudResourcesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1CloudResourcesGet Returns a list of cloud resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CloudResourcesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesGet(ctx _context.Context) ApiApiAccountsMgmtV1CloudResourcesGetRequest { + return ApiApiAccountsMgmtV1CloudResourcesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CloudResourceList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesGetExecute(r ApiApiAccountsMgmtV1CloudResourcesGetRequest) (CloudResourceList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CloudResourcesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cloud_resources" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CloudResourcesIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1CloudResourcesIdDelete Delete a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest { + return ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdDeleteExecute(r ApiApiAccountsMgmtV1CloudResourcesIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CloudResourcesIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cloud_resources/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CloudResourcesIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1CloudResourcesIdGetRequest) Execute() (CloudResource, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CloudResourcesIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1CloudResourcesIdGet Get a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdGetRequest { + return ApiApiAccountsMgmtV1CloudResourcesIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return CloudResource + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdGetExecute(r ApiApiAccountsMgmtV1CloudResourcesIdGetRequest) (CloudResource, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudResource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CloudResourcesIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cloud_resources/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + cloudResource *CloudResource +} + +func (r ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest) CloudResource(cloudResource CloudResource) ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest { + r.cloudResource = &cloudResource + return r +} + +func (r ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest) Execute() (CloudResource, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CloudResourcesIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1CloudResourcesIdPatch Update a cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest { + return ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return CloudResource + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesIdPatchExecute(r ApiApiAccountsMgmtV1CloudResourcesIdPatchRequest) (CloudResource, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudResource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CloudResourcesIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cloud_resources/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.cloudResource == nil { + return localVarReturnValue, nil, reportError("cloudResource is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cloudResource + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1CloudResourcesPostRequest struct { + ctx _context.Context + ApiService DefaultApi + cloudResource *CloudResource +} + +func (r ApiApiAccountsMgmtV1CloudResourcesPostRequest) CloudResource(cloudResource CloudResource) ApiApiAccountsMgmtV1CloudResourcesPostRequest { + r.cloudResource = &cloudResource + return r +} + +func (r ApiApiAccountsMgmtV1CloudResourcesPostRequest) Execute() (CloudResource, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1CloudResourcesPostExecute(r) +} + +/* + * ApiAccountsMgmtV1CloudResourcesPost Create a new cloud resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1CloudResourcesPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesPost(ctx _context.Context) ApiApiAccountsMgmtV1CloudResourcesPostRequest { + return ApiApiAccountsMgmtV1CloudResourcesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CloudResource + */ +func (a *DefaultApiService) ApiAccountsMgmtV1CloudResourcesPostExecute(r ApiApiAccountsMgmtV1CloudResourcesPostRequest) (CloudResource, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudResource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1CloudResourcesPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cloud_resources" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.cloudResource == nil { + return localVarReturnValue, nil, reportError("cloudResource is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cloudResource + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + clusterAuthorizationRequest *ClusterAuthorizationRequest +} + +func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) ClusterAuthorizationRequest(clusterAuthorizationRequest ClusterAuthorizationRequest) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { + r.clusterAuthorizationRequest = &clusterAuthorizationRequest + return r +} + +func (r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) Execute() (ClusterAuthorizationResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1ClusterAuthorizationsPost Authorizes new cluster creation against an exsiting RH Subscription. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest { + return ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ClusterAuthorizationResponse + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterAuthorizationsPostExecute(r ApiApiAccountsMgmtV1ClusterAuthorizationsPostRequest) (ClusterAuthorizationResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ClusterAuthorizationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ClusterAuthorizationsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cluster_authorizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.clusterAuthorizationRequest == nil { + return localVarReturnValue, nil, reportError("clusterAuthorizationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clusterAuthorizationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + clusterRegistrationRequest *ClusterRegistrationRequest +} + +func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) ClusterRegistrationRequest(clusterRegistrationRequest ClusterRegistrationRequest) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { + r.clusterRegistrationRequest = &clusterRegistrationRequest + return r +} + +func (r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) Execute() (ClusterRegistrationResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1ClusterRegistrationsPost Finds or creates a cluster registration with a registy credential token and cluster ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest { + return ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ClusterRegistrationResponse + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterRegistrationsPostExecute(r ApiApiAccountsMgmtV1ClusterRegistrationsPostRequest) (ClusterRegistrationResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ClusterRegistrationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ClusterRegistrationsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cluster_registrations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.clusterRegistrationRequest == nil { + return localVarReturnValue, nil, reportError("clusterRegistrationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clusterRegistrationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ClusterTransfersGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) Page(page int32) ApiApiAccountsMgmtV1ClusterTransfersGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) Size(size int32) ApiApiAccountsMgmtV1ClusterTransfersGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) Search(search string) ApiApiAccountsMgmtV1ClusterTransfersGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ClusterTransfersGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) Execute() (ClusterTransferList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ClusterTransfersGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ClusterTransfersGet List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterTransfersGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersGet(ctx _context.Context) ApiApiAccountsMgmtV1ClusterTransfersGetRequest { + return ApiApiAccountsMgmtV1ClusterTransfersGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ClusterTransferList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersGetExecute(r ApiApiAccountsMgmtV1ClusterTransfersGetRequest) (ClusterTransferList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ClusterTransferList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ClusterTransfersGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cluster_transfers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + clusterTransferPatchRequest *ClusterTransferPatchRequest +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest) ClusterTransferPatchRequest(clusterTransferPatchRequest ClusterTransferPatchRequest) ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest { + r.clusterTransferPatchRequest = &clusterTransferPatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest) Execute() (ClusterTransfer, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ClusterTransfersIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1ClusterTransfersIdPatch Update specific cluster transfer + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest { + return ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ClusterTransfer + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersIdPatchExecute(r ApiApiAccountsMgmtV1ClusterTransfersIdPatchRequest) (ClusterTransfer, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ClusterTransfer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ClusterTransfersIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cluster_transfers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.clusterTransferPatchRequest == nil { + return localVarReturnValue, nil, reportError("clusterTransferPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clusterTransferPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ClusterTransfersPostRequest struct { + ctx _context.Context + ApiService DefaultApi + clusterTransferRequest *ClusterTransferRequest +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersPostRequest) ClusterTransferRequest(clusterTransferRequest ClusterTransferRequest) ApiApiAccountsMgmtV1ClusterTransfersPostRequest { + r.clusterTransferRequest = &clusterTransferRequest + return r +} + +func (r ApiApiAccountsMgmtV1ClusterTransfersPostRequest) Execute() (ClusterTransfer, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ClusterTransfersPostExecute(r) +} + +/* + * ApiAccountsMgmtV1ClusterTransfersPost Initiate cluster transfer. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ClusterTransfersPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersPost(ctx _context.Context) ApiApiAccountsMgmtV1ClusterTransfersPostRequest { + return ApiApiAccountsMgmtV1ClusterTransfersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ClusterTransfer + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ClusterTransfersPostExecute(r ApiApiAccountsMgmtV1ClusterTransfersPostRequest) (ClusterTransfer, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ClusterTransfer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ClusterTransfersPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/cluster_transfers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.clusterTransferRequest == nil { + return localVarReturnValue, nil, reportError("clusterTransferRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.clusterTransferRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ConfigSkusGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1ConfigSkusGetRequest) Page(page int32) ApiApiAccountsMgmtV1ConfigSkusGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1ConfigSkusGetRequest) Size(size int32) ApiApiAccountsMgmtV1ConfigSkusGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1ConfigSkusGetRequest) Search(search string) ApiApiAccountsMgmtV1ConfigSkusGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1ConfigSkusGetRequest) Execute() (SkuList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ConfigSkusGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ConfigSkusGet Returns a list of skus + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ConfigSkusGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusGet(ctx _context.Context) ApiApiAccountsMgmtV1ConfigSkusGetRequest { + return ApiApiAccountsMgmtV1ConfigSkusGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SkuList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusGetExecute(r ApiApiAccountsMgmtV1ConfigSkusGetRequest) (SkuList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ConfigSkusGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/config/skus" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ConfigSkusIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1ConfigSkusIdDelete Delete a sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest { + return ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdDeleteExecute(r ApiApiAccountsMgmtV1ConfigSkusIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ConfigSkusIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/config/skus/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ConfigSkusIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1ConfigSkusIdGetRequest) Execute() (SKU, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ConfigSkusIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ConfigSkusIdGet Get a sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdGetRequest { + return ApiApiAccountsMgmtV1ConfigSkusIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return SKU + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdGetExecute(r ApiApiAccountsMgmtV1ConfigSkusIdGetRequest) (SKU, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SKU + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ConfigSkusIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/config/skus/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + sKU *SKU +} + +func (r ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest) SKU(sKU SKU) ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest { + r.sKU = &sKU + return r +} + +func (r ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest) Execute() (SKU, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ConfigSkusIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1ConfigSkusIdPatch Update a Sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest { + return ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return SKU + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusIdPatchExecute(r ApiApiAccountsMgmtV1ConfigSkusIdPatchRequest) (SKU, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SKU + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ConfigSkusIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/config/skus/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.sKU == nil { + return localVarReturnValue, nil, reportError("sKU is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sKU + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ConfigSkusPostRequest struct { + ctx _context.Context + ApiService DefaultApi + sKU *SKU +} + +func (r ApiApiAccountsMgmtV1ConfigSkusPostRequest) SKU(sKU SKU) ApiApiAccountsMgmtV1ConfigSkusPostRequest { + r.sKU = &sKU + return r +} + +func (r ApiApiAccountsMgmtV1ConfigSkusPostRequest) Execute() (SKU, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ConfigSkusPostExecute(r) +} + +/* + * ApiAccountsMgmtV1ConfigSkusPost Create a new sku + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ConfigSkusPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusPost(ctx _context.Context) ApiApiAccountsMgmtV1ConfigSkusPostRequest { + return ApiApiAccountsMgmtV1ConfigSkusPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SKU + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ConfigSkusPostExecute(r ApiApiAccountsMgmtV1ConfigSkusPostRequest) (SKU, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SKU + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ConfigSkusPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/config/skus" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.sKU == nil { + return localVarReturnValue, nil, reportError("sKU is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sKU + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) Page(page int32) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) Size(size int32) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) Search(search string) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) Execute() (DeletedSubscriptionList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1DeletedSubscriptionsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1DeletedSubscriptionsGet Returns a list of deleted subscriptions + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1DeletedSubscriptionsGet(ctx _context.Context) ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest { + return ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return DeletedSubscriptionList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1DeletedSubscriptionsGetExecute(r ApiApiAccountsMgmtV1DeletedSubscriptionsGetRequest) (DeletedSubscriptionList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue DeletedSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1DeletedSubscriptionsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/deleted_subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ErrorsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Page(page int32) ApiApiAccountsMgmtV1ErrorsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Size(size int32) ApiApiAccountsMgmtV1ErrorsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Search(search string) ApiApiAccountsMgmtV1ErrorsGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1ErrorsGetRequest) Execute() (ErrorList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ErrorsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ErrorsGet Returns a list of errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ErrorsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGet(ctx _context.Context) ApiApiAccountsMgmtV1ErrorsGetRequest { + return ApiApiAccountsMgmtV1ErrorsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrorList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsGetExecute(r ApiApiAccountsMgmtV1ErrorsGetRequest) (ErrorList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ErrorList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ErrorsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ErrorsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1ErrorsIdGetRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ErrorsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ErrorsIdGet Get an error by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1ErrorsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1ErrorsIdGetRequest { + return ApiApiAccountsMgmtV1ErrorsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ErrorsIdGetExecute(r ApiApiAccountsMgmtV1ErrorsIdGetRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ErrorsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/errors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + featureToggleQueryRequest *FeatureToggleQueryRequest +} + +func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) FeatureToggleQueryRequest(featureToggleQueryRequest FeatureToggleQueryRequest) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { + r.featureToggleQueryRequest = &featureToggleQueryRequest + return r +} + +func (r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) Execute() (FeatureToggle, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r) +} + +/* + * ApiAccountsMgmtV1FeatureTogglesIdQueryPost Query a feature toggle by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest { + return ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return FeatureToggle + */ +func (a *DefaultApiService) ApiAccountsMgmtV1FeatureTogglesIdQueryPostExecute(r ApiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest) (FeatureToggle, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FeatureToggle + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1FeatureTogglesIdQueryPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/feature_toggles/{id}/query" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.featureToggleQueryRequest == nil { + return localVarReturnValue, nil, reportError("featureToggleQueryRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.featureToggleQueryRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1LabelsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1LabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1LabelsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1LabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1LabelsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1LabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1LabelsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1LabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1LabelsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1LabelsGetRequest) Execute() (LabelList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1LabelsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1LabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1LabelsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGet(ctx _context.Context) ApiApiAccountsMgmtV1LabelsGetRequest { + return ApiApiAccountsMgmtV1LabelsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return LabelList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1LabelsGetExecute(r ApiApiAccountsMgmtV1LabelsGetRequest) (LabelList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LabelList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1LabelsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/labels" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest struct { + ctx _context.Context + ApiService DefaultApi +} + + +func (r ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest) Execute() (SelfServiceLandingPageSchema, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1LandingPageSelfServiceGetExecute(r) +} + +/* + * ApiAccountsMgmtV1LandingPageSelfServiceGet Get a console.redhat.com landing page content JSON schema + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1LandingPageSelfServiceGet(ctx _context.Context) ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest { + return ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SelfServiceLandingPageSchema + */ +func (a *DefaultApiService) ApiAccountsMgmtV1LandingPageSelfServiceGetExecute(r ApiApiAccountsMgmtV1LandingPageSelfServiceGetRequest) (SelfServiceLandingPageSchema, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SelfServiceLandingPageSchema + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1LandingPageSelfServiceGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/landing_page/self_service" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1MetricsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + search *string +} + +func (r ApiApiAccountsMgmtV1MetricsGetRequest) Search(search string) ApiApiAccountsMgmtV1MetricsGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1MetricsGetRequest) Execute() (MetricsList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1MetricsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1MetricsGet Returns a list of metrics + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1MetricsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGet(ctx _context.Context) ApiApiAccountsMgmtV1MetricsGetRequest { + return ApiApiAccountsMgmtV1MetricsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return MetricsList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1MetricsGetExecute(r ApiApiAccountsMgmtV1MetricsGetRequest) (MetricsList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue MetricsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1MetricsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/metrics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1NotifyPostRequest struct { + ctx _context.Context + ApiService DefaultApi + notificationRequest *NotificationRequest +} + +func (r ApiApiAccountsMgmtV1NotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1NotifyPostRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiApiAccountsMgmtV1NotifyPostRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1NotifyPostExecute(r) +} + +/* + * ApiAccountsMgmtV1NotifyPost Notify the owner of cluster/subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1NotifyPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPost(ctx _context.Context) ApiApiAccountsMgmtV1NotifyPostRequest { + return ApiApiAccountsMgmtV1NotifyPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1NotifyPostExecute(r ApiApiAccountsMgmtV1NotifyPostRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1NotifyPost") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/notify" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.notificationRequest == nil { + return nil, reportError("notificationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string + fetchLabels *bool + fetchCapabilities *bool + fields *string +} + +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.orderBy = &orderBy + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1OrganizationsGetRequest { + r.fields = &fields + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsGetRequest) Execute() (OrganizationList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsGet Returns a list of organizations + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1OrganizationsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGet(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsGetRequest { + return ApiApiAccountsMgmtV1OrganizationsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return OrganizationList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsGetExecute(r ApiApiAccountsMgmtV1OrganizationsGetRequest) (OrganizationList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue OrganizationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + fetchLabels *bool + fetchCapabilities *bool +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) Execute() (Organization, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdGet Get an organization by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdGetRequest { + return ApiApiAccountsMgmtV1OrganizationsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Organization + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdGetRequest) (Organization, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) Execute() (LabelList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest { + return ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return LabelList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LabelList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdLabelsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest { + return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest { + return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string + label *Label +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest { + return ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + label *Label +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest { + return ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdLabelsPostExecute(r ApiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdLabelsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + organizationPatchRequest *OrganizationPatchRequest +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) OrganizationPatchRequest(organizationPatchRequest OrganizationPatchRequest) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { + r.organizationPatchRequest = &organizationPatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) Execute() (Organization, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdPatch Update an organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdPatchRequest { + return ApiApiAccountsMgmtV1OrganizationsIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Organization + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsIdPatchRequest) (Organization, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.organizationPatchRequest == nil { + return localVarReturnValue, nil, reportError("organizationPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organizationPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) Execute() (Summary, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet Returns a summary of organizations clusters based on metrics + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest { + return ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Summary + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetExecute(r ApiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest) (Summary, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Summary + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{id}/summary_dashboard" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + acctGrpAsgnId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete Delete an account group assignment + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpAsgnId The id of account group assignment + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete(ctx _context.Context, orgId string, acctGrpAsgnId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + acctGrpAsgnId: acctGrpAsgnId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"acctGrpAsgnId"+"}", _neturl.PathEscape(parameterToString(r.acctGrpAsgnId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + acctGrpAsgnId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest) Execute() (AccountGroupAssignment, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet Get account group assignment by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpAsgnId The id of account group assignment + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet(ctx _context.Context, orgId string, acctGrpAsgnId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + acctGrpAsgnId: acctGrpAsgnId, + } +} + +/* + * Execute executes the request + * @return AccountGroupAssignment + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest) (AccountGroupAssignment, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"acctGrpAsgnId"+"}", _neturl.PathEscape(parameterToString(r.acctGrpAsgnId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) Execute() (AccountGroupAssignmentList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet Returns a list of account group assignments for the given org + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return AccountGroupAssignmentList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest) (AccountGroupAssignmentList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + accountGroupAssignment *AccountGroupAssignment +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest) AccountGroupAssignment(accountGroupAssignment AccountGroupAssignment) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest { + r.accountGroupAssignment = &accountGroupAssignment + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest) Execute() (AccountGroupAssignment, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost Create a new AccountGroupAssignment + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return AccountGroupAssignment + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest) (AccountGroupAssignment, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.accountGroupAssignment == nil { + return localVarReturnValue, nil, reportError("accountGroupAssignment is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accountGroupAssignment + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + acctGrpId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete Delete an account group + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + acctGrpId: acctGrpId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"acctGrpId"+"}", _neturl.PathEscape(parameterToString(r.acctGrpId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + acctGrpId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest) Execute() (AccountGroup, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet Get account group by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + acctGrpId: acctGrpId, + } +} + +/* + * Execute executes the request + * @return AccountGroup + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest) (AccountGroup, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"acctGrpId"+"}", _neturl.PathEscape(parameterToString(r.acctGrpId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + acctGrpId string + accountGroupRequest *AccountGroupRequest +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest) AccountGroupRequest(accountGroupRequest AccountGroupRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest { + r.accountGroupRequest = &accountGroupRequest + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest) Execute() (AccountGroup, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch Update an account group + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param acctGrpId The id of account group + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch(ctx _context.Context, orgId string, acctGrpId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + acctGrpId: acctGrpId, + } +} + +/* + * Execute executes the request + * @return AccountGroup + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest) (AccountGroup, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"acctGrpId"+"}", _neturl.PathEscape(parameterToString(r.acctGrpId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.accountGroupRequest == nil { + return localVarReturnValue, nil, reportError("accountGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accountGroupRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) Execute() (AccountGroupList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet Returns a list of account groups for the given org + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return AccountGroupList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest) (AccountGroupList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + accountGroupRequest *AccountGroupRequest +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest) AccountGroupRequest(accountGroupRequest AccountGroupRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest { + r.accountGroupRequest = &accountGroupRequest + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest) Execute() (AccountGroup, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost Create a new AccountGroup + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return AccountGroup + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest) (AccountGroup, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/account_groups" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.accountGroupRequest == nil { + return localVarReturnValue, nil, reportError("accountGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accountGroupRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + forceRecalc *bool +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest) ForceRecalc(forceRecalc bool) ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest { + r.forceRecalc = &forceRecalc + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest) Execute() (ConsumedQuotaList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet Returns a list of consumed quota for an organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return ConsumedQuotaList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest) (ConsumedQuotaList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConsumedQuotaList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.forceRecalc != nil { + localVarQueryParams.Add("forceRecalc", parameterToString(*r.forceRecalc, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) Execute() (ResourceQuotaList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet Returns a list of resource quota objects + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return ResourceQuotaList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceQuotaList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + resourceQuotaRequest *ResourceQuotaRequest +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { + r.resourceQuotaRequest = &resourceQuotaRequest + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) Execute() (ResourceQuota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost Create a new resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(ctx _context.Context, orgId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + } +} + +/* + * Execute executes the request + * @return ResourceQuota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest) (ResourceQuota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.resourceQuotaRequest == nil { + return localVarReturnValue, nil, reportError("resourceQuotaRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceQuotaRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + quotaId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete Delete a resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"quotaId"+"}", _neturl.PathEscape(parameterToString(r.quotaId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + quotaId string +} + + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) Execute() (ResourceQuota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet Get a resource quota by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, + } +} + +/* + * Execute executes the request + * @return ResourceQuota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest) (ResourceQuota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"quotaId"+"}", _neturl.PathEscape(parameterToString(r.quotaId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + orgId string + quotaId string + resourceQuotaRequest *ResourceQuotaRequest +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) ResourceQuotaRequest(resourceQuotaRequest ResourceQuotaRequest) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { + r.resourceQuotaRequest = &resourceQuotaRequest + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) Execute() (ResourceQuota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch Update a resource quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param orgId The id of organization + * @param quotaId The id of quota + * @return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(ctx _context.Context, orgId string, quotaId string) ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest { + return ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest{ + ApiService: a, + ctx: ctx, + orgId: orgId, + quotaId: quotaId, + } +} + +/* + * Execute executes the request + * @return ResourceQuota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchExecute(r ApiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest) (ResourceQuota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceQuota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}" + localVarPath = strings.Replace(localVarPath, "{"+"orgId"+"}", _neturl.PathEscape(parameterToString(r.orgId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"quotaId"+"}", _neturl.PathEscape(parameterToString(r.quotaId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.resourceQuotaRequest == nil { + return localVarReturnValue, nil, reportError("resourceQuotaRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceQuotaRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1OrganizationsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + organization *Organization +} + +func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Organization(organization Organization) ApiApiAccountsMgmtV1OrganizationsPostRequest { + r.organization = &organization + return r +} + +func (r ApiApiAccountsMgmtV1OrganizationsPostRequest) Execute() (Organization, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1OrganizationsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1OrganizationsPost Create a new organization + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1OrganizationsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPost(ctx _context.Context) ApiApiAccountsMgmtV1OrganizationsPostRequest { + return ApiApiAccountsMgmtV1OrganizationsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Organization + */ +func (a *DefaultApiService) ApiAccountsMgmtV1OrganizationsPostExecute(r ApiApiAccountsMgmtV1OrganizationsPostRequest) (Organization, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1OrganizationsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.organization == nil { + return localVarReturnValue, nil, reportError("organization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.organization + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1PlansGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1PlansGetRequest) Page(page int32) ApiApiAccountsMgmtV1PlansGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1PlansGetRequest) Size(size int32) ApiApiAccountsMgmtV1PlansGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1PlansGetRequest) Search(search string) ApiApiAccountsMgmtV1PlansGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1PlansGetRequest) Execute() (PlanList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1PlansGetExecute(r) +} + +/* + * ApiAccountsMgmtV1PlansGet Get all plans + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1PlansGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PlansGet(ctx _context.Context) ApiApiAccountsMgmtV1PlansGetRequest { + return ApiApiAccountsMgmtV1PlansGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return PlanList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PlansGetExecute(r ApiApiAccountsMgmtV1PlansGetRequest) (PlanList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PlanList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1PlansGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/plans" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1PlansIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1PlansIdGetRequest) Execute() (Plan, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1PlansIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1PlansIdGet Get a plan by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1PlansIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1PlansIdGetRequest { + return ApiApiAccountsMgmtV1PlansIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Plan + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PlansIdGetExecute(r ApiApiAccountsMgmtV1PlansIdGetRequest) (Plan, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Plan + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1PlansIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/plans/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + externalResourceId string +} + + +func (r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete Delete a pull secret + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param externalResourceId The external resource id of record + * @return ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(ctx _context.Context, externalResourceId string) ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest { + return ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest{ + ApiService: a, + ctx: ctx, + externalResourceId: externalResourceId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteExecute(r ApiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/pull_secrets/{externalResourceId}" + localVarPath = strings.Replace(localVarPath, "{"+"externalResourceId"+"}", _neturl.PathEscape(parameterToString(r.externalResourceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1PullSecretsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + pullSecretRequest *PullSecretRequest +} + +func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) PullSecretRequest(pullSecretRequest PullSecretRequest) ApiApiAccountsMgmtV1PullSecretsPostRequest { + r.pullSecretRequest = &pullSecretRequest + return r +} + +func (r ApiApiAccountsMgmtV1PullSecretsPostRequest) Execute() (AccessTokenCfg, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1PullSecretsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1PullSecretsPost Return access token generated from registries in docker format + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1PullSecretsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPost(ctx _context.Context) ApiApiAccountsMgmtV1PullSecretsPostRequest { + return ApiApiAccountsMgmtV1PullSecretsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AccessTokenCfg + */ +func (a *DefaultApiService) ApiAccountsMgmtV1PullSecretsPostExecute(r ApiApiAccountsMgmtV1PullSecretsPostRequest) (AccessTokenCfg, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccessTokenCfg + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1PullSecretsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/pull_secrets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.pullSecretRequest == nil { + return localVarReturnValue, nil, reportError("pullSecretRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.pullSecretRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotaCostGetRequest struct { + ctx _context.Context + ApiService DefaultApi + search *string + fetchRelatedResources *bool + fetchCloudAccounts *bool +} + +func (r ApiApiAccountsMgmtV1QuotaCostGetRequest) Search(search string) ApiApiAccountsMgmtV1QuotaCostGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1QuotaCostGetRequest) FetchRelatedResources(fetchRelatedResources bool) ApiApiAccountsMgmtV1QuotaCostGetRequest { + r.fetchRelatedResources = &fetchRelatedResources + return r +} +func (r ApiApiAccountsMgmtV1QuotaCostGetRequest) FetchCloudAccounts(fetchCloudAccounts bool) ApiApiAccountsMgmtV1QuotaCostGetRequest { + r.fetchCloudAccounts = &fetchCloudAccounts + return r +} + +func (r ApiApiAccountsMgmtV1QuotaCostGetRequest) Execute() (QuotaCostList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotaCostGetExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotaCostGet Returns a summary of quota cost for the authenticated user + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotaCostGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotaCostGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotaCostGetRequest { + return ApiApiAccountsMgmtV1QuotaCostGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return QuotaCostList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotaCostGetExecute(r ApiApiAccountsMgmtV1QuotaCostGetRequest) (QuotaCostList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaCostList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotaCostGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quota_cost" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.fetchRelatedResources != nil { + localVarQueryParams.Add("fetchRelatedResources", parameterToString(*r.fetchRelatedResources, "")) + } + if r.fetchCloudAccounts != nil { + localVarQueryParams.Add("fetchCloudAccounts", parameterToString(*r.fetchCloudAccounts, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotaRulesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1QuotaRulesGetRequest) Page(page int32) ApiApiAccountsMgmtV1QuotaRulesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1QuotaRulesGetRequest) Size(size int32) ApiApiAccountsMgmtV1QuotaRulesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1QuotaRulesGetRequest) Search(search string) ApiApiAccountsMgmtV1QuotaRulesGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1QuotaRulesGetRequest) Execute() (QuotaRulesList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotaRulesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotaRulesGet Returns a list of UHC product Quota Rules + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotaRulesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotaRulesGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotaRulesGetRequest { + return ApiApiAccountsMgmtV1QuotaRulesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return QuotaRulesList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotaRulesGetExecute(r ApiApiAccountsMgmtV1QuotaRulesGetRequest) (QuotaRulesList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaRulesList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotaRulesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quota_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotasGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1QuotasGetRequest) Page(page int32) ApiApiAccountsMgmtV1QuotasGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1QuotasGetRequest) Size(size int32) ApiApiAccountsMgmtV1QuotasGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1QuotasGetRequest) Search(search string) ApiApiAccountsMgmtV1QuotasGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1QuotasGetRequest) Execute() (QuotaList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotasGetExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotasGet Returns a list of quotas + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotasGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasGet(ctx _context.Context) ApiApiAccountsMgmtV1QuotasGetRequest { + return ApiApiAccountsMgmtV1QuotasGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return QuotaList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasGetExecute(r ApiApiAccountsMgmtV1QuotasGetRequest) (QuotaList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotasGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotasIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1QuotasIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotasIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotasIdDelete Delete a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdDeleteRequest { + return ApiApiAccountsMgmtV1QuotasIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdDeleteExecute(r ApiApiAccountsMgmtV1QuotasIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotasIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quotas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotasIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1QuotasIdGetRequest) Execute() (Quota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotasIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotasIdGet Get a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdGetRequest { + return ApiApiAccountsMgmtV1QuotasIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Quota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdGetExecute(r ApiApiAccountsMgmtV1QuotasIdGetRequest) (Quota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Quota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotasIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quotas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotasIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + quota *Quota +} + +func (r ApiApiAccountsMgmtV1QuotasIdPatchRequest) Quota(quota Quota) ApiApiAccountsMgmtV1QuotasIdPatchRequest { + r.quota = "a + return r +} + +func (r ApiApiAccountsMgmtV1QuotasIdPatchRequest) Execute() (Quota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotasIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotasIdPatch Update a quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1QuotasIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1QuotasIdPatchRequest { + return ApiApiAccountsMgmtV1QuotasIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Quota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasIdPatchExecute(r ApiApiAccountsMgmtV1QuotasIdPatchRequest) (Quota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Quota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotasIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quotas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.quota == nil { + return localVarReturnValue, nil, reportError("quota is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.quota + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1QuotasPostRequest struct { + ctx _context.Context + ApiService DefaultApi + quota *Quota +} + +func (r ApiApiAccountsMgmtV1QuotasPostRequest) Quota(quota Quota) ApiApiAccountsMgmtV1QuotasPostRequest { + r.quota = "a + return r +} + +func (r ApiApiAccountsMgmtV1QuotasPostRequest) Execute() (Quota, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1QuotasPostExecute(r) +} + +/* + * ApiAccountsMgmtV1QuotasPost Create a new quota + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1QuotasPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasPost(ctx _context.Context) ApiApiAccountsMgmtV1QuotasPostRequest { + return ApiApiAccountsMgmtV1QuotasPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Quota + */ +func (a *DefaultApiService) ApiAccountsMgmtV1QuotasPostExecute(r ApiApiAccountsMgmtV1QuotasPostRequest) (Quota, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Quota + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1QuotasPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/quotas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.quota == nil { + return localVarReturnValue, nil, reportError("quota is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.quota + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistriesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistriesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistriesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistriesGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1RegistriesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistriesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1RegistriesGetRequest) Execute() (RegistryList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistriesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistriesGet Returns a list of registries + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistriesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistriesGetRequest { + return ApiApiAccountsMgmtV1RegistriesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RegistryList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesGetExecute(r ApiApiAccountsMgmtV1RegistriesGetRequest) (RegistryList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistriesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registries" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistriesIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RegistriesIdGetRequest) Execute() (Registry, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistriesIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistriesIdGet Get an registry by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistriesIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistriesIdGetRequest { + return ApiApiAccountsMgmtV1RegistriesIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Registry + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistriesIdGetExecute(r ApiApiAccountsMgmtV1RegistriesIdGetRequest) (Registry, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Registry + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistriesIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registries/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistryCredentialsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Search(search string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) Execute() (RegistryCredentialList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistryCredentialsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistryCredentialsGet Method for ApiAccountsMgmtV1RegistryCredentialsGet + * List Registry Credentials + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistryCredentialsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGet(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsGetRequest { + return ApiApiAccountsMgmtV1RegistryCredentialsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RegistryCredentialList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsGetRequest) (RegistryCredentialList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryCredentialList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistryCredentialsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registry_credentials" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistryCredentialsIdDelete Delete a registry credential by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest { + return ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdDeleteExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistryCredentialsIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registry_credentials/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) Execute() (RegistryCredential, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistryCredentialsIdGet Get a registry credentials by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest { + return ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return RegistryCredential + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdGetExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdGetRequest) (RegistryCredential, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryCredential + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistryCredentialsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registry_credentials/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + registryCredentialPatchRequest *RegistryCredentialPatchRequest +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) RegistryCredentialPatchRequest(registryCredentialPatchRequest RegistryCredentialPatchRequest) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { + r.registryCredentialPatchRequest = ®istryCredentialPatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) Execute() (RegistryCredential, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistryCredentialsIdPatch Update a registry credential + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest { + return ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return RegistryCredential + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsIdPatchExecute(r ApiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest) (RegistryCredential, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryCredential + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistryCredentialsIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registry_credentials/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.registryCredentialPatchRequest == nil { + return localVarReturnValue, nil, reportError("registryCredentialPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.registryCredentialPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RegistryCredentialsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + registryCredential *RegistryCredential +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) RegistryCredential(registryCredential RegistryCredential) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { + r.registryCredential = ®istryCredential + return r +} + +func (r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) Execute() (RegistryCredential, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RegistryCredentialsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1RegistryCredentialsPost Request the creation of a registry credential + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RegistryCredentialsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPost(ctx _context.Context) ApiApiAccountsMgmtV1RegistryCredentialsPostRequest { + return ApiApiAccountsMgmtV1RegistryCredentialsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RegistryCredential + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RegistryCredentialsPostExecute(r ApiApiAccountsMgmtV1RegistryCredentialsPostRequest) (RegistryCredential, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryCredential + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RegistryCredentialsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/registry_credentials" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.registryCredential == nil { + return localVarReturnValue, nil, reportError("registryCredential is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.registryCredential + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ReservedResourcesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) Execute() (ReservedResourceList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ReservedResourcesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ReservedResourcesGet Returns a list of reserved resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ReservedResourcesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGet(ctx _context.Context) ApiApiAccountsMgmtV1ReservedResourcesGetRequest { + return ApiApiAccountsMgmtV1ReservedResourcesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ReservedResourceList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ReservedResourcesGetExecute(r ApiApiAccountsMgmtV1ReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReservedResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ReservedResourcesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/reserved_resources" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1ResourceQuotaGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Page(page int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Size(size int32) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Search(search string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) Execute() (ResourceQuotaList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1ResourceQuotaGetExecute(r) +} + +/* + * ApiAccountsMgmtV1ResourceQuotaGet Returns a list of resource quota objects + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1ResourceQuotaGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGet(ctx _context.Context) ApiApiAccountsMgmtV1ResourceQuotaGetRequest { + return ApiApiAccountsMgmtV1ResourceQuotaGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ResourceQuotaList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1ResourceQuotaGetExecute(r ApiApiAccountsMgmtV1ResourceQuotaGetRequest) (ResourceQuotaList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceQuotaList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1ResourceQuotaGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/resource_quota" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RoleBindingsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Page(page int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Size(size int32) ApiApiAccountsMgmtV1RoleBindingsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Search(search string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1RoleBindingsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1RoleBindingsGetRequest) Execute() (RoleBindingList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RoleBindingsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RoleBindingsGet Returns a list of role bindings + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RoleBindingsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGet(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsGetRequest { + return ApiApiAccountsMgmtV1RoleBindingsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RoleBindingList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsGetExecute(r ApiApiAccountsMgmtV1RoleBindingsGetRequest) (RoleBindingList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RoleBindingsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/role_bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1RoleBindingsIdDelete Delete a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest { + return ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1RoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RoleBindingsIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/role_bindings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RoleBindingsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) Execute() (RoleBinding, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RoleBindingsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RoleBindingsIdGet Get a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdGetRequest { + return ApiApiAccountsMgmtV1RoleBindingsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return RoleBinding + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1RoleBindingsIdGetRequest) (RoleBinding, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RoleBindingsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/role_bindings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + roleBindingRequest *RoleBindingRequest +} + +func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) RoleBindingRequest(roleBindingRequest RoleBindingRequest) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { + r.roleBindingRequest = &roleBindingRequest + return r +} + +func (r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) Execute() (RoleBinding, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1RoleBindingsIdPatch Update a role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest { + return ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return RoleBinding + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsIdPatchExecute(r ApiApiAccountsMgmtV1RoleBindingsIdPatchRequest) (RoleBinding, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RoleBindingsIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/role_bindings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.roleBindingRequest == nil { + return localVarReturnValue, nil, reportError("roleBindingRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleBindingRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RoleBindingsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + roleBindingCreateRequest *RoleBindingCreateRequest +} + +func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) RoleBindingCreateRequest(roleBindingCreateRequest RoleBindingCreateRequest) ApiApiAccountsMgmtV1RoleBindingsPostRequest { + r.roleBindingCreateRequest = &roleBindingCreateRequest + return r +} + +func (r ApiApiAccountsMgmtV1RoleBindingsPostRequest) Execute() (RoleBinding, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RoleBindingsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1RoleBindingsPost Create a new role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RoleBindingsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPost(ctx _context.Context) ApiApiAccountsMgmtV1RoleBindingsPostRequest { + return ApiApiAccountsMgmtV1RoleBindingsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RoleBinding + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RoleBindingsPostExecute(r ApiApiAccountsMgmtV1RoleBindingsPostRequest) (RoleBinding, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RoleBindingsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/role_bindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.roleBindingCreateRequest == nil { + return localVarReturnValue, nil, reportError("roleBindingCreateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleBindingCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RolesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string +} + +func (r ApiApiAccountsMgmtV1RolesGetRequest) Page(page int32) ApiApiAccountsMgmtV1RolesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1RolesGetRequest) Size(size int32) ApiApiAccountsMgmtV1RolesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1RolesGetRequest) Search(search string) ApiApiAccountsMgmtV1RolesGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1RolesGetRequest) Execute() (RoleList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RolesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RolesGet Returns a list of roles + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1RolesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RolesGet(ctx _context.Context) ApiApiAccountsMgmtV1RolesGetRequest { + return ApiApiAccountsMgmtV1RolesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RoleList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RolesGetExecute(r ApiApiAccountsMgmtV1RolesGetRequest) (RoleList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RolesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1RolesIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1RolesIdGetRequest) Execute() (Role, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1RolesIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1RolesIdGet Get a role by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1RolesIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1RolesIdGetRequest { + return ApiApiAccountsMgmtV1RolesIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Role + */ +func (a *DefaultApiService) ApiAccountsMgmtV1RolesIdGetExecute(r ApiApiAccountsMgmtV1RolesIdGetRequest) (Role, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1RolesIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/roles/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest struct { + ctx _context.Context + ApiService DefaultApi + product string +} + + +func (r ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest) Execute() (SelfEntitlementStatus, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SelfEntitlementProductPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SelfEntitlementProductPost Create or renew the entitlement to support a product for the user's organization. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param product The product for self_entitlement. The supported products are [rosa]. + * @return ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SelfEntitlementProductPost(ctx _context.Context, product string) ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest { + return ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest{ + ApiService: a, + ctx: ctx, + product: product, + } +} + +/* + * Execute executes the request + * @return SelfEntitlementStatus + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SelfEntitlementProductPostExecute(r ApiApiAccountsMgmtV1SelfEntitlementProductPostRequest) (SelfEntitlementStatus, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SelfEntitlementStatus + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SelfEntitlementProductPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/self_entitlement/{product}" + localVarPath = strings.Replace(localVarPath, "{"+"product"+"}", _neturl.PathEscape(parameterToString(r.product, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkuRulesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + search *string +} + +func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Search(search string) ApiApiAccountsMgmtV1SkuRulesGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1SkuRulesGetRequest) Execute() (SkuRulesList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkuRulesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SkuRulesGet Returns a list of UHC product SKU Rules + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkuRulesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGet(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesGetRequest { + return ApiApiAccountsMgmtV1SkuRulesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SkuRulesList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesGetExecute(r ApiApiAccountsMgmtV1SkuRulesGetRequest) (SkuRulesList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuRulesList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkuRulesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/sku_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkuRulesIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SkuRulesIdDelete Delete a sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest { + return ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdDeleteExecute(r ApiApiAccountsMgmtV1SkuRulesIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkuRulesIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/sku_rules/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkuRulesIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) Execute() (SkuRules, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkuRulesIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SkuRulesIdGet Get a sku rules by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdGetRequest { + return ApiApiAccountsMgmtV1SkuRulesIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return SkuRules + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdGetExecute(r ApiApiAccountsMgmtV1SkuRulesIdGetRequest) (SkuRules, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuRules + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkuRulesIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/sku_rules/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkuRulesIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + skuRules *SkuRules +} + +func (r ApiApiAccountsMgmtV1SkuRulesIdPatchRequest) SkuRules(skuRules SkuRules) ApiApiAccountsMgmtV1SkuRulesIdPatchRequest { + r.skuRules = &skuRules + return r +} + +func (r ApiApiAccountsMgmtV1SkuRulesIdPatchRequest) Execute() (SkuRules, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkuRulesIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1SkuRulesIdPatch Update a sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkuRulesIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkuRulesIdPatchRequest { + return ApiApiAccountsMgmtV1SkuRulesIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return SkuRules + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesIdPatchExecute(r ApiApiAccountsMgmtV1SkuRulesIdPatchRequest) (SkuRules, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuRules + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkuRulesIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/sku_rules/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.skuRules == nil { + return localVarReturnValue, nil, reportError("skuRules is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.skuRules + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkuRulesPostRequest struct { + ctx _context.Context + ApiService DefaultApi + skuRules *SkuRules +} + +func (r ApiApiAccountsMgmtV1SkuRulesPostRequest) SkuRules(skuRules SkuRules) ApiApiAccountsMgmtV1SkuRulesPostRequest { + r.skuRules = &skuRules + return r +} + +func (r ApiApiAccountsMgmtV1SkuRulesPostRequest) Execute() (SkuRules, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkuRulesPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SkuRulesPost Create a new sku rule + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkuRulesPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesPost(ctx _context.Context) ApiApiAccountsMgmtV1SkuRulesPostRequest { + return ApiApiAccountsMgmtV1SkuRulesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SkuRules + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkuRulesPostExecute(r ApiApiAccountsMgmtV1SkuRulesPostRequest) (SkuRules, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuRules + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkuRulesPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/sku_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.skuRules == nil { + return localVarReturnValue, nil, reportError("skuRules is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.skuRules + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkusGetRequest struct { + ctx _context.Context + ApiService DefaultApi + search *string +} + +func (r ApiApiAccountsMgmtV1SkusGetRequest) Search(search string) ApiApiAccountsMgmtV1SkusGetRequest { + r.search = &search + return r +} + +func (r ApiApiAccountsMgmtV1SkusGetRequest) Execute() (SkuList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkusGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SkusGet Returns a list of UHC product SKUs + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SkusGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkusGet(ctx _context.Context) ApiApiAccountsMgmtV1SkusGetRequest { + return ApiApiAccountsMgmtV1SkusGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SkuList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkusGetExecute(r ApiApiAccountsMgmtV1SkusGetRequest) (SkuList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SkuList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkusGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/skus" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SkusIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1SkusIdGetRequest) Execute() (SKU, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SkusIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SkusIdGet Get a sku by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SkusIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SkusIdGetRequest { + return ApiApiAccountsMgmtV1SkusIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return SKU + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SkusIdGetExecute(r ApiApiAccountsMgmtV1SkusIdGetRequest) (SKU, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SKU + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SkusIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/skus/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + page *int32 + size *int32 + search *string + fetchAccounts *bool + fetchLabels *bool + fetchCapabilities *bool + fields *string + orderBy *string + labels *string +} + +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.fetchAccounts = &fetchAccounts + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.fields = &fields + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.orderBy = &orderBy + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Labels(labels string) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + r.labels = &labels + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsGetRequest) Execute() (SubscriptionList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsGet Returns a list of subscriptions + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SubscriptionsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGet(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SubscriptionList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsGetRequest) (SubscriptionList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.fetchAccounts != nil { + localVarQueryParams.Add("fetchAccounts", parameterToString(*r.fetchAccounts, "")) + } + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.labels != nil { + localVarQueryParams.Add("labels", parameterToString(*r.labels, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdDelete Deletes a subscription by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDelete(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + fetchAccounts *bool + fetchLabels *bool + fetchCapabilities *bool + fetchCpuAndSocket *bool +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { + r.fetchAccounts = &fetchAccounts + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchLabels(fetchLabels bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { + r.fetchLabels = &fetchLabels + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCapabilities(fetchCapabilities bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { + r.fetchCapabilities = &fetchCapabilities + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) FetchCpuAndSocket(fetchCpuAndSocket bool) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { + r.fetchCpuAndSocket = &fetchCpuAndSocket + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) Execute() (Subscription, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdGet Get a subscription by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Subscription + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdGetRequest) (Subscription, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.fetchAccounts != nil { + localVarQueryParams.Add("fetchAccounts", parameterToString(*r.fetchAccounts, "")) + } + if r.fetchLabels != nil { + localVarQueryParams.Add("fetchLabels", parameterToString(*r.fetchLabels, "")) + } + if r.fetchCapabilities != nil { + localVarQueryParams.Add("fetchCapabilities", parameterToString(*r.fetchCapabilities, "")) + } + if r.fetchCpuAndSocket != nil { + localVarQueryParams.Add("fetchCpuAndSocket", parameterToString(*r.fetchCpuAndSocket, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) Execute() (LabelList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdLabelsGet Returns a list of labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return LabelList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest) (LabelList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue LabelList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete Delete a label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet Get subscription labels by label key + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + key string + label *Label +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param key The key of the label + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx _context.Context, id string, key string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + key: key, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"key"+"}", _neturl.PathEscape(parameterToString(r.key, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + label *Label +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Label(label Label) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { + r.label = &label + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) Execute() (Label, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdLabelsPost Create a new label or update an existing label + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Label + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdLabelsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest) (Label, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Label + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdLabelsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/labels" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.label == nil { + return localVarReturnValue, nil, reportError("label is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.label + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + metricName string + search *string + fields *string +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest { + r.fields = &fields + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest) Execute() (SubscriptionMetricList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet Get subscription's metrics by metric name + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param metricName The name of the metric + * @return ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet(ctx _context.Context, id string, metricName string) ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + metricName: metricName, + } +} + +/* + * Execute executes the request + * @return SubscriptionMetricList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest) (SubscriptionMetricList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SubscriptionMetricList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"metric_name"+"}", _neturl.PathEscape(parameterToString(r.metricName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + notificationRequest *NotificationRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) NotificationRequest(notificationRequest NotificationRequest) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdNotifyPost Notify the owner of a subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdNotifyPostExecute(r ApiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdNotifyPost") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/notify" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.notificationRequest == nil { + return nil, reportError("notificationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + subscriptionPatchRequest *SubscriptionPatchRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) SubscriptionPatchRequest(subscriptionPatchRequest SubscriptionPatchRequest) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { + r.subscriptionPatchRequest = &subscriptionPatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) Execute() (Subscription, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdPatch Update a subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatch(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Subscription + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsIdPatchRequest) (Subscription, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.subscriptionPatchRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionPatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.subscriptionPatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *int32 + size *int32 + search *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) Execute() (ReservedResourceList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet Returns a list of reserved resources + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ReservedResourceList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest) (ReservedResourceList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReservedResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *int32 + size *int32 +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { + r.size = &size + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet Returns a list of open support creates opened against the external cluster id of this subscrption + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @return ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx _context.Context, id string) ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsIdSupportCasesGetExecute(r ApiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{id}/support_cases" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + subscriptionCreateRequest *SubscriptionCreateRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) SubscriptionCreateRequest(subscriptionCreateRequest SubscriptionCreateRequest) ApiApiAccountsMgmtV1SubscriptionsPostRequest { + r.subscriptionCreateRequest = &subscriptionCreateRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsPostRequest) Execute() (Subscription, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsPost Create a new subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SubscriptionsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPost(ctx _context.Context) ApiApiAccountsMgmtV1SubscriptionsPostRequest { + return ApiApiAccountsMgmtV1SubscriptionsPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Subscription + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsPostRequest) (Subscription, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.subscriptionCreateRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionCreateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.subscriptionCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + accountId string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete Deletes a notification contact by subscription and account id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param accountId The id of account + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(ctx _context.Context, subId string, accountId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + accountId: accountId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId}" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"accountId"+"}", _neturl.PathEscape(parameterToString(r.accountId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + page *int32 + size *int32 + search *string + fields *string + orderBy *string +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Fields(fields string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + r.fields = &fields + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + r.orderBy = &orderBy + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) Execute() (AccountList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet Returns a list of notification contacts for the given subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + } +} + +/* + * Execute executes the request + * @return AccountList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest) (AccountList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + notificationContactCreateRequest *NotificationContactCreateRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) NotificationContactCreateRequest(notificationContactCreateRequest NotificationContactCreateRequest) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { + r.notificationContactCreateRequest = ¬ificationContactCreateRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) Execute() (Account, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost Add an account as a notification contact to this subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + } +} + +/* + * Execute executes the request + * @return Account + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest) (Account, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Account + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.notificationContactCreateRequest == nil { + return localVarReturnValue, nil, reportError("notificationContactCreateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationContactCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + reservedResourceId string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete Delete reserved resources by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + reservedResourceId: reservedResourceId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reservedResourceId"+"}", _neturl.PathEscape(parameterToString(r.reservedResourceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + reservedResourceId string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) Execute() (ReservedResource, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet Get reserved resources by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + reservedResourceId: reservedResourceId, + } +} + +/* + * Execute executes the request + * @return ReservedResource + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest) (ReservedResource, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReservedResource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reservedResourceId"+"}", _neturl.PathEscape(parameterToString(r.reservedResourceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + reservedResourceId string + reservedResourcePatchRequest *ReservedResourcePatchRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest) ReservedResourcePatchRequest(reservedResourcePatchRequest ReservedResourcePatchRequest) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest { + r.reservedResourcePatchRequest = &reservedResourcePatchRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest) Execute() (ReservedResource, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch Update a reserved resource + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @param reservedResourceId The id of reserved resource + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch(ctx _context.Context, subId string, reservedResourceId string) ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + reservedResourceId: reservedResourceId, + } +} + +/* + * Execute executes the request + * @return ReservedResource + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest) (ReservedResource, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ReservedResource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reservedResourceId"+"}", _neturl.PathEscape(parameterToString(r.reservedResourceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.reservedResourcePatchRequest == nil { + return localVarReturnValue, nil, reportError("reservedResourcePatchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.reservedResourcePatchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + page *int32 + size *int32 + search *string + orderBy *string + fetchAccounts *bool +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) Page(page int32) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + r.page = &page + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) Size(size int32) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + r.size = &size + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) Search(search string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + r.search = &search + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) OrderBy(orderBy string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + r.orderBy = &orderBy + return r +} +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) FetchAccounts(fetchAccounts bool) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + r.fetchAccounts = &fetchAccounts + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) Execute() (SubscriptionRoleBindingList, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet Get subscription role bindings + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + } +} + +/* + * Execute executes the request + * @return SubscriptionRoleBindingList + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest) (SubscriptionRoleBindingList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SubscriptionRoleBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.fetchAccounts != nil { + localVarQueryParams.Add("fetchAccounts", parameterToString(*r.fetchAccounts, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + subId string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete Delete a subscription role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete(ctx _context.Context, id string, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + subId: subId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + subId string +} + + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest) Execute() (SubscriptionRoleBinding, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet Get a Subscription Role Binding by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The id of record + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet(ctx _context.Context, id string, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest{ + ApiService: a, + ctx: ctx, + id: id, + subId: subId, + } +} + +/* + * Execute executes the request + * @return SubscriptionRoleBinding + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest) (SubscriptionRoleBinding, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SubscriptionRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest struct { + ctx _context.Context + ApiService DefaultApi + subId string + subscriptionRoleBindingCreateRequest *SubscriptionRoleBindingCreateRequest +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest) SubscriptionRoleBindingCreateRequest(subscriptionRoleBindingCreateRequest SubscriptionRoleBindingCreateRequest) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest { + r.subscriptionRoleBindingCreateRequest = &subscriptionRoleBindingCreateRequest + return r +} + +func (r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest) Execute() (SubscriptionRoleBinding, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost Create a new subscription role binding + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param subId The id of subscription + * @return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost(ctx _context.Context, subId string) ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest { + return ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest{ + ApiService: a, + ctx: ctx, + subId: subId, + } +} + +/* + * Execute executes the request + * @return SubscriptionRoleBinding + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostExecute(r ApiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest) (SubscriptionRoleBinding, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SubscriptionRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings" + localVarPath = strings.Replace(localVarPath, "{"+"subId"+"}", _neturl.PathEscape(parameterToString(r.subId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.subscriptionRoleBindingCreateRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRoleBindingCreateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.subscriptionRoleBindingCreateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest struct { + ctx _context.Context + ApiService DefaultApi + caseId string +} + + +func (r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r) +} + +/* + * ApiAccountsMgmtV1SupportCasesCaseIdDelete Delete a support case + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param caseId The id of a support case + * @return ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx _context.Context, caseId string) ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest { + return ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest{ + ApiService: a, + ctx: ctx, + caseId: caseId, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesCaseIdDeleteExecute(r ApiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SupportCasesCaseIdDelete") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/support_cases/{caseId}" + localVarPath = strings.Replace(localVarPath, "{"+"caseId"+"}", _neturl.PathEscape(parameterToString(r.caseId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 405 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1SupportCasesPostRequest struct { + ctx _context.Context + ApiService DefaultApi + supportCasesRequest *SupportCasesRequest +} + +func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) SupportCasesRequest(supportCasesRequest SupportCasesRequest) ApiApiAccountsMgmtV1SupportCasesPostRequest { + r.supportCasesRequest = &supportCasesRequest + return r +} + +func (r ApiApiAccountsMgmtV1SupportCasesPostRequest) Execute() (SupportCasesCreatedResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1SupportCasesPostExecute(r) +} + +/* + * ApiAccountsMgmtV1SupportCasesPost create a support case for the subscription + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1SupportCasesPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPost(ctx _context.Context) ApiApiAccountsMgmtV1SupportCasesPostRequest { + return ApiApiAccountsMgmtV1SupportCasesPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SupportCasesCreatedResponse + */ +func (a *DefaultApiService) ApiAccountsMgmtV1SupportCasesPostExecute(r ApiApiAccountsMgmtV1SupportCasesPostRequest) (SupportCasesCreatedResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SupportCasesCreatedResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1SupportCasesPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/support_cases" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.supportCasesRequest == nil { + return localVarReturnValue, nil, reportError("supportCasesRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.supportCasesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAccountsMgmtV1TokenAuthorizationPostRequest struct { + ctx _context.Context + ApiService DefaultApi + tokenAuthorizationRequest *TokenAuthorizationRequest +} + +func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) TokenAuthorizationRequest(tokenAuthorizationRequest TokenAuthorizationRequest) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { + r.tokenAuthorizationRequest = &tokenAuthorizationRequest + return r +} + +func (r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) Execute() (TokenAuthorizationResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAccountsMgmtV1TokenAuthorizationPostExecute(r) +} + +/* + * ApiAccountsMgmtV1TokenAuthorizationPost Finds the account owner of the provided token + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAccountsMgmtV1TokenAuthorizationPostRequest + */ +func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPost(ctx _context.Context) ApiApiAccountsMgmtV1TokenAuthorizationPostRequest { + return ApiApiAccountsMgmtV1TokenAuthorizationPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return TokenAuthorizationResponse + */ +func (a *DefaultApiService) ApiAccountsMgmtV1TokenAuthorizationPostExecute(r ApiApiAccountsMgmtV1TokenAuthorizationPostRequest) (TokenAuthorizationResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue TokenAuthorizationResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAccountsMgmtV1TokenAuthorizationPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/accounts_mgmt/v1/token_authorization" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.tokenAuthorizationRequest == nil { + return localVarReturnValue, nil, reportError("tokenAuthorizationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.tokenAuthorizationRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1AccessReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + accessReview *AccessReview +} + +func (r ApiApiAuthorizationsV1AccessReviewPostRequest) AccessReview(accessReview AccessReview) ApiApiAuthorizationsV1AccessReviewPostRequest { + r.accessReview = &accessReview + return r +} + +func (r ApiApiAuthorizationsV1AccessReviewPostRequest) Execute() (AccessReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1AccessReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1AccessReviewPost Review an account's access to perform an action on a particular resource or resource type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1AccessReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1AccessReviewPostRequest { + return ApiApiAuthorizationsV1AccessReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AccessReviewResponse + */ +func (a *DefaultApiService) ApiAuthorizationsV1AccessReviewPostExecute(r ApiApiAuthorizationsV1AccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccessReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1AccessReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/access_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.accessReview == nil { + return localVarReturnValue, nil, reportError("accessReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.accessReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1CapabilityReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + capabilityReviewRequest *CapabilityReviewRequest +} + +func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) CapabilityReviewRequest(capabilityReviewRequest CapabilityReviewRequest) ApiApiAuthorizationsV1CapabilityReviewPostRequest { + r.capabilityReviewRequest = &capabilityReviewRequest + return r +} + +func (r ApiApiAuthorizationsV1CapabilityReviewPostRequest) Execute() (CapabilityReview, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1CapabilityReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1CapabilityReviewPost Review an account's capabilities + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1CapabilityReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPost(ctx _context.Context) ApiApiAuthorizationsV1CapabilityReviewPostRequest { + return ApiApiAuthorizationsV1CapabilityReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CapabilityReview + */ +func (a *DefaultApiService) ApiAuthorizationsV1CapabilityReviewPostExecute(r ApiApiAuthorizationsV1CapabilityReviewPostRequest) (CapabilityReview, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CapabilityReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1CapabilityReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/capability_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.capabilityReviewRequest == nil { + return localVarReturnValue, nil, reportError("capabilityReviewRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.capabilityReviewRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1ExportControlReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + exportControlReviewRequest *ExportControlReviewRequest +} + +func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) ExportControlReviewRequest(exportControlReviewRequest ExportControlReviewRequest) ApiApiAuthorizationsV1ExportControlReviewPostRequest { + r.exportControlReviewRequest = &exportControlReviewRequest + return r +} + +func (r ApiApiAuthorizationsV1ExportControlReviewPostRequest) Execute() (ExportControlReview, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1ExportControlReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1ExportControlReviewPost Determine whether a user is restricted from downloading Red Hat software based on export control compliance. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1ExportControlReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ExportControlReviewPostRequest { + return ApiApiAuthorizationsV1ExportControlReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ExportControlReview + */ +func (a *DefaultApiService) ApiAuthorizationsV1ExportControlReviewPostExecute(r ApiApiAuthorizationsV1ExportControlReviewPostRequest) (ExportControlReview, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ExportControlReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1ExportControlReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/export_control_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.exportControlReviewRequest == nil { + return localVarReturnValue, nil, reportError("exportControlReviewRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.exportControlReviewRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1FeatureReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + featureReview *FeatureReview +} + +func (r ApiApiAuthorizationsV1FeatureReviewPostRequest) FeatureReview(featureReview FeatureReview) ApiApiAuthorizationsV1FeatureReviewPostRequest { + r.featureReview = &featureReview + return r +} + +func (r ApiApiAuthorizationsV1FeatureReviewPostRequest) Execute() (FeatureReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1FeatureReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1FeatureReviewPost Review feature to perform an action on it such as toggle a feature on/off + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1FeatureReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1FeatureReviewPost(ctx _context.Context) ApiApiAuthorizationsV1FeatureReviewPostRequest { + return ApiApiAuthorizationsV1FeatureReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return FeatureReviewResponse + */ +func (a *DefaultApiService) ApiAuthorizationsV1FeatureReviewPostExecute(r ApiApiAuthorizationsV1FeatureReviewPostRequest) (FeatureReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FeatureReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1FeatureReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/feature_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.featureReview == nil { + return localVarReturnValue, nil, reportError("featureReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.featureReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1ResourceReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + resourceReviewRequest *ResourceReviewRequest + reduceClusterList *bool +} + +func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) ResourceReviewRequest(resourceReviewRequest ResourceReviewRequest) ApiApiAuthorizationsV1ResourceReviewPostRequest { + r.resourceReviewRequest = &resourceReviewRequest + return r +} +func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) ReduceClusterList(reduceClusterList bool) ApiApiAuthorizationsV1ResourceReviewPostRequest { + r.reduceClusterList = &reduceClusterList + return r +} + +func (r ApiApiAuthorizationsV1ResourceReviewPostRequest) Execute() (ResourceReview, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1ResourceReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1ResourceReviewPost Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1ResourceReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1ResourceReviewPostRequest { + return ApiApiAuthorizationsV1ResourceReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ResourceReview + */ +func (a *DefaultApiService) ApiAuthorizationsV1ResourceReviewPostExecute(r ApiApiAuthorizationsV1ResourceReviewPostRequest) (ResourceReview, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourceReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1ResourceReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/resource_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.resourceReviewRequest == nil { + return localVarReturnValue, nil, reportError("resourceReviewRequest is required and must be specified") + } + + if r.reduceClusterList != nil { + localVarQueryParams.Add("reduceClusterList", parameterToString(*r.reduceClusterList, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resourceReviewRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1SelfAccessReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + selfAccessReview *SelfAccessReview +} + +func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) SelfAccessReview(selfAccessReview SelfAccessReview) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { + r.selfAccessReview = &selfAccessReview + return r +} + +func (r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) Execute() (AccessReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1SelfAccessReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1SelfAccessReviewPost Review your ability to perform an action on a particular resource or resource type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfAccessReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfAccessReviewPostRequest { + return ApiApiAuthorizationsV1SelfAccessReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AccessReviewResponse + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfAccessReviewPostExecute(r ApiApiAuthorizationsV1SelfAccessReviewPostRequest) (AccessReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AccessReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1SelfAccessReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/self_access_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.selfAccessReview == nil { + return localVarReturnValue, nil, reportError("selfAccessReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.selfAccessReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1SelfFeatureReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + selfFeatureReview *SelfFeatureReview +} + +func (r ApiApiAuthorizationsV1SelfFeatureReviewPostRequest) SelfFeatureReview(selfFeatureReview SelfFeatureReview) ApiApiAuthorizationsV1SelfFeatureReviewPostRequest { + r.selfFeatureReview = &selfFeatureReview + return r +} + +func (r ApiApiAuthorizationsV1SelfFeatureReviewPostRequest) Execute() (FeatureReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1SelfFeatureReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1SelfFeatureReviewPost Review your ability to toggle a feature + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfFeatureReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfFeatureReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfFeatureReviewPostRequest { + return ApiApiAuthorizationsV1SelfFeatureReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return FeatureReviewResponse + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfFeatureReviewPostExecute(r ApiApiAuthorizationsV1SelfFeatureReviewPostRequest) (FeatureReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FeatureReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1SelfFeatureReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/self_feature_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.selfFeatureReview == nil { + return localVarReturnValue, nil, reportError("selfFeatureReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.selfFeatureReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1SelfResourceReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + selfResourceReviewRequest *SelfResourceReviewRequest + reduceClusterList *bool +} + +func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) SelfResourceReviewRequest(selfResourceReviewRequest SelfResourceReviewRequest) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { + r.selfResourceReviewRequest = &selfResourceReviewRequest + return r +} +func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) ReduceClusterList(reduceClusterList bool) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { + r.reduceClusterList = &reduceClusterList + return r +} + +func (r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) Execute() (SelfResourceReview, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1SelfResourceReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1SelfResourceReviewPost Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1SelfResourceReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPost(ctx _context.Context) ApiApiAuthorizationsV1SelfResourceReviewPostRequest { + return ApiApiAuthorizationsV1SelfResourceReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SelfResourceReview + */ +func (a *DefaultApiService) ApiAuthorizationsV1SelfResourceReviewPostExecute(r ApiApiAuthorizationsV1SelfResourceReviewPostRequest) (SelfResourceReview, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SelfResourceReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1SelfResourceReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/self_resource_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.selfResourceReviewRequest == nil { + return localVarReturnValue, nil, reportError("selfResourceReviewRequest is required and must be specified") + } + + if r.reduceClusterList != nil { + localVarQueryParams.Add("reduceClusterList", parameterToString(*r.reduceClusterList, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.selfResourceReviewRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiApiAuthorizationsV1TermsReviewPostRequest struct { + ctx _context.Context + ApiService DefaultApi + termsReview *TermsReview +} + +func (r ApiApiAuthorizationsV1TermsReviewPostRequest) TermsReview(termsReview TermsReview) ApiApiAuthorizationsV1TermsReviewPostRequest { + r.termsReview = &termsReview + return r +} + +func (r ApiApiAuthorizationsV1TermsReviewPostRequest) Execute() (TermsReviewResponse, *_nethttp.Response, error) { + return r.ApiService.ApiAuthorizationsV1TermsReviewPostExecute(r) +} + +/* + * ApiAuthorizationsV1TermsReviewPost Review an account's status of Terms + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiApiAuthorizationsV1TermsReviewPostRequest + */ +func (a *DefaultApiService) ApiAuthorizationsV1TermsReviewPost(ctx _context.Context) ApiApiAuthorizationsV1TermsReviewPostRequest { + return ApiApiAuthorizationsV1TermsReviewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return TermsReviewResponse + */ +func (a *DefaultApiService) ApiAuthorizationsV1TermsReviewPostExecute(r ApiApiAuthorizationsV1TermsReviewPostRequest) (TermsReviewResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue TermsReviewResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiAuthorizationsV1TermsReviewPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/authorizations/v1/terms_review" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.termsReview == nil { + return localVarReturnValue, nil, reportError("termsReview is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.termsReview + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/client.go b/app-services-sdk-go/accountmgmt/apiv1/client/client.go new file mode 100644 index 00000000..1a91ce47 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/client.go @@ -0,0 +1,548 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Account Management Service API API v0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AppServicesApi AppServicesApi + + DefaultApi DefaultApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AppServicesApi = (*AppServicesApiService)(&c.common) + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/configuration.go b/app-services-sdk-go/accountmgmt/apiv1/client/configuration.go new file mode 100644 index 00000000..dd039d4d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/configuration.go @@ -0,0 +1,238 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "http://localhost:14321", + Description: "current domain", + }, + { + URL: "https://api.openshift.com", + Description: "Main (production) server", + }, + { + URL: "https://api.stage.openshift.com", + Description: "Staging server", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReview.md new file mode 100644 index 00000000..377cbd93 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReview.md @@ -0,0 +1,197 @@ +# AccessReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**Action** | **string** | | +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**ResourceType** | **string** | | +**SubscriptionId** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessReview + +`func NewAccessReview(accountUsername string, action string, resourceType string, ) *AccessReview` + +NewAccessReview instantiates a new AccessReview 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 + +### NewAccessReviewWithDefaults + +`func NewAccessReviewWithDefaults() *AccessReview` + +NewAccessReviewWithDefaults instantiates a new AccessReview 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 + +### GetAccountUsername + +`func (o *AccessReview) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *AccessReview) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *AccessReview) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetAction + +`func (o *AccessReview) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *AccessReview) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *AccessReview) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetClusterId + +`func (o *AccessReview) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *AccessReview) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *AccessReview) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *AccessReview) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *AccessReview) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *AccessReview) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *AccessReview) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *AccessReview) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *AccessReview) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccessReview) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccessReview) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *AccessReview) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetResourceType + +`func (o *AccessReview) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *AccessReview) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *AccessReview) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetSubscriptionId + +`func (o *AccessReview) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *AccessReview) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *AccessReview) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *AccessReview) HasSubscriptionId() bool` + +HasSubscriptionId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReviewResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReviewResponse.md new file mode 100644 index 00000000..c055f407 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessReviewResponse.md @@ -0,0 +1,233 @@ +# AccessReviewResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | | [optional] +**Action** | Pointer to **string** | | [optional] +**Allowed** | **bool** | | +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] + +## Methods + +### NewAccessReviewResponse + +`func NewAccessReviewResponse(allowed bool, ) *AccessReviewResponse` + +NewAccessReviewResponse instantiates a new AccessReviewResponse 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 + +### NewAccessReviewResponseWithDefaults + +`func NewAccessReviewResponseWithDefaults() *AccessReviewResponse` + +NewAccessReviewResponseWithDefaults instantiates a new AccessReviewResponse 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 + +### GetAccountId + +`func (o *AccessReviewResponse) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *AccessReviewResponse) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *AccessReviewResponse) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *AccessReviewResponse) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetAction + +`func (o *AccessReviewResponse) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *AccessReviewResponse) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *AccessReviewResponse) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *AccessReviewResponse) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetAllowed + +`func (o *AccessReviewResponse) GetAllowed() bool` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *AccessReviewResponse) GetAllowedOk() (*bool, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *AccessReviewResponse) SetAllowed(v bool)` + +SetAllowed sets Allowed field to given value. + + +### GetClusterId + +`func (o *AccessReviewResponse) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *AccessReviewResponse) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *AccessReviewResponse) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *AccessReviewResponse) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *AccessReviewResponse) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *AccessReviewResponse) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *AccessReviewResponse) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *AccessReviewResponse) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *AccessReviewResponse) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccessReviewResponse) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccessReviewResponse) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *AccessReviewResponse) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetResourceType + +`func (o *AccessReviewResponse) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *AccessReviewResponse) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *AccessReviewResponse) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *AccessReviewResponse) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *AccessReviewResponse) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *AccessReviewResponse) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *AccessReviewResponse) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *AccessReviewResponse) HasSubscriptionId() bool` + +HasSubscriptionId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessTokenCfg.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessTokenCfg.md new file mode 100644 index 00000000..5a748c5e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccessTokenCfg.md @@ -0,0 +1,51 @@ +# AccessTokenCfg + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Auths** | **map[string]map[string]interface{}** | | + +## Methods + +### NewAccessTokenCfg + +`func NewAccessTokenCfg(auths map[string]map[string]interface{}, ) *AccessTokenCfg` + +NewAccessTokenCfg instantiates a new AccessTokenCfg 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 + +### NewAccessTokenCfgWithDefaults + +`func NewAccessTokenCfgWithDefaults() *AccessTokenCfg` + +NewAccessTokenCfgWithDefaults instantiates a new AccessTokenCfg 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 + +### GetAuths + +`func (o *AccessTokenCfg) GetAuths() map[string]map[string]interface{}` + +GetAuths returns the Auths field if non-nil, zero value otherwise. + +### GetAuthsOk + +`func (o *AccessTokenCfg) GetAuthsOk() (*map[string]map[string]interface{}, bool)` + +GetAuthsOk returns a tuple with the Auths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuths + +`func (o *AccessTokenCfg) SetAuths(v map[string]map[string]interface{})` + +SetAuths sets Auths 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Account.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Account.md new file mode 100644 index 00000000..4ce43a39 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Account.md @@ -0,0 +1,519 @@ +# Account + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**BanCode** | Pointer to **string** | | [optional] +**BanDescription** | Pointer to **string** | | [optional] +**Banned** | Pointer to **bool** | | [optional] [default to false] +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Organization** | Pointer to [**Organization**](Organization.md) | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**RhitAccountId** | Pointer to **string** | | [optional] +**RhitWebUserId** | Pointer to **string** | | [optional] +**ServiceAccount** | Pointer to **bool** | | [optional] [default to false] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Username** | **string** | | + +## Methods + +### NewAccount + +`func NewAccount(username string, ) *Account` + +NewAccount instantiates a new Account 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 + +### NewAccountWithDefaults + +`func NewAccountWithDefaults() *Account` + +NewAccountWithDefaults instantiates a new Account 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 + +### GetHref + +`func (o *Account) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Account) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Account) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Account) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Account) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Account) 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 *Account) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Account) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Account) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Account) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Account) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Account) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetBanCode + +`func (o *Account) GetBanCode() string` + +GetBanCode returns the BanCode field if non-nil, zero value otherwise. + +### GetBanCodeOk + +`func (o *Account) GetBanCodeOk() (*string, bool)` + +GetBanCodeOk returns a tuple with the BanCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanCode + +`func (o *Account) SetBanCode(v string)` + +SetBanCode sets BanCode field to given value. + +### HasBanCode + +`func (o *Account) HasBanCode() bool` + +HasBanCode returns a boolean if a field has been set. + +### GetBanDescription + +`func (o *Account) GetBanDescription() string` + +GetBanDescription returns the BanDescription field if non-nil, zero value otherwise. + +### GetBanDescriptionOk + +`func (o *Account) GetBanDescriptionOk() (*string, bool)` + +GetBanDescriptionOk returns a tuple with the BanDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanDescription + +`func (o *Account) SetBanDescription(v string)` + +SetBanDescription sets BanDescription field to given value. + +### HasBanDescription + +`func (o *Account) HasBanDescription() bool` + +HasBanDescription returns a boolean if a field has been set. + +### GetBanned + +`func (o *Account) GetBanned() bool` + +GetBanned returns the Banned field if non-nil, zero value otherwise. + +### GetBannedOk + +`func (o *Account) GetBannedOk() (*bool, bool)` + +GetBannedOk returns a tuple with the Banned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanned + +`func (o *Account) SetBanned(v bool)` + +SetBanned sets Banned field to given value. + +### HasBanned + +`func (o *Account) HasBanned() bool` + +HasBanned returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *Account) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *Account) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *Account) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *Account) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Account) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Account) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Account) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Account) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEmail + +`func (o *Account) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Account) 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 *Account) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *Account) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *Account) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *Account) 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 *Account) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *Account) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLabels + +`func (o *Account) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *Account) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *Account) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *Account) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetLastName + +`func (o *Account) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *Account) 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 *Account) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *Account) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetOrganization + +`func (o *Account) GetOrganization() Organization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *Account) GetOrganizationOk() (*Organization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *Account) SetOrganization(v Organization)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *Account) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *Account) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *Account) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *Account) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *Account) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetRhitAccountId + +`func (o *Account) GetRhitAccountId() string` + +GetRhitAccountId returns the RhitAccountId field if non-nil, zero value otherwise. + +### GetRhitAccountIdOk + +`func (o *Account) GetRhitAccountIdOk() (*string, bool)` + +GetRhitAccountIdOk returns a tuple with the RhitAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRhitAccountId + +`func (o *Account) SetRhitAccountId(v string)` + +SetRhitAccountId sets RhitAccountId field to given value. + +### HasRhitAccountId + +`func (o *Account) HasRhitAccountId() bool` + +HasRhitAccountId returns a boolean if a field has been set. + +### GetRhitWebUserId + +`func (o *Account) GetRhitWebUserId() string` + +GetRhitWebUserId returns the RhitWebUserId field if non-nil, zero value otherwise. + +### GetRhitWebUserIdOk + +`func (o *Account) GetRhitWebUserIdOk() (*string, bool)` + +GetRhitWebUserIdOk returns a tuple with the RhitWebUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRhitWebUserId + +`func (o *Account) SetRhitWebUserId(v string)` + +SetRhitWebUserId sets RhitWebUserId field to given value. + +### HasRhitWebUserId + +`func (o *Account) HasRhitWebUserId() bool` + +HasRhitWebUserId returns a boolean if a field has been set. + +### GetServiceAccount + +`func (o *Account) GetServiceAccount() bool` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *Account) GetServiceAccountOk() (*bool, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *Account) SetServiceAccount(v bool)` + +SetServiceAccount sets ServiceAccount field to given value. + +### HasServiceAccount + +`func (o *Account) HasServiceAccount() bool` + +HasServiceAccount returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Account) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Account) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Account) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Account) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUsername + +`func (o *Account) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *Account) 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 *Account) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountAllOf.md new file mode 100644 index 00000000..2b7f58d4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountAllOf.md @@ -0,0 +1,441 @@ +# AccountAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BanCode** | Pointer to **string** | | [optional] +**BanDescription** | Pointer to **string** | | [optional] +**Banned** | Pointer to **bool** | | [optional] [default to false] +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Organization** | Pointer to [**Organization**](Organization.md) | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**RhitAccountId** | Pointer to **string** | | [optional] +**RhitWebUserId** | Pointer to **string** | | [optional] +**ServiceAccount** | Pointer to **bool** | | [optional] [default to false] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Username** | **string** | | + +## Methods + +### NewAccountAllOf + +`func NewAccountAllOf(username string, ) *AccountAllOf` + +NewAccountAllOf instantiates a new AccountAllOf 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 + +### NewAccountAllOfWithDefaults + +`func NewAccountAllOfWithDefaults() *AccountAllOf` + +NewAccountAllOfWithDefaults instantiates a new AccountAllOf 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 + +### GetBanCode + +`func (o *AccountAllOf) GetBanCode() string` + +GetBanCode returns the BanCode field if non-nil, zero value otherwise. + +### GetBanCodeOk + +`func (o *AccountAllOf) GetBanCodeOk() (*string, bool)` + +GetBanCodeOk returns a tuple with the BanCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanCode + +`func (o *AccountAllOf) SetBanCode(v string)` + +SetBanCode sets BanCode field to given value. + +### HasBanCode + +`func (o *AccountAllOf) HasBanCode() bool` + +HasBanCode returns a boolean if a field has been set. + +### GetBanDescription + +`func (o *AccountAllOf) GetBanDescription() string` + +GetBanDescription returns the BanDescription field if non-nil, zero value otherwise. + +### GetBanDescriptionOk + +`func (o *AccountAllOf) GetBanDescriptionOk() (*string, bool)` + +GetBanDescriptionOk returns a tuple with the BanDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanDescription + +`func (o *AccountAllOf) SetBanDescription(v string)` + +SetBanDescription sets BanDescription field to given value. + +### HasBanDescription + +`func (o *AccountAllOf) HasBanDescription() bool` + +HasBanDescription returns a boolean if a field has been set. + +### GetBanned + +`func (o *AccountAllOf) GetBanned() bool` + +GetBanned returns the Banned field if non-nil, zero value otherwise. + +### GetBannedOk + +`func (o *AccountAllOf) GetBannedOk() (*bool, bool)` + +GetBannedOk returns a tuple with the Banned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanned + +`func (o *AccountAllOf) SetBanned(v bool)` + +SetBanned sets Banned field to given value. + +### HasBanned + +`func (o *AccountAllOf) HasBanned() bool` + +HasBanned returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *AccountAllOf) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *AccountAllOf) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *AccountAllOf) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *AccountAllOf) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *AccountAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccountAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccountAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AccountAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEmail + +`func (o *AccountAllOf) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AccountAllOf) 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 *AccountAllOf) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AccountAllOf) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *AccountAllOf) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *AccountAllOf) 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 *AccountAllOf) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *AccountAllOf) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLabels + +`func (o *AccountAllOf) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *AccountAllOf) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *AccountAllOf) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *AccountAllOf) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetLastName + +`func (o *AccountAllOf) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *AccountAllOf) 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 *AccountAllOf) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *AccountAllOf) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetOrganization + +`func (o *AccountAllOf) GetOrganization() Organization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *AccountAllOf) GetOrganizationOk() (*Organization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *AccountAllOf) SetOrganization(v Organization)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *AccountAllOf) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *AccountAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccountAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccountAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *AccountAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetRhitAccountId + +`func (o *AccountAllOf) GetRhitAccountId() string` + +GetRhitAccountId returns the RhitAccountId field if non-nil, zero value otherwise. + +### GetRhitAccountIdOk + +`func (o *AccountAllOf) GetRhitAccountIdOk() (*string, bool)` + +GetRhitAccountIdOk returns a tuple with the RhitAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRhitAccountId + +`func (o *AccountAllOf) SetRhitAccountId(v string)` + +SetRhitAccountId sets RhitAccountId field to given value. + +### HasRhitAccountId + +`func (o *AccountAllOf) HasRhitAccountId() bool` + +HasRhitAccountId returns a boolean if a field has been set. + +### GetRhitWebUserId + +`func (o *AccountAllOf) GetRhitWebUserId() string` + +GetRhitWebUserId returns the RhitWebUserId field if non-nil, zero value otherwise. + +### GetRhitWebUserIdOk + +`func (o *AccountAllOf) GetRhitWebUserIdOk() (*string, bool)` + +GetRhitWebUserIdOk returns a tuple with the RhitWebUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRhitWebUserId + +`func (o *AccountAllOf) SetRhitWebUserId(v string)` + +SetRhitWebUserId sets RhitWebUserId field to given value. + +### HasRhitWebUserId + +`func (o *AccountAllOf) HasRhitWebUserId() bool` + +HasRhitWebUserId returns a boolean if a field has been set. + +### GetServiceAccount + +`func (o *AccountAllOf) GetServiceAccount() bool` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *AccountAllOf) GetServiceAccountOk() (*bool, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *AccountAllOf) SetServiceAccount(v bool)` + +SetServiceAccount sets ServiceAccount field to given value. + +### HasServiceAccount + +`func (o *AccountAllOf) HasServiceAccount() bool` + +HasServiceAccount returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AccountAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccountAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccountAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccountAllOf) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUsername + +`func (o *AccountAllOf) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AccountAllOf) 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 *AccountAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroup.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroup.md new file mode 100644 index 00000000..aad32bd7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroup.md @@ -0,0 +1,244 @@ +# AccountGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | **string** | | +**ManagedBy** | **string** | | +**Name** | **string** | | +**OrganizationId** | **string** | | +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewAccountGroup + +`func NewAccountGroup(description string, managedBy string, name string, organizationId string, ) *AccountGroup` + +NewAccountGroup instantiates a new AccountGroup 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 + +### NewAccountGroupWithDefaults + +`func NewAccountGroupWithDefaults() *AccountGroup` + +NewAccountGroupWithDefaults instantiates a new AccountGroup 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 + +### GetHref + +`func (o *AccountGroup) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AccountGroup) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AccountGroup) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AccountGroup) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *AccountGroup) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountGroup) 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 *AccountGroup) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountGroup) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *AccountGroup) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountGroup) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountGroup) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AccountGroup) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *AccountGroup) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccountGroup) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccountGroup) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AccountGroup) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *AccountGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccountGroup) 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 *AccountGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetManagedBy + +`func (o *AccountGroup) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *AccountGroup) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *AccountGroup) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + + +### GetName + +`func (o *AccountGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountGroup) 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 *AccountGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrganizationId + +`func (o *AccountGroup) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccountGroup) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccountGroup) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetUpdatedAt + +`func (o *AccountGroup) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccountGroup) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccountGroup) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccountGroup) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAllOf.md new file mode 100644 index 00000000..8cea7e4f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAllOf.md @@ -0,0 +1,166 @@ +# AccountGroupAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | **string** | | +**ManagedBy** | **string** | | +**Name** | **string** | | +**OrganizationId** | **string** | | +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewAccountGroupAllOf + +`func NewAccountGroupAllOf(description string, managedBy string, name string, organizationId string, ) *AccountGroupAllOf` + +NewAccountGroupAllOf instantiates a new AccountGroupAllOf 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 + +### NewAccountGroupAllOfWithDefaults + +`func NewAccountGroupAllOfWithDefaults() *AccountGroupAllOf` + +NewAccountGroupAllOfWithDefaults instantiates a new AccountGroupAllOf 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 + +### GetCreatedAt + +`func (o *AccountGroupAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccountGroupAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccountGroupAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AccountGroupAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *AccountGroupAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccountGroupAllOf) 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 *AccountGroupAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetManagedBy + +`func (o *AccountGroupAllOf) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *AccountGroupAllOf) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *AccountGroupAllOf) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + + +### GetName + +`func (o *AccountGroupAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountGroupAllOf) 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 *AccountGroupAllOf) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrganizationId + +`func (o *AccountGroupAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccountGroupAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccountGroupAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetUpdatedAt + +`func (o *AccountGroupAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccountGroupAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccountGroupAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccountGroupAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignment.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignment.md new file mode 100644 index 00000000..ae296710 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignment.md @@ -0,0 +1,202 @@ +# AccountGroupAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AccountGroupId** | **string** | | +**AccountId** | **string** | | +**CreatedAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewAccountGroupAssignment + +`func NewAccountGroupAssignment(accountGroupId string, accountId string, ) *AccountGroupAssignment` + +NewAccountGroupAssignment instantiates a new AccountGroupAssignment 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 + +### NewAccountGroupAssignmentWithDefaults + +`func NewAccountGroupAssignmentWithDefaults() *AccountGroupAssignment` + +NewAccountGroupAssignmentWithDefaults instantiates a new AccountGroupAssignment 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 + +### GetHref + +`func (o *AccountGroupAssignment) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AccountGroupAssignment) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AccountGroupAssignment) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AccountGroupAssignment) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *AccountGroupAssignment) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountGroupAssignment) 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 *AccountGroupAssignment) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountGroupAssignment) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *AccountGroupAssignment) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountGroupAssignment) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountGroupAssignment) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AccountGroupAssignment) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAccountGroupId + +`func (o *AccountGroupAssignment) GetAccountGroupId() string` + +GetAccountGroupId returns the AccountGroupId field if non-nil, zero value otherwise. + +### GetAccountGroupIdOk + +`func (o *AccountGroupAssignment) GetAccountGroupIdOk() (*string, bool)` + +GetAccountGroupIdOk returns a tuple with the AccountGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroupId + +`func (o *AccountGroupAssignment) SetAccountGroupId(v string)` + +SetAccountGroupId sets AccountGroupId field to given value. + + +### GetAccountId + +`func (o *AccountGroupAssignment) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *AccountGroupAssignment) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *AccountGroupAssignment) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetCreatedAt + +`func (o *AccountGroupAssignment) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccountGroupAssignment) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccountGroupAssignment) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AccountGroupAssignment) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AccountGroupAssignment) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccountGroupAssignment) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccountGroupAssignment) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccountGroupAssignment) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentAllOf.md new file mode 100644 index 00000000..b76be5f1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentAllOf.md @@ -0,0 +1,124 @@ +# AccountGroupAssignmentAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountGroupId** | **string** | | +**AccountId** | **string** | | +**CreatedAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewAccountGroupAssignmentAllOf + +`func NewAccountGroupAssignmentAllOf(accountGroupId string, accountId string, ) *AccountGroupAssignmentAllOf` + +NewAccountGroupAssignmentAllOf instantiates a new AccountGroupAssignmentAllOf 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 + +### NewAccountGroupAssignmentAllOfWithDefaults + +`func NewAccountGroupAssignmentAllOfWithDefaults() *AccountGroupAssignmentAllOf` + +NewAccountGroupAssignmentAllOfWithDefaults instantiates a new AccountGroupAssignmentAllOf 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 + +### GetAccountGroupId + +`func (o *AccountGroupAssignmentAllOf) GetAccountGroupId() string` + +GetAccountGroupId returns the AccountGroupId field if non-nil, zero value otherwise. + +### GetAccountGroupIdOk + +`func (o *AccountGroupAssignmentAllOf) GetAccountGroupIdOk() (*string, bool)` + +GetAccountGroupIdOk returns a tuple with the AccountGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroupId + +`func (o *AccountGroupAssignmentAllOf) SetAccountGroupId(v string)` + +SetAccountGroupId sets AccountGroupId field to given value. + + +### GetAccountId + +`func (o *AccountGroupAssignmentAllOf) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *AccountGroupAssignmentAllOf) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *AccountGroupAssignmentAllOf) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetCreatedAt + +`func (o *AccountGroupAssignmentAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *AccountGroupAssignmentAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *AccountGroupAssignmentAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *AccountGroupAssignmentAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *AccountGroupAssignmentAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *AccountGroupAssignmentAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *AccountGroupAssignmentAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *AccountGroupAssignmentAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentList.md new file mode 100644 index 00000000..0c58303f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentList.md @@ -0,0 +1,135 @@ +# AccountGroupAssignmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]AccountGroupAssignment**](AccountGroupAssignment.md) | | + +## Methods + +### NewAccountGroupAssignmentList + +`func NewAccountGroupAssignmentList(kind string, page int32, size int32, total int32, items []AccountGroupAssignment, ) *AccountGroupAssignmentList` + +NewAccountGroupAssignmentList instantiates a new AccountGroupAssignmentList 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 + +### NewAccountGroupAssignmentListWithDefaults + +`func NewAccountGroupAssignmentListWithDefaults() *AccountGroupAssignmentList` + +NewAccountGroupAssignmentListWithDefaults instantiates a new AccountGroupAssignmentList 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 + +### GetKind + +`func (o *AccountGroupAssignmentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountGroupAssignmentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountGroupAssignmentList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *AccountGroupAssignmentList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *AccountGroupAssignmentList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *AccountGroupAssignmentList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *AccountGroupAssignmentList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *AccountGroupAssignmentList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *AccountGroupAssignmentList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *AccountGroupAssignmentList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *AccountGroupAssignmentList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *AccountGroupAssignmentList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *AccountGroupAssignmentList) GetItems() []AccountGroupAssignment` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountGroupAssignmentList) GetItemsOk() (*[]AccountGroupAssignment, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountGroupAssignmentList) SetItems(v []AccountGroupAssignment)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentListAllOf.md new file mode 100644 index 00000000..5aaa3541 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupAssignmentListAllOf.md @@ -0,0 +1,56 @@ +# AccountGroupAssignmentListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]AccountGroupAssignment**](AccountGroupAssignment.md) | | [optional] + +## Methods + +### NewAccountGroupAssignmentListAllOf + +`func NewAccountGroupAssignmentListAllOf() *AccountGroupAssignmentListAllOf` + +NewAccountGroupAssignmentListAllOf instantiates a new AccountGroupAssignmentListAllOf 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 + +### NewAccountGroupAssignmentListAllOfWithDefaults + +`func NewAccountGroupAssignmentListAllOfWithDefaults() *AccountGroupAssignmentListAllOf` + +NewAccountGroupAssignmentListAllOfWithDefaults instantiates a new AccountGroupAssignmentListAllOf 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 + +### GetItems + +`func (o *AccountGroupAssignmentListAllOf) GetItems() []AccountGroupAssignment` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountGroupAssignmentListAllOf) GetItemsOk() (*[]AccountGroupAssignment, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountGroupAssignmentListAllOf) SetItems(v []AccountGroupAssignment)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AccountGroupAssignmentListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupList.md new file mode 100644 index 00000000..f9273477 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupList.md @@ -0,0 +1,135 @@ +# AccountGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]AccountGroup**](AccountGroup.md) | | + +## Methods + +### NewAccountGroupList + +`func NewAccountGroupList(kind string, page int32, size int32, total int32, items []AccountGroup, ) *AccountGroupList` + +NewAccountGroupList instantiates a new AccountGroupList 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 + +### NewAccountGroupListWithDefaults + +`func NewAccountGroupListWithDefaults() *AccountGroupList` + +NewAccountGroupListWithDefaults instantiates a new AccountGroupList 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 + +### GetKind + +`func (o *AccountGroupList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountGroupList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountGroupList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *AccountGroupList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *AccountGroupList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *AccountGroupList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *AccountGroupList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *AccountGroupList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *AccountGroupList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *AccountGroupList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *AccountGroupList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *AccountGroupList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *AccountGroupList) GetItems() []AccountGroup` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountGroupList) GetItemsOk() (*[]AccountGroup, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountGroupList) SetItems(v []AccountGroup)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupListAllOf.md new file mode 100644 index 00000000..76f89225 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupListAllOf.md @@ -0,0 +1,56 @@ +# AccountGroupListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]AccountGroup**](AccountGroup.md) | | [optional] + +## Methods + +### NewAccountGroupListAllOf + +`func NewAccountGroupListAllOf() *AccountGroupListAllOf` + +NewAccountGroupListAllOf instantiates a new AccountGroupListAllOf 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 + +### NewAccountGroupListAllOfWithDefaults + +`func NewAccountGroupListAllOfWithDefaults() *AccountGroupListAllOf` + +NewAccountGroupListAllOfWithDefaults instantiates a new AccountGroupListAllOf 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 + +### GetItems + +`func (o *AccountGroupListAllOf) GetItems() []AccountGroup` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountGroupListAllOf) GetItemsOk() (*[]AccountGroup, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountGroupListAllOf) SetItems(v []AccountGroup)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AccountGroupListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequest.md new file mode 100644 index 00000000..6a786b84 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequest.md @@ -0,0 +1,150 @@ +# AccountGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Description** | **string** | | +**Name** | **string** | | + +## Methods + +### NewAccountGroupRequest + +`func NewAccountGroupRequest(description string, name string, ) *AccountGroupRequest` + +NewAccountGroupRequest instantiates a new AccountGroupRequest 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 + +### NewAccountGroupRequestWithDefaults + +`func NewAccountGroupRequestWithDefaults() *AccountGroupRequest` + +NewAccountGroupRequestWithDefaults instantiates a new AccountGroupRequest 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 + +### GetHref + +`func (o *AccountGroupRequest) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AccountGroupRequest) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AccountGroupRequest) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AccountGroupRequest) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *AccountGroupRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountGroupRequest) 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 *AccountGroupRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountGroupRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *AccountGroupRequest) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountGroupRequest) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountGroupRequest) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AccountGroupRequest) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetDescription + +`func (o *AccountGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccountGroupRequest) 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 *AccountGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetName + +`func (o *AccountGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountGroupRequest) 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 *AccountGroupRequest) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequestAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequestAllOf.md new file mode 100644 index 00000000..c42cf9a7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountGroupRequestAllOf.md @@ -0,0 +1,72 @@ +# AccountGroupRequestAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | | +**Name** | **string** | | + +## Methods + +### NewAccountGroupRequestAllOf + +`func NewAccountGroupRequestAllOf(description string, name string, ) *AccountGroupRequestAllOf` + +NewAccountGroupRequestAllOf instantiates a new AccountGroupRequestAllOf 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 + +### NewAccountGroupRequestAllOfWithDefaults + +`func NewAccountGroupRequestAllOfWithDefaults() *AccountGroupRequestAllOf` + +NewAccountGroupRequestAllOfWithDefaults instantiates a new AccountGroupRequestAllOf 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 *AccountGroupRequestAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccountGroupRequestAllOf) 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 *AccountGroupRequestAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetName + +`func (o *AccountGroupRequestAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountGroupRequestAllOf) 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 *AccountGroupRequestAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountList.md new file mode 100644 index 00000000..57c4d584 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountList.md @@ -0,0 +1,135 @@ +# AccountList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Account**](Account.md) | | + +## Methods + +### NewAccountList + +`func NewAccountList(kind string, page int32, size int32, total int32, items []Account, ) *AccountList` + +NewAccountList instantiates a new AccountList 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 + +### NewAccountListWithDefaults + +`func NewAccountListWithDefaults() *AccountList` + +NewAccountListWithDefaults instantiates a new AccountList 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 + +### GetKind + +`func (o *AccountList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *AccountList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *AccountList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *AccountList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *AccountList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *AccountList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *AccountList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *AccountList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *AccountList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *AccountList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *AccountList) GetItems() []Account` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountList) GetItemsOk() (*[]Account, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountList) SetItems(v []Account)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountListAllOf.md new file mode 100644 index 00000000..24deb5e4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountListAllOf.md @@ -0,0 +1,56 @@ +# AccountListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Account**](Account.md) | | [optional] + +## Methods + +### NewAccountListAllOf + +`func NewAccountListAllOf() *AccountListAllOf` + +NewAccountListAllOf instantiates a new AccountListAllOf 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 + +### NewAccountListAllOfWithDefaults + +`func NewAccountListAllOfWithDefaults() *AccountListAllOf` + +NewAccountListAllOfWithDefaults instantiates a new AccountListAllOf 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 + +### GetItems + +`func (o *AccountListAllOf) GetItems() []Account` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AccountListAllOf) GetItemsOk() (*[]Account, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AccountListAllOf) SetItems(v []Account)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AccountListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountPatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountPatchRequest.md new file mode 100644 index 00000000..ceefe4ad --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountPatchRequest.md @@ -0,0 +1,238 @@ +# AccountPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BanCode** | Pointer to **string** | | [optional] +**BanDescription** | Pointer to **string** | | [optional] +**Banned** | Pointer to **bool** | | [optional] +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**ServiceAccount** | Pointer to **bool** | | [optional] + +## Methods + +### NewAccountPatchRequest + +`func NewAccountPatchRequest() *AccountPatchRequest` + +NewAccountPatchRequest instantiates a new AccountPatchRequest 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 + +### NewAccountPatchRequestWithDefaults + +`func NewAccountPatchRequestWithDefaults() *AccountPatchRequest` + +NewAccountPatchRequestWithDefaults instantiates a new AccountPatchRequest 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 + +### GetBanCode + +`func (o *AccountPatchRequest) GetBanCode() string` + +GetBanCode returns the BanCode field if non-nil, zero value otherwise. + +### GetBanCodeOk + +`func (o *AccountPatchRequest) GetBanCodeOk() (*string, bool)` + +GetBanCodeOk returns a tuple with the BanCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanCode + +`func (o *AccountPatchRequest) SetBanCode(v string)` + +SetBanCode sets BanCode field to given value. + +### HasBanCode + +`func (o *AccountPatchRequest) HasBanCode() bool` + +HasBanCode returns a boolean if a field has been set. + +### GetBanDescription + +`func (o *AccountPatchRequest) GetBanDescription() string` + +GetBanDescription returns the BanDescription field if non-nil, zero value otherwise. + +### GetBanDescriptionOk + +`func (o *AccountPatchRequest) GetBanDescriptionOk() (*string, bool)` + +GetBanDescriptionOk returns a tuple with the BanDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanDescription + +`func (o *AccountPatchRequest) SetBanDescription(v string)` + +SetBanDescription sets BanDescription field to given value. + +### HasBanDescription + +`func (o *AccountPatchRequest) HasBanDescription() bool` + +HasBanDescription returns a boolean if a field has been set. + +### GetBanned + +`func (o *AccountPatchRequest) GetBanned() bool` + +GetBanned returns the Banned field if non-nil, zero value otherwise. + +### GetBannedOk + +`func (o *AccountPatchRequest) GetBannedOk() (*bool, bool)` + +GetBannedOk returns a tuple with the Banned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanned + +`func (o *AccountPatchRequest) SetBanned(v bool)` + +SetBanned sets Banned field to given value. + +### HasBanned + +`func (o *AccountPatchRequest) HasBanned() bool` + +HasBanned returns a boolean if a field has been set. + +### GetEmail + +`func (o *AccountPatchRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AccountPatchRequest) 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 *AccountPatchRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AccountPatchRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *AccountPatchRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *AccountPatchRequest) 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 *AccountPatchRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *AccountPatchRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *AccountPatchRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *AccountPatchRequest) 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 *AccountPatchRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *AccountPatchRequest) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *AccountPatchRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *AccountPatchRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *AccountPatchRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *AccountPatchRequest) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetServiceAccount + +`func (o *AccountPatchRequest) GetServiceAccount() bool` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *AccountPatchRequest) GetServiceAccountOk() (*bool, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *AccountPatchRequest) SetServiceAccount(v bool)` + +SetServiceAccount sets ServiceAccount field to given value. + +### HasServiceAccount + +`func (o *AccountPatchRequest) HasServiceAccount() bool` + +HasServiceAccount 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReference.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReference.md new file mode 100644 index 00000000..4b608a15 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReference.md @@ -0,0 +1,186 @@ +# AccountReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewAccountReference + +`func NewAccountReference() *AccountReference` + +NewAccountReference instantiates a new AccountReference 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 + +### NewAccountReferenceWithDefaults + +`func NewAccountReferenceWithDefaults() *AccountReference` + +NewAccountReferenceWithDefaults instantiates a new AccountReference 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 + +### GetHref + +`func (o *AccountReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AccountReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AccountReference) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AccountReference) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *AccountReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AccountReference) 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 *AccountReference) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AccountReference) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *AccountReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AccountReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AccountReference) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AccountReference) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetEmail + +`func (o *AccountReference) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AccountReference) 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 *AccountReference) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AccountReference) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetName + +`func (o *AccountReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountReference) 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 *AccountReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AccountReference) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUsername + +`func (o *AccountReference) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AccountReference) 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 *AccountReference) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *AccountReference) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReferenceAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReferenceAllOf.md new file mode 100644 index 00000000..408acd60 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AccountReferenceAllOf.md @@ -0,0 +1,108 @@ +# AccountReferenceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewAccountReferenceAllOf + +`func NewAccountReferenceAllOf() *AccountReferenceAllOf` + +NewAccountReferenceAllOf instantiates a new AccountReferenceAllOf 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 + +### NewAccountReferenceAllOfWithDefaults + +`func NewAccountReferenceAllOfWithDefaults() *AccountReferenceAllOf` + +NewAccountReferenceAllOfWithDefaults instantiates a new AccountReferenceAllOf 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 *AccountReferenceAllOf) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *AccountReferenceAllOf) 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 *AccountReferenceAllOf) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *AccountReferenceAllOf) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetName + +`func (o *AccountReferenceAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccountReferenceAllOf) 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 *AccountReferenceAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AccountReferenceAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUsername + +`func (o *AccountReferenceAllOf) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *AccountReferenceAllOf) 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 *AccountReferenceAllOf) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *AccountReferenceAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/AppServicesApi.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AppServicesApi.md new file mode 100644 index 00000000..7b222328 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/AppServicesApi.md @@ -0,0 +1,275 @@ +# \AppServicesApi + +All URIs are relative to *http://localhost:14321* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ApiAccountsMgmtV1AccessTokenPost**](AppServicesApi.md#ApiAccountsMgmtV1AccessTokenPost) | **Post** /api/accounts_mgmt/v1/access_token | Return access token generated from registries in docker format +[**ApiAccountsMgmtV1CurrentAccountGet**](AppServicesApi.md#ApiAccountsMgmtV1CurrentAccountGet) | **Get** /api/accounts_mgmt/v1/current_account | Get the authenticated account +[**ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet**](AppServicesApi.md#ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/quota_cost | Returns a summary of quota cost +[**ApiAuthorizationsV1SelfTermsReviewPost**](AppServicesApi.md#ApiAuthorizationsV1SelfTermsReviewPost) | **Post** /api/authorizations/v1/self_terms_review | Review your status of Terms + + + +## ApiAccountsMgmtV1AccessTokenPost + +> AccessTokenCfg ApiAccountsMgmtV1AccessTokenPost(ctx).Execute() + +Return access token generated from registries in docker format + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AppServicesApi.ApiAccountsMgmtV1AccessTokenPost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppServicesApi.ApiAccountsMgmtV1AccessTokenPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccessTokenPost`: AccessTokenCfg + fmt.Fprintf(os.Stdout, "Response from `AppServicesApi.ApiAccountsMgmtV1AccessTokenPost`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccessTokenPostRequest struct via the builder pattern + + +### Return type + +[**AccessTokenCfg**](AccessTokenCfg.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CurrentAccountGet + +> Account ApiAccountsMgmtV1CurrentAccountGet(ctx).FetchLabels(fetchLabels).Execute() + +Get the authenticated account + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AppServicesApi.ApiAccountsMgmtV1CurrentAccountGet(context.Background()).FetchLabels(fetchLabels).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppServicesApi.ApiAccountsMgmtV1CurrentAccountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CurrentAccountGet`: Account + fmt.Fprintf(os.Stdout, "Response from `AppServicesApi.ApiAccountsMgmtV1CurrentAccountGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CurrentAccountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + +### Return type + +[**Account**](Account.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet + +> QuotaCostList ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(ctx, orgId).Search(search).FetchRelatedResources(fetchRelatedResources).ForceRecalc(forceRecalc).FetchCloudAccounts(fetchCloudAccounts).Execute() + +Returns a summary of quota cost + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + fetchRelatedResources := true // bool | If true, includes the related resources in the output. Could slow request response time. (optional) + forceRecalc := true // bool | If true, includes that ConsumedQuota should be recalculated. (optional) + fetchCloudAccounts := true // bool | If true, includes the marketplace cloud accounts in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AppServicesApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(context.Background(), orgId).Search(search).FetchRelatedResources(fetchRelatedResources).ForceRecalc(forceRecalc).FetchCloudAccounts(fetchCloudAccounts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppServicesApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet`: QuotaCostList + fmt.Fprintf(os.Stdout, "Response from `AppServicesApi.ApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdQuotaCostGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **fetchRelatedResources** | **bool** | If true, includes the related resources in the output. Could slow request response time. | + **forceRecalc** | **bool** | If true, includes that ConsumedQuota should be recalculated. | + **fetchCloudAccounts** | **bool** | If true, includes the marketplace cloud accounts in the output. Could slow request response time. | + +### Return type + +[**QuotaCostList**](QuotaCostList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1SelfTermsReviewPost + +> TermsReviewResponse ApiAuthorizationsV1SelfTermsReviewPost(ctx).SelfTermsReview(selfTermsReview).Execute() + +Review your status of Terms + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + selfTermsReview := *openapiclient.NewSelfTermsReview() // SelfTermsReview | Data to check self terms for + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AppServicesApi.ApiAuthorizationsV1SelfTermsReviewPost(context.Background()).SelfTermsReview(selfTermsReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppServicesApi.ApiAuthorizationsV1SelfTermsReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1SelfTermsReviewPost`: TermsReviewResponse + fmt.Fprintf(os.Stdout, "Response from `AppServicesApi.ApiAuthorizationsV1SelfTermsReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1SelfTermsReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **selfTermsReview** | [**SelfTermsReview**](SelfTermsReview.md) | Data to check self terms for | + +### Return type + +[**TermsReviewResponse**](TermsReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/docs/Capability.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Capability.md new file mode 100644 index 00000000..a47fe2cc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Capability.md @@ -0,0 +1,171 @@ +# Capability + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Inherited** | **bool** | | +**Name** | **string** | | +**Value** | **string** | | + +## Methods + +### NewCapability + +`func NewCapability(inherited bool, name string, value string, ) *Capability` + +NewCapability instantiates a new Capability 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 + +### NewCapabilityWithDefaults + +`func NewCapabilityWithDefaults() *Capability` + +NewCapabilityWithDefaults instantiates a new Capability 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 + +### GetHref + +`func (o *Capability) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Capability) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Capability) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Capability) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Capability) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Capability) 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 *Capability) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Capability) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Capability) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Capability) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Capability) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Capability) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetInherited + +`func (o *Capability) GetInherited() bool` + +GetInherited returns the Inherited field if non-nil, zero value otherwise. + +### GetInheritedOk + +`func (o *Capability) GetInheritedOk() (*bool, bool)` + +GetInheritedOk returns a tuple with the Inherited field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInherited + +`func (o *Capability) SetInherited(v bool)` + +SetInherited sets Inherited field to given value. + + +### GetName + +`func (o *Capability) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Capability) 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 *Capability) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *Capability) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Capability) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Capability) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityAllOf.md new file mode 100644 index 00000000..7d3589c0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityAllOf.md @@ -0,0 +1,93 @@ +# CapabilityAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Inherited** | **bool** | | +**Name** | **string** | | +**Value** | **string** | | + +## Methods + +### NewCapabilityAllOf + +`func NewCapabilityAllOf(inherited bool, name string, value string, ) *CapabilityAllOf` + +NewCapabilityAllOf instantiates a new CapabilityAllOf 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 + +### NewCapabilityAllOfWithDefaults + +`func NewCapabilityAllOfWithDefaults() *CapabilityAllOf` + +NewCapabilityAllOfWithDefaults instantiates a new CapabilityAllOf 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 + +### GetInherited + +`func (o *CapabilityAllOf) GetInherited() bool` + +GetInherited returns the Inherited field if non-nil, zero value otherwise. + +### GetInheritedOk + +`func (o *CapabilityAllOf) GetInheritedOk() (*bool, bool)` + +GetInheritedOk returns a tuple with the Inherited field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInherited + +`func (o *CapabilityAllOf) SetInherited(v bool)` + +SetInherited sets Inherited field to given value. + + +### GetName + +`func (o *CapabilityAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CapabilityAllOf) 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 *CapabilityAllOf) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *CapabilityAllOf) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CapabilityAllOf) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CapabilityAllOf) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReview.md new file mode 100644 index 00000000..69d727f0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReview.md @@ -0,0 +1,51 @@ +# CapabilityReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **string** | | + +## Methods + +### NewCapabilityReview + +`func NewCapabilityReview(result string, ) *CapabilityReview` + +NewCapabilityReview instantiates a new CapabilityReview 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 + +### NewCapabilityReviewWithDefaults + +`func NewCapabilityReviewWithDefaults() *CapabilityReview` + +NewCapabilityReviewWithDefaults instantiates a new CapabilityReview 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 + +### GetResult + +`func (o *CapabilityReview) GetResult() string` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *CapabilityReview) GetResultOk() (*string, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *CapabilityReview) SetResult(v string)` + +SetResult sets Result 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReviewRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReviewRequest.md new file mode 100644 index 00000000..d65889d0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CapabilityReviewRequest.md @@ -0,0 +1,171 @@ +# CapabilityReviewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**Capability** | **string** | | +**ClusterId** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**Type** | **string** | | + +## Methods + +### NewCapabilityReviewRequest + +`func NewCapabilityReviewRequest(accountUsername string, capability string, type_ string, ) *CapabilityReviewRequest` + +NewCapabilityReviewRequest instantiates a new CapabilityReviewRequest 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 + +### NewCapabilityReviewRequestWithDefaults + +`func NewCapabilityReviewRequestWithDefaults() *CapabilityReviewRequest` + +NewCapabilityReviewRequestWithDefaults instantiates a new CapabilityReviewRequest 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 + +### GetAccountUsername + +`func (o *CapabilityReviewRequest) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *CapabilityReviewRequest) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *CapabilityReviewRequest) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetCapability + +`func (o *CapabilityReviewRequest) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *CapabilityReviewRequest) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *CapabilityReviewRequest) SetCapability(v string)` + +SetCapability sets Capability field to given value. + + +### GetClusterId + +`func (o *CapabilityReviewRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *CapabilityReviewRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *CapabilityReviewRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *CapabilityReviewRequest) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *CapabilityReviewRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *CapabilityReviewRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *CapabilityReviewRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *CapabilityReviewRequest) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *CapabilityReviewRequest) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *CapabilityReviewRequest) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *CapabilityReviewRequest) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *CapabilityReviewRequest) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetType + +`func (o *CapabilityReviewRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CapabilityReviewRequest) GetTypeOk() (*string, 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 *CapabilityReviewRequest) SetType(v string)` + +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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Certificate.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Certificate.md new file mode 100644 index 00000000..58f8ab8f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Certificate.md @@ -0,0 +1,156 @@ +# Certificate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cert** | **string** | | +**Id** | **string** | | +**Key** | **string** | | +**Metadata** | **map[string]string** | | +**OrganizationId** | **string** | | +**Serial** | [**CertificateSerial**](CertificateSerial.md) | | + +## Methods + +### NewCertificate + +`func NewCertificate(cert string, id string, key string, metadata map[string]string, organizationId string, serial CertificateSerial, ) *Certificate` + +NewCertificate instantiates a new Certificate 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 + +### NewCertificateWithDefaults + +`func NewCertificateWithDefaults() *Certificate` + +NewCertificateWithDefaults instantiates a new Certificate 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 + +### GetCert + +`func (o *Certificate) GetCert() string` + +GetCert returns the Cert field if non-nil, zero value otherwise. + +### GetCertOk + +`func (o *Certificate) GetCertOk() (*string, bool)` + +GetCertOk returns a tuple with the Cert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCert + +`func (o *Certificate) SetCert(v string)` + +SetCert sets Cert field to given value. + + +### GetId + +`func (o *Certificate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Certificate) 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 *Certificate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKey + +`func (o *Certificate) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *Certificate) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *Certificate) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetMetadata + +`func (o *Certificate) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Certificate) GetMetadataOk() (*map[string]string, 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 *Certificate) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + + +### GetOrganizationId + +`func (o *Certificate) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *Certificate) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *Certificate) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetSerial + +`func (o *Certificate) GetSerial() CertificateSerial` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Certificate) GetSerialOk() (*CertificateSerial, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Certificate) SetSerial(v CertificateSerial)` + +SetSerial sets Serial 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificateSerial.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificateSerial.md new file mode 100644 index 00000000..b19d10d6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificateSerial.md @@ -0,0 +1,135 @@ +# CertificateSerial + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Created** | **time.Time** | | +**Expiration** | **time.Time** | | +**Id** | **int64** | | +**Serial** | **int64** | | +**Updated** | **time.Time** | | + +## Methods + +### NewCertificateSerial + +`func NewCertificateSerial(created time.Time, expiration time.Time, id int64, serial int64, updated time.Time, ) *CertificateSerial` + +NewCertificateSerial instantiates a new CertificateSerial 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 + +### NewCertificateSerialWithDefaults + +`func NewCertificateSerialWithDefaults() *CertificateSerial` + +NewCertificateSerialWithDefaults instantiates a new CertificateSerial 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 + +### GetCreated + +`func (o *CertificateSerial) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CertificateSerial) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CertificateSerial) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExpiration + +`func (o *CertificateSerial) GetExpiration() time.Time` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *CertificateSerial) GetExpirationOk() (*time.Time, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *CertificateSerial) SetExpiration(v time.Time)` + +SetExpiration sets Expiration field to given value. + + +### GetId + +`func (o *CertificateSerial) GetId() int64` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CertificateSerial) GetIdOk() (*int64, 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 *CertificateSerial) SetId(v int64)` + +SetId sets Id field to given value. + + +### GetSerial + +`func (o *CertificateSerial) GetSerial() int64` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *CertificateSerial) GetSerialOk() (*int64, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *CertificateSerial) SetSerial(v int64)` + +SetSerial sets Serial field to given value. + + +### GetUpdated + +`func (o *CertificateSerial) GetUpdated() time.Time` + +GetUpdated returns the Updated field if non-nil, zero value otherwise. + +### GetUpdatedOk + +`func (o *CertificateSerial) GetUpdatedOk() (*time.Time, bool)` + +GetUpdatedOk returns a tuple with the Updated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdated + +`func (o *CertificateSerial) SetUpdated(v time.Time)` + +SetUpdated sets Updated 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificatesRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificatesRequest.md new file mode 100644 index 00000000..2bdf56c1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CertificatesRequest.md @@ -0,0 +1,77 @@ +# CertificatesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Arch** | Pointer to **string** | | [optional] +**Type** | **string** | | + +## Methods + +### NewCertificatesRequest + +`func NewCertificatesRequest(type_ string, ) *CertificatesRequest` + +NewCertificatesRequest instantiates a new CertificatesRequest 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 + +### NewCertificatesRequestWithDefaults + +`func NewCertificatesRequestWithDefaults() *CertificatesRequest` + +NewCertificatesRequestWithDefaults instantiates a new CertificatesRequest 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 + +### GetArch + +`func (o *CertificatesRequest) GetArch() string` + +GetArch returns the Arch field if non-nil, zero value otherwise. + +### GetArchOk + +`func (o *CertificatesRequest) GetArchOk() (*string, bool)` + +GetArchOk returns a tuple with the Arch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArch + +`func (o *CertificatesRequest) SetArch(v string)` + +SetArch sets Arch field to given value. + +### HasArch + +`func (o *CertificatesRequest) HasArch() bool` + +HasArch returns a boolean if a field has been set. + +### GetType + +`func (o *CertificatesRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CertificatesRequest) GetTypeOk() (*string, 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 *CertificatesRequest) SetType(v string)` + +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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudAccount.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudAccount.md new file mode 100644 index 00000000..ecfdacea --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudAccount.md @@ -0,0 +1,82 @@ +# CloudAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] + +## Methods + +### NewCloudAccount + +`func NewCloudAccount() *CloudAccount` + +NewCloudAccount instantiates a new CloudAccount 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 + +### NewCloudAccountWithDefaults + +`func NewCloudAccountWithDefaults() *CloudAccount` + +NewCloudAccountWithDefaults instantiates a new CloudAccount 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 + +### GetCloudAccountId + +`func (o *CloudAccount) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *CloudAccount) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *CloudAccount) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *CloudAccount) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *CloudAccount) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *CloudAccount) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *CloudAccount) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *CloudAccount) HasCloudProviderId() bool` + +HasCloudProviderId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResource.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResource.md new file mode 100644 index 00000000..dff82e7c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResource.md @@ -0,0 +1,446 @@ +# CloudResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Active** | Pointer to **bool** | | [optional] [default to true] +**Category** | Pointer to **string** | | [optional] +**CategoryPretty** | Pointer to **string** | | [optional] +**CloudProvider** | Pointer to **string** | | [optional] +**CpuCores** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**GenericName** | Pointer to **string** | | [optional] +**Memory** | Pointer to **int64** | | [optional] +**MemoryPretty** | Pointer to **string** | | [optional] +**NamePretty** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**SizePretty** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCloudResource + +`func NewCloudResource() *CloudResource` + +NewCloudResource instantiates a new CloudResource 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 + +### NewCloudResourceWithDefaults + +`func NewCloudResourceWithDefaults() *CloudResource` + +NewCloudResourceWithDefaults instantiates a new CloudResource 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 + +### GetHref + +`func (o *CloudResource) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CloudResource) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *CloudResource) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *CloudResource) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *CloudResource) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CloudResource) 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 *CloudResource) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CloudResource) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *CloudResource) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudResource) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudResource) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *CloudResource) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetActive + +`func (o *CloudResource) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *CloudResource) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *CloudResource) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *CloudResource) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetCategory + +`func (o *CloudResource) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *CloudResource) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *CloudResource) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *CloudResource) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetCategoryPretty + +`func (o *CloudResource) GetCategoryPretty() string` + +GetCategoryPretty returns the CategoryPretty field if non-nil, zero value otherwise. + +### GetCategoryPrettyOk + +`func (o *CloudResource) GetCategoryPrettyOk() (*string, bool)` + +GetCategoryPrettyOk returns a tuple with the CategoryPretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategoryPretty + +`func (o *CloudResource) SetCategoryPretty(v string)` + +SetCategoryPretty sets CategoryPretty field to given value. + +### HasCategoryPretty + +`func (o *CloudResource) HasCategoryPretty() bool` + +HasCategoryPretty returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *CloudResource) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *CloudResource) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *CloudResource) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *CloudResource) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetCpuCores + +`func (o *CloudResource) GetCpuCores() int32` + +GetCpuCores returns the CpuCores field if non-nil, zero value otherwise. + +### GetCpuCoresOk + +`func (o *CloudResource) GetCpuCoresOk() (*int32, bool)` + +GetCpuCoresOk returns a tuple with the CpuCores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuCores + +`func (o *CloudResource) SetCpuCores(v int32)` + +SetCpuCores sets CpuCores field to given value. + +### HasCpuCores + +`func (o *CloudResource) HasCpuCores() bool` + +HasCpuCores returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *CloudResource) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *CloudResource) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *CloudResource) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *CloudResource) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGenericName + +`func (o *CloudResource) GetGenericName() string` + +GetGenericName returns the GenericName field if non-nil, zero value otherwise. + +### GetGenericNameOk + +`func (o *CloudResource) GetGenericNameOk() (*string, bool)` + +GetGenericNameOk returns a tuple with the GenericName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGenericName + +`func (o *CloudResource) SetGenericName(v string)` + +SetGenericName sets GenericName field to given value. + +### HasGenericName + +`func (o *CloudResource) HasGenericName() bool` + +HasGenericName returns a boolean if a field has been set. + +### GetMemory + +`func (o *CloudResource) GetMemory() int64` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *CloudResource) GetMemoryOk() (*int64, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *CloudResource) SetMemory(v int64)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *CloudResource) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetMemoryPretty + +`func (o *CloudResource) GetMemoryPretty() string` + +GetMemoryPretty returns the MemoryPretty field if non-nil, zero value otherwise. + +### GetMemoryPrettyOk + +`func (o *CloudResource) GetMemoryPrettyOk() (*string, bool)` + +GetMemoryPrettyOk returns a tuple with the MemoryPretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryPretty + +`func (o *CloudResource) SetMemoryPretty(v string)` + +SetMemoryPretty sets MemoryPretty field to given value. + +### HasMemoryPretty + +`func (o *CloudResource) HasMemoryPretty() bool` + +HasMemoryPretty returns a boolean if a field has been set. + +### GetNamePretty + +`func (o *CloudResource) GetNamePretty() string` + +GetNamePretty returns the NamePretty field if non-nil, zero value otherwise. + +### GetNamePrettyOk + +`func (o *CloudResource) GetNamePrettyOk() (*string, bool)` + +GetNamePrettyOk returns a tuple with the NamePretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamePretty + +`func (o *CloudResource) SetNamePretty(v string)` + +SetNamePretty sets NamePretty field to given value. + +### HasNamePretty + +`func (o *CloudResource) HasNamePretty() bool` + +HasNamePretty returns a boolean if a field has been set. + +### GetResourceType + +`func (o *CloudResource) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *CloudResource) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *CloudResource) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *CloudResource) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSizePretty + +`func (o *CloudResource) GetSizePretty() string` + +GetSizePretty returns the SizePretty field if non-nil, zero value otherwise. + +### GetSizePrettyOk + +`func (o *CloudResource) GetSizePrettyOk() (*string, bool)` + +GetSizePrettyOk returns a tuple with the SizePretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizePretty + +`func (o *CloudResource) SetSizePretty(v string)` + +SetSizePretty sets SizePretty field to given value. + +### HasSizePretty + +`func (o *CloudResource) HasSizePretty() bool` + +HasSizePretty returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *CloudResource) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *CloudResource) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *CloudResource) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *CloudResource) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceAllOf.md new file mode 100644 index 00000000..1b3858e3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceAllOf.md @@ -0,0 +1,368 @@ +# CloudResourceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | Pointer to **bool** | | [optional] [default to true] +**Category** | Pointer to **string** | | [optional] +**CategoryPretty** | Pointer to **string** | | [optional] +**CloudProvider** | Pointer to **string** | | [optional] +**CpuCores** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**GenericName** | Pointer to **string** | | [optional] +**Memory** | Pointer to **int64** | | [optional] +**MemoryPretty** | Pointer to **string** | | [optional] +**NamePretty** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**SizePretty** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCloudResourceAllOf + +`func NewCloudResourceAllOf() *CloudResourceAllOf` + +NewCloudResourceAllOf instantiates a new CloudResourceAllOf 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 + +### NewCloudResourceAllOfWithDefaults + +`func NewCloudResourceAllOfWithDefaults() *CloudResourceAllOf` + +NewCloudResourceAllOfWithDefaults instantiates a new CloudResourceAllOf 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 + +### GetActive + +`func (o *CloudResourceAllOf) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *CloudResourceAllOf) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *CloudResourceAllOf) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *CloudResourceAllOf) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetCategory + +`func (o *CloudResourceAllOf) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *CloudResourceAllOf) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *CloudResourceAllOf) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *CloudResourceAllOf) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetCategoryPretty + +`func (o *CloudResourceAllOf) GetCategoryPretty() string` + +GetCategoryPretty returns the CategoryPretty field if non-nil, zero value otherwise. + +### GetCategoryPrettyOk + +`func (o *CloudResourceAllOf) GetCategoryPrettyOk() (*string, bool)` + +GetCategoryPrettyOk returns a tuple with the CategoryPretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategoryPretty + +`func (o *CloudResourceAllOf) SetCategoryPretty(v string)` + +SetCategoryPretty sets CategoryPretty field to given value. + +### HasCategoryPretty + +`func (o *CloudResourceAllOf) HasCategoryPretty() bool` + +HasCategoryPretty returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *CloudResourceAllOf) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *CloudResourceAllOf) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *CloudResourceAllOf) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *CloudResourceAllOf) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetCpuCores + +`func (o *CloudResourceAllOf) GetCpuCores() int32` + +GetCpuCores returns the CpuCores field if non-nil, zero value otherwise. + +### GetCpuCoresOk + +`func (o *CloudResourceAllOf) GetCpuCoresOk() (*int32, bool)` + +GetCpuCoresOk returns a tuple with the CpuCores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuCores + +`func (o *CloudResourceAllOf) SetCpuCores(v int32)` + +SetCpuCores sets CpuCores field to given value. + +### HasCpuCores + +`func (o *CloudResourceAllOf) HasCpuCores() bool` + +HasCpuCores returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *CloudResourceAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *CloudResourceAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *CloudResourceAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *CloudResourceAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetGenericName + +`func (o *CloudResourceAllOf) GetGenericName() string` + +GetGenericName returns the GenericName field if non-nil, zero value otherwise. + +### GetGenericNameOk + +`func (o *CloudResourceAllOf) GetGenericNameOk() (*string, bool)` + +GetGenericNameOk returns a tuple with the GenericName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGenericName + +`func (o *CloudResourceAllOf) SetGenericName(v string)` + +SetGenericName sets GenericName field to given value. + +### HasGenericName + +`func (o *CloudResourceAllOf) HasGenericName() bool` + +HasGenericName returns a boolean if a field has been set. + +### GetMemory + +`func (o *CloudResourceAllOf) GetMemory() int64` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *CloudResourceAllOf) GetMemoryOk() (*int64, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *CloudResourceAllOf) SetMemory(v int64)` + +SetMemory sets Memory field to given value. + +### HasMemory + +`func (o *CloudResourceAllOf) HasMemory() bool` + +HasMemory returns a boolean if a field has been set. + +### GetMemoryPretty + +`func (o *CloudResourceAllOf) GetMemoryPretty() string` + +GetMemoryPretty returns the MemoryPretty field if non-nil, zero value otherwise. + +### GetMemoryPrettyOk + +`func (o *CloudResourceAllOf) GetMemoryPrettyOk() (*string, bool)` + +GetMemoryPrettyOk returns a tuple with the MemoryPretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryPretty + +`func (o *CloudResourceAllOf) SetMemoryPretty(v string)` + +SetMemoryPretty sets MemoryPretty field to given value. + +### HasMemoryPretty + +`func (o *CloudResourceAllOf) HasMemoryPretty() bool` + +HasMemoryPretty returns a boolean if a field has been set. + +### GetNamePretty + +`func (o *CloudResourceAllOf) GetNamePretty() string` + +GetNamePretty returns the NamePretty field if non-nil, zero value otherwise. + +### GetNamePrettyOk + +`func (o *CloudResourceAllOf) GetNamePrettyOk() (*string, bool)` + +GetNamePrettyOk returns a tuple with the NamePretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamePretty + +`func (o *CloudResourceAllOf) SetNamePretty(v string)` + +SetNamePretty sets NamePretty field to given value. + +### HasNamePretty + +`func (o *CloudResourceAllOf) HasNamePretty() bool` + +HasNamePretty returns a boolean if a field has been set. + +### GetResourceType + +`func (o *CloudResourceAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *CloudResourceAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *CloudResourceAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *CloudResourceAllOf) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSizePretty + +`func (o *CloudResourceAllOf) GetSizePretty() string` + +GetSizePretty returns the SizePretty field if non-nil, zero value otherwise. + +### GetSizePrettyOk + +`func (o *CloudResourceAllOf) GetSizePrettyOk() (*string, bool)` + +GetSizePrettyOk returns a tuple with the SizePretty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizePretty + +`func (o *CloudResourceAllOf) SetSizePretty(v string)` + +SetSizePretty sets SizePretty field to given value. + +### HasSizePretty + +`func (o *CloudResourceAllOf) HasSizePretty() bool` + +HasSizePretty returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *CloudResourceAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *CloudResourceAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *CloudResourceAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *CloudResourceAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceList.md new file mode 100644 index 00000000..7d76eb33 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceList.md @@ -0,0 +1,135 @@ +# CloudResourceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]CloudResource**](CloudResource.md) | | + +## Methods + +### NewCloudResourceList + +`func NewCloudResourceList(kind string, page int32, size int32, total int32, items []CloudResource, ) *CloudResourceList` + +NewCloudResourceList instantiates a new CloudResourceList 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 + +### NewCloudResourceListWithDefaults + +`func NewCloudResourceListWithDefaults() *CloudResourceList` + +NewCloudResourceListWithDefaults instantiates a new CloudResourceList 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 + +### GetKind + +`func (o *CloudResourceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudResourceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudResourceList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *CloudResourceList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CloudResourceList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CloudResourceList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *CloudResourceList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *CloudResourceList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *CloudResourceList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *CloudResourceList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CloudResourceList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CloudResourceList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *CloudResourceList) GetItems() []CloudResource` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudResourceList) GetItemsOk() (*[]CloudResource, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudResourceList) SetItems(v []CloudResource)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceListAllOf.md new file mode 100644 index 00000000..e3b6b52c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/CloudResourceListAllOf.md @@ -0,0 +1,56 @@ +# CloudResourceListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]CloudResource**](CloudResource.md) | | [optional] + +## Methods + +### NewCloudResourceListAllOf + +`func NewCloudResourceListAllOf() *CloudResourceListAllOf` + +NewCloudResourceListAllOf instantiates a new CloudResourceListAllOf 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 + +### NewCloudResourceListAllOfWithDefaults + +`func NewCloudResourceListAllOfWithDefaults() *CloudResourceListAllOf` + +NewCloudResourceListAllOfWithDefaults instantiates a new CloudResourceListAllOf 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 + +### GetItems + +`func (o *CloudResourceListAllOf) GetItems() []CloudResource` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudResourceListAllOf) GetItemsOk() (*[]CloudResource, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudResourceListAllOf) SetItems(v []CloudResource)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CloudResourceListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationRequest.md new file mode 100644 index 00000000..92ae7fca --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationRequest.md @@ -0,0 +1,410 @@ +# ClusterAuthorizationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**AvailabilityZone** | Pointer to **string** | | [optional] +**Byoc** | Pointer to **bool** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterId** | **string** | | +**Disconnected** | Pointer to **bool** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**Managed** | Pointer to **bool** | | [optional] +**ProductCategory** | Pointer to **string** | | [optional] +**ProductId** | Pointer to **string** | | [optional] [default to "osd"] +**QuotaVersion** | Pointer to **string** | | [optional] +**Reserve** | Pointer to **bool** | | [optional] +**Resources** | Pointer to [**[]ReservedResource**](ReservedResource.md) | | [optional] + +## Methods + +### NewClusterAuthorizationRequest + +`func NewClusterAuthorizationRequest(accountUsername string, clusterId string, ) *ClusterAuthorizationRequest` + +NewClusterAuthorizationRequest instantiates a new ClusterAuthorizationRequest 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 + +### NewClusterAuthorizationRequestWithDefaults + +`func NewClusterAuthorizationRequestWithDefaults() *ClusterAuthorizationRequest` + +NewClusterAuthorizationRequestWithDefaults instantiates a new ClusterAuthorizationRequest 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 + +### GetAccountUsername + +`func (o *ClusterAuthorizationRequest) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *ClusterAuthorizationRequest) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *ClusterAuthorizationRequest) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetAvailabilityZone + +`func (o *ClusterAuthorizationRequest) GetAvailabilityZone() string` + +GetAvailabilityZone returns the AvailabilityZone field if non-nil, zero value otherwise. + +### GetAvailabilityZoneOk + +`func (o *ClusterAuthorizationRequest) GetAvailabilityZoneOk() (*string, bool)` + +GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZone + +`func (o *ClusterAuthorizationRequest) SetAvailabilityZone(v string)` + +SetAvailabilityZone sets AvailabilityZone field to given value. + +### HasAvailabilityZone + +`func (o *ClusterAuthorizationRequest) HasAvailabilityZone() bool` + +HasAvailabilityZone returns a boolean if a field has been set. + +### GetByoc + +`func (o *ClusterAuthorizationRequest) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ClusterAuthorizationRequest) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ClusterAuthorizationRequest) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + +### HasByoc + +`func (o *ClusterAuthorizationRequest) HasByoc() bool` + +HasByoc returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *ClusterAuthorizationRequest) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *ClusterAuthorizationRequest) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *ClusterAuthorizationRequest) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *ClusterAuthorizationRequest) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *ClusterAuthorizationRequest) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *ClusterAuthorizationRequest) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *ClusterAuthorizationRequest) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *ClusterAuthorizationRequest) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterId + +`func (o *ClusterAuthorizationRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ClusterAuthorizationRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ClusterAuthorizationRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + + +### GetDisconnected + +`func (o *ClusterAuthorizationRequest) GetDisconnected() bool` + +GetDisconnected returns the Disconnected field if non-nil, zero value otherwise. + +### GetDisconnectedOk + +`func (o *ClusterAuthorizationRequest) GetDisconnectedOk() (*bool, bool)` + +GetDisconnectedOk returns a tuple with the Disconnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisconnected + +`func (o *ClusterAuthorizationRequest) SetDisconnected(v bool)` + +SetDisconnected sets Disconnected field to given value. + +### HasDisconnected + +`func (o *ClusterAuthorizationRequest) HasDisconnected() bool` + +HasDisconnected returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ClusterAuthorizationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ClusterAuthorizationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ClusterAuthorizationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ClusterAuthorizationRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *ClusterAuthorizationRequest) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *ClusterAuthorizationRequest) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *ClusterAuthorizationRequest) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *ClusterAuthorizationRequest) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetManaged + +`func (o *ClusterAuthorizationRequest) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *ClusterAuthorizationRequest) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *ClusterAuthorizationRequest) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + +### HasManaged + +`func (o *ClusterAuthorizationRequest) HasManaged() bool` + +HasManaged returns a boolean if a field has been set. + +### GetProductCategory + +`func (o *ClusterAuthorizationRequest) GetProductCategory() string` + +GetProductCategory returns the ProductCategory field if non-nil, zero value otherwise. + +### GetProductCategoryOk + +`func (o *ClusterAuthorizationRequest) GetProductCategoryOk() (*string, bool)` + +GetProductCategoryOk returns a tuple with the ProductCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductCategory + +`func (o *ClusterAuthorizationRequest) SetProductCategory(v string)` + +SetProductCategory sets ProductCategory field to given value. + +### HasProductCategory + +`func (o *ClusterAuthorizationRequest) HasProductCategory() bool` + +HasProductCategory returns a boolean if a field has been set. + +### GetProductId + +`func (o *ClusterAuthorizationRequest) GetProductId() string` + +GetProductId returns the ProductId field if non-nil, zero value otherwise. + +### GetProductIdOk + +`func (o *ClusterAuthorizationRequest) GetProductIdOk() (*string, bool)` + +GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductId + +`func (o *ClusterAuthorizationRequest) SetProductId(v string)` + +SetProductId sets ProductId field to given value. + +### HasProductId + +`func (o *ClusterAuthorizationRequest) HasProductId() bool` + +HasProductId returns a boolean if a field has been set. + +### GetQuotaVersion + +`func (o *ClusterAuthorizationRequest) GetQuotaVersion() string` + +GetQuotaVersion returns the QuotaVersion field if non-nil, zero value otherwise. + +### GetQuotaVersionOk + +`func (o *ClusterAuthorizationRequest) GetQuotaVersionOk() (*string, bool)` + +GetQuotaVersionOk returns a tuple with the QuotaVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaVersion + +`func (o *ClusterAuthorizationRequest) SetQuotaVersion(v string)` + +SetQuotaVersion sets QuotaVersion field to given value. + +### HasQuotaVersion + +`func (o *ClusterAuthorizationRequest) HasQuotaVersion() bool` + +HasQuotaVersion returns a boolean if a field has been set. + +### GetReserve + +`func (o *ClusterAuthorizationRequest) GetReserve() bool` + +GetReserve returns the Reserve field if non-nil, zero value otherwise. + +### GetReserveOk + +`func (o *ClusterAuthorizationRequest) GetReserveOk() (*bool, bool)` + +GetReserveOk returns a tuple with the Reserve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserve + +`func (o *ClusterAuthorizationRequest) SetReserve(v bool)` + +SetReserve sets Reserve field to given value. + +### HasReserve + +`func (o *ClusterAuthorizationRequest) HasReserve() bool` + +HasReserve returns a boolean if a field has been set. + +### GetResources + +`func (o *ClusterAuthorizationRequest) GetResources() []ReservedResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ClusterAuthorizationRequest) GetResourcesOk() (*[]ReservedResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ClusterAuthorizationRequest) SetResources(v []ReservedResource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ClusterAuthorizationRequest) HasResources() bool` + +HasResources 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationResponse.md new file mode 100644 index 00000000..cb6cedb2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterAuthorizationResponse.md @@ -0,0 +1,124 @@ +# ClusterAuthorizationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allowed** | **bool** | | +**ExcessResources** | [**[]ExcessResource**](ExcessResource.md) | | +**OrganizationId** | Pointer to **string** | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] + +## Methods + +### NewClusterAuthorizationResponse + +`func NewClusterAuthorizationResponse(allowed bool, excessResources []ExcessResource, ) *ClusterAuthorizationResponse` + +NewClusterAuthorizationResponse instantiates a new ClusterAuthorizationResponse 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 + +### NewClusterAuthorizationResponseWithDefaults + +`func NewClusterAuthorizationResponseWithDefaults() *ClusterAuthorizationResponse` + +NewClusterAuthorizationResponseWithDefaults instantiates a new ClusterAuthorizationResponse 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 + +### GetAllowed + +`func (o *ClusterAuthorizationResponse) GetAllowed() bool` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *ClusterAuthorizationResponse) GetAllowedOk() (*bool, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *ClusterAuthorizationResponse) SetAllowed(v bool)` + +SetAllowed sets Allowed field to given value. + + +### GetExcessResources + +`func (o *ClusterAuthorizationResponse) GetExcessResources() []ExcessResource` + +GetExcessResources returns the ExcessResources field if non-nil, zero value otherwise. + +### GetExcessResourcesOk + +`func (o *ClusterAuthorizationResponse) GetExcessResourcesOk() (*[]ExcessResource, bool)` + +GetExcessResourcesOk returns a tuple with the ExcessResources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcessResources + +`func (o *ClusterAuthorizationResponse) SetExcessResources(v []ExcessResource)` + +SetExcessResources sets ExcessResources field to given value. + + +### GetOrganizationId + +`func (o *ClusterAuthorizationResponse) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ClusterAuthorizationResponse) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ClusterAuthorizationResponse) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ClusterAuthorizationResponse) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSubscription + +`func (o *ClusterAuthorizationResponse) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *ClusterAuthorizationResponse) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *ClusterAuthorizationResponse) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *ClusterAuthorizationResponse) HasSubscription() bool` + +HasSubscription 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterMetricsNodes.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterMetricsNodes.md new file mode 100644 index 00000000..d4c2eb4e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterMetricsNodes.md @@ -0,0 +1,134 @@ +# ClusterMetricsNodes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Compute** | Pointer to **float64** | | [optional] +**Infra** | Pointer to **float64** | | [optional] +**Master** | Pointer to **float64** | | [optional] +**Total** | Pointer to **float64** | | [optional] + +## Methods + +### NewClusterMetricsNodes + +`func NewClusterMetricsNodes() *ClusterMetricsNodes` + +NewClusterMetricsNodes instantiates a new ClusterMetricsNodes 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 + +### NewClusterMetricsNodesWithDefaults + +`func NewClusterMetricsNodesWithDefaults() *ClusterMetricsNodes` + +NewClusterMetricsNodesWithDefaults instantiates a new ClusterMetricsNodes 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 + +### GetCompute + +`func (o *ClusterMetricsNodes) GetCompute() float64` + +GetCompute returns the Compute field if non-nil, zero value otherwise. + +### GetComputeOk + +`func (o *ClusterMetricsNodes) GetComputeOk() (*float64, bool)` + +GetComputeOk returns a tuple with the Compute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompute + +`func (o *ClusterMetricsNodes) SetCompute(v float64)` + +SetCompute sets Compute field to given value. + +### HasCompute + +`func (o *ClusterMetricsNodes) HasCompute() bool` + +HasCompute returns a boolean if a field has been set. + +### GetInfra + +`func (o *ClusterMetricsNodes) GetInfra() float64` + +GetInfra returns the Infra field if non-nil, zero value otherwise. + +### GetInfraOk + +`func (o *ClusterMetricsNodes) GetInfraOk() (*float64, bool)` + +GetInfraOk returns a tuple with the Infra field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfra + +`func (o *ClusterMetricsNodes) SetInfra(v float64)` + +SetInfra sets Infra field to given value. + +### HasInfra + +`func (o *ClusterMetricsNodes) HasInfra() bool` + +HasInfra returns a boolean if a field has been set. + +### GetMaster + +`func (o *ClusterMetricsNodes) GetMaster() float64` + +GetMaster returns the Master field if non-nil, zero value otherwise. + +### GetMasterOk + +`func (o *ClusterMetricsNodes) GetMasterOk() (*float64, bool)` + +GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaster + +`func (o *ClusterMetricsNodes) SetMaster(v float64)` + +SetMaster sets Master field to given value. + +### HasMaster + +`func (o *ClusterMetricsNodes) HasMaster() bool` + +HasMaster returns a boolean if a field has been set. + +### GetTotal + +`func (o *ClusterMetricsNodes) GetTotal() float64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ClusterMetricsNodes) GetTotalOk() (*float64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ClusterMetricsNodes) SetTotal(v float64)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *ClusterMetricsNodes) HasTotal() bool` + +HasTotal 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationRequest.md new file mode 100644 index 00000000..949e2815 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationRequest.md @@ -0,0 +1,82 @@ +# ClusterRegistrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorizationToken** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] + +## Methods + +### NewClusterRegistrationRequest + +`func NewClusterRegistrationRequest() *ClusterRegistrationRequest` + +NewClusterRegistrationRequest instantiates a new ClusterRegistrationRequest 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 + +### NewClusterRegistrationRequestWithDefaults + +`func NewClusterRegistrationRequestWithDefaults() *ClusterRegistrationRequest` + +NewClusterRegistrationRequestWithDefaults instantiates a new ClusterRegistrationRequest 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 + +### GetAuthorizationToken + +`func (o *ClusterRegistrationRequest) GetAuthorizationToken() string` + +GetAuthorizationToken returns the AuthorizationToken field if non-nil, zero value otherwise. + +### GetAuthorizationTokenOk + +`func (o *ClusterRegistrationRequest) GetAuthorizationTokenOk() (*string, bool)` + +GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationToken + +`func (o *ClusterRegistrationRequest) SetAuthorizationToken(v string)` + +SetAuthorizationToken sets AuthorizationToken field to given value. + +### HasAuthorizationToken + +`func (o *ClusterRegistrationRequest) HasAuthorizationToken() bool` + +HasAuthorizationToken returns a boolean if a field has been set. + +### GetClusterId + +`func (o *ClusterRegistrationRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ClusterRegistrationRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ClusterRegistrationRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *ClusterRegistrationRequest) HasClusterId() bool` + +HasClusterId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationResponse.md new file mode 100644 index 00000000..337aaf04 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterRegistrationResponse.md @@ -0,0 +1,134 @@ +# ClusterRegistrationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | | [optional] +**AuthorizationToken** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ExpiresAt** | Pointer to **string** | Cluster Registration expiration in Unix time | [optional] + +## Methods + +### NewClusterRegistrationResponse + +`func NewClusterRegistrationResponse() *ClusterRegistrationResponse` + +NewClusterRegistrationResponse instantiates a new ClusterRegistrationResponse 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 + +### NewClusterRegistrationResponseWithDefaults + +`func NewClusterRegistrationResponseWithDefaults() *ClusterRegistrationResponse` + +NewClusterRegistrationResponseWithDefaults instantiates a new ClusterRegistrationResponse 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 + +### GetAccountId + +`func (o *ClusterRegistrationResponse) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *ClusterRegistrationResponse) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *ClusterRegistrationResponse) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *ClusterRegistrationResponse) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetAuthorizationToken + +`func (o *ClusterRegistrationResponse) GetAuthorizationToken() string` + +GetAuthorizationToken returns the AuthorizationToken field if non-nil, zero value otherwise. + +### GetAuthorizationTokenOk + +`func (o *ClusterRegistrationResponse) GetAuthorizationTokenOk() (*string, bool)` + +GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationToken + +`func (o *ClusterRegistrationResponse) SetAuthorizationToken(v string)` + +SetAuthorizationToken sets AuthorizationToken field to given value. + +### HasAuthorizationToken + +`func (o *ClusterRegistrationResponse) HasAuthorizationToken() bool` + +HasAuthorizationToken returns a boolean if a field has been set. + +### GetClusterId + +`func (o *ClusterRegistrationResponse) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ClusterRegistrationResponse) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ClusterRegistrationResponse) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *ClusterRegistrationResponse) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *ClusterRegistrationResponse) GetExpiresAt() string` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *ClusterRegistrationResponse) GetExpiresAtOk() (*string, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *ClusterRegistrationResponse) SetExpiresAt(v string)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *ClusterRegistrationResponse) HasExpiresAt() bool` + +HasExpiresAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResource.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResource.md new file mode 100644 index 00000000..e35126bb --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResource.md @@ -0,0 +1,93 @@ +# ClusterResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Total** | [**ClusterResourceTotal**](ClusterResourceTotal.md) | | +**UpdatedTimestamp** | **time.Time** | | +**Used** | [**ClusterResourceTotal**](ClusterResourceTotal.md) | | + +## Methods + +### NewClusterResource + +`func NewClusterResource(total ClusterResourceTotal, updatedTimestamp time.Time, used ClusterResourceTotal, ) *ClusterResource` + +NewClusterResource instantiates a new ClusterResource 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 + +### NewClusterResourceWithDefaults + +`func NewClusterResourceWithDefaults() *ClusterResource` + +NewClusterResourceWithDefaults instantiates a new ClusterResource 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 + +### GetTotal + +`func (o *ClusterResource) GetTotal() ClusterResourceTotal` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ClusterResource) GetTotalOk() (*ClusterResourceTotal, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ClusterResource) SetTotal(v ClusterResourceTotal)` + +SetTotal sets Total field to given value. + + +### GetUpdatedTimestamp + +`func (o *ClusterResource) GetUpdatedTimestamp() time.Time` + +GetUpdatedTimestamp returns the UpdatedTimestamp field if non-nil, zero value otherwise. + +### GetUpdatedTimestampOk + +`func (o *ClusterResource) GetUpdatedTimestampOk() (*time.Time, bool)` + +GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedTimestamp + +`func (o *ClusterResource) SetUpdatedTimestamp(v time.Time)` + +SetUpdatedTimestamp sets UpdatedTimestamp field to given value. + + +### GetUsed + +`func (o *ClusterResource) GetUsed() ClusterResourceTotal` + +GetUsed returns the Used field if non-nil, zero value otherwise. + +### GetUsedOk + +`func (o *ClusterResource) GetUsedOk() (*ClusterResourceTotal, bool)` + +GetUsedOk returns a tuple with the Used field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsed + +`func (o *ClusterResource) SetUsed(v ClusterResourceTotal)` + +SetUsed sets Used 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResourceTotal.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResourceTotal.md new file mode 100644 index 00000000..f66fcad1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterResourceTotal.md @@ -0,0 +1,72 @@ +# ClusterResourceTotal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | | +**Value** | **float64** | | + +## Methods + +### NewClusterResourceTotal + +`func NewClusterResourceTotal(unit string, value float64, ) *ClusterResourceTotal` + +NewClusterResourceTotal instantiates a new ClusterResourceTotal 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 + +### NewClusterResourceTotalWithDefaults + +`func NewClusterResourceTotalWithDefaults() *ClusterResourceTotal` + +NewClusterResourceTotalWithDefaults instantiates a new ClusterResourceTotal 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 + +### GetUnit + +`func (o *ClusterResourceTotal) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ClusterResourceTotal) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ClusterResourceTotal) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *ClusterResourceTotal) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ClusterResourceTotal) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ClusterResourceTotal) SetValue(v float64)` + +SetValue sets Value 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransfer.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransfer.md new file mode 100644 index 00000000..d29b6005 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransfer.md @@ -0,0 +1,316 @@ +# ClusterTransfer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**Recipient** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewClusterTransfer + +`func NewClusterTransfer() *ClusterTransfer` + +NewClusterTransfer instantiates a new ClusterTransfer 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 + +### NewClusterTransferWithDefaults + +`func NewClusterTransferWithDefaults() *ClusterTransfer` + +NewClusterTransferWithDefaults instantiates a new ClusterTransfer 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 + +### GetHref + +`func (o *ClusterTransfer) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ClusterTransfer) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ClusterTransfer) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ClusterTransfer) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ClusterTransfer) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ClusterTransfer) 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 *ClusterTransfer) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ClusterTransfer) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ClusterTransfer) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ClusterTransfer) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ClusterTransfer) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ClusterTransfer) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *ClusterTransfer) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *ClusterTransfer) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *ClusterTransfer) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *ClusterTransfer) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ClusterTransfer) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ClusterTransfer) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ClusterTransfer) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ClusterTransfer) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *ClusterTransfer) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *ClusterTransfer) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *ClusterTransfer) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *ClusterTransfer) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + +### GetOwner + +`func (o *ClusterTransfer) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ClusterTransfer) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ClusterTransfer) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ClusterTransfer) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetRecipient + +`func (o *ClusterTransfer) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *ClusterTransfer) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *ClusterTransfer) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *ClusterTransfer) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + +### GetSecret + +`func (o *ClusterTransfer) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ClusterTransfer) 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 *ClusterTransfer) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ClusterTransfer) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetStatus + +`func (o *ClusterTransfer) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterTransfer) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterTransfer) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterTransfer) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ClusterTransfer) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ClusterTransfer) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ClusterTransfer) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ClusterTransfer) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferAllOf.md new file mode 100644 index 00000000..590f5d6c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferAllOf.md @@ -0,0 +1,238 @@ +# ClusterTransferAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterUuid** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**Recipient** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewClusterTransferAllOf + +`func NewClusterTransferAllOf() *ClusterTransferAllOf` + +NewClusterTransferAllOf instantiates a new ClusterTransferAllOf 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 + +### NewClusterTransferAllOfWithDefaults + +`func NewClusterTransferAllOfWithDefaults() *ClusterTransferAllOf` + +NewClusterTransferAllOfWithDefaults instantiates a new ClusterTransferAllOf 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 + +### GetClusterUuid + +`func (o *ClusterTransferAllOf) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *ClusterTransferAllOf) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *ClusterTransferAllOf) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *ClusterTransferAllOf) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ClusterTransferAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ClusterTransferAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ClusterTransferAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ClusterTransferAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *ClusterTransferAllOf) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *ClusterTransferAllOf) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *ClusterTransferAllOf) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *ClusterTransferAllOf) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + +### GetOwner + +`func (o *ClusterTransferAllOf) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ClusterTransferAllOf) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ClusterTransferAllOf) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ClusterTransferAllOf) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetRecipient + +`func (o *ClusterTransferAllOf) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *ClusterTransferAllOf) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *ClusterTransferAllOf) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *ClusterTransferAllOf) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + +### GetSecret + +`func (o *ClusterTransferAllOf) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ClusterTransferAllOf) 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 *ClusterTransferAllOf) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ClusterTransferAllOf) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetStatus + +`func (o *ClusterTransferAllOf) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterTransferAllOf) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterTransferAllOf) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterTransferAllOf) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ClusterTransferAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ClusterTransferAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ClusterTransferAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ClusterTransferAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferList.md new file mode 100644 index 00000000..edce6568 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferList.md @@ -0,0 +1,135 @@ +# ClusterTransferList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ClusterTransfer**](ClusterTransfer.md) | | + +## Methods + +### NewClusterTransferList + +`func NewClusterTransferList(kind string, page int32, size int32, total int32, items []ClusterTransfer, ) *ClusterTransferList` + +NewClusterTransferList instantiates a new ClusterTransferList 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 + +### NewClusterTransferListWithDefaults + +`func NewClusterTransferListWithDefaults() *ClusterTransferList` + +NewClusterTransferListWithDefaults instantiates a new ClusterTransferList 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 + +### GetKind + +`func (o *ClusterTransferList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ClusterTransferList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ClusterTransferList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ClusterTransferList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ClusterTransferList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ClusterTransferList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ClusterTransferList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ClusterTransferList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ClusterTransferList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ClusterTransferList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ClusterTransferList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ClusterTransferList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ClusterTransferList) GetItems() []ClusterTransfer` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ClusterTransferList) GetItemsOk() (*[]ClusterTransfer, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ClusterTransferList) SetItems(v []ClusterTransfer)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferListAllOf.md new file mode 100644 index 00000000..7a919924 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferListAllOf.md @@ -0,0 +1,56 @@ +# ClusterTransferListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ClusterTransfer**](ClusterTransfer.md) | | [optional] + +## Methods + +### NewClusterTransferListAllOf + +`func NewClusterTransferListAllOf() *ClusterTransferListAllOf` + +NewClusterTransferListAllOf instantiates a new ClusterTransferListAllOf 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 + +### NewClusterTransferListAllOfWithDefaults + +`func NewClusterTransferListAllOfWithDefaults() *ClusterTransferListAllOf` + +NewClusterTransferListAllOfWithDefaults instantiates a new ClusterTransferListAllOf 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 + +### GetItems + +`func (o *ClusterTransferListAllOf) GetItems() []ClusterTransfer` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ClusterTransferListAllOf) GetItemsOk() (*[]ClusterTransfer, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ClusterTransferListAllOf) SetItems(v []ClusterTransfer)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ClusterTransferListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferPatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferPatchRequest.md new file mode 100644 index 00000000..568093b5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferPatchRequest.md @@ -0,0 +1,56 @@ +# ClusterTransferPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewClusterTransferPatchRequest + +`func NewClusterTransferPatchRequest() *ClusterTransferPatchRequest` + +NewClusterTransferPatchRequest instantiates a new ClusterTransferPatchRequest 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 + +### NewClusterTransferPatchRequestWithDefaults + +`func NewClusterTransferPatchRequestWithDefaults() *ClusterTransferPatchRequest` + +NewClusterTransferPatchRequestWithDefaults instantiates a new ClusterTransferPatchRequest 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 + +### GetStatus + +`func (o *ClusterTransferPatchRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterTransferPatchRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterTransferPatchRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterTransferPatchRequest) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferRequest.md new file mode 100644 index 00000000..943b0e3e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterTransferRequest.md @@ -0,0 +1,108 @@ +# ClusterTransferRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterUuid** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**Recipient** | Pointer to **string** | | [optional] + +## Methods + +### NewClusterTransferRequest + +`func NewClusterTransferRequest() *ClusterTransferRequest` + +NewClusterTransferRequest instantiates a new ClusterTransferRequest 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 + +### NewClusterTransferRequestWithDefaults + +`func NewClusterTransferRequestWithDefaults() *ClusterTransferRequest` + +NewClusterTransferRequestWithDefaults instantiates a new ClusterTransferRequest 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 + +### GetClusterUuid + +`func (o *ClusterTransferRequest) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *ClusterTransferRequest) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *ClusterTransferRequest) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *ClusterTransferRequest) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetOwner + +`func (o *ClusterTransferRequest) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ClusterTransferRequest) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ClusterTransferRequest) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ClusterTransferRequest) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetRecipient + +`func (o *ClusterTransferRequest) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *ClusterTransferRequest) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *ClusterTransferRequest) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *ClusterTransferRequest) HasRecipient() bool` + +HasRecipient 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterUpgrade.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterUpgrade.md new file mode 100644 index 00000000..d78bc7e1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ClusterUpgrade.md @@ -0,0 +1,134 @@ +# ClusterUpgrade + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**State** | Pointer to **string** | | [optional] +**UpdatedTimestamp** | Pointer to **time.Time** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewClusterUpgrade + +`func NewClusterUpgrade() *ClusterUpgrade` + +NewClusterUpgrade instantiates a new ClusterUpgrade 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 + +### NewClusterUpgradeWithDefaults + +`func NewClusterUpgradeWithDefaults() *ClusterUpgrade` + +NewClusterUpgradeWithDefaults instantiates a new ClusterUpgrade 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 + +### GetAvailable + +`func (o *ClusterUpgrade) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *ClusterUpgrade) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *ClusterUpgrade) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *ClusterUpgrade) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetState + +`func (o *ClusterUpgrade) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ClusterUpgrade) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ClusterUpgrade) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ClusterUpgrade) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetUpdatedTimestamp + +`func (o *ClusterUpgrade) GetUpdatedTimestamp() time.Time` + +GetUpdatedTimestamp returns the UpdatedTimestamp field if non-nil, zero value otherwise. + +### GetUpdatedTimestampOk + +`func (o *ClusterUpgrade) GetUpdatedTimestampOk() (*time.Time, bool)` + +GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedTimestamp + +`func (o *ClusterUpgrade) SetUpdatedTimestamp(v time.Time)` + +SetUpdatedTimestamp sets UpdatedTimestamp field to given value. + +### HasUpdatedTimestamp + +`func (o *ClusterUpgrade) HasUpdatedTimestamp() bool` + +HasUpdatedTimestamp returns a boolean if a field has been set. + +### GetVersion + +`func (o *ClusterUpgrade) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ClusterUpgrade) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ClusterUpgrade) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ClusterUpgrade) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuota.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuota.md new file mode 100644 index 00000000..efbd54ff --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuota.md @@ -0,0 +1,358 @@ +# ConsumedQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**CloudProviderId** | Pointer to **string** | | [optional] +**Count** | **int32** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewConsumedQuota + +`func NewConsumedQuota(byoc bool, count int32, ) *ConsumedQuota` + +NewConsumedQuota instantiates a new ConsumedQuota 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 + +### NewConsumedQuotaWithDefaults + +`func NewConsumedQuotaWithDefaults() *ConsumedQuota` + +NewConsumedQuotaWithDefaults instantiates a new ConsumedQuota 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 + +### GetHref + +`func (o *ConsumedQuota) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ConsumedQuota) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ConsumedQuota) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ConsumedQuota) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ConsumedQuota) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConsumedQuota) 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 *ConsumedQuota) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ConsumedQuota) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ConsumedQuota) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConsumedQuota) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConsumedQuota) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConsumedQuota) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAvailabilityZoneType + +`func (o *ConsumedQuota) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ConsumedQuota) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ConsumedQuota) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ConsumedQuota) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ConsumedQuota) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ConsumedQuota) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ConsumedQuota) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ConsumedQuota) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ConsumedQuota) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ConsumedQuota) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ConsumedQuota) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCloudProviderId + +`func (o *ConsumedQuota) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *ConsumedQuota) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *ConsumedQuota) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *ConsumedQuota) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetCount + +`func (o *ConsumedQuota) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ConsumedQuota) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ConsumedQuota) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetOrganizationId + +`func (o *ConsumedQuota) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ConsumedQuota) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ConsumedQuota) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ConsumedQuota) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *ConsumedQuota) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *ConsumedQuota) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *ConsumedQuota) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *ConsumedQuota) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ConsumedQuota) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ConsumedQuota) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ConsumedQuota) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ConsumedQuota) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ConsumedQuota) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ConsumedQuota) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ConsumedQuota) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ConsumedQuota) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetVersion + +`func (o *ConsumedQuota) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConsumedQuota) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConsumedQuota) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ConsumedQuota) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaAllOf.md new file mode 100644 index 00000000..d93d8f1b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaAllOf.md @@ -0,0 +1,280 @@ +# ConsumedQuotaAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**CloudProviderId** | Pointer to **string** | | [optional] +**Count** | **int32** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewConsumedQuotaAllOf + +`func NewConsumedQuotaAllOf(byoc bool, count int32, ) *ConsumedQuotaAllOf` + +NewConsumedQuotaAllOf instantiates a new ConsumedQuotaAllOf 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 + +### NewConsumedQuotaAllOfWithDefaults + +`func NewConsumedQuotaAllOfWithDefaults() *ConsumedQuotaAllOf` + +NewConsumedQuotaAllOfWithDefaults instantiates a new ConsumedQuotaAllOf 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 + +### GetAvailabilityZoneType + +`func (o *ConsumedQuotaAllOf) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ConsumedQuotaAllOf) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ConsumedQuotaAllOf) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ConsumedQuotaAllOf) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ConsumedQuotaAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ConsumedQuotaAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ConsumedQuotaAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ConsumedQuotaAllOf) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ConsumedQuotaAllOf) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ConsumedQuotaAllOf) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ConsumedQuotaAllOf) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCloudProviderId + +`func (o *ConsumedQuotaAllOf) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *ConsumedQuotaAllOf) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *ConsumedQuotaAllOf) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *ConsumedQuotaAllOf) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetCount + +`func (o *ConsumedQuotaAllOf) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ConsumedQuotaAllOf) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ConsumedQuotaAllOf) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetOrganizationId + +`func (o *ConsumedQuotaAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ConsumedQuotaAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ConsumedQuotaAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ConsumedQuotaAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *ConsumedQuotaAllOf) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *ConsumedQuotaAllOf) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *ConsumedQuotaAllOf) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *ConsumedQuotaAllOf) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ConsumedQuotaAllOf) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ConsumedQuotaAllOf) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ConsumedQuotaAllOf) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ConsumedQuotaAllOf) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ConsumedQuotaAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ConsumedQuotaAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ConsumedQuotaAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ConsumedQuotaAllOf) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetVersion + +`func (o *ConsumedQuotaAllOf) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConsumedQuotaAllOf) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConsumedQuotaAllOf) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ConsumedQuotaAllOf) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaList.md new file mode 100644 index 00000000..f45c7ead --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaList.md @@ -0,0 +1,135 @@ +# ConsumedQuotaList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ConsumedQuota**](ConsumedQuota.md) | | + +## Methods + +### NewConsumedQuotaList + +`func NewConsumedQuotaList(kind string, page int32, size int32, total int32, items []ConsumedQuota, ) *ConsumedQuotaList` + +NewConsumedQuotaList instantiates a new ConsumedQuotaList 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 + +### NewConsumedQuotaListWithDefaults + +`func NewConsumedQuotaListWithDefaults() *ConsumedQuotaList` + +NewConsumedQuotaListWithDefaults instantiates a new ConsumedQuotaList 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 + +### GetKind + +`func (o *ConsumedQuotaList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConsumedQuotaList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConsumedQuotaList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ConsumedQuotaList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConsumedQuotaList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConsumedQuotaList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ConsumedQuotaList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConsumedQuotaList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConsumedQuotaList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ConsumedQuotaList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConsumedQuotaList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConsumedQuotaList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ConsumedQuotaList) GetItems() []ConsumedQuota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumedQuotaList) GetItemsOk() (*[]ConsumedQuota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumedQuotaList) SetItems(v []ConsumedQuota)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaListAllOf.md new file mode 100644 index 00000000..07159bdf --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ConsumedQuotaListAllOf.md @@ -0,0 +1,56 @@ +# ConsumedQuotaListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConsumedQuota**](ConsumedQuota.md) | | [optional] + +## Methods + +### NewConsumedQuotaListAllOf + +`func NewConsumedQuotaListAllOf() *ConsumedQuotaListAllOf` + +NewConsumedQuotaListAllOf instantiates a new ConsumedQuotaListAllOf 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 + +### NewConsumedQuotaListAllOfWithDefaults + +`func NewConsumedQuotaListAllOfWithDefaults() *ConsumedQuotaListAllOf` + +NewConsumedQuotaListAllOfWithDefaults instantiates a new ConsumedQuotaListAllOf 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 + +### GetItems + +`func (o *ConsumedQuotaListAllOf) GetItems() []ConsumedQuota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumedQuotaListAllOf) GetItemsOk() (*[]ConsumedQuota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumedQuotaListAllOf) SetItems(v []ConsumedQuota)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConsumedQuotaListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/DefaultApi.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DefaultApi.md new file mode 100644 index 00000000..3ebac7ce --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DefaultApi.md @@ -0,0 +1,9022 @@ +# \DefaultApi + +All URIs are relative to *http://localhost:14321* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ApiAccountsMgmtV1AccountsGet**](DefaultApi.md#ApiAccountsMgmtV1AccountsGet) | **Get** /api/accounts_mgmt/v1/accounts | Returns a list of accounts +[**ApiAccountsMgmtV1AccountsIdGet**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdGet) | **Get** /api/accounts_mgmt/v1/accounts/{id} | Get an account by id +[**ApiAccountsMgmtV1AccountsIdLabelsGet**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdLabelsGet) | **Get** /api/accounts_mgmt/v1/accounts/{id}/labels | Returns a list of labels +[**ApiAccountsMgmtV1AccountsIdLabelsKeyDelete**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdLabelsKeyDelete) | **Delete** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Delete a label +[**ApiAccountsMgmtV1AccountsIdLabelsKeyGet**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdLabelsKeyGet) | **Get** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Get subscription labels by label key +[**ApiAccountsMgmtV1AccountsIdLabelsKeyPatch**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdLabelsKeyPatch) | **Patch** /api/accounts_mgmt/v1/accounts/{id}/labels/{key} | Create a new label or update an existing label +[**ApiAccountsMgmtV1AccountsIdLabelsPost**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdLabelsPost) | **Post** /api/accounts_mgmt/v1/accounts/{id}/labels | Create a new label or update an existing label +[**ApiAccountsMgmtV1AccountsIdPatch**](DefaultApi.md#ApiAccountsMgmtV1AccountsIdPatch) | **Patch** /api/accounts_mgmt/v1/accounts/{id} | Update an account +[**ApiAccountsMgmtV1AccountsPost**](DefaultApi.md#ApiAccountsMgmtV1AccountsPost) | **Post** /api/accounts_mgmt/v1/accounts | Create a new account +[**ApiAccountsMgmtV1CertificatesPost**](DefaultApi.md#ApiAccountsMgmtV1CertificatesPost) | **Post** /api/accounts_mgmt/v1/certificates | Fetch certificates of a particular type +[**ApiAccountsMgmtV1CloudResourcesGet**](DefaultApi.md#ApiAccountsMgmtV1CloudResourcesGet) | **Get** /api/accounts_mgmt/v1/cloud_resources | Returns a list of cloud resources +[**ApiAccountsMgmtV1CloudResourcesIdDelete**](DefaultApi.md#ApiAccountsMgmtV1CloudResourcesIdDelete) | **Delete** /api/accounts_mgmt/v1/cloud_resources/{id} | Delete a cloud resource +[**ApiAccountsMgmtV1CloudResourcesIdGet**](DefaultApi.md#ApiAccountsMgmtV1CloudResourcesIdGet) | **Get** /api/accounts_mgmt/v1/cloud_resources/{id} | Get a cloud resource +[**ApiAccountsMgmtV1CloudResourcesIdPatch**](DefaultApi.md#ApiAccountsMgmtV1CloudResourcesIdPatch) | **Patch** /api/accounts_mgmt/v1/cloud_resources/{id} | Update a cloud resource +[**ApiAccountsMgmtV1CloudResourcesPost**](DefaultApi.md#ApiAccountsMgmtV1CloudResourcesPost) | **Post** /api/accounts_mgmt/v1/cloud_resources | Create a new cloud resource +[**ApiAccountsMgmtV1ClusterAuthorizationsPost**](DefaultApi.md#ApiAccountsMgmtV1ClusterAuthorizationsPost) | **Post** /api/accounts_mgmt/v1/cluster_authorizations | Authorizes new cluster creation against an exsiting RH Subscription. +[**ApiAccountsMgmtV1ClusterRegistrationsPost**](DefaultApi.md#ApiAccountsMgmtV1ClusterRegistrationsPost) | **Post** /api/accounts_mgmt/v1/cluster_registrations | Finds or creates a cluster registration with a registy credential token and cluster ID +[**ApiAccountsMgmtV1ClusterTransfersGet**](DefaultApi.md#ApiAccountsMgmtV1ClusterTransfersGet) | **Get** /api/accounts_mgmt/v1/cluster_transfers | List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. +[**ApiAccountsMgmtV1ClusterTransfersIdPatch**](DefaultApi.md#ApiAccountsMgmtV1ClusterTransfersIdPatch) | **Patch** /api/accounts_mgmt/v1/cluster_transfers/{id} | Update specific cluster transfer +[**ApiAccountsMgmtV1ClusterTransfersPost**](DefaultApi.md#ApiAccountsMgmtV1ClusterTransfersPost) | **Post** /api/accounts_mgmt/v1/cluster_transfers | Initiate cluster transfer. +[**ApiAccountsMgmtV1ConfigSkusGet**](DefaultApi.md#ApiAccountsMgmtV1ConfigSkusGet) | **Get** /api/accounts_mgmt/v1/config/skus | Returns a list of skus +[**ApiAccountsMgmtV1ConfigSkusIdDelete**](DefaultApi.md#ApiAccountsMgmtV1ConfigSkusIdDelete) | **Delete** /api/accounts_mgmt/v1/config/skus/{id} | Delete a sku +[**ApiAccountsMgmtV1ConfigSkusIdGet**](DefaultApi.md#ApiAccountsMgmtV1ConfigSkusIdGet) | **Get** /api/accounts_mgmt/v1/config/skus/{id} | Get a sku +[**ApiAccountsMgmtV1ConfigSkusIdPatch**](DefaultApi.md#ApiAccountsMgmtV1ConfigSkusIdPatch) | **Patch** /api/accounts_mgmt/v1/config/skus/{id} | Update a Sku +[**ApiAccountsMgmtV1ConfigSkusPost**](DefaultApi.md#ApiAccountsMgmtV1ConfigSkusPost) | **Post** /api/accounts_mgmt/v1/config/skus | Create a new sku +[**ApiAccountsMgmtV1DeletedSubscriptionsGet**](DefaultApi.md#ApiAccountsMgmtV1DeletedSubscriptionsGet) | **Get** /api/accounts_mgmt/v1/deleted_subscriptions | Returns a list of deleted subscriptions +[**ApiAccountsMgmtV1ErrorsGet**](DefaultApi.md#ApiAccountsMgmtV1ErrorsGet) | **Get** /api/accounts_mgmt/v1/errors | Returns a list of errors +[**ApiAccountsMgmtV1ErrorsIdGet**](DefaultApi.md#ApiAccountsMgmtV1ErrorsIdGet) | **Get** /api/accounts_mgmt/v1/errors/{id} | Get an error by id +[**ApiAccountsMgmtV1FeatureTogglesIdQueryPost**](DefaultApi.md#ApiAccountsMgmtV1FeatureTogglesIdQueryPost) | **Post** /api/accounts_mgmt/v1/feature_toggles/{id}/query | Query a feature toggle by id +[**ApiAccountsMgmtV1LabelsGet**](DefaultApi.md#ApiAccountsMgmtV1LabelsGet) | **Get** /api/accounts_mgmt/v1/labels | Returns a list of labels +[**ApiAccountsMgmtV1LandingPageSelfServiceGet**](DefaultApi.md#ApiAccountsMgmtV1LandingPageSelfServiceGet) | **Get** /api/accounts_mgmt/v1/landing_page/self_service | Get a console.redhat.com landing page content JSON schema +[**ApiAccountsMgmtV1MetricsGet**](DefaultApi.md#ApiAccountsMgmtV1MetricsGet) | **Get** /api/accounts_mgmt/v1/metrics | Returns a list of metrics +[**ApiAccountsMgmtV1NotifyPost**](DefaultApi.md#ApiAccountsMgmtV1NotifyPost) | **Post** /api/accounts_mgmt/v1/notify | Notify the owner of cluster/subscription +[**ApiAccountsMgmtV1OrganizationsGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsGet) | **Get** /api/accounts_mgmt/v1/organizations | Returns a list of organizations +[**ApiAccountsMgmtV1OrganizationsIdGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdGet) | **Get** /api/accounts_mgmt/v1/organizations/{id} | Get an organization by id +[**ApiAccountsMgmtV1OrganizationsIdLabelsGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdLabelsGet) | **Get** /api/accounts_mgmt/v1/organizations/{id}/labels | Returns a list of labels +[**ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete) | **Delete** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Delete a label +[**ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet) | **Get** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Get subscription labels by label key +[**ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch) | **Patch** /api/accounts_mgmt/v1/organizations/{id}/labels/{key} | Create a new label or update an existing label +[**ApiAccountsMgmtV1OrganizationsIdLabelsPost**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdLabelsPost) | **Post** /api/accounts_mgmt/v1/organizations/{id}/labels | Create a new label or update an existing label +[**ApiAccountsMgmtV1OrganizationsIdPatch**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdPatch) | **Patch** /api/accounts_mgmt/v1/organizations/{id} | Update an organization +[**ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet) | **Get** /api/accounts_mgmt/v1/organizations/{id}/summary_dashboard | Returns a summary of organizations clusters based on metrics +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId} | Delete an account group assignment +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId} | Get account group assignment by id +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments | Returns a list of account group assignments for the given org +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments | Create a new AccountGroupAssignment +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Delete an account group +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Get account group by id +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch) | **Patch** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId} | Update an account group +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups | Returns a list of account groups for the given org +[**ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/account_groups | Create a new AccountGroup +[**ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota | Returns a list of consumed quota for an organization +[**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota | Returns a list of resource quota objects +[**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost) | **Post** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota | Create a new resource quota +[**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete) | **Delete** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Delete a resource quota +[**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet) | **Get** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Get a resource quota by id +[**ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch) | **Patch** /api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId} | Update a resource quota +[**ApiAccountsMgmtV1OrganizationsPost**](DefaultApi.md#ApiAccountsMgmtV1OrganizationsPost) | **Post** /api/accounts_mgmt/v1/organizations | Create a new organization +[**ApiAccountsMgmtV1PlansGet**](DefaultApi.md#ApiAccountsMgmtV1PlansGet) | **Get** /api/accounts_mgmt/v1/plans | Get all plans +[**ApiAccountsMgmtV1PlansIdGet**](DefaultApi.md#ApiAccountsMgmtV1PlansIdGet) | **Get** /api/accounts_mgmt/v1/plans/{id} | Get a plan by id +[**ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete**](DefaultApi.md#ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete) | **Delete** /api/accounts_mgmt/v1/pull_secrets/{externalResourceId} | Delete a pull secret +[**ApiAccountsMgmtV1PullSecretsPost**](DefaultApi.md#ApiAccountsMgmtV1PullSecretsPost) | **Post** /api/accounts_mgmt/v1/pull_secrets | Return access token generated from registries in docker format +[**ApiAccountsMgmtV1QuotaCostGet**](DefaultApi.md#ApiAccountsMgmtV1QuotaCostGet) | **Get** /api/accounts_mgmt/v1/quota_cost | Returns a summary of quota cost for the authenticated user +[**ApiAccountsMgmtV1QuotaRulesGet**](DefaultApi.md#ApiAccountsMgmtV1QuotaRulesGet) | **Get** /api/accounts_mgmt/v1/quota_rules | Returns a list of UHC product Quota Rules +[**ApiAccountsMgmtV1QuotasGet**](DefaultApi.md#ApiAccountsMgmtV1QuotasGet) | **Get** /api/accounts_mgmt/v1/quotas | Returns a list of quotas +[**ApiAccountsMgmtV1QuotasIdDelete**](DefaultApi.md#ApiAccountsMgmtV1QuotasIdDelete) | **Delete** /api/accounts_mgmt/v1/quotas/{id} | Delete a quota +[**ApiAccountsMgmtV1QuotasIdGet**](DefaultApi.md#ApiAccountsMgmtV1QuotasIdGet) | **Get** /api/accounts_mgmt/v1/quotas/{id} | Get a quota +[**ApiAccountsMgmtV1QuotasIdPatch**](DefaultApi.md#ApiAccountsMgmtV1QuotasIdPatch) | **Patch** /api/accounts_mgmt/v1/quotas/{id} | Update a quota +[**ApiAccountsMgmtV1QuotasPost**](DefaultApi.md#ApiAccountsMgmtV1QuotasPost) | **Post** /api/accounts_mgmt/v1/quotas | Create a new quota +[**ApiAccountsMgmtV1RegistriesGet**](DefaultApi.md#ApiAccountsMgmtV1RegistriesGet) | **Get** /api/accounts_mgmt/v1/registries | Returns a list of registries +[**ApiAccountsMgmtV1RegistriesIdGet**](DefaultApi.md#ApiAccountsMgmtV1RegistriesIdGet) | **Get** /api/accounts_mgmt/v1/registries/{id} | Get an registry by id +[**ApiAccountsMgmtV1RegistryCredentialsGet**](DefaultApi.md#ApiAccountsMgmtV1RegistryCredentialsGet) | **Get** /api/accounts_mgmt/v1/registry_credentials | +[**ApiAccountsMgmtV1RegistryCredentialsIdDelete**](DefaultApi.md#ApiAccountsMgmtV1RegistryCredentialsIdDelete) | **Delete** /api/accounts_mgmt/v1/registry_credentials/{id} | Delete a registry credential by id +[**ApiAccountsMgmtV1RegistryCredentialsIdGet**](DefaultApi.md#ApiAccountsMgmtV1RegistryCredentialsIdGet) | **Get** /api/accounts_mgmt/v1/registry_credentials/{id} | Get a registry credentials by id +[**ApiAccountsMgmtV1RegistryCredentialsIdPatch**](DefaultApi.md#ApiAccountsMgmtV1RegistryCredentialsIdPatch) | **Patch** /api/accounts_mgmt/v1/registry_credentials/{id} | Update a registry credential +[**ApiAccountsMgmtV1RegistryCredentialsPost**](DefaultApi.md#ApiAccountsMgmtV1RegistryCredentialsPost) | **Post** /api/accounts_mgmt/v1/registry_credentials | Request the creation of a registry credential +[**ApiAccountsMgmtV1ReservedResourcesGet**](DefaultApi.md#ApiAccountsMgmtV1ReservedResourcesGet) | **Get** /api/accounts_mgmt/v1/reserved_resources | Returns a list of reserved resources +[**ApiAccountsMgmtV1ResourceQuotaGet**](DefaultApi.md#ApiAccountsMgmtV1ResourceQuotaGet) | **Get** /api/accounts_mgmt/v1/resource_quota | Returns a list of resource quota objects +[**ApiAccountsMgmtV1RoleBindingsGet**](DefaultApi.md#ApiAccountsMgmtV1RoleBindingsGet) | **Get** /api/accounts_mgmt/v1/role_bindings | Returns a list of role bindings +[**ApiAccountsMgmtV1RoleBindingsIdDelete**](DefaultApi.md#ApiAccountsMgmtV1RoleBindingsIdDelete) | **Delete** /api/accounts_mgmt/v1/role_bindings/{id} | Delete a role binding +[**ApiAccountsMgmtV1RoleBindingsIdGet**](DefaultApi.md#ApiAccountsMgmtV1RoleBindingsIdGet) | **Get** /api/accounts_mgmt/v1/role_bindings/{id} | Get a role binding +[**ApiAccountsMgmtV1RoleBindingsIdPatch**](DefaultApi.md#ApiAccountsMgmtV1RoleBindingsIdPatch) | **Patch** /api/accounts_mgmt/v1/role_bindings/{id} | Update a role binding +[**ApiAccountsMgmtV1RoleBindingsPost**](DefaultApi.md#ApiAccountsMgmtV1RoleBindingsPost) | **Post** /api/accounts_mgmt/v1/role_bindings | Create a new role binding +[**ApiAccountsMgmtV1RolesGet**](DefaultApi.md#ApiAccountsMgmtV1RolesGet) | **Get** /api/accounts_mgmt/v1/roles | Returns a list of roles +[**ApiAccountsMgmtV1RolesIdGet**](DefaultApi.md#ApiAccountsMgmtV1RolesIdGet) | **Get** /api/accounts_mgmt/v1/roles/{id} | Get a role by id +[**ApiAccountsMgmtV1SelfEntitlementProductPost**](DefaultApi.md#ApiAccountsMgmtV1SelfEntitlementProductPost) | **Post** /api/accounts_mgmt/v1/self_entitlement/{product} | Create or renew the entitlement to support a product for the user's organization. +[**ApiAccountsMgmtV1SkuRulesGet**](DefaultApi.md#ApiAccountsMgmtV1SkuRulesGet) | **Get** /api/accounts_mgmt/v1/sku_rules | Returns a list of UHC product SKU Rules +[**ApiAccountsMgmtV1SkuRulesIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SkuRulesIdDelete) | **Delete** /api/accounts_mgmt/v1/sku_rules/{id} | Delete a sku rule +[**ApiAccountsMgmtV1SkuRulesIdGet**](DefaultApi.md#ApiAccountsMgmtV1SkuRulesIdGet) | **Get** /api/accounts_mgmt/v1/sku_rules/{id} | Get a sku rules by id +[**ApiAccountsMgmtV1SkuRulesIdPatch**](DefaultApi.md#ApiAccountsMgmtV1SkuRulesIdPatch) | **Patch** /api/accounts_mgmt/v1/sku_rules/{id} | Update a sku rule +[**ApiAccountsMgmtV1SkuRulesPost**](DefaultApi.md#ApiAccountsMgmtV1SkuRulesPost) | **Post** /api/accounts_mgmt/v1/sku_rules | Create a new sku rule +[**ApiAccountsMgmtV1SkusGet**](DefaultApi.md#ApiAccountsMgmtV1SkusGet) | **Get** /api/accounts_mgmt/v1/skus | Returns a list of UHC product SKUs +[**ApiAccountsMgmtV1SkusIdGet**](DefaultApi.md#ApiAccountsMgmtV1SkusIdGet) | **Get** /api/accounts_mgmt/v1/skus/{id} | Get a sku by id +[**ApiAccountsMgmtV1SubscriptionsGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsGet) | **Get** /api/accounts_mgmt/v1/subscriptions | Returns a list of subscriptions +[**ApiAccountsMgmtV1SubscriptionsIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdDelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{id} | Deletes a subscription by id +[**ApiAccountsMgmtV1SubscriptionsIdGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id} | Get a subscription by id +[**ApiAccountsMgmtV1SubscriptionsIdLabelsGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdLabelsGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/labels | Returns a list of labels +[**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Delete a label +[**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Get subscription labels by label key +[**ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{id}/labels/{key} | Create a new label or update an existing label +[**ApiAccountsMgmtV1SubscriptionsIdLabelsPost**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdLabelsPost) | **Post** /api/accounts_mgmt/v1/subscriptions/{id}/labels | Create a new label or update an existing label +[**ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name} | Get subscription's metrics by metric name +[**ApiAccountsMgmtV1SubscriptionsIdNotifyPost**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdNotifyPost) | **Post** /api/accounts_mgmt/v1/subscriptions/{id}/notify | Notify the owner of a subscription +[**ApiAccountsMgmtV1SubscriptionsIdPatch**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdPatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{id} | Update a subscription +[**ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources | Returns a list of reserved resources +[**ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{id}/support_cases | Returns a list of open support creates opened against the external cluster id of this subscrption +[**ApiAccountsMgmtV1SubscriptionsPost**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsPost) | **Post** /api/accounts_mgmt/v1/subscriptions | Create a new subscription +[**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId} | Deletes a notification contact by subscription and account id +[**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts | Returns a list of notification contacts for the given subscription +[**ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost) | **Post** /api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts | Add an account as a notification contact to this subscription +[**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Delete reserved resources by id +[**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Get reserved resources by id +[**ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch) | **Patch** /api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId} | Update a reserved resource +[**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings | Get subscription role bindings +[**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete) | **Delete** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id} | Delete a subscription role binding +[**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet) | **Get** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id} | Get a Subscription Role Binding by id +[**ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost**](DefaultApi.md#ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost) | **Post** /api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings | Create a new subscription role binding +[**ApiAccountsMgmtV1SupportCasesCaseIdDelete**](DefaultApi.md#ApiAccountsMgmtV1SupportCasesCaseIdDelete) | **Delete** /api/accounts_mgmt/v1/support_cases/{caseId} | Delete a support case +[**ApiAccountsMgmtV1SupportCasesPost**](DefaultApi.md#ApiAccountsMgmtV1SupportCasesPost) | **Post** /api/accounts_mgmt/v1/support_cases | create a support case for the subscription +[**ApiAccountsMgmtV1TokenAuthorizationPost**](DefaultApi.md#ApiAccountsMgmtV1TokenAuthorizationPost) | **Post** /api/accounts_mgmt/v1/token_authorization | Finds the account owner of the provided token +[**ApiAuthorizationsV1AccessReviewPost**](DefaultApi.md#ApiAuthorizationsV1AccessReviewPost) | **Post** /api/authorizations/v1/access_review | Review an account's access to perform an action on a particular resource or resource type +[**ApiAuthorizationsV1CapabilityReviewPost**](DefaultApi.md#ApiAuthorizationsV1CapabilityReviewPost) | **Post** /api/authorizations/v1/capability_review | Review an account's capabilities +[**ApiAuthorizationsV1ExportControlReviewPost**](DefaultApi.md#ApiAuthorizationsV1ExportControlReviewPost) | **Post** /api/authorizations/v1/export_control_review | Determine whether a user is restricted from downloading Red Hat software based on export control compliance. +[**ApiAuthorizationsV1FeatureReviewPost**](DefaultApi.md#ApiAuthorizationsV1FeatureReviewPost) | **Post** /api/authorizations/v1/feature_review | Review feature to perform an action on it such as toggle a feature on/off +[**ApiAuthorizationsV1ResourceReviewPost**](DefaultApi.md#ApiAuthorizationsV1ResourceReviewPost) | **Post** /api/authorizations/v1/resource_review | Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. +[**ApiAuthorizationsV1SelfAccessReviewPost**](DefaultApi.md#ApiAuthorizationsV1SelfAccessReviewPost) | **Post** /api/authorizations/v1/self_access_review | Review your ability to perform an action on a particular resource or resource type +[**ApiAuthorizationsV1SelfFeatureReviewPost**](DefaultApi.md#ApiAuthorizationsV1SelfFeatureReviewPost) | **Post** /api/authorizations/v1/self_feature_review | Review your ability to toggle a feature +[**ApiAuthorizationsV1SelfResourceReviewPost**](DefaultApi.md#ApiAuthorizationsV1SelfResourceReviewPost) | **Post** /api/authorizations/v1/self_resource_review | Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. +[**ApiAuthorizationsV1TermsReviewPost**](DefaultApi.md#ApiAuthorizationsV1TermsReviewPost) | **Post** /api/authorizations/v1/terms_review | Review an account's status of Terms + + + +## ApiAccountsMgmtV1AccountsGet + +> AccountList ApiAccountsMgmtV1AccountsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Fields(fields).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Execute() + +Returns a list of accounts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + fields := "fields_example" // string | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use . notation. .* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` (optional) + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Fields(fields).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsGet`: AccountList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + **fields** | **string** | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` | + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + +### Return type + +[**AccountList**](AccountList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdGet + +> Account ApiAccountsMgmtV1AccountsIdGet(ctx, id).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).FetchRhit(fetchRhit).Execute() + +Get an account by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + fetchRhit := true // bool | If true, includes the RHIT account_id in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdGet(context.Background(), id).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).FetchRhit(fetchRhit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdGet`: Account + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + **fetchRhit** | **bool** | If true, includes the RHIT account_id in the output. Could slow request response time. | + +### Return type + +[**Account**](Account.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdLabelsGet + +> LabelList ApiAccountsMgmtV1AccountsIdLabelsGet(ctx, id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of labels + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGet(context.Background(), id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdLabelsGet`: LabelList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdLabelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**LabelList**](LabelList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdLabelsKeyDelete + +> ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(ctx, id, key).Execute() + +Delete a label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyDelete(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdLabelsKeyDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdLabelsKeyGet + +> Label ApiAccountsMgmtV1AccountsIdLabelsKeyGet(ctx, id, key).Execute() + +Get subscription labels by label key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGet(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdLabelsKeyGet`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdLabelsKeyGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdLabelsKeyPatch + +> Label ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(ctx, id, key).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatch(context.Background(), id, key).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdLabelsKeyPatch`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsKeyPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdLabelsKeyPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdLabelsPost + +> Label ApiAccountsMgmtV1AccountsIdLabelsPost(ctx, id).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPost(context.Background(), id).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdLabelsPost`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdLabelsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdLabelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsIdPatch + +> Account ApiAccountsMgmtV1AccountsIdPatch(ctx, id).AccountPatchRequest(accountPatchRequest).Execute() + +Update an account + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + accountPatchRequest := *openapiclient.NewAccountPatchRequest() // AccountPatchRequest | Updated account data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsIdPatch(context.Background(), id).AccountPatchRequest(accountPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsIdPatch`: Account + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **accountPatchRequest** | [**AccountPatchRequest**](AccountPatchRequest.md) | Updated account data | + +### Return type + +[**Account**](Account.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1AccountsPost + +> Account ApiAccountsMgmtV1AccountsPost(ctx).Account(account).DryRun(dryRun).Execute() + +Create a new account + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + account := *openapiclient.NewAccount("Username_example") // Account | Account data + dryRun := true // bool | If true, instructs API to avoid making any changes, but rather run through validations only. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1AccountsPost(context.Background()).Account(account).DryRun(dryRun).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1AccountsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1AccountsPost`: Account + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1AccountsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1AccountsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account** | [**Account**](Account.md) | Account data | + **dryRun** | **bool** | If true, instructs API to avoid making any changes, but rather run through validations only. | + +### Return type + +[**Account**](Account.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CertificatesPost + +> Certificate ApiAccountsMgmtV1CertificatesPost(ctx).CertificatesRequest(certificatesRequest).Execute() + +Fetch certificates of a particular type + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + certificatesRequest := *openapiclient.NewCertificatesRequest("Type_example") // CertificatesRequest | # The payload depends on the type of the requested certificate The examples for supported types: * {\"type\": \"sca\", \"arch\": \"x86_64\"} + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CertificatesPost(context.Background()).CertificatesRequest(certificatesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CertificatesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CertificatesPost`: Certificate + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1CertificatesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CertificatesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **certificatesRequest** | [**CertificatesRequest**](CertificatesRequest.md) | # The payload depends on the type of the requested certificate The examples for supported types: * {\"type\": \"sca\", \"arch\": \"x86_64\"} | + +### Return type + +[**Certificate**](Certificate.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CloudResourcesGet + +> CloudResourceList ApiAccountsMgmtV1CloudResourcesGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of cloud resources + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CloudResourcesGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CloudResourcesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CloudResourcesGet`: CloudResourceList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1CloudResourcesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CloudResourcesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**CloudResourceList**](CloudResourceList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CloudResourcesIdDelete + +> ApiAccountsMgmtV1CloudResourcesIdDelete(ctx, id).Execute() + +Delete a cloud resource + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CloudResourcesIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CloudResourcesIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CloudResourcesIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CloudResourcesIdGet + +> CloudResource ApiAccountsMgmtV1CloudResourcesIdGet(ctx, id).Execute() + +Get a cloud resource + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CloudResourcesIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CloudResourcesIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CloudResourcesIdGet`: CloudResource + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1CloudResourcesIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CloudResourcesIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CloudResource**](CloudResource.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CloudResourcesIdPatch + +> CloudResource ApiAccountsMgmtV1CloudResourcesIdPatch(ctx, id).CloudResource(cloudResource).Execute() + +Update a cloud resource + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + cloudResource := *openapiclient.NewCloudResource() // CloudResource | Updated cloud resource data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CloudResourcesIdPatch(context.Background(), id).CloudResource(cloudResource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CloudResourcesIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CloudResourcesIdPatch`: CloudResource + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1CloudResourcesIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CloudResourcesIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cloudResource** | [**CloudResource**](CloudResource.md) | Updated cloud resource data | + +### Return type + +[**CloudResource**](CloudResource.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1CloudResourcesPost + +> CloudResource ApiAccountsMgmtV1CloudResourcesPost(ctx).CloudResource(cloudResource).Execute() + +Create a new cloud resource + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + cloudResource := *openapiclient.NewCloudResource() // CloudResource | Cloud resource data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1CloudResourcesPost(context.Background()).CloudResource(cloudResource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1CloudResourcesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1CloudResourcesPost`: CloudResource + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1CloudResourcesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1CloudResourcesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cloudResource** | [**CloudResource**](CloudResource.md) | Cloud resource data | + +### Return type + +[**CloudResource**](CloudResource.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ClusterAuthorizationsPost + +> ClusterAuthorizationResponse ApiAccountsMgmtV1ClusterAuthorizationsPost(ctx).ClusterAuthorizationRequest(clusterAuthorizationRequest).Execute() + +Authorizes new cluster creation against an exsiting RH Subscription. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + clusterAuthorizationRequest := *openapiclient.NewClusterAuthorizationRequest("AccountUsername_example", "ClusterId_example") // ClusterAuthorizationRequest | Cluster and authorization data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPost(context.Background()).ClusterAuthorizationRequest(clusterAuthorizationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ClusterAuthorizationsPost`: ClusterAuthorizationResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ClusterAuthorizationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ClusterAuthorizationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterAuthorizationRequest** | [**ClusterAuthorizationRequest**](ClusterAuthorizationRequest.md) | Cluster and authorization data | + +### Return type + +[**ClusterAuthorizationResponse**](ClusterAuthorizationResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ClusterRegistrationsPost + +> ClusterRegistrationResponse ApiAccountsMgmtV1ClusterRegistrationsPost(ctx).ClusterRegistrationRequest(clusterRegistrationRequest).Execute() + +Finds or creates a cluster registration with a registy credential token and cluster ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + clusterRegistrationRequest := *openapiclient.NewClusterRegistrationRequest() // ClusterRegistrationRequest | Cluster and authorization data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPost(context.Background()).ClusterRegistrationRequest(clusterRegistrationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ClusterRegistrationsPost`: ClusterRegistrationResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ClusterRegistrationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ClusterRegistrationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterRegistrationRequest** | [**ClusterRegistrationRequest**](ClusterRegistrationRequest.md) | Cluster and authorization data | + +### Return type + +[**ClusterRegistrationResponse**](ClusterRegistrationResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ClusterTransfersGet + +> ClusterTransferList ApiAccountsMgmtV1ClusterTransfersGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ClusterTransfersGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ClusterTransfersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ClusterTransfersGet`: ClusterTransferList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ClusterTransfersGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ClusterTransfersGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**ClusterTransferList**](ClusterTransferList.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ClusterTransfersIdPatch + +> ClusterTransfer ApiAccountsMgmtV1ClusterTransfersIdPatch(ctx, id).ClusterTransferPatchRequest(clusterTransferPatchRequest).Execute() + +Update specific cluster transfer + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + clusterTransferPatchRequest := *openapiclient.NewClusterTransferPatchRequest() // ClusterTransferPatchRequest | Updated cluster transfer + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ClusterTransfersIdPatch(context.Background(), id).ClusterTransferPatchRequest(clusterTransferPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ClusterTransfersIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ClusterTransfersIdPatch`: ClusterTransfer + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ClusterTransfersIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ClusterTransfersIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **clusterTransferPatchRequest** | [**ClusterTransferPatchRequest**](ClusterTransferPatchRequest.md) | Updated cluster transfer | + +### Return type + +[**ClusterTransfer**](ClusterTransfer.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ClusterTransfersPost + +> ClusterTransfer ApiAccountsMgmtV1ClusterTransfersPost(ctx).ClusterTransferRequest(clusterTransferRequest).Execute() + +Initiate cluster transfer. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + clusterTransferRequest := *openapiclient.NewClusterTransferRequest() // ClusterTransferRequest | The contents of the cluster transfer creation request + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ClusterTransfersPost(context.Background()).ClusterTransferRequest(clusterTransferRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ClusterTransfersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ClusterTransfersPost`: ClusterTransfer + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ClusterTransfersPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ClusterTransfersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterTransferRequest** | [**ClusterTransferRequest**](ClusterTransferRequest.md) | The contents of the cluster transfer creation request | + +### Return type + +[**ClusterTransfer**](ClusterTransfer.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ConfigSkusGet + +> SkuList ApiAccountsMgmtV1ConfigSkusGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of skus + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ConfigSkusGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ConfigSkusGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ConfigSkusGet`: SkuList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ConfigSkusGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ConfigSkusGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**SkuList**](SkuList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ConfigSkusIdDelete + +> ApiAccountsMgmtV1ConfigSkusIdDelete(ctx, id).Execute() + +Delete a sku + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ConfigSkusIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ConfigSkusIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ConfigSkusIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ConfigSkusIdGet + +> SKU ApiAccountsMgmtV1ConfigSkusIdGet(ctx, id).Execute() + +Get a sku + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ConfigSkusIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ConfigSkusIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ConfigSkusIdGet`: SKU + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ConfigSkusIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ConfigSkusIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SKU**](SKU.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ConfigSkusIdPatch + +> SKU ApiAccountsMgmtV1ConfigSkusIdPatch(ctx, id).SKU(sKU).Execute() + +Update a Sku + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + sKU := *openapiclient.NewSKU() // SKU | Updated sku data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ConfigSkusIdPatch(context.Background(), id).SKU(sKU).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ConfigSkusIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ConfigSkusIdPatch`: SKU + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ConfigSkusIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ConfigSkusIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sKU** | [**SKU**](SKU.md) | Updated sku data | + +### Return type + +[**SKU**](SKU.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ConfigSkusPost + +> SKU ApiAccountsMgmtV1ConfigSkusPost(ctx).SKU(sKU).Execute() + +Create a new sku + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + sKU := *openapiclient.NewSKU() // SKU | Sku data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ConfigSkusPost(context.Background()).SKU(sKU).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ConfigSkusPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ConfigSkusPost`: SKU + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ConfigSkusPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ConfigSkusPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sKU** | [**SKU**](SKU.md) | Sku data | + +### Return type + +[**SKU**](SKU.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1DeletedSubscriptionsGet + +> DeletedSubscriptionList ApiAccountsMgmtV1DeletedSubscriptionsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of deleted subscriptions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1DeletedSubscriptionsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1DeletedSubscriptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1DeletedSubscriptionsGet`: DeletedSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1DeletedSubscriptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1DeletedSubscriptionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**DeletedSubscriptionList**](DeletedSubscriptionList.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ErrorsGet + +> ErrorList ApiAccountsMgmtV1ErrorsGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of errors + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ErrorsGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ErrorsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ErrorsGet`: ErrorList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ErrorsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ErrorsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**ErrorList**](ErrorList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ErrorsIdGet + +> Error ApiAccountsMgmtV1ErrorsIdGet(ctx, id).Execute() + +Get an error by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ErrorsIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ErrorsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ErrorsIdGet`: Error + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ErrorsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ErrorsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1FeatureTogglesIdQueryPost + +> FeatureToggle ApiAccountsMgmtV1FeatureTogglesIdQueryPost(ctx, id).FeatureToggleQueryRequest(featureToggleQueryRequest).Execute() + +Query a feature toggle by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + featureToggleQueryRequest := *openapiclient.NewFeatureToggleQueryRequest("OrganizationId_example") // FeatureToggleQueryRequest | The context of the query + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPost(context.Background(), id).FeatureToggleQueryRequest(featureToggleQueryRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1FeatureTogglesIdQueryPost`: FeatureToggle + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1FeatureTogglesIdQueryPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1FeatureTogglesIdQueryPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **featureToggleQueryRequest** | [**FeatureToggleQueryRequest**](FeatureToggleQueryRequest.md) | The context of the query | + +### Return type + +[**FeatureToggle**](FeatureToggle.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1LabelsGet + +> LabelList ApiAccountsMgmtV1LabelsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of labels + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1LabelsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1LabelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1LabelsGet`: LabelList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1LabelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1LabelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**LabelList**](LabelList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1LandingPageSelfServiceGet + +> SelfServiceLandingPageSchema ApiAccountsMgmtV1LandingPageSelfServiceGet(ctx).Execute() + +Get a console.redhat.com landing page content JSON schema + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1LandingPageSelfServiceGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1LandingPageSelfServiceGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1LandingPageSelfServiceGet`: SelfServiceLandingPageSchema + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1LandingPageSelfServiceGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1LandingPageSelfServiceGetRequest struct via the builder pattern + + +### Return type + +[**SelfServiceLandingPageSchema**](SelfServiceLandingPageSchema.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1MetricsGet + +> MetricsList ApiAccountsMgmtV1MetricsGet(ctx).Search(search).Execute() + +Returns a list of metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1MetricsGet(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1MetricsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1MetricsGet`: MetricsList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1MetricsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1MetricsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**MetricsList**](MetricsList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1NotifyPost + +> ApiAccountsMgmtV1NotifyPost(ctx).NotificationRequest(notificationRequest).Execute() + +Notify the owner of cluster/subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + notificationRequest := *openapiclient.NewNotificationRequest("TemplateName_example") // NotificationRequest | The contents of the notification to send to the owner of a cluster/subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1NotifyPost(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1NotifyPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1NotifyPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | The contents of the notification to send to the owner of a cluster/subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID | + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsGet + +> OrganizationList ApiAccountsMgmtV1OrganizationsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Fields(fields).Execute() + +Returns a list of organizations + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + fields := "fields_example" // string | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use . notation. .* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Fields(fields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsGet`: OrganizationList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + **fields** | **string** | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` | + +### Return type + +[**OrganizationList**](OrganizationList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdGet + +> Organization ApiAccountsMgmtV1OrganizationsIdGet(ctx, id).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Execute() + +Get an organization by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdGet(context.Background(), id).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdGet`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdLabelsGet + +> LabelList ApiAccountsMgmtV1OrganizationsIdLabelsGet(ctx, id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of labels + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGet(context.Background(), id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdLabelsGet`: LabelList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdLabelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**LabelList**](LabelList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete + +> ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(ctx, id, key).Execute() + +Delete a label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdLabelsKeyDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet + +> Label ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(ctx, id, key).Execute() + +Get subscription labels by label key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdLabelsKeyGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch + +> Label ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(ctx, id, key).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch(context.Background(), id, key).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsKeyPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdLabelsKeyPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdLabelsPost + +> Label ApiAccountsMgmtV1OrganizationsIdLabelsPost(ctx, id).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPost(context.Background(), id).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdLabelsPost`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdLabelsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdLabelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdPatch + +> Organization ApiAccountsMgmtV1OrganizationsIdPatch(ctx, id).OrganizationPatchRequest(organizationPatchRequest).Execute() + +Update an organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + organizationPatchRequest := *openapiclient.NewOrganizationPatchRequest() // OrganizationPatchRequest | Updated organization data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdPatch(context.Background(), id).OrganizationPatchRequest(organizationPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdPatch`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **organizationPatchRequest** | [**OrganizationPatchRequest**](OrganizationPatchRequest.md) | Updated organization data | + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet + +> Summary ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(ctx, id).Execute() + +Returns a summary of organizations clusters based on metrics + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet`: Summary + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsIdSummaryDashboardGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsIdSummaryDashboardGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Summary**](Summary.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete + +> ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete(ctx, orgId, acctGrpAsgnId).Execute() + +Delete an account group assignment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + acctGrpAsgnId := "acctGrpAsgnId_example" // string | The id of account group assignment + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete(context.Background(), orgId, acctGrpAsgnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**acctGrpAsgnId** | **string** | The id of account group assignment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet + +> AccountGroupAssignment ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet(ctx, orgId, acctGrpAsgnId).Execute() + +Get account group assignment by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + acctGrpAsgnId := "acctGrpAsgnId_example" // string | The id of account group assignment + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet(context.Background(), orgId, acctGrpAsgnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet`: AccountGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**acctGrpAsgnId** | **string** | The id of account group assignment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AccountGroupAssignment**](AccountGroupAssignment.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet + +> AccountGroupAssignmentList ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet(ctx, orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of account group assignments for the given org + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet(context.Background(), orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet`: AccountGroupAssignmentList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**AccountGroupAssignmentList**](AccountGroupAssignmentList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost + +> AccountGroupAssignment ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost(ctx, orgId).AccountGroupAssignment(accountGroupAssignment).Execute() + +Create a new AccountGroupAssignment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + accountGroupAssignment := *openapiclient.NewAccountGroupAssignment("AccountGroupId_example", "AccountId_example") // AccountGroupAssignment | New AccountGroup data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost(context.Background(), orgId).AccountGroupAssignment(accountGroupAssignment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost`: AccountGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **accountGroupAssignment** | [**AccountGroupAssignment**](AccountGroupAssignment.md) | New AccountGroup data | + +### Return type + +[**AccountGroupAssignment**](AccountGroupAssignment.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete + +> ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete(ctx, orgId, acctGrpId).Execute() + +Delete an account group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + acctGrpId := "acctGrpId_example" // string | The id of account group + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete(context.Background(), orgId, acctGrpId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**acctGrpId** | **string** | The id of account group | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet + +> AccountGroup ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet(ctx, orgId, acctGrpId).Execute() + +Get account group by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + acctGrpId := "acctGrpId_example" // string | The id of account group + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet(context.Background(), orgId, acctGrpId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet`: AccountGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**acctGrpId** | **string** | The id of account group | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AccountGroup**](AccountGroup.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch + +> AccountGroup ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch(ctx, orgId, acctGrpId).AccountGroupRequest(accountGroupRequest).Execute() + +Update an account group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + acctGrpId := "acctGrpId_example" // string | The id of account group + accountGroupRequest := *openapiclient.NewAccountGroupRequest("Description_example", "Name_example") // AccountGroupRequest | Updated account group data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch(context.Background(), orgId, acctGrpId).AccountGroupRequest(accountGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch`: AccountGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**acctGrpId** | **string** | The id of account group | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **accountGroupRequest** | [**AccountGroupRequest**](AccountGroupRequest.md) | Updated account group data | + +### Return type + +[**AccountGroup**](AccountGroup.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet + +> AccountGroupList ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet(ctx, orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of account groups for the given org + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet(context.Background(), orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet`: AccountGroupList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**AccountGroupList**](AccountGroupList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost + +> AccountGroup ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost(ctx, orgId).AccountGroupRequest(accountGroupRequest).Execute() + +Create a new AccountGroup + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + accountGroupRequest := *openapiclient.NewAccountGroupRequest("Description_example", "Name_example") // AccountGroupRequest | New AccountGroup data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost(context.Background(), orgId).AccountGroupRequest(accountGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost`: AccountGroup + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **accountGroupRequest** | [**AccountGroupRequest**](AccountGroupRequest.md) | New AccountGroup data | + +### Return type + +[**AccountGroup**](AccountGroup.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet + +> ConsumedQuotaList ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet(ctx, orgId).ForceRecalc(forceRecalc).Execute() + +Returns a list of consumed quota for an organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + forceRecalc := true // bool | If true, includes that ConsumedQuota should be recalculated. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet(context.Background(), orgId).ForceRecalc(forceRecalc).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet`: ConsumedQuotaList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **forceRecalc** | **bool** | If true, includes that ConsumedQuota should be recalculated. | + +### Return type + +[**ConsumedQuotaList**](ConsumedQuotaList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet + +> ResourceQuotaList ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(ctx, orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of resource quota objects + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet(context.Background(), orgId).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet`: ResourceQuotaList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**ResourceQuotaList**](ResourceQuotaList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost + +> ResourceQuota ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(ctx, orgId).ResourceQuotaRequest(resourceQuotaRequest).Execute() + +Create a new resource quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + resourceQuotaRequest := *openapiclient.NewResourceQuotaRequest("Sku_example", int32(123)) // ResourceQuotaRequest | Resource quota data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost(context.Background(), orgId).ResourceQuotaRequest(resourceQuotaRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost`: ResourceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **resourceQuotaRequest** | [**ResourceQuotaRequest**](ResourceQuotaRequest.md) | Resource quota data | + +### Return type + +[**ResourceQuota**](ResourceQuota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete + +> ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(ctx, orgId, quotaId).Execute() + +Delete a resource quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + quotaId := "quotaId_example" // string | The id of quota + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete(context.Background(), orgId, quotaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**quotaId** | **string** | The id of quota | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet + +> ResourceQuota ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(ctx, orgId, quotaId).Execute() + +Get a resource quota by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + quotaId := "quotaId_example" // string | The id of quota + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet(context.Background(), orgId, quotaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet`: ResourceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**quotaId** | **string** | The id of quota | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ResourceQuota**](ResourceQuota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch + +> ResourceQuota ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(ctx, orgId, quotaId).ResourceQuotaRequest(resourceQuotaRequest).Execute() + +Update a resource quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orgId := "orgId_example" // string | The id of organization + quotaId := "quotaId_example" // string | The id of quota + resourceQuotaRequest := *openapiclient.NewResourceQuotaRequest("Sku_example", int32(123)) // ResourceQuotaRequest | Updated resource quota data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch(context.Background(), orgId, quotaId).ResourceQuotaRequest(resourceQuotaRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch`: ResourceQuota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgId** | **string** | The id of organization | +**quotaId** | **string** | The id of quota | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **resourceQuotaRequest** | [**ResourceQuotaRequest**](ResourceQuotaRequest.md) | Updated resource quota data | + +### Return type + +[**ResourceQuota**](ResourceQuota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1OrganizationsPost + +> Organization ApiAccountsMgmtV1OrganizationsPost(ctx).Organization(organization).Execute() + +Create a new organization + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + organization := *openapiclient.NewOrganization() // Organization | Organization data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1OrganizationsPost(context.Background()).Organization(organization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1OrganizationsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1OrganizationsPost`: Organization + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1OrganizationsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1OrganizationsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **organization** | [**Organization**](Organization.md) | Organization data | + +### Return type + +[**Organization**](Organization.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1PlansGet + +> PlanList ApiAccountsMgmtV1PlansGet(ctx).Page(page).Size(size).Search(search).Execute() + +Get all plans + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1PlansGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1PlansGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1PlansGet`: PlanList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1PlansGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1PlansGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**PlanList**](PlanList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1PlansIdGet + +> Plan ApiAccountsMgmtV1PlansIdGet(ctx, id).Execute() + +Get a plan by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1PlansIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1PlansIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1PlansIdGet`: Plan + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1PlansIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1PlansIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Plan**](Plan.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete + +> ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(ctx, externalResourceId).Execute() + +Delete a pull secret + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + externalResourceId := "externalResourceId_example" // string | The external resource id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete(context.Background(), externalResourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1PullSecretsExternalResourceIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalResourceId** | **string** | The external resource id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1PullSecretsExternalResourceIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1PullSecretsPost + +> AccessTokenCfg ApiAccountsMgmtV1PullSecretsPost(ctx).PullSecretRequest(pullSecretRequest).Execute() + +Return access token generated from registries in docker format + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pullSecretRequest := *openapiclient.NewPullSecretRequest("ExternalResourceId_example") // PullSecretRequest | Identifier of the resource in the external service that this pull secret relates to + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1PullSecretsPost(context.Background()).PullSecretRequest(pullSecretRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1PullSecretsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1PullSecretsPost`: AccessTokenCfg + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1PullSecretsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1PullSecretsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pullSecretRequest** | [**PullSecretRequest**](PullSecretRequest.md) | Identifier of the resource in the external service that this pull secret relates to | + +### Return type + +[**AccessTokenCfg**](AccessTokenCfg.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotaCostGet + +> QuotaCostList ApiAccountsMgmtV1QuotaCostGet(ctx).Search(search).FetchRelatedResources(fetchRelatedResources).FetchCloudAccounts(fetchCloudAccounts).Execute() + +Returns a summary of quota cost for the authenticated user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + fetchRelatedResources := true // bool | If true, includes the related resources in the output. Could slow request response time. (optional) + fetchCloudAccounts := true // bool | If true, includes the marketplace cloud accounts in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotaCostGet(context.Background()).Search(search).FetchRelatedResources(fetchRelatedResources).FetchCloudAccounts(fetchCloudAccounts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotaCostGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotaCostGet`: QuotaCostList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotaCostGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotaCostGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **fetchRelatedResources** | **bool** | If true, includes the related resources in the output. Could slow request response time. | + **fetchCloudAccounts** | **bool** | If true, includes the marketplace cloud accounts in the output. Could slow request response time. | + +### Return type + +[**QuotaCostList**](QuotaCostList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotaRulesGet + +> QuotaRulesList ApiAccountsMgmtV1QuotaRulesGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of UHC product Quota Rules + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotaRulesGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotaRulesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotaRulesGet`: QuotaRulesList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotaRulesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotaRulesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**QuotaRulesList**](QuotaRulesList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotasGet + +> QuotaList ApiAccountsMgmtV1QuotasGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of quotas + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotasGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotasGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotasGet`: QuotaList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotasGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotasGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**QuotaList**](QuotaList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotasIdDelete + +> ApiAccountsMgmtV1QuotasIdDelete(ctx, id).Execute() + +Delete a quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotasIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotasIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotasIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotasIdGet + +> Quota ApiAccountsMgmtV1QuotasIdGet(ctx, id).Execute() + +Get a quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotasIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotasIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotasIdGet`: Quota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotasIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotasIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Quota**](Quota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotasIdPatch + +> Quota ApiAccountsMgmtV1QuotasIdPatch(ctx, id).Quota(quota).Execute() + +Update a quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + quota := *openapiclient.NewQuota() // Quota | Updated quota data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotasIdPatch(context.Background(), id).Quota(quota).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotasIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotasIdPatch`: Quota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotasIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotasIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **quota** | [**Quota**](Quota.md) | Updated quota data | + +### Return type + +[**Quota**](Quota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1QuotasPost + +> Quota ApiAccountsMgmtV1QuotasPost(ctx).Quota(quota).Execute() + +Create a new quota + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + quota := *openapiclient.NewQuota() // Quota | Quota data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1QuotasPost(context.Background()).Quota(quota).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1QuotasPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1QuotasPost`: Quota + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1QuotasPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1QuotasPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **quota** | [**Quota**](Quota.md) | Quota data | + +### Return type + +[**Quota**](Quota.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistriesGet + +> RegistryList ApiAccountsMgmtV1RegistriesGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of registries + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistriesGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistriesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistriesGet`: RegistryList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistriesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistriesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**RegistryList**](RegistryList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistriesIdGet + +> Registry ApiAccountsMgmtV1RegistriesIdGet(ctx, id).Execute() + +Get an registry by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistriesIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistriesIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistriesIdGet`: Registry + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistriesIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistriesIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Registry**](Registry.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistryCredentialsGet + +> RegistryCredentialList ApiAccountsMgmtV1RegistryCredentialsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistryCredentialsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistryCredentialsGet`: RegistryCredentialList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistryCredentialsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**RegistryCredentialList**](RegistryCredentialList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistryCredentialsIdDelete + +> ApiAccountsMgmtV1RegistryCredentialsIdDelete(ctx, id).Execute() + +Delete a registry credential by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistryCredentialsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistryCredentialsIdGet + +> RegistryCredential ApiAccountsMgmtV1RegistryCredentialsIdGet(ctx, id).Execute() + +Get a registry credentials by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistryCredentialsIdGet`: RegistryCredential + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistryCredentialsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RegistryCredential**](RegistryCredential.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistryCredentialsIdPatch + +> RegistryCredential ApiAccountsMgmtV1RegistryCredentialsIdPatch(ctx, id).RegistryCredentialPatchRequest(registryCredentialPatchRequest).Execute() + +Update a registry credential + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + registryCredentialPatchRequest := *openapiclient.NewRegistryCredentialPatchRequest() // RegistryCredentialPatchRequest | Updated registry credential data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatch(context.Background(), id).RegistryCredentialPatchRequest(registryCredentialPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistryCredentialsIdPatch`: RegistryCredential + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistryCredentialsIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **registryCredentialPatchRequest** | [**RegistryCredentialPatchRequest**](RegistryCredentialPatchRequest.md) | Updated registry credential data | + +### Return type + +[**RegistryCredential**](RegistryCredential.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RegistryCredentialsPost + +> RegistryCredential ApiAccountsMgmtV1RegistryCredentialsPost(ctx).RegistryCredential(registryCredential).Execute() + +Request the creation of a registry credential + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + registryCredential := *openapiclient.NewRegistryCredential() // RegistryCredential | Registry credential data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RegistryCredentialsPost(context.Background()).RegistryCredential(registryCredential).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RegistryCredentialsPost`: RegistryCredential + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RegistryCredentialsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RegistryCredentialsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **registryCredential** | [**RegistryCredential**](RegistryCredential.md) | Registry credential data | + +### Return type + +[**RegistryCredential**](RegistryCredential.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ReservedResourcesGet + +> ReservedResourceList ApiAccountsMgmtV1ReservedResourcesGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of reserved resources + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ReservedResourcesGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ReservedResourcesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ReservedResourcesGet`: ReservedResourceList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ReservedResourcesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ReservedResourcesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**ReservedResourceList**](ReservedResourceList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1ResourceQuotaGet + +> ResourceQuotaList ApiAccountsMgmtV1ResourceQuotaGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of resource quota objects + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1ResourceQuotaGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1ResourceQuotaGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1ResourceQuotaGet`: ResourceQuotaList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1ResourceQuotaGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1ResourceQuotaGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**ResourceQuotaList**](ResourceQuotaList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RoleBindingsGet + +> RoleBindingList ApiAccountsMgmtV1RoleBindingsGet(ctx).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of role bindings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RoleBindingsGet(context.Background()).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RoleBindingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RoleBindingsGet`: RoleBindingList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RoleBindingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RoleBindingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**RoleBindingList**](RoleBindingList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RoleBindingsIdDelete + +> ApiAccountsMgmtV1RoleBindingsIdDelete(ctx, id).Execute() + +Delete a role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RoleBindingsIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RoleBindingsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RoleBindingsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RoleBindingsIdGet + +> RoleBinding ApiAccountsMgmtV1RoleBindingsIdGet(ctx, id).Execute() + +Get a role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RoleBindingsIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RoleBindingsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RoleBindingsIdGet`: RoleBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RoleBindingsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RoleBindingsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RoleBinding**](RoleBinding.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RoleBindingsIdPatch + +> RoleBinding ApiAccountsMgmtV1RoleBindingsIdPatch(ctx, id).RoleBindingRequest(roleBindingRequest).Execute() + +Update a role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + roleBindingRequest := *openapiclient.NewRoleBindingRequest() // RoleBindingRequest | Updated role binding data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatch(context.Background(), id).RoleBindingRequest(roleBindingRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RoleBindingsIdPatch`: RoleBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RoleBindingsIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RoleBindingsIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **roleBindingRequest** | [**RoleBindingRequest**](RoleBindingRequest.md) | Updated role binding data | + +### Return type + +[**RoleBinding**](RoleBinding.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RoleBindingsPost + +> RoleBinding ApiAccountsMgmtV1RoleBindingsPost(ctx).RoleBindingCreateRequest(roleBindingCreateRequest).Execute() + +Create a new role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + roleBindingCreateRequest := *openapiclient.NewRoleBindingCreateRequest("RoleId_example", "Type_example") // RoleBindingCreateRequest | Role binding data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RoleBindingsPost(context.Background()).RoleBindingCreateRequest(roleBindingCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RoleBindingsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RoleBindingsPost`: RoleBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RoleBindingsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RoleBindingsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleBindingCreateRequest** | [**RoleBindingCreateRequest**](RoleBindingCreateRequest.md) | Role binding data | + +### Return type + +[**RoleBinding**](RoleBinding.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RolesGet + +> RoleList ApiAccountsMgmtV1RolesGet(ctx).Page(page).Size(size).Search(search).Execute() + +Returns a list of roles + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RolesGet(context.Background()).Page(page).Size(size).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RolesGet`: RoleList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RolesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RolesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**RoleList**](RoleList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1RolesIdGet + +> Role ApiAccountsMgmtV1RolesIdGet(ctx, id).Execute() + +Get a role by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1RolesIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1RolesIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1RolesIdGet`: Role + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1RolesIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1RolesIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Role**](Role.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SelfEntitlementProductPost + +> SelfEntitlementStatus ApiAccountsMgmtV1SelfEntitlementProductPost(ctx, product).Execute() + +Create or renew the entitlement to support a product for the user's organization. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + product := "product_example" // string | The product for self_entitlement. The supported products are [rosa]. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SelfEntitlementProductPost(context.Background(), product).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SelfEntitlementProductPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SelfEntitlementProductPost`: SelfEntitlementStatus + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SelfEntitlementProductPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**product** | **string** | The product for self_entitlement. The supported products are [rosa]. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SelfEntitlementProductPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SelfEntitlementStatus**](SelfEntitlementStatus.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkuRulesGet + +> SkuRulesList ApiAccountsMgmtV1SkuRulesGet(ctx).Search(search).Execute() + +Returns a list of UHC product SKU Rules + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkuRulesGet(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkuRulesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkuRulesGet`: SkuRulesList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkuRulesGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkuRulesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**SkuRulesList**](SkuRulesList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkuRulesIdDelete + +> ApiAccountsMgmtV1SkuRulesIdDelete(ctx, id).Execute() + +Delete a sku rule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkuRulesIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkuRulesIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkuRulesIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkuRulesIdGet + +> SkuRules ApiAccountsMgmtV1SkuRulesIdGet(ctx, id).Execute() + +Get a sku rules by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkuRulesIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkuRulesIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkuRulesIdGet`: SkuRules + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkuRulesIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkuRulesIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SkuRules**](SkuRules.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkuRulesIdPatch + +> SkuRules ApiAccountsMgmtV1SkuRulesIdPatch(ctx, id).SkuRules(skuRules).Execute() + +Update a sku rule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + skuRules := *openapiclient.NewSkuRules() // SkuRules | Updated sku rule data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkuRulesIdPatch(context.Background(), id).SkuRules(skuRules).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkuRulesIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkuRulesIdPatch`: SkuRules + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkuRulesIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkuRulesIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **skuRules** | [**SkuRules**](SkuRules.md) | Updated sku rule data | + +### Return type + +[**SkuRules**](SkuRules.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkuRulesPost + +> SkuRules ApiAccountsMgmtV1SkuRulesPost(ctx).SkuRules(skuRules).Execute() + +Create a new sku rule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + skuRules := *openapiclient.NewSkuRules() // SkuRules | Sku rule data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkuRulesPost(context.Background()).SkuRules(skuRules).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkuRulesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkuRulesPost`: SkuRules + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkuRulesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkuRulesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **skuRules** | [**SkuRules**](SkuRules.md) | Sku rule data | + +### Return type + +[**SkuRules**](SkuRules.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkusGet + +> SkuList ApiAccountsMgmtV1SkusGet(ctx).Search(search).Execute() + +Returns a list of UHC product SKUs + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkusGet(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkusGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkusGet`: SkuList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkusGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkusGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + +### Return type + +[**SkuList**](SkuList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SkusIdGet + +> SKU ApiAccountsMgmtV1SkusIdGet(ctx, id).Execute() + +Get a sku by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SkusIdGet(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SkusIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SkusIdGet`: SKU + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SkusIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SkusIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SKU**](SKU.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsGet + +> SubscriptionList ApiAccountsMgmtV1SubscriptionsGet(ctx).Page(page).Size(size).Search(search).FetchAccounts(fetchAccounts).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Fields(fields).OrderBy(orderBy).Labels(labels).Execute() + +Returns a list of subscriptions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + fetchAccounts := true // bool | If true, includes the account reference information in the output. Could slow request response time. (optional) + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + fields := "fields_example" // string | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use . notation. .* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + labels := "labels_example" // string | Specifies the criteria to filter the subscription resource based on their labels. A label is represented as a `key=value` pair, ``` labels = \"foo=bar\" ``` and multiple labels are separated by comma, ``` labels = \"foo=bar,fooz=barz\" ``` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsGet(context.Background()).Page(page).Size(size).Search(search).FetchAccounts(fetchAccounts).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).Fields(fields).OrderBy(orderBy).Labels(labels).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsGet`: SubscriptionList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **fetchAccounts** | **bool** | If true, includes the account reference information in the output. Could slow request response time. | + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + **fields** | **string** | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + **labels** | **string** | Specifies the criteria to filter the subscription resource based on their labels. A label is represented as a `key=value` pair, ``` labels = \"foo=bar\" ``` and multiple labels are separated by comma, ``` labels = \"foo=bar,fooz=barz\" ``` | + +### Return type + +[**SubscriptionList**](SubscriptionList.md) + +### Authorization + +[AccessToken](../README.md#AccessToken), [Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdDelete + +> ApiAccountsMgmtV1SubscriptionsIdDelete(ctx, id).Execute() + +Deletes a subscription by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdGet + +> Subscription ApiAccountsMgmtV1SubscriptionsIdGet(ctx, id).FetchAccounts(fetchAccounts).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).FetchCpuAndSocket(fetchCpuAndSocket).Execute() + +Get a subscription by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + fetchAccounts := true // bool | If true, includes the account reference information in the output. Could slow request response time. (optional) + fetchLabels := true // bool | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. (optional) + fetchCapabilities := true // bool | If true, includes the capabilities on a subscription in the output. Could slow request response time. (optional) + fetchCpuAndSocket := true // bool | If true, fetches, from the clusters service, the total numbers of CPU's and sockets under an obligation, and includes in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdGet(context.Background(), id).FetchAccounts(fetchAccounts).FetchLabels(fetchLabels).FetchCapabilities(fetchCapabilities).FetchCpuAndSocket(fetchCpuAndSocket).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdGet`: Subscription + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fetchAccounts** | **bool** | If true, includes the account reference information in the output. Could slow request response time. | + **fetchLabels** | **bool** | If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. | + **fetchCapabilities** | **bool** | If true, includes the capabilities on a subscription in the output. Could slow request response time. | + **fetchCpuAndSocket** | **bool** | If true, fetches, from the clusters service, the total numbers of CPU's and sockets under an obligation, and includes in the output. Could slow request response time. | + +### Return type + +[**Subscription**](Subscription.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdLabelsGet + +> LabelList ApiAccountsMgmtV1SubscriptionsIdLabelsGet(ctx, id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of labels + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGet(context.Background(), id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdLabelsGet`: LabelList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdLabelsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**LabelList**](LabelList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete + +> ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(ctx, id, key).Execute() + +Delete a label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdLabelsKeyDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet + +> Label ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(ctx, id, key).Execute() + +Get subscription labels by label key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet(context.Background(), id, key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdLabelsKeyGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch + +> Label ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(ctx, id, key).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + key := "key_example" // string | The key of the label + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch(context.Background(), id, key).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**key** | **string** | The key of the label | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdLabelsKeyPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdLabelsPost + +> Label ApiAccountsMgmtV1SubscriptionsIdLabelsPost(ctx, id).Label(label).Execute() + +Create a new label or update an existing label + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + label := *openapiclient.NewLabel(false, "Key_example", "Value_example") // Label | Label data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPost(context.Background(), id).Label(label).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdLabelsPost`: Label + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdLabelsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdLabelsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **label** | [**Label**](Label.md) | Label data | + +### Return type + +[**Label**](Label.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet + +> SubscriptionMetricList ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet(ctx, id, metricName).Search(search).Fields(fields).Execute() + +Get subscription's metrics by metric name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + metricName := "metricName_example" // string | The name of the metric + search := "search_example" // string | The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors. It only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection. For example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`: ``` name=~'managed.*',channel='production' ``` If the parameter isn't provided, or if the value is empty, then all the records will be returned. (optional) + fields := "fields_example" // string | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use . notation. .* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet(context.Background(), id, metricName).Search(search).Fields(fields).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet`: SubscriptionMetricList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**metricName** | **string** | The name of the metric | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **search** | **string** | The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors. It only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection. For example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`: ``` name=~'managed.*',channel='production' ``` If the parameter isn't provided, or if the value is empty, then all the records will be returned. | + **fields** | **string** | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` | + +### Return type + +[**SubscriptionMetricList**](SubscriptionMetricList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdNotifyPost + +> ApiAccountsMgmtV1SubscriptionsIdNotifyPost(ctx, id).NotificationRequest(notificationRequest).Execute() + +Notify the owner of a subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + notificationRequest := *openapiclient.NewNotificationRequest("TemplateName_example") // NotificationRequest | The contents of the notification to send to the owner of a subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdNotifyPost(context.Background(), id).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdNotifyPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdNotifyPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | The contents of the notification to send to the owner of a subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID | + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdPatch + +> Subscription ApiAccountsMgmtV1SubscriptionsIdPatch(ctx, id).SubscriptionPatchRequest(subscriptionPatchRequest).Execute() + +Update a subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + subscriptionPatchRequest := *openapiclient.NewSubscriptionPatchRequest() // SubscriptionPatchRequest | Updated subscription data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatch(context.Background(), id).SubscriptionPatchRequest(subscriptionPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdPatch`: Subscription + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **subscriptionPatchRequest** | [**SubscriptionPatchRequest**](SubscriptionPatchRequest.md) | Updated subscription data | + +### Return type + +[**Subscription**](Subscription.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet + +> ReservedResourceList ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(ctx, id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + +Returns a list of reserved resources + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet(context.Background(), id).Page(page).Size(size).Search(search).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet`: ReservedResourceList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdReservedResourcesGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdReservedResourcesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**ReservedResourceList**](ReservedResourceList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet + +> ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(ctx, id).Page(page).Size(size).Execute() + +Returns a list of open support creates opened against the external cluster id of this subscrption + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet(context.Background(), id).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsIdSupportCasesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsIdSupportCasesGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsPost + +> Subscription ApiAccountsMgmtV1SubscriptionsPost(ctx).SubscriptionCreateRequest(subscriptionCreateRequest).Execute() + +Create a new subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subscriptionCreateRequest := *openapiclient.NewSubscriptionCreateRequest("ClusterUuid_example", "PlanId_example", "Status_example") // SubscriptionCreateRequest | Subscription Creation data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsPost(context.Background()).SubscriptionCreateRequest(subscriptionCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsPost`: Subscription + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscriptionCreateRequest** | [**SubscriptionCreateRequest**](SubscriptionCreateRequest.md) | Subscription Creation data | + +### Return type + +[**Subscription**](Subscription.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete + +> ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(ctx, subId, accountId).Execute() + +Deletes a notification contact by subscription and account id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + accountId := "accountId_example" // string | The id of account + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete(context.Background(), subId, accountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | +**accountId** | **string** | The id of account | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet + +> AccountList ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(ctx, subId).Page(page).Size(size).Search(search).Fields(fields).OrderBy(orderBy).Execute() + +Returns a list of notification contacts for the given subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + fields := "fields_example" // string | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use . notation. .* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet(context.Background(), subId).Page(page).Size(size).Search(search).Fields(fields).OrderBy(orderBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet`: AccountList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **fields** | **string** | Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + +### Return type + +[**AccountList**](AccountList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost + +> Account ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(ctx, subId).NotificationContactCreateRequest(notificationContactCreateRequest).Execute() + +Add an account as a notification contact to this subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + notificationContactCreateRequest := *openapiclient.NewNotificationContactCreateRequest() // NotificationContactCreateRequest | Add a notification contact by an account's username + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost(context.Background(), subId).NotificationContactCreateRequest(notificationContactCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost`: Account + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationContactCreateRequest** | [**NotificationContactCreateRequest**](NotificationContactCreateRequest.md) | Add a notification contact by an account's username | + +### Return type + +[**Account**](Account.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete + +> ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete(ctx, subId, reservedResourceId).Execute() + +Delete reserved resources by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + reservedResourceId := "reservedResourceId_example" // string | The id of reserved resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete(context.Background(), subId, reservedResourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | +**reservedResourceId** | **string** | The id of reserved resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet + +> ReservedResource ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(ctx, subId, reservedResourceId).Execute() + +Get reserved resources by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + reservedResourceId := "reservedResourceId_example" // string | The id of reserved resource + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet(context.Background(), subId, reservedResourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet`: ReservedResource + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | +**reservedResourceId** | **string** | The id of reserved resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ReservedResource**](ReservedResource.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch + +> ReservedResource ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch(ctx, subId, reservedResourceId).ReservedResourcePatchRequest(reservedResourcePatchRequest).Execute() + +Update a reserved resource + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + reservedResourceId := "reservedResourceId_example" // string | The id of reserved resource + reservedResourcePatchRequest := *openapiclient.NewReservedResourcePatchRequest() // ReservedResourcePatchRequest | Updated reserved resource data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch(context.Background(), subId, reservedResourceId).ReservedResourcePatchRequest(reservedResourcePatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch`: ReservedResource + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | +**reservedResourceId** | **string** | The id of reserved resource | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **reservedResourcePatchRequest** | [**ReservedResourcePatchRequest**](ReservedResourcePatchRequest.md) | Updated reserved resource data | + +### Return type + +[**ReservedResource**](ReservedResource.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet + +> SubscriptionRoleBindingList ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet(ctx, subId).Page(page).Size(size).Search(search).OrderBy(orderBy).FetchAccounts(fetchAccounts).Execute() + +Get subscription role bindings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + page := int32(56) // int32 | Page number of record list when record list exceeds specified page size (optional) (default to 1) + size := int32(56) // int32 | Maximum number of records to return (optional) (default to 100) + search := "search_example" // string | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. (optional) + orderBy := "orderBy_example" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. (optional) + fetchAccounts := true // bool | If true, includes the account reference information in the output. Could slow request response time. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet(context.Background(), subId).Page(page).Size(size).Search(search).OrderBy(orderBy).FetchAccounts(fetchAccounts).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet`: SubscriptionRoleBindingList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | Page number of record list when record list exceeds specified page size | [default to 1] + **size** | **int32** | Maximum number of records to return | [default to 100] + **search** | **string** | Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like 'my%' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = 'foo' and labels.value = 'bar' ``` If the parameter isn't provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn't provided, or if the value is empty, then no explicit ordering will be applied. | + **fetchAccounts** | **bool** | If true, includes the account reference information in the output. Could slow request response time. | + +### Return type + +[**SubscriptionRoleBindingList**](SubscriptionRoleBindingList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete + +> ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete(ctx, id, subId).Execute() + +Delete a subscription role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + subId := "subId_example" // string | The id of subscription + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete(context.Background(), id, subId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet + +> SubscriptionRoleBinding ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet(ctx, id, subId).Execute() + +Get a Subscription Role Binding by id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The id of record + subId := "subId_example" // string | The id of subscription + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet(context.Background(), id, subId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet`: SubscriptionRoleBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The id of record | +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SubscriptionRoleBinding**](SubscriptionRoleBinding.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost + +> SubscriptionRoleBinding ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost(ctx, subId).SubscriptionRoleBindingCreateRequest(subscriptionRoleBindingCreateRequest).Execute() + +Create a new subscription role binding + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + subId := "subId_example" // string | The id of subscription + subscriptionRoleBindingCreateRequest := *openapiclient.NewSubscriptionRoleBindingCreateRequest("AccountUsername_example", "RoleId_example") // SubscriptionRoleBindingCreateRequest | Subscription role binding data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost(context.Background(), subId).SubscriptionRoleBindingCreateRequest(subscriptionRoleBindingCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost`: SubscriptionRoleBinding + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subId** | **string** | The id of subscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **subscriptionRoleBindingCreateRequest** | [**SubscriptionRoleBindingCreateRequest**](SubscriptionRoleBindingCreateRequest.md) | Subscription role binding data | + +### Return type + +[**SubscriptionRoleBinding**](SubscriptionRoleBinding.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SupportCasesCaseIdDelete + +> ApiAccountsMgmtV1SupportCasesCaseIdDelete(ctx, caseId).Execute() + +Delete a support case + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + caseId := "caseId_example" // string | The id of a support case + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SupportCasesCaseIdDelete(context.Background(), caseId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SupportCasesCaseIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**caseId** | **string** | The id of a support case | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SupportCasesCaseIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1SupportCasesPost + +> SupportCasesCreatedResponse ApiAccountsMgmtV1SupportCasesPost(ctx).SupportCasesRequest(supportCasesRequest).Execute() + +create a support case for the subscription + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + supportCasesRequest := *openapiclient.NewSupportCasesRequest("Description_example", "Severity_example", "Summary_example") // SupportCasesRequest | The contents of the support case to be created + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1SupportCasesPost(context.Background()).SupportCasesRequest(supportCasesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1SupportCasesPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1SupportCasesPost`: SupportCasesCreatedResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1SupportCasesPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1SupportCasesPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **supportCasesRequest** | [**SupportCasesRequest**](SupportCasesRequest.md) | The contents of the support case to be created | + +### Return type + +[**SupportCasesCreatedResponse**](SupportCasesCreatedResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAccountsMgmtV1TokenAuthorizationPost + +> TokenAuthorizationResponse ApiAccountsMgmtV1TokenAuthorizationPost(ctx).TokenAuthorizationRequest(tokenAuthorizationRequest).Execute() + +Finds the account owner of the provided token + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + tokenAuthorizationRequest := *openapiclient.NewTokenAuthorizationRequest() // TokenAuthorizationRequest | Token authorization data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAccountsMgmtV1TokenAuthorizationPost(context.Background()).TokenAuthorizationRequest(tokenAuthorizationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAccountsMgmtV1TokenAuthorizationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAccountsMgmtV1TokenAuthorizationPost`: TokenAuthorizationResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAccountsMgmtV1TokenAuthorizationPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAccountsMgmtV1TokenAuthorizationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tokenAuthorizationRequest** | [**TokenAuthorizationRequest**](TokenAuthorizationRequest.md) | Token authorization data | + +### Return type + +[**TokenAuthorizationResponse**](TokenAuthorizationResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1AccessReviewPost + +> AccessReviewResponse ApiAuthorizationsV1AccessReviewPost(ctx).AccessReview(accessReview).Execute() + +Review an account's access to perform an action on a particular resource or resource type + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + accessReview := *openapiclient.NewAccessReview("AccountUsername_example", "Action_example", "ResourceType_example") // AccessReview | Access review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1AccessReviewPost(context.Background()).AccessReview(accessReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1AccessReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1AccessReviewPost`: AccessReviewResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1AccessReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1AccessReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessReview** | [**AccessReview**](AccessReview.md) | Access review data | + +### Return type + +[**AccessReviewResponse**](AccessReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1CapabilityReviewPost + +> CapabilityReview ApiAuthorizationsV1CapabilityReviewPost(ctx).CapabilityReviewRequest(capabilityReviewRequest).Execute() + +Review an account's capabilities + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + capabilityReviewRequest := *openapiclient.NewCapabilityReviewRequest("AccountUsername_example", "Capability_example", "Type_example") // CapabilityReviewRequest | Capability review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1CapabilityReviewPost(context.Background()).CapabilityReviewRequest(capabilityReviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1CapabilityReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1CapabilityReviewPost`: CapabilityReview + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1CapabilityReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1CapabilityReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **capabilityReviewRequest** | [**CapabilityReviewRequest**](CapabilityReviewRequest.md) | Capability review data | + +### Return type + +[**CapabilityReview**](CapabilityReview.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1ExportControlReviewPost + +> ExportControlReview ApiAuthorizationsV1ExportControlReviewPost(ctx).ExportControlReviewRequest(exportControlReviewRequest).Execute() + +Determine whether a user is restricted from downloading Red Hat software based on export control compliance. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + exportControlReviewRequest := *openapiclient.NewExportControlReviewRequest("AccountUsername_example") // ExportControlReviewRequest | Export control review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1ExportControlReviewPost(context.Background()).ExportControlReviewRequest(exportControlReviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1ExportControlReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1ExportControlReviewPost`: ExportControlReview + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1ExportControlReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1ExportControlReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportControlReviewRequest** | [**ExportControlReviewRequest**](ExportControlReviewRequest.md) | Export control review data | + +### Return type + +[**ExportControlReview**](ExportControlReview.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1FeatureReviewPost + +> FeatureReviewResponse ApiAuthorizationsV1FeatureReviewPost(ctx).FeatureReview(featureReview).Execute() + +Review feature to perform an action on it such as toggle a feature on/off + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + featureReview := *openapiclient.NewFeatureReview("Feature_example") // FeatureReview | Feature review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1FeatureReviewPost(context.Background()).FeatureReview(featureReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1FeatureReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1FeatureReviewPost`: FeatureReviewResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1FeatureReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1FeatureReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **featureReview** | [**FeatureReview**](FeatureReview.md) | Feature review data | + +### Return type + +[**FeatureReviewResponse**](FeatureReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1ResourceReviewPost + +> ResourceReview ApiAuthorizationsV1ResourceReviewPost(ctx).ResourceReviewRequest(resourceReviewRequest).ReduceClusterList(reduceClusterList).Execute() + +Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + resourceReviewRequest := *openapiclient.NewResourceReviewRequest() // ResourceReviewRequest | Resource review data + reduceClusterList := true // bool | If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1ResourceReviewPost(context.Background()).ResourceReviewRequest(resourceReviewRequest).ReduceClusterList(reduceClusterList).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1ResourceReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1ResourceReviewPost`: ResourceReview + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1ResourceReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1ResourceReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceReviewRequest** | [**ResourceReviewRequest**](ResourceReviewRequest.md) | Resource review data | + **reduceClusterList** | **bool** | If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. | + +### Return type + +[**ResourceReview**](ResourceReview.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1SelfAccessReviewPost + +> AccessReviewResponse ApiAuthorizationsV1SelfAccessReviewPost(ctx).SelfAccessReview(selfAccessReview).Execute() + +Review your ability to perform an action on a particular resource or resource type + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + selfAccessReview := *openapiclient.NewSelfAccessReview("Action_example", "ResourceType_example") // SelfAccessReview | Self access review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1SelfAccessReviewPost(context.Background()).SelfAccessReview(selfAccessReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1SelfAccessReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1SelfAccessReviewPost`: AccessReviewResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1SelfAccessReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1SelfAccessReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **selfAccessReview** | [**SelfAccessReview**](SelfAccessReview.md) | Self access review data | + +### Return type + +[**AccessReviewResponse**](AccessReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1SelfFeatureReviewPost + +> FeatureReviewResponse ApiAuthorizationsV1SelfFeatureReviewPost(ctx).SelfFeatureReview(selfFeatureReview).Execute() + +Review your ability to toggle a feature + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + selfFeatureReview := *openapiclient.NewSelfFeatureReview("Feature_example") // SelfFeatureReview | Self feature review data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1SelfFeatureReviewPost(context.Background()).SelfFeatureReview(selfFeatureReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1SelfFeatureReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1SelfFeatureReviewPost`: FeatureReviewResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1SelfFeatureReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1SelfFeatureReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **selfFeatureReview** | [**SelfFeatureReview**](SelfFeatureReview.md) | Self feature review data | + +### Return type + +[**FeatureReviewResponse**](FeatureReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1SelfResourceReviewPost + +> SelfResourceReview ApiAuthorizationsV1SelfResourceReviewPost(ctx).SelfResourceReviewRequest(selfResourceReviewRequest).ReduceClusterList(reduceClusterList).Execute() + +Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + selfResourceReviewRequest := *openapiclient.NewSelfResourceReviewRequest() // SelfResourceReviewRequest | Self resource review data + reduceClusterList := true // bool | If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1SelfResourceReviewPost(context.Background()).SelfResourceReviewRequest(selfResourceReviewRequest).ReduceClusterList(reduceClusterList).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1SelfResourceReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1SelfResourceReviewPost`: SelfResourceReview + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1SelfResourceReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1SelfResourceReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **selfResourceReviewRequest** | [**SelfResourceReviewRequest**](SelfResourceReviewRequest.md) | Self resource review data | + **reduceClusterList** | **bool** | If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. | + +### Return type + +[**SelfResourceReview**](SelfResourceReview.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ApiAuthorizationsV1TermsReviewPost + +> TermsReviewResponse ApiAuthorizationsV1TermsReviewPost(ctx).TermsReview(termsReview).Execute() + +Review an account's status of Terms + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + termsReview := *openapiclient.NewTermsReview("AccountUsername_example") // TermsReview | Data to check terms for + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.ApiAuthorizationsV1TermsReviewPost(context.Background()).TermsReview(termsReview).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiAuthorizationsV1TermsReviewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApiAuthorizationsV1TermsReviewPost`: TermsReviewResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiAuthorizationsV1TermsReviewPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiAuthorizationsV1TermsReviewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **termsReview** | [**TermsReview**](TermsReview.md) | Data to check terms for | + +### Return type + +[**TermsReviewResponse**](TermsReviewResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscription.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscription.md new file mode 100644 index 00000000..7ee2713c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscription.md @@ -0,0 +1,935 @@ +# DeletedSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**BillingExpirationDate** | Pointer to **time.Time** | If set, the date the subscription expires based on the billing model | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterBillingModel** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ConsoleUrl** | Pointer to **string** | | [optional] +**ConsumerUuid** | Pointer to **string** | | [optional] +**CpuTotal** | Pointer to **int32** | | [optional] +**CreatorId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**LastReconcileDate** | Pointer to **time.Time** | Last time this subscription were reconciled about cluster usage | [optional] +**LastReleasedAt** | Pointer to **time.Time** | Last time status was set to Released for this cluster/subscription in Unix time | [optional] +**LastTelemetryDate** | Pointer to **time.Time** | Last telemetry authorization request for this cluster/subscription in Unix time | [optional] +**Managed** | **bool** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ProductBundle** | Pointer to **string** | | [optional] +**Provenance** | Pointer to **string** | | [optional] +**RegionId** | Pointer to **string** | | [optional] +**Released** | Pointer to **bool** | | [optional] +**ServiceLevel** | Pointer to **string** | | [optional] +**SocketTotal** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SupportLevel** | Pointer to **string** | | [optional] +**SystemUnits** | Pointer to **string** | | [optional] +**TrialEndDate** | Pointer to **time.Time** | If the subscription is a trial, date the trial ends | [optional] +**Usage** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Metrics** | Pointer to **string** | | [optional] +**QueryTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewDeletedSubscription + +`func NewDeletedSubscription(managed bool, ) *DeletedSubscription` + +NewDeletedSubscription instantiates a new DeletedSubscription 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 + +### NewDeletedSubscriptionWithDefaults + +`func NewDeletedSubscriptionWithDefaults() *DeletedSubscription` + +NewDeletedSubscriptionWithDefaults instantiates a new DeletedSubscription 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 + +### GetHref + +`func (o *DeletedSubscription) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *DeletedSubscription) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *DeletedSubscription) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *DeletedSubscription) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *DeletedSubscription) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeletedSubscription) 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 *DeletedSubscription) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DeletedSubscription) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *DeletedSubscription) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *DeletedSubscription) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *DeletedSubscription) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *DeletedSubscription) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetBillingExpirationDate + +`func (o *DeletedSubscription) GetBillingExpirationDate() time.Time` + +GetBillingExpirationDate returns the BillingExpirationDate field if non-nil, zero value otherwise. + +### GetBillingExpirationDateOk + +`func (o *DeletedSubscription) GetBillingExpirationDateOk() (*time.Time, bool)` + +GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingExpirationDate + +`func (o *DeletedSubscription) SetBillingExpirationDate(v time.Time)` + +SetBillingExpirationDate sets BillingExpirationDate field to given value. + +### HasBillingExpirationDate + +`func (o *DeletedSubscription) HasBillingExpirationDate() bool` + +HasBillingExpirationDate returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *DeletedSubscription) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *DeletedSubscription) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *DeletedSubscription) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *DeletedSubscription) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *DeletedSubscription) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *DeletedSubscription) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *DeletedSubscription) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *DeletedSubscription) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *DeletedSubscription) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *DeletedSubscription) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *DeletedSubscription) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *DeletedSubscription) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterBillingModel + +`func (o *DeletedSubscription) GetClusterBillingModel() string` + +GetClusterBillingModel returns the ClusterBillingModel field if non-nil, zero value otherwise. + +### GetClusterBillingModelOk + +`func (o *DeletedSubscription) GetClusterBillingModelOk() (*string, bool)` + +GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterBillingModel + +`func (o *DeletedSubscription) SetClusterBillingModel(v string)` + +SetClusterBillingModel sets ClusterBillingModel field to given value. + +### HasClusterBillingModel + +`func (o *DeletedSubscription) HasClusterBillingModel() bool` + +HasClusterBillingModel returns a boolean if a field has been set. + +### GetClusterId + +`func (o *DeletedSubscription) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *DeletedSubscription) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *DeletedSubscription) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *DeletedSubscription) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetConsoleUrl + +`func (o *DeletedSubscription) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *DeletedSubscription) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *DeletedSubscription) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *DeletedSubscription) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetConsumerUuid + +`func (o *DeletedSubscription) GetConsumerUuid() string` + +GetConsumerUuid returns the ConsumerUuid field if non-nil, zero value otherwise. + +### GetConsumerUuidOk + +`func (o *DeletedSubscription) GetConsumerUuidOk() (*string, bool)` + +GetConsumerUuidOk returns a tuple with the ConsumerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumerUuid + +`func (o *DeletedSubscription) SetConsumerUuid(v string)` + +SetConsumerUuid sets ConsumerUuid field to given value. + +### HasConsumerUuid + +`func (o *DeletedSubscription) HasConsumerUuid() bool` + +HasConsumerUuid returns a boolean if a field has been set. + +### GetCpuTotal + +`func (o *DeletedSubscription) GetCpuTotal() int32` + +GetCpuTotal returns the CpuTotal field if non-nil, zero value otherwise. + +### GetCpuTotalOk + +`func (o *DeletedSubscription) GetCpuTotalOk() (*int32, bool)` + +GetCpuTotalOk returns a tuple with the CpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuTotal + +`func (o *DeletedSubscription) SetCpuTotal(v int32)` + +SetCpuTotal sets CpuTotal field to given value. + +### HasCpuTotal + +`func (o *DeletedSubscription) HasCpuTotal() bool` + +HasCpuTotal returns a boolean if a field has been set. + +### GetCreatorId + +`func (o *DeletedSubscription) GetCreatorId() string` + +GetCreatorId returns the CreatorId field if non-nil, zero value otherwise. + +### GetCreatorIdOk + +`func (o *DeletedSubscription) GetCreatorIdOk() (*string, bool)` + +GetCreatorIdOk returns a tuple with the CreatorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorId + +`func (o *DeletedSubscription) SetCreatorId(v string)` + +SetCreatorId sets CreatorId field to given value. + +### HasCreatorId + +`func (o *DeletedSubscription) HasCreatorId() bool` + +HasCreatorId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *DeletedSubscription) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *DeletedSubscription) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *DeletedSubscription) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *DeletedSubscription) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *DeletedSubscription) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *DeletedSubscription) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *DeletedSubscription) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *DeletedSubscription) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetLastReconcileDate + +`func (o *DeletedSubscription) GetLastReconcileDate() time.Time` + +GetLastReconcileDate returns the LastReconcileDate field if non-nil, zero value otherwise. + +### GetLastReconcileDateOk + +`func (o *DeletedSubscription) GetLastReconcileDateOk() (*time.Time, bool)` + +GetLastReconcileDateOk returns a tuple with the LastReconcileDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReconcileDate + +`func (o *DeletedSubscription) SetLastReconcileDate(v time.Time)` + +SetLastReconcileDate sets LastReconcileDate field to given value. + +### HasLastReconcileDate + +`func (o *DeletedSubscription) HasLastReconcileDate() bool` + +HasLastReconcileDate returns a boolean if a field has been set. + +### GetLastReleasedAt + +`func (o *DeletedSubscription) GetLastReleasedAt() time.Time` + +GetLastReleasedAt returns the LastReleasedAt field if non-nil, zero value otherwise. + +### GetLastReleasedAtOk + +`func (o *DeletedSubscription) GetLastReleasedAtOk() (*time.Time, bool)` + +GetLastReleasedAtOk returns a tuple with the LastReleasedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReleasedAt + +`func (o *DeletedSubscription) SetLastReleasedAt(v time.Time)` + +SetLastReleasedAt sets LastReleasedAt field to given value. + +### HasLastReleasedAt + +`func (o *DeletedSubscription) HasLastReleasedAt() bool` + +HasLastReleasedAt returns a boolean if a field has been set. + +### GetLastTelemetryDate + +`func (o *DeletedSubscription) GetLastTelemetryDate() time.Time` + +GetLastTelemetryDate returns the LastTelemetryDate field if non-nil, zero value otherwise. + +### GetLastTelemetryDateOk + +`func (o *DeletedSubscription) GetLastTelemetryDateOk() (*time.Time, bool)` + +GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTelemetryDate + +`func (o *DeletedSubscription) SetLastTelemetryDate(v time.Time)` + +SetLastTelemetryDate sets LastTelemetryDate field to given value. + +### HasLastTelemetryDate + +`func (o *DeletedSubscription) HasLastTelemetryDate() bool` + +HasLastTelemetryDate returns a boolean if a field has been set. + +### GetManaged + +`func (o *DeletedSubscription) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *DeletedSubscription) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *DeletedSubscription) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + + +### GetOrganizationId + +`func (o *DeletedSubscription) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *DeletedSubscription) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *DeletedSubscription) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *DeletedSubscription) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *DeletedSubscription) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *DeletedSubscription) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *DeletedSubscription) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *DeletedSubscription) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetProductBundle + +`func (o *DeletedSubscription) GetProductBundle() string` + +GetProductBundle returns the ProductBundle field if non-nil, zero value otherwise. + +### GetProductBundleOk + +`func (o *DeletedSubscription) GetProductBundleOk() (*string, bool)` + +GetProductBundleOk returns a tuple with the ProductBundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductBundle + +`func (o *DeletedSubscription) SetProductBundle(v string)` + +SetProductBundle sets ProductBundle field to given value. + +### HasProductBundle + +`func (o *DeletedSubscription) HasProductBundle() bool` + +HasProductBundle returns a boolean if a field has been set. + +### GetProvenance + +`func (o *DeletedSubscription) GetProvenance() string` + +GetProvenance returns the Provenance field if non-nil, zero value otherwise. + +### GetProvenanceOk + +`func (o *DeletedSubscription) GetProvenanceOk() (*string, bool)` + +GetProvenanceOk returns a tuple with the Provenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvenance + +`func (o *DeletedSubscription) SetProvenance(v string)` + +SetProvenance sets Provenance field to given value. + +### HasProvenance + +`func (o *DeletedSubscription) HasProvenance() bool` + +HasProvenance returns a boolean if a field has been set. + +### GetRegionId + +`func (o *DeletedSubscription) GetRegionId() string` + +GetRegionId returns the RegionId field if non-nil, zero value otherwise. + +### GetRegionIdOk + +`func (o *DeletedSubscription) GetRegionIdOk() (*string, bool)` + +GetRegionIdOk returns a tuple with the RegionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegionId + +`func (o *DeletedSubscription) SetRegionId(v string)` + +SetRegionId sets RegionId field to given value. + +### HasRegionId + +`func (o *DeletedSubscription) HasRegionId() bool` + +HasRegionId returns a boolean if a field has been set. + +### GetReleased + +`func (o *DeletedSubscription) GetReleased() bool` + +GetReleased returns the Released field if non-nil, zero value otherwise. + +### GetReleasedOk + +`func (o *DeletedSubscription) GetReleasedOk() (*bool, bool)` + +GetReleasedOk returns a tuple with the Released field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleased + +`func (o *DeletedSubscription) SetReleased(v bool)` + +SetReleased sets Released field to given value. + +### HasReleased + +`func (o *DeletedSubscription) HasReleased() bool` + +HasReleased returns a boolean if a field has been set. + +### GetServiceLevel + +`func (o *DeletedSubscription) GetServiceLevel() string` + +GetServiceLevel returns the ServiceLevel field if non-nil, zero value otherwise. + +### GetServiceLevelOk + +`func (o *DeletedSubscription) GetServiceLevelOk() (*string, bool)` + +GetServiceLevelOk returns a tuple with the ServiceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceLevel + +`func (o *DeletedSubscription) SetServiceLevel(v string)` + +SetServiceLevel sets ServiceLevel field to given value. + +### HasServiceLevel + +`func (o *DeletedSubscription) HasServiceLevel() bool` + +HasServiceLevel returns a boolean if a field has been set. + +### GetSocketTotal + +`func (o *DeletedSubscription) GetSocketTotal() int32` + +GetSocketTotal returns the SocketTotal field if non-nil, zero value otherwise. + +### GetSocketTotalOk + +`func (o *DeletedSubscription) GetSocketTotalOk() (*int32, bool)` + +GetSocketTotalOk returns a tuple with the SocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocketTotal + +`func (o *DeletedSubscription) SetSocketTotal(v int32)` + +SetSocketTotal sets SocketTotal field to given value. + +### HasSocketTotal + +`func (o *DeletedSubscription) HasSocketTotal() bool` + +HasSocketTotal returns a boolean if a field has been set. + +### GetStatus + +`func (o *DeletedSubscription) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DeletedSubscription) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DeletedSubscription) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DeletedSubscription) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSupportLevel + +`func (o *DeletedSubscription) GetSupportLevel() string` + +GetSupportLevel returns the SupportLevel field if non-nil, zero value otherwise. + +### GetSupportLevelOk + +`func (o *DeletedSubscription) GetSupportLevelOk() (*string, bool)` + +GetSupportLevelOk returns a tuple with the SupportLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportLevel + +`func (o *DeletedSubscription) SetSupportLevel(v string)` + +SetSupportLevel sets SupportLevel field to given value. + +### HasSupportLevel + +`func (o *DeletedSubscription) HasSupportLevel() bool` + +HasSupportLevel returns a boolean if a field has been set. + +### GetSystemUnits + +`func (o *DeletedSubscription) GetSystemUnits() string` + +GetSystemUnits returns the SystemUnits field if non-nil, zero value otherwise. + +### GetSystemUnitsOk + +`func (o *DeletedSubscription) GetSystemUnitsOk() (*string, bool)` + +GetSystemUnitsOk returns a tuple with the SystemUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemUnits + +`func (o *DeletedSubscription) SetSystemUnits(v string)` + +SetSystemUnits sets SystemUnits field to given value. + +### HasSystemUnits + +`func (o *DeletedSubscription) HasSystemUnits() bool` + +HasSystemUnits returns a boolean if a field has been set. + +### GetTrialEndDate + +`func (o *DeletedSubscription) GetTrialEndDate() time.Time` + +GetTrialEndDate returns the TrialEndDate field if non-nil, zero value otherwise. + +### GetTrialEndDateOk + +`func (o *DeletedSubscription) GetTrialEndDateOk() (*time.Time, bool)` + +GetTrialEndDateOk returns a tuple with the TrialEndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialEndDate + +`func (o *DeletedSubscription) SetTrialEndDate(v time.Time)` + +SetTrialEndDate sets TrialEndDate field to given value. + +### HasTrialEndDate + +`func (o *DeletedSubscription) HasTrialEndDate() bool` + +HasTrialEndDate returns a boolean if a field has been set. + +### GetUsage + +`func (o *DeletedSubscription) GetUsage() string` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *DeletedSubscription) GetUsageOk() (*string, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *DeletedSubscription) SetUsage(v string)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *DeletedSubscription) HasUsage() bool` + +HasUsage returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *DeletedSubscription) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DeletedSubscription) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DeletedSubscription) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DeletedSubscription) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetMetrics + +`func (o *DeletedSubscription) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *DeletedSubscription) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *DeletedSubscription) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *DeletedSubscription) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetQueryTimestamp + +`func (o *DeletedSubscription) GetQueryTimestamp() time.Time` + +GetQueryTimestamp returns the QueryTimestamp field if non-nil, zero value otherwise. + +### GetQueryTimestampOk + +`func (o *DeletedSubscription) GetQueryTimestampOk() (*time.Time, bool)` + +GetQueryTimestampOk returns a tuple with the QueryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryTimestamp + +`func (o *DeletedSubscription) SetQueryTimestamp(v time.Time)` + +SetQueryTimestamp sets QueryTimestamp field to given value. + +### HasQueryTimestamp + +`func (o *DeletedSubscription) HasQueryTimestamp() bool` + +HasQueryTimestamp 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionAllOf.md new file mode 100644 index 00000000..c6f86c93 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionAllOf.md @@ -0,0 +1,134 @@ +# DeletedSubscriptionAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Metrics** | Pointer to **string** | | [optional] +**QueryTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewDeletedSubscriptionAllOf + +`func NewDeletedSubscriptionAllOf() *DeletedSubscriptionAllOf` + +NewDeletedSubscriptionAllOf instantiates a new DeletedSubscriptionAllOf 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 + +### NewDeletedSubscriptionAllOfWithDefaults + +`func NewDeletedSubscriptionAllOfWithDefaults() *DeletedSubscriptionAllOf` + +NewDeletedSubscriptionAllOfWithDefaults instantiates a new DeletedSubscriptionAllOf 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 + +### GetCreatedAt + +`func (o *DeletedSubscriptionAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DeletedSubscriptionAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DeletedSubscriptionAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DeletedSubscriptionAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetId + +`func (o *DeletedSubscriptionAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeletedSubscriptionAllOf) 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 *DeletedSubscriptionAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DeletedSubscriptionAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMetrics + +`func (o *DeletedSubscriptionAllOf) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *DeletedSubscriptionAllOf) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *DeletedSubscriptionAllOf) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *DeletedSubscriptionAllOf) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetQueryTimestamp + +`func (o *DeletedSubscriptionAllOf) GetQueryTimestamp() time.Time` + +GetQueryTimestamp returns the QueryTimestamp field if non-nil, zero value otherwise. + +### GetQueryTimestampOk + +`func (o *DeletedSubscriptionAllOf) GetQueryTimestampOk() (*time.Time, bool)` + +GetQueryTimestampOk returns a tuple with the QueryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryTimestamp + +`func (o *DeletedSubscriptionAllOf) SetQueryTimestamp(v time.Time)` + +SetQueryTimestamp sets QueryTimestamp field to given value. + +### HasQueryTimestamp + +`func (o *DeletedSubscriptionAllOf) HasQueryTimestamp() bool` + +HasQueryTimestamp 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionList.md new file mode 100644 index 00000000..7639d9c8 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionList.md @@ -0,0 +1,135 @@ +# DeletedSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]DeletedSubscription**](DeletedSubscription.md) | | + +## Methods + +### NewDeletedSubscriptionList + +`func NewDeletedSubscriptionList(kind string, page int32, size int32, total int32, items []DeletedSubscription, ) *DeletedSubscriptionList` + +NewDeletedSubscriptionList instantiates a new DeletedSubscriptionList 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 + +### NewDeletedSubscriptionListWithDefaults + +`func NewDeletedSubscriptionListWithDefaults() *DeletedSubscriptionList` + +NewDeletedSubscriptionListWithDefaults instantiates a new DeletedSubscriptionList 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 + +### GetKind + +`func (o *DeletedSubscriptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *DeletedSubscriptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *DeletedSubscriptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *DeletedSubscriptionList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *DeletedSubscriptionList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *DeletedSubscriptionList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *DeletedSubscriptionList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *DeletedSubscriptionList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *DeletedSubscriptionList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *DeletedSubscriptionList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *DeletedSubscriptionList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *DeletedSubscriptionList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *DeletedSubscriptionList) GetItems() []DeletedSubscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *DeletedSubscriptionList) GetItemsOk() (*[]DeletedSubscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *DeletedSubscriptionList) SetItems(v []DeletedSubscription)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionListAllOf.md new file mode 100644 index 00000000..2c3978e0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/DeletedSubscriptionListAllOf.md @@ -0,0 +1,56 @@ +# DeletedSubscriptionListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]DeletedSubscription**](DeletedSubscription.md) | | [optional] + +## Methods + +### NewDeletedSubscriptionListAllOf + +`func NewDeletedSubscriptionListAllOf() *DeletedSubscriptionListAllOf` + +NewDeletedSubscriptionListAllOf instantiates a new DeletedSubscriptionListAllOf 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 + +### NewDeletedSubscriptionListAllOfWithDefaults + +`func NewDeletedSubscriptionListAllOfWithDefaults() *DeletedSubscriptionListAllOf` + +NewDeletedSubscriptionListAllOfWithDefaults instantiates a new DeletedSubscriptionListAllOf 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 + +### GetItems + +`func (o *DeletedSubscriptionListAllOf) GetItems() []DeletedSubscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *DeletedSubscriptionListAllOf) GetItemsOk() (*[]DeletedSubscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *DeletedSubscriptionListAllOf) SetItems(v []DeletedSubscription)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *DeletedSubscriptionListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/EphemeralResourceQuota.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/EphemeralResourceQuota.md new file mode 100644 index 00000000..06eaf4ca --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/EphemeralResourceQuota.md @@ -0,0 +1,186 @@ +# EphemeralResourceQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**Byoc** | Pointer to **bool** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**Sku** | Pointer to **string** | | [optional] +**SkuCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewEphemeralResourceQuota + +`func NewEphemeralResourceQuota() *EphemeralResourceQuota` + +NewEphemeralResourceQuota instantiates a new EphemeralResourceQuota 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 + +### NewEphemeralResourceQuotaWithDefaults + +`func NewEphemeralResourceQuotaWithDefaults() *EphemeralResourceQuota` + +NewEphemeralResourceQuotaWithDefaults instantiates a new EphemeralResourceQuota 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 + +### GetAvailabilityZoneType + +`func (o *EphemeralResourceQuota) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *EphemeralResourceQuota) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *EphemeralResourceQuota) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *EphemeralResourceQuota) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetByoc + +`func (o *EphemeralResourceQuota) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *EphemeralResourceQuota) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *EphemeralResourceQuota) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + +### HasByoc + +`func (o *EphemeralResourceQuota) HasByoc() bool` + +HasByoc returns a boolean if a field has been set. + +### GetResourceName + +`func (o *EphemeralResourceQuota) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *EphemeralResourceQuota) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *EphemeralResourceQuota) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *EphemeralResourceQuota) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *EphemeralResourceQuota) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *EphemeralResourceQuota) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *EphemeralResourceQuota) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *EphemeralResourceQuota) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSku + +`func (o *EphemeralResourceQuota) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *EphemeralResourceQuota) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *EphemeralResourceQuota) SetSku(v string)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *EphemeralResourceQuota) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetSkuCount + +`func (o *EphemeralResourceQuota) GetSkuCount() int32` + +GetSkuCount returns the SkuCount field if non-nil, zero value otherwise. + +### GetSkuCountOk + +`func (o *EphemeralResourceQuota) GetSkuCountOk() (*int32, bool)` + +GetSkuCountOk returns a tuple with the SkuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCount + +`func (o *EphemeralResourceQuota) SetSkuCount(v int32)` + +SetSkuCount sets SkuCount field to given value. + +### HasSkuCount + +`func (o *EphemeralResourceQuota) HasSkuCount() bool` + +HasSkuCount 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Error.md new file mode 100644 index 00000000..b6441aec --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Error.md @@ -0,0 +1,186 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] +**OperationId** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] + +## Methods + +### NewError + +`func NewError() *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Error) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Error) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Error) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCode + +`func (o *Error) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *Error) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetOperationId + +`func (o *Error) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *Error) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *Error) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *Error) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *Error) HasReason() bool` + +HasReason 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorAllOf.md new file mode 100644 index 00000000..9eb8d403 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorAllOf.md @@ -0,0 +1,108 @@ +# ErrorAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **string** | | [optional] +**OperationId** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorAllOf + +`func NewErrorAllOf() *ErrorAllOf` + +NewErrorAllOf instantiates a new ErrorAllOf 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 + +### NewErrorAllOfWithDefaults + +`func NewErrorAllOfWithDefaults() *ErrorAllOf` + +NewErrorAllOfWithDefaults instantiates a new ErrorAllOf 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 + +### GetCode + +`func (o *ErrorAllOf) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *ErrorAllOf) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *ErrorAllOf) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *ErrorAllOf) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetOperationId + +`func (o *ErrorAllOf) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *ErrorAllOf) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *ErrorAllOf) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *ErrorAllOf) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetReason + +`func (o *ErrorAllOf) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ErrorAllOf) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ErrorAllOf) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ErrorAllOf) HasReason() bool` + +HasReason 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorList.md new file mode 100644 index 00000000..02e7e299 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorList.md @@ -0,0 +1,135 @@ +# ErrorList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Error**](Error.md) | | + +## Methods + +### NewErrorList + +`func NewErrorList(kind string, page int32, size int32, total int32, items []Error, ) *ErrorList` + +NewErrorList instantiates a new ErrorList 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 + +### NewErrorListWithDefaults + +`func NewErrorListWithDefaults() *ErrorList` + +NewErrorListWithDefaults instantiates a new ErrorList 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 + +### GetKind + +`func (o *ErrorList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ErrorList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrorList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrorList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ErrorList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ErrorList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ErrorList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ErrorList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ErrorList) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorList) SetItems(v []Error)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorListAllOf.md new file mode 100644 index 00000000..5cd69e9b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ErrorListAllOf.md @@ -0,0 +1,56 @@ +# ErrorListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] + +## Methods + +### NewErrorListAllOf + +`func NewErrorListAllOf() *ErrorListAllOf` + +NewErrorListAllOf instantiates a new ErrorListAllOf 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 + +### NewErrorListAllOfWithDefaults + +`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` + +NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 + +### GetItems + +`func (o *ErrorListAllOf) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorListAllOf) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResource.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResource.md new file mode 100644 index 00000000..564eb463 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResource.md @@ -0,0 +1,259 @@ +# ExcessResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**Count** | Pointer to **int32** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] + +## Methods + +### NewExcessResource + +`func NewExcessResource(byoc bool, ) *ExcessResource` + +NewExcessResource instantiates a new ExcessResource 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 + +### NewExcessResourceWithDefaults + +`func NewExcessResourceWithDefaults() *ExcessResource` + +NewExcessResourceWithDefaults instantiates a new ExcessResource 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 + +### GetHref + +`func (o *ExcessResource) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ExcessResource) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ExcessResource) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ExcessResource) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ExcessResource) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ExcessResource) 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 *ExcessResource) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ExcessResource) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ExcessResource) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ExcessResource) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ExcessResource) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ExcessResource) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAvailabilityZoneType + +`func (o *ExcessResource) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ExcessResource) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ExcessResource) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ExcessResource) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ExcessResource) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ExcessResource) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ExcessResource) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ExcessResource) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ExcessResource) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ExcessResource) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ExcessResource) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCount + +`func (o *ExcessResource) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ExcessResource) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ExcessResource) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ExcessResource) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ExcessResource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ExcessResource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ExcessResource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ExcessResource) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ExcessResource) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ExcessResource) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ExcessResource) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ExcessResource) HasResourceType() bool` + +HasResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResourceAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResourceAllOf.md new file mode 100644 index 00000000..133617d7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExcessResourceAllOf.md @@ -0,0 +1,181 @@ +# ExcessResourceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**Count** | Pointer to **int32** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] + +## Methods + +### NewExcessResourceAllOf + +`func NewExcessResourceAllOf(byoc bool, ) *ExcessResourceAllOf` + +NewExcessResourceAllOf instantiates a new ExcessResourceAllOf 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 + +### NewExcessResourceAllOfWithDefaults + +`func NewExcessResourceAllOfWithDefaults() *ExcessResourceAllOf` + +NewExcessResourceAllOfWithDefaults instantiates a new ExcessResourceAllOf 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 + +### GetAvailabilityZoneType + +`func (o *ExcessResourceAllOf) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ExcessResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ExcessResourceAllOf) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ExcessResourceAllOf) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ExcessResourceAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ExcessResourceAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ExcessResourceAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ExcessResourceAllOf) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ExcessResourceAllOf) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ExcessResourceAllOf) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ExcessResourceAllOf) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCount + +`func (o *ExcessResourceAllOf) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ExcessResourceAllOf) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ExcessResourceAllOf) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ExcessResourceAllOf) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ExcessResourceAllOf) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ExcessResourceAllOf) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ExcessResourceAllOf) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ExcessResourceAllOf) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ExcessResourceAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ExcessResourceAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ExcessResourceAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ExcessResourceAllOf) HasResourceType() bool` + +HasResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReview.md new file mode 100644 index 00000000..98338d9a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReview.md @@ -0,0 +1,51 @@ +# ExportControlReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Restricted** | **bool** | | + +## Methods + +### NewExportControlReview + +`func NewExportControlReview(restricted bool, ) *ExportControlReview` + +NewExportControlReview instantiates a new ExportControlReview 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 + +### NewExportControlReviewWithDefaults + +`func NewExportControlReviewWithDefaults() *ExportControlReview` + +NewExportControlReviewWithDefaults instantiates a new ExportControlReview 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 + +### GetRestricted + +`func (o *ExportControlReview) GetRestricted() bool` + +GetRestricted returns the Restricted field if non-nil, zero value otherwise. + +### GetRestrictedOk + +`func (o *ExportControlReview) GetRestrictedOk() (*bool, bool)` + +GetRestrictedOk returns a tuple with the Restricted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestricted + +`func (o *ExportControlReview) SetRestricted(v bool)` + +SetRestricted sets Restricted 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReviewRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReviewRequest.md new file mode 100644 index 00000000..b0cccf87 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ExportControlReviewRequest.md @@ -0,0 +1,77 @@ +# ExportControlReviewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**IgnoreCache** | Pointer to **bool** | | [optional] + +## Methods + +### NewExportControlReviewRequest + +`func NewExportControlReviewRequest(accountUsername string, ) *ExportControlReviewRequest` + +NewExportControlReviewRequest instantiates a new ExportControlReviewRequest 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 + +### NewExportControlReviewRequestWithDefaults + +`func NewExportControlReviewRequestWithDefaults() *ExportControlReviewRequest` + +NewExportControlReviewRequestWithDefaults instantiates a new ExportControlReviewRequest 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 + +### GetAccountUsername + +`func (o *ExportControlReviewRequest) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *ExportControlReviewRequest) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *ExportControlReviewRequest) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetIgnoreCache + +`func (o *ExportControlReviewRequest) GetIgnoreCache() bool` + +GetIgnoreCache returns the IgnoreCache field if non-nil, zero value otherwise. + +### GetIgnoreCacheOk + +`func (o *ExportControlReviewRequest) GetIgnoreCacheOk() (*bool, bool)` + +GetIgnoreCacheOk returns a tuple with the IgnoreCache field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreCache + +`func (o *ExportControlReviewRequest) SetIgnoreCache(v bool)` + +SetIgnoreCache sets IgnoreCache field to given value. + +### HasIgnoreCache + +`func (o *ExportControlReviewRequest) HasIgnoreCache() bool` + +HasIgnoreCache 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReview.md new file mode 100644 index 00000000..f38d3903 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReview.md @@ -0,0 +1,103 @@ +# FeatureReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | Pointer to **string** | | [optional] +**Feature** | **string** | | +**OrganizationId** | Pointer to **string** | | [optional] + +## Methods + +### NewFeatureReview + +`func NewFeatureReview(feature string, ) *FeatureReview` + +NewFeatureReview instantiates a new FeatureReview 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 + +### NewFeatureReviewWithDefaults + +`func NewFeatureReviewWithDefaults() *FeatureReview` + +NewFeatureReviewWithDefaults instantiates a new FeatureReview 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 + +### GetAccountUsername + +`func (o *FeatureReview) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *FeatureReview) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *FeatureReview) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + +### HasAccountUsername + +`func (o *FeatureReview) HasAccountUsername() bool` + +HasAccountUsername returns a boolean if a field has been set. + +### GetFeature + +`func (o *FeatureReview) GetFeature() string` + +GetFeature returns the Feature field if non-nil, zero value otherwise. + +### GetFeatureOk + +`func (o *FeatureReview) GetFeatureOk() (*string, bool)` + +GetFeatureOk returns a tuple with the Feature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeature + +`func (o *FeatureReview) SetFeature(v string)` + +SetFeature sets Feature field to given value. + + +### GetOrganizationId + +`func (o *FeatureReview) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *FeatureReview) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *FeatureReview) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *FeatureReview) HasOrganizationId() bool` + +HasOrganizationId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReviewResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReviewResponse.md new file mode 100644 index 00000000..00c4e386 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureReviewResponse.md @@ -0,0 +1,72 @@ +# FeatureReviewResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [default to false] +**FeatureId** | **string** | | + +## Methods + +### NewFeatureReviewResponse + +`func NewFeatureReviewResponse(enabled bool, featureId string, ) *FeatureReviewResponse` + +NewFeatureReviewResponse instantiates a new FeatureReviewResponse 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 + +### NewFeatureReviewResponseWithDefaults + +`func NewFeatureReviewResponseWithDefaults() *FeatureReviewResponse` + +NewFeatureReviewResponseWithDefaults instantiates a new FeatureReviewResponse 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 + +### GetEnabled + +`func (o *FeatureReviewResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *FeatureReviewResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *FeatureReviewResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetFeatureId + +`func (o *FeatureReviewResponse) GetFeatureId() string` + +GetFeatureId returns the FeatureId field if non-nil, zero value otherwise. + +### GetFeatureIdOk + +`func (o *FeatureReviewResponse) GetFeatureIdOk() (*string, bool)` + +GetFeatureIdOk returns a tuple with the FeatureId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureId + +`func (o *FeatureReviewResponse) SetFeatureId(v string)` + +SetFeatureId sets FeatureId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggle.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggle.md new file mode 100644 index 00000000..7cfed6d0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggle.md @@ -0,0 +1,129 @@ +# FeatureToggle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Enabled** | **bool** | | [default to false] + +## Methods + +### NewFeatureToggle + +`func NewFeatureToggle(enabled bool, ) *FeatureToggle` + +NewFeatureToggle instantiates a new FeatureToggle 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 + +### NewFeatureToggleWithDefaults + +`func NewFeatureToggleWithDefaults() *FeatureToggle` + +NewFeatureToggleWithDefaults instantiates a new FeatureToggle 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 + +### GetHref + +`func (o *FeatureToggle) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *FeatureToggle) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *FeatureToggle) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *FeatureToggle) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *FeatureToggle) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FeatureToggle) 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 *FeatureToggle) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FeatureToggle) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *FeatureToggle) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *FeatureToggle) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *FeatureToggle) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *FeatureToggle) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetEnabled + +`func (o *FeatureToggle) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *FeatureToggle) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *FeatureToggle) SetEnabled(v bool)` + +SetEnabled sets Enabled 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleAllOf.md new file mode 100644 index 00000000..b4337211 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleAllOf.md @@ -0,0 +1,51 @@ +# FeatureToggleAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [default to false] + +## Methods + +### NewFeatureToggleAllOf + +`func NewFeatureToggleAllOf(enabled bool, ) *FeatureToggleAllOf` + +NewFeatureToggleAllOf instantiates a new FeatureToggleAllOf 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 + +### NewFeatureToggleAllOfWithDefaults + +`func NewFeatureToggleAllOfWithDefaults() *FeatureToggleAllOf` + +NewFeatureToggleAllOfWithDefaults instantiates a new FeatureToggleAllOf 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 + +### GetEnabled + +`func (o *FeatureToggleAllOf) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *FeatureToggleAllOf) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *FeatureToggleAllOf) SetEnabled(v bool)` + +SetEnabled sets Enabled 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequest.md new file mode 100644 index 00000000..814de857 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequest.md @@ -0,0 +1,51 @@ +# FeatureToggleQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | | + +## Methods + +### NewFeatureToggleQueryRequest + +`func NewFeatureToggleQueryRequest(organizationId string, ) *FeatureToggleQueryRequest` + +NewFeatureToggleQueryRequest instantiates a new FeatureToggleQueryRequest 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 + +### NewFeatureToggleQueryRequestWithDefaults + +`func NewFeatureToggleQueryRequestWithDefaults() *FeatureToggleQueryRequest` + +NewFeatureToggleQueryRequestWithDefaults instantiates a new FeatureToggleQueryRequest 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 + +### GetOrganizationId + +`func (o *FeatureToggleQueryRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *FeatureToggleQueryRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *FeatureToggleQueryRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequestAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequestAllOf.md new file mode 100644 index 00000000..c1a3614f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/FeatureToggleQueryRequestAllOf.md @@ -0,0 +1,51 @@ +# FeatureToggleQueryRequestAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | | + +## Methods + +### NewFeatureToggleQueryRequestAllOf + +`func NewFeatureToggleQueryRequestAllOf(organizationId string, ) *FeatureToggleQueryRequestAllOf` + +NewFeatureToggleQueryRequestAllOf instantiates a new FeatureToggleQueryRequestAllOf 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 + +### NewFeatureToggleQueryRequestAllOfWithDefaults + +`func NewFeatureToggleQueryRequestAllOfWithDefaults() *FeatureToggleQueryRequestAllOf` + +NewFeatureToggleQueryRequestAllOfWithDefaults instantiates a new FeatureToggleQueryRequestAllOf 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 + +### GetOrganizationId + +`func (o *FeatureToggleQueryRequestAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *FeatureToggleQueryRequestAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *FeatureToggleQueryRequestAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Label.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Label.md new file mode 100644 index 00000000..81e79df3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Label.md @@ -0,0 +1,327 @@ +# Label + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AccountId** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Internal** | **bool** | | +**Key** | **string** | | +**OrganizationId** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Value** | **string** | | + +## Methods + +### NewLabel + +`func NewLabel(internal bool, key string, value string, ) *Label` + +NewLabel instantiates a new Label 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 + +### NewLabelWithDefaults + +`func NewLabelWithDefaults() *Label` + +NewLabelWithDefaults instantiates a new Label 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 + +### GetHref + +`func (o *Label) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Label) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Label) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Label) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Label) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Label) 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 *Label) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Label) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Label) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Label) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Label) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Label) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAccountId + +`func (o *Label) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *Label) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *Label) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *Label) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Label) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Label) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Label) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Label) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetInternal + +`func (o *Label) GetInternal() bool` + +GetInternal returns the Internal field if non-nil, zero value otherwise. + +### GetInternalOk + +`func (o *Label) GetInternalOk() (*bool, bool)` + +GetInternalOk returns a tuple with the Internal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternal + +`func (o *Label) SetInternal(v bool)` + +SetInternal sets Internal field to given value. + + +### GetKey + +`func (o *Label) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *Label) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *Label) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetOrganizationId + +`func (o *Label) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *Label) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *Label) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *Label) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *Label) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *Label) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *Label) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *Label) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetType + +`func (o *Label) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Label) GetTypeOk() (*string, 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 *Label) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Label) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Label) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Label) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Label) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Label) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetValue + +`func (o *Label) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Label) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Label) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelAllOf.md new file mode 100644 index 00000000..00edc5ba --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelAllOf.md @@ -0,0 +1,249 @@ +# LabelAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Internal** | **bool** | | +**Key** | **string** | | +**OrganizationId** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Value** | **string** | | + +## Methods + +### NewLabelAllOf + +`func NewLabelAllOf(internal bool, key string, value string, ) *LabelAllOf` + +NewLabelAllOf instantiates a new LabelAllOf 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 + +### NewLabelAllOfWithDefaults + +`func NewLabelAllOfWithDefaults() *LabelAllOf` + +NewLabelAllOfWithDefaults instantiates a new LabelAllOf 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 + +### GetAccountId + +`func (o *LabelAllOf) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *LabelAllOf) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *LabelAllOf) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *LabelAllOf) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *LabelAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *LabelAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *LabelAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *LabelAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetInternal + +`func (o *LabelAllOf) GetInternal() bool` + +GetInternal returns the Internal field if non-nil, zero value otherwise. + +### GetInternalOk + +`func (o *LabelAllOf) GetInternalOk() (*bool, bool)` + +GetInternalOk returns a tuple with the Internal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternal + +`func (o *LabelAllOf) SetInternal(v bool)` + +SetInternal sets Internal field to given value. + + +### GetKey + +`func (o *LabelAllOf) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *LabelAllOf) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *LabelAllOf) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetOrganizationId + +`func (o *LabelAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *LabelAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *LabelAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *LabelAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *LabelAllOf) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *LabelAllOf) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *LabelAllOf) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *LabelAllOf) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetType + +`func (o *LabelAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LabelAllOf) GetTypeOk() (*string, 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 *LabelAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *LabelAllOf) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *LabelAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *LabelAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *LabelAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *LabelAllOf) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetValue + +`func (o *LabelAllOf) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *LabelAllOf) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *LabelAllOf) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelList.md new file mode 100644 index 00000000..2b317fb3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelList.md @@ -0,0 +1,135 @@ +# LabelList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Label**](Label.md) | | + +## Methods + +### NewLabelList + +`func NewLabelList(kind string, page int32, size int32, total int32, items []Label, ) *LabelList` + +NewLabelList instantiates a new LabelList 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 + +### NewLabelListWithDefaults + +`func NewLabelListWithDefaults() *LabelList` + +NewLabelListWithDefaults instantiates a new LabelList 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 + +### GetKind + +`func (o *LabelList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *LabelList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *LabelList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *LabelList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *LabelList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *LabelList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *LabelList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *LabelList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *LabelList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *LabelList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *LabelList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *LabelList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *LabelList) GetItems() []Label` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *LabelList) GetItemsOk() (*[]Label, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *LabelList) SetItems(v []Label)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelListAllOf.md new file mode 100644 index 00000000..1dab1a7e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LabelListAllOf.md @@ -0,0 +1,56 @@ +# LabelListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Label**](Label.md) | | [optional] + +## Methods + +### NewLabelListAllOf + +`func NewLabelListAllOf() *LabelListAllOf` + +NewLabelListAllOf instantiates a new LabelListAllOf 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 + +### NewLabelListAllOfWithDefaults + +`func NewLabelListAllOfWithDefaults() *LabelListAllOf` + +NewLabelListAllOfWithDefaults instantiates a new LabelListAllOf 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 + +### GetItems + +`func (o *LabelListAllOf) GetItems() []Label` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *LabelListAllOf) GetItemsOk() (*[]Label, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *LabelListAllOf) SetItems(v []Label)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *LabelListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItem.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItem.md new file mode 100644 index 00000000..4cf1b75d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItem.md @@ -0,0 +1,56 @@ +# LandingPageCTLItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shape** | Pointer to [**LandingPageCTLItemShape**](LandingPageCTLItemShape.md) | | [optional] + +## Methods + +### NewLandingPageCTLItem + +`func NewLandingPageCTLItem() *LandingPageCTLItem` + +NewLandingPageCTLItem instantiates a new LandingPageCTLItem 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 + +### NewLandingPageCTLItemWithDefaults + +`func NewLandingPageCTLItemWithDefaults() *LandingPageCTLItem` + +NewLandingPageCTLItemWithDefaults instantiates a new LandingPageCTLItem 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 + +### GetShape + +`func (o *LandingPageCTLItem) GetShape() LandingPageCTLItemShape` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *LandingPageCTLItem) GetShapeOk() (*LandingPageCTLItemShape, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *LandingPageCTLItem) SetShape(v LandingPageCTLItemShape)` + +SetShape sets Shape field to given value. + +### HasShape + +`func (o *LandingPageCTLItem) HasShape() bool` + +HasShape 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItemShape.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItemShape.md new file mode 100644 index 00000000..be0ae793 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageCTLItemShape.md @@ -0,0 +1,108 @@ +# LandingPageCTLItemShape + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Link** | Pointer to [**LandingPageLinkShape**](LandingPageLinkShape.md) | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewLandingPageCTLItemShape + +`func NewLandingPageCTLItemShape() *LandingPageCTLItemShape` + +NewLandingPageCTLItemShape instantiates a new LandingPageCTLItemShape 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 + +### NewLandingPageCTLItemShapeWithDefaults + +`func NewLandingPageCTLItemShapeWithDefaults() *LandingPageCTLItemShape` + +NewLandingPageCTLItemShapeWithDefaults instantiates a new LandingPageCTLItemShape 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 *LandingPageCTLItemShape) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *LandingPageCTLItemShape) 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 *LandingPageCTLItemShape) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *LandingPageCTLItemShape) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetLink + +`func (o *LandingPageCTLItemShape) GetLink() LandingPageLinkShape` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *LandingPageCTLItemShape) GetLinkOk() (*LandingPageLinkShape, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *LandingPageCTLItemShape) SetLink(v LandingPageLinkShape)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *LandingPageCTLItemShape) HasLink() bool` + +HasLink returns a boolean if a field has been set. + +### GetTitle + +`func (o *LandingPageCTLItemShape) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *LandingPageCTLItemShape) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *LandingPageCTLItemShape) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *LandingPageCTLItemShape) HasTitle() bool` + +HasTitle 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageEstateItem.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageEstateItem.md new file mode 100644 index 00000000..062c1cd5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageEstateItem.md @@ -0,0 +1,108 @@ +# LandingPageEstateItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int64** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Shape** | Pointer to [**LandingPageLinkShape**](LandingPageLinkShape.md) | | [optional] + +## Methods + +### NewLandingPageEstateItem + +`func NewLandingPageEstateItem() *LandingPageEstateItem` + +NewLandingPageEstateItem instantiates a new LandingPageEstateItem 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 + +### NewLandingPageEstateItemWithDefaults + +`func NewLandingPageEstateItemWithDefaults() *LandingPageEstateItem` + +NewLandingPageEstateItemWithDefaults instantiates a new LandingPageEstateItem 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 + +### GetCount + +`func (o *LandingPageEstateItem) GetCount() int64` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *LandingPageEstateItem) GetCountOk() (*int64, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *LandingPageEstateItem) SetCount(v int64)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *LandingPageEstateItem) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetId + +`func (o *LandingPageEstateItem) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LandingPageEstateItem) 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 *LandingPageEstateItem) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *LandingPageEstateItem) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetShape + +`func (o *LandingPageEstateItem) GetShape() LandingPageLinkShape` + +GetShape returns the Shape field if non-nil, zero value otherwise. + +### GetShapeOk + +`func (o *LandingPageEstateItem) GetShapeOk() (*LandingPageLinkShape, bool)` + +GetShapeOk returns a tuple with the Shape field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShape + +`func (o *LandingPageEstateItem) SetShape(v LandingPageLinkShape)` + +SetShape sets Shape field to given value. + +### HasShape + +`func (o *LandingPageEstateItem) HasShape() bool` + +HasShape 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageLinkShape.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageLinkShape.md new file mode 100644 index 00000000..15e7fff9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/LandingPageLinkShape.md @@ -0,0 +1,82 @@ +# LandingPageLinkShape + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewLandingPageLinkShape + +`func NewLandingPageLinkShape() *LandingPageLinkShape` + +NewLandingPageLinkShape instantiates a new LandingPageLinkShape 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 + +### NewLandingPageLinkShapeWithDefaults + +`func NewLandingPageLinkShapeWithDefaults() *LandingPageLinkShape` + +NewLandingPageLinkShapeWithDefaults instantiates a new LandingPageLinkShape 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 + +### GetHref + +`func (o *LandingPageLinkShape) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *LandingPageLinkShape) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *LandingPageLinkShape) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *LandingPageLinkShape) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetTitle + +`func (o *LandingPageLinkShape) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *LandingPageLinkShape) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *LandingPageLinkShape) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *LandingPageLinkShape) HasTitle() bool` + +HasTitle 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/List.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/List.md new file mode 100644 index 00000000..2a3c88e4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/List.md @@ -0,0 +1,114 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | + +## Methods + +### NewList + +`func NewList(kind string, page int32, size int32, total int32, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *List) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *List) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int32)` + +SetTotal sets Total 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Metric.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Metric.md new file mode 100644 index 00000000..f54bcd44 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Metric.md @@ -0,0 +1,212 @@ +# Metric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**HealthState** | Pointer to **string** | | [optional] +**Metrics** | Pointer to **string** | | [optional] +**QueryTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewMetric + +`func NewMetric() *Metric` + +NewMetric instantiates a new Metric 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 + +### NewMetricWithDefaults + +`func NewMetricWithDefaults() *Metric` + +NewMetricWithDefaults instantiates a new Metric 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 + +### GetHref + +`func (o *Metric) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Metric) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Metric) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Metric) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Metric) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Metric) 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 *Metric) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Metric) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Metric) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Metric) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Metric) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Metric) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetExternalId + +`func (o *Metric) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *Metric) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *Metric) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *Metric) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetHealthState + +`func (o *Metric) GetHealthState() string` + +GetHealthState returns the HealthState field if non-nil, zero value otherwise. + +### GetHealthStateOk + +`func (o *Metric) GetHealthStateOk() (*string, bool)` + +GetHealthStateOk returns a tuple with the HealthState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHealthState + +`func (o *Metric) SetHealthState(v string)` + +SetHealthState sets HealthState field to given value. + +### HasHealthState + +`func (o *Metric) HasHealthState() bool` + +HasHealthState returns a boolean if a field has been set. + +### GetMetrics + +`func (o *Metric) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *Metric) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *Metric) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *Metric) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetQueryTimestamp + +`func (o *Metric) GetQueryTimestamp() time.Time` + +GetQueryTimestamp returns the QueryTimestamp field if non-nil, zero value otherwise. + +### GetQueryTimestampOk + +`func (o *Metric) GetQueryTimestampOk() (*time.Time, bool)` + +GetQueryTimestampOk returns a tuple with the QueryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryTimestamp + +`func (o *Metric) SetQueryTimestamp(v time.Time)` + +SetQueryTimestamp sets QueryTimestamp field to given value. + +### HasQueryTimestamp + +`func (o *Metric) HasQueryTimestamp() bool` + +HasQueryTimestamp 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricAllOf.md new file mode 100644 index 00000000..0a4f0448 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricAllOf.md @@ -0,0 +1,160 @@ +# MetricAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalId** | Pointer to **string** | | [optional] +**HealthState** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Metrics** | Pointer to **string** | | [optional] +**QueryTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewMetricAllOf + +`func NewMetricAllOf() *MetricAllOf` + +NewMetricAllOf instantiates a new MetricAllOf 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 + +### NewMetricAllOfWithDefaults + +`func NewMetricAllOfWithDefaults() *MetricAllOf` + +NewMetricAllOfWithDefaults instantiates a new MetricAllOf 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 + +### GetExternalId + +`func (o *MetricAllOf) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *MetricAllOf) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *MetricAllOf) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *MetricAllOf) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetHealthState + +`func (o *MetricAllOf) GetHealthState() string` + +GetHealthState returns the HealthState field if non-nil, zero value otherwise. + +### GetHealthStateOk + +`func (o *MetricAllOf) GetHealthStateOk() (*string, bool)` + +GetHealthStateOk returns a tuple with the HealthState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHealthState + +`func (o *MetricAllOf) SetHealthState(v string)` + +SetHealthState sets HealthState field to given value. + +### HasHealthState + +`func (o *MetricAllOf) HasHealthState() bool` + +HasHealthState returns a boolean if a field has been set. + +### GetId + +`func (o *MetricAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetricAllOf) 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 *MetricAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetricAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMetrics + +`func (o *MetricAllOf) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *MetricAllOf) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *MetricAllOf) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *MetricAllOf) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetQueryTimestamp + +`func (o *MetricAllOf) GetQueryTimestamp() time.Time` + +GetQueryTimestamp returns the QueryTimestamp field if non-nil, zero value otherwise. + +### GetQueryTimestampOk + +`func (o *MetricAllOf) GetQueryTimestampOk() (*time.Time, bool)` + +GetQueryTimestampOk returns a tuple with the QueryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryTimestamp + +`func (o *MetricAllOf) SetQueryTimestamp(v time.Time)` + +SetQueryTimestamp sets QueryTimestamp field to given value. + +### HasQueryTimestamp + +`func (o *MetricAllOf) HasQueryTimestamp() bool` + +HasQueryTimestamp 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsList.md new file mode 100644 index 00000000..a9b1243f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsList.md @@ -0,0 +1,135 @@ +# MetricsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Metric**](Metric.md) | | + +## Methods + +### NewMetricsList + +`func NewMetricsList(kind string, page int32, size int32, total int32, items []Metric, ) *MetricsList` + +NewMetricsList instantiates a new MetricsList 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 + +### NewMetricsListWithDefaults + +`func NewMetricsListWithDefaults() *MetricsList` + +NewMetricsListWithDefaults instantiates a new MetricsList 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 + +### GetKind + +`func (o *MetricsList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *MetricsList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *MetricsList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *MetricsList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *MetricsList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *MetricsList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *MetricsList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *MetricsList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *MetricsList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *MetricsList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *MetricsList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *MetricsList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *MetricsList) GetItems() []Metric` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsList) GetItemsOk() (*[]Metric, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsList) SetItems(v []Metric)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsListAllOf.md new file mode 100644 index 00000000..0a7e00f6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/MetricsListAllOf.md @@ -0,0 +1,56 @@ +# MetricsListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Metric**](Metric.md) | | [optional] + +## Methods + +### NewMetricsListAllOf + +`func NewMetricsListAllOf() *MetricsListAllOf` + +NewMetricsListAllOf instantiates a new MetricsListAllOf 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 + +### NewMetricsListAllOfWithDefaults + +`func NewMetricsListAllOfWithDefaults() *MetricsListAllOf` + +NewMetricsListAllOfWithDefaults instantiates a new MetricsListAllOf 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 + +### GetItems + +`func (o *MetricsListAllOf) GetItems() []Metric` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsListAllOf) GetItemsOk() (*[]Metric, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsListAllOf) SetItems(v []Metric)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *MetricsListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationContactCreateRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationContactCreateRequest.md new file mode 100644 index 00000000..3231083b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationContactCreateRequest.md @@ -0,0 +1,56 @@ +# NotificationContactCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountIdentifier** | Pointer to **string** | | [optional] + +## Methods + +### NewNotificationContactCreateRequest + +`func NewNotificationContactCreateRequest() *NotificationContactCreateRequest` + +NewNotificationContactCreateRequest instantiates a new NotificationContactCreateRequest 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 + +### NewNotificationContactCreateRequestWithDefaults + +`func NewNotificationContactCreateRequestWithDefaults() *NotificationContactCreateRequest` + +NewNotificationContactCreateRequestWithDefaults instantiates a new NotificationContactCreateRequest 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 + +### GetAccountIdentifier + +`func (o *NotificationContactCreateRequest) GetAccountIdentifier() string` + +GetAccountIdentifier returns the AccountIdentifier field if non-nil, zero value otherwise. + +### GetAccountIdentifierOk + +`func (o *NotificationContactCreateRequest) GetAccountIdentifierOk() (*string, bool)` + +GetAccountIdentifierOk returns a tuple with the AccountIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountIdentifier + +`func (o *NotificationContactCreateRequest) SetAccountIdentifier(v string)` + +SetAccountIdentifier sets AccountIdentifier field to given value. + +### HasAccountIdentifier + +`func (o *NotificationContactCreateRequest) HasAccountIdentifier() bool` + +HasAccountIdentifier 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationRequest.md new file mode 100644 index 00000000..9cd0d606 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/NotificationRequest.md @@ -0,0 +1,259 @@ +# NotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BccAddress** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**IncludeRedHatAssociates** | Pointer to **bool** | | [optional] +**InternalOnly** | Pointer to **bool** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**TemplateName** | **string** | | +**TemplateParameters** | Pointer to [**[]TemplateParameter**](TemplateParameter.md) | | [optional] + +## Methods + +### NewNotificationRequest + +`func NewNotificationRequest(templateName string, ) *NotificationRequest` + +NewNotificationRequest instantiates a new NotificationRequest 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 + +### NewNotificationRequestWithDefaults + +`func NewNotificationRequestWithDefaults() *NotificationRequest` + +NewNotificationRequestWithDefaults instantiates a new NotificationRequest 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 + +### GetBccAddress + +`func (o *NotificationRequest) GetBccAddress() string` + +GetBccAddress returns the BccAddress field if non-nil, zero value otherwise. + +### GetBccAddressOk + +`func (o *NotificationRequest) GetBccAddressOk() (*string, bool)` + +GetBccAddressOk returns a tuple with the BccAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBccAddress + +`func (o *NotificationRequest) SetBccAddress(v string)` + +SetBccAddress sets BccAddress field to given value. + +### HasBccAddress + +`func (o *NotificationRequest) HasBccAddress() bool` + +HasBccAddress returns a boolean if a field has been set. + +### GetClusterId + +`func (o *NotificationRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *NotificationRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *NotificationRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *NotificationRequest) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *NotificationRequest) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *NotificationRequest) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *NotificationRequest) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *NotificationRequest) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetIncludeRedHatAssociates + +`func (o *NotificationRequest) GetIncludeRedHatAssociates() bool` + +GetIncludeRedHatAssociates returns the IncludeRedHatAssociates field if non-nil, zero value otherwise. + +### GetIncludeRedHatAssociatesOk + +`func (o *NotificationRequest) GetIncludeRedHatAssociatesOk() (*bool, bool)` + +GetIncludeRedHatAssociatesOk returns a tuple with the IncludeRedHatAssociates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeRedHatAssociates + +`func (o *NotificationRequest) SetIncludeRedHatAssociates(v bool)` + +SetIncludeRedHatAssociates sets IncludeRedHatAssociates field to given value. + +### HasIncludeRedHatAssociates + +`func (o *NotificationRequest) HasIncludeRedHatAssociates() bool` + +HasIncludeRedHatAssociates returns a boolean if a field has been set. + +### GetInternalOnly + +`func (o *NotificationRequest) GetInternalOnly() bool` + +GetInternalOnly returns the InternalOnly field if non-nil, zero value otherwise. + +### GetInternalOnlyOk + +`func (o *NotificationRequest) GetInternalOnlyOk() (*bool, bool)` + +GetInternalOnlyOk returns a tuple with the InternalOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternalOnly + +`func (o *NotificationRequest) SetInternalOnly(v bool)` + +SetInternalOnly sets InternalOnly field to given value. + +### HasInternalOnly + +`func (o *NotificationRequest) HasInternalOnly() bool` + +HasInternalOnly returns a boolean if a field has been set. + +### GetSubject + +`func (o *NotificationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *NotificationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *NotificationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *NotificationRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *NotificationRequest) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *NotificationRequest) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *NotificationRequest) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *NotificationRequest) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetTemplateName + +`func (o *NotificationRequest) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *NotificationRequest) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *NotificationRequest) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + + +### GetTemplateParameters + +`func (o *NotificationRequest) GetTemplateParameters() []TemplateParameter` + +GetTemplateParameters returns the TemplateParameters field if non-nil, zero value otherwise. + +### GetTemplateParametersOk + +`func (o *NotificationRequest) GetTemplateParametersOk() (*[]TemplateParameter, bool)` + +GetTemplateParametersOk returns a tuple with the TemplateParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateParameters + +`func (o *NotificationRequest) SetTemplateParameters(v []TemplateParameter)` + +SetTemplateParameters sets TemplateParameters field to given value. + +### HasTemplateParameters + +`func (o *NotificationRequest) HasTemplateParameters() bool` + +HasTemplateParameters 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ObjectReference.md new file mode 100644 index 00000000..fbb2d5f0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ObjectReference.md @@ -0,0 +1,108 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] + +## Methods + +### NewObjectReference + +`func NewObjectReference() *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ObjectReference) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ObjectReference) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ObjectReference) HasKind() bool` + +HasKind 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/OneMetric.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OneMetric.md new file mode 100644 index 00000000..c64be07a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OneMetric.md @@ -0,0 +1,617 @@ +# OneMetric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Arch** | Pointer to **string** | | [optional] +**ChannelInfo** | Pointer to **string** | | [optional] +**CloudProvider** | **string** | | +**ClusterType** | **string** | | +**ComputeNodesCpu** | [**ClusterResource**](ClusterResource.md) | | +**ComputeNodesMemory** | [**ClusterResource**](ClusterResource.md) | | +**ComputeNodesSockets** | [**ClusterResource**](ClusterResource.md) | | +**ConsoleUrl** | **string** | | +**Cpu** | [**ClusterResource**](ClusterResource.md) | | +**CriticalAlertsFiring** | **float64** | | +**HealthState** | Pointer to **string** | | [optional] +**Memory** | [**ClusterResource**](ClusterResource.md) | | +**Nodes** | [**ClusterMetricsNodes**](ClusterMetricsNodes.md) | | +**NonVirtNodes** | **float64** | | +**OpenshiftVersion** | **string** | | +**OperatingSystem** | **string** | | +**OperatorsConditionFailing** | **float64** | | +**QueryTimestamp** | Pointer to **time.Time** | | [optional] +**Region** | **string** | | +**Sockets** | [**ClusterResource**](ClusterResource.md) | | +**State** | **string** | | +**StateDescription** | **string** | | +**Storage** | [**ClusterResource**](ClusterResource.md) | | +**SubscriptionCpuTotal** | **float64** | | +**SubscriptionObligationExists** | **float64** | | +**SubscriptionSocketTotal** | **float64** | | +**Upgrade** | [**ClusterUpgrade**](ClusterUpgrade.md) | | + +## Methods + +### NewOneMetric + +`func NewOneMetric(cloudProvider string, clusterType string, computeNodesCpu ClusterResource, computeNodesMemory ClusterResource, computeNodesSockets ClusterResource, consoleUrl string, cpu ClusterResource, criticalAlertsFiring float64, memory ClusterResource, nodes ClusterMetricsNodes, nonVirtNodes float64, openshiftVersion string, operatingSystem string, operatorsConditionFailing float64, region string, sockets ClusterResource, state string, stateDescription string, storage ClusterResource, subscriptionCpuTotal float64, subscriptionObligationExists float64, subscriptionSocketTotal float64, upgrade ClusterUpgrade, ) *OneMetric` + +NewOneMetric instantiates a new OneMetric 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 + +### NewOneMetricWithDefaults + +`func NewOneMetricWithDefaults() *OneMetric` + +NewOneMetricWithDefaults instantiates a new OneMetric 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 + +### GetArch + +`func (o *OneMetric) GetArch() string` + +GetArch returns the Arch field if non-nil, zero value otherwise. + +### GetArchOk + +`func (o *OneMetric) GetArchOk() (*string, bool)` + +GetArchOk returns a tuple with the Arch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArch + +`func (o *OneMetric) SetArch(v string)` + +SetArch sets Arch field to given value. + +### HasArch + +`func (o *OneMetric) HasArch() bool` + +HasArch returns a boolean if a field has been set. + +### GetChannelInfo + +`func (o *OneMetric) GetChannelInfo() string` + +GetChannelInfo returns the ChannelInfo field if non-nil, zero value otherwise. + +### GetChannelInfoOk + +`func (o *OneMetric) GetChannelInfoOk() (*string, bool)` + +GetChannelInfoOk returns a tuple with the ChannelInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelInfo + +`func (o *OneMetric) SetChannelInfo(v string)` + +SetChannelInfo sets ChannelInfo field to given value. + +### HasChannelInfo + +`func (o *OneMetric) HasChannelInfo() bool` + +HasChannelInfo returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *OneMetric) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *OneMetric) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *OneMetric) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + + +### GetClusterType + +`func (o *OneMetric) GetClusterType() string` + +GetClusterType returns the ClusterType field if non-nil, zero value otherwise. + +### GetClusterTypeOk + +`func (o *OneMetric) GetClusterTypeOk() (*string, bool)` + +GetClusterTypeOk returns a tuple with the ClusterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterType + +`func (o *OneMetric) SetClusterType(v string)` + +SetClusterType sets ClusterType field to given value. + + +### GetComputeNodesCpu + +`func (o *OneMetric) GetComputeNodesCpu() ClusterResource` + +GetComputeNodesCpu returns the ComputeNodesCpu field if non-nil, zero value otherwise. + +### GetComputeNodesCpuOk + +`func (o *OneMetric) GetComputeNodesCpuOk() (*ClusterResource, bool)` + +GetComputeNodesCpuOk returns a tuple with the ComputeNodesCpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeNodesCpu + +`func (o *OneMetric) SetComputeNodesCpu(v ClusterResource)` + +SetComputeNodesCpu sets ComputeNodesCpu field to given value. + + +### GetComputeNodesMemory + +`func (o *OneMetric) GetComputeNodesMemory() ClusterResource` + +GetComputeNodesMemory returns the ComputeNodesMemory field if non-nil, zero value otherwise. + +### GetComputeNodesMemoryOk + +`func (o *OneMetric) GetComputeNodesMemoryOk() (*ClusterResource, bool)` + +GetComputeNodesMemoryOk returns a tuple with the ComputeNodesMemory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeNodesMemory + +`func (o *OneMetric) SetComputeNodesMemory(v ClusterResource)` + +SetComputeNodesMemory sets ComputeNodesMemory field to given value. + + +### GetComputeNodesSockets + +`func (o *OneMetric) GetComputeNodesSockets() ClusterResource` + +GetComputeNodesSockets returns the ComputeNodesSockets field if non-nil, zero value otherwise. + +### GetComputeNodesSocketsOk + +`func (o *OneMetric) GetComputeNodesSocketsOk() (*ClusterResource, bool)` + +GetComputeNodesSocketsOk returns a tuple with the ComputeNodesSockets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeNodesSockets + +`func (o *OneMetric) SetComputeNodesSockets(v ClusterResource)` + +SetComputeNodesSockets sets ComputeNodesSockets field to given value. + + +### GetConsoleUrl + +`func (o *OneMetric) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *OneMetric) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *OneMetric) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + + +### GetCpu + +`func (o *OneMetric) GetCpu() ClusterResource` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *OneMetric) GetCpuOk() (*ClusterResource, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *OneMetric) SetCpu(v ClusterResource)` + +SetCpu sets Cpu field to given value. + + +### GetCriticalAlertsFiring + +`func (o *OneMetric) GetCriticalAlertsFiring() float64` + +GetCriticalAlertsFiring returns the CriticalAlertsFiring field if non-nil, zero value otherwise. + +### GetCriticalAlertsFiringOk + +`func (o *OneMetric) GetCriticalAlertsFiringOk() (*float64, bool)` + +GetCriticalAlertsFiringOk returns a tuple with the CriticalAlertsFiring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCriticalAlertsFiring + +`func (o *OneMetric) SetCriticalAlertsFiring(v float64)` + +SetCriticalAlertsFiring sets CriticalAlertsFiring field to given value. + + +### GetHealthState + +`func (o *OneMetric) GetHealthState() string` + +GetHealthState returns the HealthState field if non-nil, zero value otherwise. + +### GetHealthStateOk + +`func (o *OneMetric) GetHealthStateOk() (*string, bool)` + +GetHealthStateOk returns a tuple with the HealthState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHealthState + +`func (o *OneMetric) SetHealthState(v string)` + +SetHealthState sets HealthState field to given value. + +### HasHealthState + +`func (o *OneMetric) HasHealthState() bool` + +HasHealthState returns a boolean if a field has been set. + +### GetMemory + +`func (o *OneMetric) GetMemory() ClusterResource` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *OneMetric) GetMemoryOk() (*ClusterResource, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *OneMetric) SetMemory(v ClusterResource)` + +SetMemory sets Memory field to given value. + + +### GetNodes + +`func (o *OneMetric) GetNodes() ClusterMetricsNodes` + +GetNodes returns the Nodes field if non-nil, zero value otherwise. + +### GetNodesOk + +`func (o *OneMetric) GetNodesOk() (*ClusterMetricsNodes, bool)` + +GetNodesOk returns a tuple with the Nodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodes + +`func (o *OneMetric) SetNodes(v ClusterMetricsNodes)` + +SetNodes sets Nodes field to given value. + + +### GetNonVirtNodes + +`func (o *OneMetric) GetNonVirtNodes() float64` + +GetNonVirtNodes returns the NonVirtNodes field if non-nil, zero value otherwise. + +### GetNonVirtNodesOk + +`func (o *OneMetric) GetNonVirtNodesOk() (*float64, bool)` + +GetNonVirtNodesOk returns a tuple with the NonVirtNodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonVirtNodes + +`func (o *OneMetric) SetNonVirtNodes(v float64)` + +SetNonVirtNodes sets NonVirtNodes field to given value. + + +### GetOpenshiftVersion + +`func (o *OneMetric) GetOpenshiftVersion() string` + +GetOpenshiftVersion returns the OpenshiftVersion field if non-nil, zero value otherwise. + +### GetOpenshiftVersionOk + +`func (o *OneMetric) GetOpenshiftVersionOk() (*string, bool)` + +GetOpenshiftVersionOk returns a tuple with the OpenshiftVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenshiftVersion + +`func (o *OneMetric) SetOpenshiftVersion(v string)` + +SetOpenshiftVersion sets OpenshiftVersion field to given value. + + +### GetOperatingSystem + +`func (o *OneMetric) GetOperatingSystem() string` + +GetOperatingSystem returns the OperatingSystem field if non-nil, zero value otherwise. + +### GetOperatingSystemOk + +`func (o *OneMetric) GetOperatingSystemOk() (*string, bool)` + +GetOperatingSystemOk returns a tuple with the OperatingSystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperatingSystem + +`func (o *OneMetric) SetOperatingSystem(v string)` + +SetOperatingSystem sets OperatingSystem field to given value. + + +### GetOperatorsConditionFailing + +`func (o *OneMetric) GetOperatorsConditionFailing() float64` + +GetOperatorsConditionFailing returns the OperatorsConditionFailing field if non-nil, zero value otherwise. + +### GetOperatorsConditionFailingOk + +`func (o *OneMetric) GetOperatorsConditionFailingOk() (*float64, bool)` + +GetOperatorsConditionFailingOk returns a tuple with the OperatorsConditionFailing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperatorsConditionFailing + +`func (o *OneMetric) SetOperatorsConditionFailing(v float64)` + +SetOperatorsConditionFailing sets OperatorsConditionFailing field to given value. + + +### GetQueryTimestamp + +`func (o *OneMetric) GetQueryTimestamp() time.Time` + +GetQueryTimestamp returns the QueryTimestamp field if non-nil, zero value otherwise. + +### GetQueryTimestampOk + +`func (o *OneMetric) GetQueryTimestampOk() (*time.Time, bool)` + +GetQueryTimestampOk returns a tuple with the QueryTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryTimestamp + +`func (o *OneMetric) SetQueryTimestamp(v time.Time)` + +SetQueryTimestamp sets QueryTimestamp field to given value. + +### HasQueryTimestamp + +`func (o *OneMetric) HasQueryTimestamp() bool` + +HasQueryTimestamp returns a boolean if a field has been set. + +### GetRegion + +`func (o *OneMetric) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *OneMetric) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *OneMetric) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### GetSockets + +`func (o *OneMetric) GetSockets() ClusterResource` + +GetSockets returns the Sockets field if non-nil, zero value otherwise. + +### GetSocketsOk + +`func (o *OneMetric) GetSocketsOk() (*ClusterResource, bool)` + +GetSocketsOk returns a tuple with the Sockets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSockets + +`func (o *OneMetric) SetSockets(v ClusterResource)` + +SetSockets sets Sockets field to given value. + + +### GetState + +`func (o *OneMetric) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *OneMetric) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *OneMetric) SetState(v string)` + +SetState sets State field to given value. + + +### GetStateDescription + +`func (o *OneMetric) GetStateDescription() string` + +GetStateDescription returns the StateDescription field if non-nil, zero value otherwise. + +### GetStateDescriptionOk + +`func (o *OneMetric) GetStateDescriptionOk() (*string, bool)` + +GetStateDescriptionOk returns a tuple with the StateDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateDescription + +`func (o *OneMetric) SetStateDescription(v string)` + +SetStateDescription sets StateDescription field to given value. + + +### GetStorage + +`func (o *OneMetric) GetStorage() ClusterResource` + +GetStorage returns the Storage field if non-nil, zero value otherwise. + +### GetStorageOk + +`func (o *OneMetric) GetStorageOk() (*ClusterResource, bool)` + +GetStorageOk returns a tuple with the Storage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorage + +`func (o *OneMetric) SetStorage(v ClusterResource)` + +SetStorage sets Storage field to given value. + + +### GetSubscriptionCpuTotal + +`func (o *OneMetric) GetSubscriptionCpuTotal() float64` + +GetSubscriptionCpuTotal returns the SubscriptionCpuTotal field if non-nil, zero value otherwise. + +### GetSubscriptionCpuTotalOk + +`func (o *OneMetric) GetSubscriptionCpuTotalOk() (*float64, bool)` + +GetSubscriptionCpuTotalOk returns a tuple with the SubscriptionCpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionCpuTotal + +`func (o *OneMetric) SetSubscriptionCpuTotal(v float64)` + +SetSubscriptionCpuTotal sets SubscriptionCpuTotal field to given value. + + +### GetSubscriptionObligationExists + +`func (o *OneMetric) GetSubscriptionObligationExists() float64` + +GetSubscriptionObligationExists returns the SubscriptionObligationExists field if non-nil, zero value otherwise. + +### GetSubscriptionObligationExistsOk + +`func (o *OneMetric) GetSubscriptionObligationExistsOk() (*float64, bool)` + +GetSubscriptionObligationExistsOk returns a tuple with the SubscriptionObligationExists field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionObligationExists + +`func (o *OneMetric) SetSubscriptionObligationExists(v float64)` + +SetSubscriptionObligationExists sets SubscriptionObligationExists field to given value. + + +### GetSubscriptionSocketTotal + +`func (o *OneMetric) GetSubscriptionSocketTotal() float64` + +GetSubscriptionSocketTotal returns the SubscriptionSocketTotal field if non-nil, zero value otherwise. + +### GetSubscriptionSocketTotalOk + +`func (o *OneMetric) GetSubscriptionSocketTotalOk() (*float64, bool)` + +GetSubscriptionSocketTotalOk returns a tuple with the SubscriptionSocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionSocketTotal + +`func (o *OneMetric) SetSubscriptionSocketTotal(v float64)` + +SetSubscriptionSocketTotal sets SubscriptionSocketTotal field to given value. + + +### GetUpgrade + +`func (o *OneMetric) GetUpgrade() ClusterUpgrade` + +GetUpgrade returns the Upgrade field if non-nil, zero value otherwise. + +### GetUpgradeOk + +`func (o *OneMetric) GetUpgradeOk() (*ClusterUpgrade, bool)` + +GetUpgradeOk returns a tuple with the Upgrade field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpgrade + +`func (o *OneMetric) SetUpgrade(v ClusterUpgrade)` + +SetUpgrade sets Upgrade 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Organization.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Organization.md new file mode 100644 index 00000000..91593c26 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Organization.md @@ -0,0 +1,290 @@ +# Organization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**EbsAccountId** | Pointer to **string** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrganization + +`func NewOrganization() *Organization` + +NewOrganization instantiates a new Organization 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 + +### NewOrganizationWithDefaults + +`func NewOrganizationWithDefaults() *Organization` + +NewOrganizationWithDefaults instantiates a new Organization 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 + +### GetHref + +`func (o *Organization) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Organization) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Organization) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Organization) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Organization) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Organization) 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 *Organization) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Organization) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Organization) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Organization) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Organization) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Organization) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *Organization) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *Organization) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *Organization) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *Organization) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Organization) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Organization) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Organization) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Organization) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEbsAccountId + +`func (o *Organization) GetEbsAccountId() string` + +GetEbsAccountId returns the EbsAccountId field if non-nil, zero value otherwise. + +### GetEbsAccountIdOk + +`func (o *Organization) GetEbsAccountIdOk() (*string, bool)` + +GetEbsAccountIdOk returns a tuple with the EbsAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEbsAccountId + +`func (o *Organization) SetEbsAccountId(v string)` + +SetEbsAccountId sets EbsAccountId field to given value. + +### HasEbsAccountId + +`func (o *Organization) HasEbsAccountId() bool` + +HasEbsAccountId returns a boolean if a field has been set. + +### GetExternalId + +`func (o *Organization) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *Organization) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *Organization) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *Organization) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetLabels + +`func (o *Organization) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *Organization) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *Organization) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *Organization) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetName + +`func (o *Organization) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Organization) 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 *Organization) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Organization) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Organization) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Organization) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Organization) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Organization) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationAllOf.md new file mode 100644 index 00000000..34641b00 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationAllOf.md @@ -0,0 +1,212 @@ +# OrganizationAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**EbsAccountId** | Pointer to **string** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewOrganizationAllOf + +`func NewOrganizationAllOf() *OrganizationAllOf` + +NewOrganizationAllOf instantiates a new OrganizationAllOf 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 + +### NewOrganizationAllOfWithDefaults + +`func NewOrganizationAllOfWithDefaults() *OrganizationAllOf` + +NewOrganizationAllOfWithDefaults instantiates a new OrganizationAllOf 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 + +### GetCapabilities + +`func (o *OrganizationAllOf) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *OrganizationAllOf) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *OrganizationAllOf) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *OrganizationAllOf) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *OrganizationAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *OrganizationAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *OrganizationAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *OrganizationAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEbsAccountId + +`func (o *OrganizationAllOf) GetEbsAccountId() string` + +GetEbsAccountId returns the EbsAccountId field if non-nil, zero value otherwise. + +### GetEbsAccountIdOk + +`func (o *OrganizationAllOf) GetEbsAccountIdOk() (*string, bool)` + +GetEbsAccountIdOk returns a tuple with the EbsAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEbsAccountId + +`func (o *OrganizationAllOf) SetEbsAccountId(v string)` + +SetEbsAccountId sets EbsAccountId field to given value. + +### HasEbsAccountId + +`func (o *OrganizationAllOf) HasEbsAccountId() bool` + +HasEbsAccountId returns a boolean if a field has been set. + +### GetExternalId + +`func (o *OrganizationAllOf) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *OrganizationAllOf) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *OrganizationAllOf) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *OrganizationAllOf) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetLabels + +`func (o *OrganizationAllOf) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *OrganizationAllOf) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *OrganizationAllOf) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *OrganizationAllOf) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetName + +`func (o *OrganizationAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationAllOf) 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 *OrganizationAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *OrganizationAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *OrganizationAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *OrganizationAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *OrganizationAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationList.md new file mode 100644 index 00000000..d91c6bb6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationList.md @@ -0,0 +1,135 @@ +# OrganizationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Organization**](Organization.md) | | + +## Methods + +### NewOrganizationList + +`func NewOrganizationList(kind string, page int32, size int32, total int32, items []Organization, ) *OrganizationList` + +NewOrganizationList instantiates a new OrganizationList 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 + +### NewOrganizationListWithDefaults + +`func NewOrganizationListWithDefaults() *OrganizationList` + +NewOrganizationListWithDefaults instantiates a new OrganizationList 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 + +### GetKind + +`func (o *OrganizationList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *OrganizationList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *OrganizationList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *OrganizationList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *OrganizationList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *OrganizationList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *OrganizationList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *OrganizationList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *OrganizationList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *OrganizationList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *OrganizationList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *OrganizationList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *OrganizationList) GetItems() []Organization` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *OrganizationList) GetItemsOk() (*[]Organization, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *OrganizationList) SetItems(v []Organization)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationListAllOf.md new file mode 100644 index 00000000..eb72642f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationListAllOf.md @@ -0,0 +1,56 @@ +# OrganizationListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Organization**](Organization.md) | | [optional] + +## Methods + +### NewOrganizationListAllOf + +`func NewOrganizationListAllOf() *OrganizationListAllOf` + +NewOrganizationListAllOf instantiates a new OrganizationListAllOf 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 + +### NewOrganizationListAllOfWithDefaults + +`func NewOrganizationListAllOfWithDefaults() *OrganizationListAllOf` + +NewOrganizationListAllOfWithDefaults instantiates a new OrganizationListAllOf 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 + +### GetItems + +`func (o *OrganizationListAllOf) GetItems() []Organization` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *OrganizationListAllOf) GetItemsOk() (*[]Organization, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *OrganizationListAllOf) SetItems(v []Organization)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *OrganizationListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationPatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationPatchRequest.md new file mode 100644 index 00000000..198ded58 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/OrganizationPatchRequest.md @@ -0,0 +1,108 @@ +# OrganizationPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EbsAccountId** | Pointer to **string** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewOrganizationPatchRequest + +`func NewOrganizationPatchRequest() *OrganizationPatchRequest` + +NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest 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 + +### NewOrganizationPatchRequestWithDefaults + +`func NewOrganizationPatchRequestWithDefaults() *OrganizationPatchRequest` + +NewOrganizationPatchRequestWithDefaults instantiates a new OrganizationPatchRequest 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 + +### GetEbsAccountId + +`func (o *OrganizationPatchRequest) GetEbsAccountId() string` + +GetEbsAccountId returns the EbsAccountId field if non-nil, zero value otherwise. + +### GetEbsAccountIdOk + +`func (o *OrganizationPatchRequest) GetEbsAccountIdOk() (*string, bool)` + +GetEbsAccountIdOk returns a tuple with the EbsAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEbsAccountId + +`func (o *OrganizationPatchRequest) SetEbsAccountId(v string)` + +SetEbsAccountId sets EbsAccountId field to given value. + +### HasEbsAccountId + +`func (o *OrganizationPatchRequest) HasEbsAccountId() bool` + +HasEbsAccountId returns a boolean if a field has been set. + +### GetExternalId + +`func (o *OrganizationPatchRequest) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *OrganizationPatchRequest) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *OrganizationPatchRequest) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *OrganizationPatchRequest) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetName + +`func (o *OrganizationPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganizationPatchRequest) 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 *OrganizationPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganizationPatchRequest) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Permission.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Permission.md new file mode 100644 index 00000000..978daae5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Permission.md @@ -0,0 +1,82 @@ +# Permission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **string** | | [optional] +**Resource** | Pointer to **string** | | [optional] + +## Methods + +### NewPermission + +`func NewPermission() *Permission` + +NewPermission instantiates a new Permission 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 + +### NewPermissionWithDefaults + +`func NewPermissionWithDefaults() *Permission` + +NewPermissionWithDefaults instantiates a new Permission 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 + +### GetAction + +`func (o *Permission) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *Permission) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *Permission) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *Permission) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetResource + +`func (o *Permission) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *Permission) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *Permission) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *Permission) HasResource() bool` + +HasResource 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionAllOf.md new file mode 100644 index 00000000..51d34af9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionAllOf.md @@ -0,0 +1,82 @@ +# PermissionAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **string** | | [optional] +**Resource** | Pointer to **string** | | [optional] + +## Methods + +### NewPermissionAllOf + +`func NewPermissionAllOf() *PermissionAllOf` + +NewPermissionAllOf instantiates a new PermissionAllOf 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 + +### NewPermissionAllOfWithDefaults + +`func NewPermissionAllOfWithDefaults() *PermissionAllOf` + +NewPermissionAllOfWithDefaults instantiates a new PermissionAllOf 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 + +### GetAction + +`func (o *PermissionAllOf) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *PermissionAllOf) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *PermissionAllOf) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *PermissionAllOf) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetResource + +`func (o *PermissionAllOf) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *PermissionAllOf) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *PermissionAllOf) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *PermissionAllOf) HasResource() bool` + +HasResource 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionList.md new file mode 100644 index 00000000..59d89a68 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionList.md @@ -0,0 +1,135 @@ +# PermissionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Permission**](Permission.md) | | + +## Methods + +### NewPermissionList + +`func NewPermissionList(kind string, page int32, size int32, total int32, items []Permission, ) *PermissionList` + +NewPermissionList instantiates a new PermissionList 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 + +### NewPermissionListWithDefaults + +`func NewPermissionListWithDefaults() *PermissionList` + +NewPermissionListWithDefaults instantiates a new PermissionList 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 + +### GetKind + +`func (o *PermissionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *PermissionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *PermissionList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *PermissionList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *PermissionList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *PermissionList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *PermissionList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *PermissionList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *PermissionList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *PermissionList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *PermissionList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *PermissionList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *PermissionList) GetItems() []Permission` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *PermissionList) GetItemsOk() (*[]Permission, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *PermissionList) SetItems(v []Permission)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionListAllOf.md new file mode 100644 index 00000000..4e7286b3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PermissionListAllOf.md @@ -0,0 +1,56 @@ +# PermissionListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Permission**](Permission.md) | | [optional] + +## Methods + +### NewPermissionListAllOf + +`func NewPermissionListAllOf() *PermissionListAllOf` + +NewPermissionListAllOf instantiates a new PermissionListAllOf 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 + +### NewPermissionListAllOfWithDefaults + +`func NewPermissionListAllOfWithDefaults() *PermissionListAllOf` + +NewPermissionListAllOfWithDefaults instantiates a new PermissionListAllOf 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 + +### GetItems + +`func (o *PermissionListAllOf) GetItems() []Permission` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *PermissionListAllOf) GetItemsOk() (*[]Permission, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *PermissionListAllOf) SetItems(v []Permission)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *PermissionListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Plan.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Plan.md new file mode 100644 index 00000000..a9b24688 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Plan.md @@ -0,0 +1,186 @@ +# Plan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Category** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewPlan + +`func NewPlan() *Plan` + +NewPlan instantiates a new Plan 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 + +### NewPlanWithDefaults + +`func NewPlanWithDefaults() *Plan` + +NewPlanWithDefaults instantiates a new Plan 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 + +### GetHref + +`func (o *Plan) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Plan) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Plan) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Plan) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Plan) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Plan) 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 *Plan) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Plan) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Plan) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Plan) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Plan) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Plan) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCategory + +`func (o *Plan) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *Plan) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *Plan) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *Plan) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetName + +`func (o *Plan) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Plan) 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 *Plan) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Plan) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *Plan) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Plan) GetTypeOk() (*string, 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 *Plan) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Plan) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanAllOf.md new file mode 100644 index 00000000..b0aabf4b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanAllOf.md @@ -0,0 +1,108 @@ +# PlanAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Category** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewPlanAllOf + +`func NewPlanAllOf() *PlanAllOf` + +NewPlanAllOf instantiates a new PlanAllOf 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 + +### NewPlanAllOfWithDefaults + +`func NewPlanAllOfWithDefaults() *PlanAllOf` + +NewPlanAllOfWithDefaults instantiates a new PlanAllOf 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 + +### GetCategory + +`func (o *PlanAllOf) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *PlanAllOf) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *PlanAllOf) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *PlanAllOf) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetName + +`func (o *PlanAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PlanAllOf) 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 *PlanAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PlanAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *PlanAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PlanAllOf) GetTypeOk() (*string, 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 *PlanAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PlanAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanList.md new file mode 100644 index 00000000..989b28f2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanList.md @@ -0,0 +1,135 @@ +# PlanList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Plan**](Plan.md) | | + +## Methods + +### NewPlanList + +`func NewPlanList(kind string, page int32, size int32, total int32, items []Plan, ) *PlanList` + +NewPlanList instantiates a new PlanList 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 + +### NewPlanListWithDefaults + +`func NewPlanListWithDefaults() *PlanList` + +NewPlanListWithDefaults instantiates a new PlanList 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 + +### GetKind + +`func (o *PlanList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *PlanList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *PlanList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *PlanList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *PlanList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *PlanList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *PlanList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *PlanList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *PlanList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *PlanList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *PlanList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *PlanList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *PlanList) GetItems() []Plan` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *PlanList) GetItemsOk() (*[]Plan, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *PlanList) SetItems(v []Plan)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanListAllOf.md new file mode 100644 index 00000000..b171682e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PlanListAllOf.md @@ -0,0 +1,56 @@ +# PlanListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Plan**](Plan.md) | | [optional] + +## Methods + +### NewPlanListAllOf + +`func NewPlanListAllOf() *PlanListAllOf` + +NewPlanListAllOf instantiates a new PlanListAllOf 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 + +### NewPlanListAllOfWithDefaults + +`func NewPlanListAllOfWithDefaults() *PlanListAllOf` + +NewPlanListAllOfWithDefaults instantiates a new PlanListAllOf 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 + +### GetItems + +`func (o *PlanListAllOf) GetItems() []Plan` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *PlanListAllOf) GetItemsOk() (*[]Plan, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *PlanListAllOf) SetItems(v []Plan)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *PlanListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/PullSecretRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PullSecretRequest.md new file mode 100644 index 00000000..1bdd886b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/PullSecretRequest.md @@ -0,0 +1,51 @@ +# PullSecretRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalResourceId** | **string** | | + +## Methods + +### NewPullSecretRequest + +`func NewPullSecretRequest(externalResourceId string, ) *PullSecretRequest` + +NewPullSecretRequest instantiates a new PullSecretRequest 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 + +### NewPullSecretRequestWithDefaults + +`func NewPullSecretRequestWithDefaults() *PullSecretRequest` + +NewPullSecretRequestWithDefaults instantiates a new PullSecretRequest 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 + +### GetExternalResourceId + +`func (o *PullSecretRequest) GetExternalResourceId() string` + +GetExternalResourceId returns the ExternalResourceId field if non-nil, zero value otherwise. + +### GetExternalResourceIdOk + +`func (o *PullSecretRequest) GetExternalResourceIdOk() (*string, bool)` + +GetExternalResourceIdOk returns a tuple with the ExternalResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalResourceId + +`func (o *PullSecretRequest) SetExternalResourceId(v string)` + +SetExternalResourceId sets ExternalResourceId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Quota.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Quota.md new file mode 100644 index 00000000..0a15770d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Quota.md @@ -0,0 +1,212 @@ +# Quota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewQuota + +`func NewQuota() *Quota` + +NewQuota instantiates a new Quota 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 + +### NewQuotaWithDefaults + +`func NewQuotaWithDefaults() *Quota` + +NewQuotaWithDefaults instantiates a new Quota 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 + +### GetHref + +`func (o *Quota) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Quota) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Quota) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Quota) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Quota) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Quota) 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 *Quota) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Quota) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Quota) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Quota) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Quota) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Quota) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Quota) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Quota) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Quota) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Quota) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *Quota) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Quota) 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 *Quota) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Quota) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetResourceType + +`func (o *Quota) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *Quota) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *Quota) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *Quota) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Quota) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Quota) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Quota) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Quota) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaAllOf.md new file mode 100644 index 00000000..a4dedfc7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaAllOf.md @@ -0,0 +1,134 @@ +# QuotaAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewQuotaAllOf + +`func NewQuotaAllOf() *QuotaAllOf` + +NewQuotaAllOf instantiates a new QuotaAllOf 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 + +### NewQuotaAllOfWithDefaults + +`func NewQuotaAllOfWithDefaults() *QuotaAllOf` + +NewQuotaAllOfWithDefaults instantiates a new QuotaAllOf 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 + +### GetCreatedAt + +`func (o *QuotaAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *QuotaAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *QuotaAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *QuotaAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *QuotaAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *QuotaAllOf) 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 *QuotaAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *QuotaAllOf) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetResourceType + +`func (o *QuotaAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *QuotaAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *QuotaAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *QuotaAllOf) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *QuotaAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *QuotaAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *QuotaAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *QuotaAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCost.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCost.md new file mode 100644 index 00000000..5e8bc848 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCost.md @@ -0,0 +1,275 @@ +# QuotaCost + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Allowed** | **int32** | | +**CloudAccounts** | Pointer to [**[]CloudAccount**](CloudAccount.md) | | [optional] +**Consumed** | **int32** | | +**OrganizationId** | Pointer to **string** | | [optional] +**QuotaId** | **string** | | +**RelatedResources** | Pointer to [**[]RelatedResource**](RelatedResource.md) | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewQuotaCost + +`func NewQuotaCost(allowed int32, consumed int32, quotaId string, ) *QuotaCost` + +NewQuotaCost instantiates a new QuotaCost 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 + +### NewQuotaCostWithDefaults + +`func NewQuotaCostWithDefaults() *QuotaCost` + +NewQuotaCostWithDefaults instantiates a new QuotaCost 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 + +### GetHref + +`func (o *QuotaCost) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *QuotaCost) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *QuotaCost) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *QuotaCost) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *QuotaCost) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *QuotaCost) 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 *QuotaCost) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *QuotaCost) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *QuotaCost) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *QuotaCost) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *QuotaCost) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *QuotaCost) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAllowed + +`func (o *QuotaCost) GetAllowed() int32` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *QuotaCost) GetAllowedOk() (*int32, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *QuotaCost) SetAllowed(v int32)` + +SetAllowed sets Allowed field to given value. + + +### GetCloudAccounts + +`func (o *QuotaCost) GetCloudAccounts() []CloudAccount` + +GetCloudAccounts returns the CloudAccounts field if non-nil, zero value otherwise. + +### GetCloudAccountsOk + +`func (o *QuotaCost) GetCloudAccountsOk() (*[]CloudAccount, bool)` + +GetCloudAccountsOk returns a tuple with the CloudAccounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccounts + +`func (o *QuotaCost) SetCloudAccounts(v []CloudAccount)` + +SetCloudAccounts sets CloudAccounts field to given value. + +### HasCloudAccounts + +`func (o *QuotaCost) HasCloudAccounts() bool` + +HasCloudAccounts returns a boolean if a field has been set. + +### GetConsumed + +`func (o *QuotaCost) GetConsumed() int32` + +GetConsumed returns the Consumed field if non-nil, zero value otherwise. + +### GetConsumedOk + +`func (o *QuotaCost) GetConsumedOk() (*int32, bool)` + +GetConsumedOk returns a tuple with the Consumed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumed + +`func (o *QuotaCost) SetConsumed(v int32)` + +SetConsumed sets Consumed field to given value. + + +### GetOrganizationId + +`func (o *QuotaCost) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *QuotaCost) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *QuotaCost) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *QuotaCost) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *QuotaCost) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *QuotaCost) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *QuotaCost) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + + +### GetRelatedResources + +`func (o *QuotaCost) GetRelatedResources() []RelatedResource` + +GetRelatedResources returns the RelatedResources field if non-nil, zero value otherwise. + +### GetRelatedResourcesOk + +`func (o *QuotaCost) GetRelatedResourcesOk() (*[]RelatedResource, bool)` + +GetRelatedResourcesOk returns a tuple with the RelatedResources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedResources + +`func (o *QuotaCost) SetRelatedResources(v []RelatedResource)` + +SetRelatedResources sets RelatedResources field to given value. + +### HasRelatedResources + +`func (o *QuotaCost) HasRelatedResources() bool` + +HasRelatedResources returns a boolean if a field has been set. + +### GetVersion + +`func (o *QuotaCost) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *QuotaCost) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *QuotaCost) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *QuotaCost) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostAllOf.md new file mode 100644 index 00000000..55bcf2c3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostAllOf.md @@ -0,0 +1,197 @@ +# QuotaCostAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allowed** | **int32** | | +**CloudAccounts** | Pointer to [**[]CloudAccount**](CloudAccount.md) | | [optional] +**Consumed** | **int32** | | +**OrganizationId** | Pointer to **string** | | [optional] +**QuotaId** | **string** | | +**RelatedResources** | Pointer to [**[]RelatedResource**](RelatedResource.md) | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewQuotaCostAllOf + +`func NewQuotaCostAllOf(allowed int32, consumed int32, quotaId string, ) *QuotaCostAllOf` + +NewQuotaCostAllOf instantiates a new QuotaCostAllOf 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 + +### NewQuotaCostAllOfWithDefaults + +`func NewQuotaCostAllOfWithDefaults() *QuotaCostAllOf` + +NewQuotaCostAllOfWithDefaults instantiates a new QuotaCostAllOf 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 + +### GetAllowed + +`func (o *QuotaCostAllOf) GetAllowed() int32` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *QuotaCostAllOf) GetAllowedOk() (*int32, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *QuotaCostAllOf) SetAllowed(v int32)` + +SetAllowed sets Allowed field to given value. + + +### GetCloudAccounts + +`func (o *QuotaCostAllOf) GetCloudAccounts() []CloudAccount` + +GetCloudAccounts returns the CloudAccounts field if non-nil, zero value otherwise. + +### GetCloudAccountsOk + +`func (o *QuotaCostAllOf) GetCloudAccountsOk() (*[]CloudAccount, bool)` + +GetCloudAccountsOk returns a tuple with the CloudAccounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccounts + +`func (o *QuotaCostAllOf) SetCloudAccounts(v []CloudAccount)` + +SetCloudAccounts sets CloudAccounts field to given value. + +### HasCloudAccounts + +`func (o *QuotaCostAllOf) HasCloudAccounts() bool` + +HasCloudAccounts returns a boolean if a field has been set. + +### GetConsumed + +`func (o *QuotaCostAllOf) GetConsumed() int32` + +GetConsumed returns the Consumed field if non-nil, zero value otherwise. + +### GetConsumedOk + +`func (o *QuotaCostAllOf) GetConsumedOk() (*int32, bool)` + +GetConsumedOk returns a tuple with the Consumed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumed + +`func (o *QuotaCostAllOf) SetConsumed(v int32)` + +SetConsumed sets Consumed field to given value. + + +### GetOrganizationId + +`func (o *QuotaCostAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *QuotaCostAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *QuotaCostAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *QuotaCostAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *QuotaCostAllOf) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *QuotaCostAllOf) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *QuotaCostAllOf) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + + +### GetRelatedResources + +`func (o *QuotaCostAllOf) GetRelatedResources() []RelatedResource` + +GetRelatedResources returns the RelatedResources field if non-nil, zero value otherwise. + +### GetRelatedResourcesOk + +`func (o *QuotaCostAllOf) GetRelatedResourcesOk() (*[]RelatedResource, bool)` + +GetRelatedResourcesOk returns a tuple with the RelatedResources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedResources + +`func (o *QuotaCostAllOf) SetRelatedResources(v []RelatedResource)` + +SetRelatedResources sets RelatedResources field to given value. + +### HasRelatedResources + +`func (o *QuotaCostAllOf) HasRelatedResources() bool` + +HasRelatedResources returns a boolean if a field has been set. + +### GetVersion + +`func (o *QuotaCostAllOf) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *QuotaCostAllOf) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *QuotaCostAllOf) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *QuotaCostAllOf) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostList.md new file mode 100644 index 00000000..0e96fd06 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostList.md @@ -0,0 +1,135 @@ +# QuotaCostList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]QuotaCost**](QuotaCost.md) | | + +## Methods + +### NewQuotaCostList + +`func NewQuotaCostList(kind string, page int32, size int32, total int32, items []QuotaCost, ) *QuotaCostList` + +NewQuotaCostList instantiates a new QuotaCostList 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 + +### NewQuotaCostListWithDefaults + +`func NewQuotaCostListWithDefaults() *QuotaCostList` + +NewQuotaCostListWithDefaults instantiates a new QuotaCostList 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 + +### GetKind + +`func (o *QuotaCostList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *QuotaCostList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *QuotaCostList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *QuotaCostList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *QuotaCostList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *QuotaCostList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *QuotaCostList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *QuotaCostList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *QuotaCostList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *QuotaCostList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *QuotaCostList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *QuotaCostList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *QuotaCostList) GetItems() []QuotaCost` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaCostList) GetItemsOk() (*[]QuotaCost, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaCostList) SetItems(v []QuotaCost)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostListAllOf.md new file mode 100644 index 00000000..760478aa --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaCostListAllOf.md @@ -0,0 +1,56 @@ +# QuotaCostListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]QuotaCost**](QuotaCost.md) | | [optional] + +## Methods + +### NewQuotaCostListAllOf + +`func NewQuotaCostListAllOf() *QuotaCostListAllOf` + +NewQuotaCostListAllOf instantiates a new QuotaCostListAllOf 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 + +### NewQuotaCostListAllOfWithDefaults + +`func NewQuotaCostListAllOfWithDefaults() *QuotaCostListAllOf` + +NewQuotaCostListAllOfWithDefaults instantiates a new QuotaCostListAllOf 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 + +### GetItems + +`func (o *QuotaCostListAllOf) GetItems() []QuotaCost` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaCostListAllOf) GetItemsOk() (*[]QuotaCost, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaCostListAllOf) SetItems(v []QuotaCost)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *QuotaCostListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaList.md new file mode 100644 index 00000000..7af0e49a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaList.md @@ -0,0 +1,135 @@ +# QuotaList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Quota**](Quota.md) | | + +## Methods + +### NewQuotaList + +`func NewQuotaList(kind string, page int32, size int32, total int32, items []Quota, ) *QuotaList` + +NewQuotaList instantiates a new QuotaList 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 + +### NewQuotaListWithDefaults + +`func NewQuotaListWithDefaults() *QuotaList` + +NewQuotaListWithDefaults instantiates a new QuotaList 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 + +### GetKind + +`func (o *QuotaList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *QuotaList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *QuotaList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *QuotaList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *QuotaList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *QuotaList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *QuotaList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *QuotaList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *QuotaList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *QuotaList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *QuotaList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *QuotaList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *QuotaList) GetItems() []Quota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaList) GetItemsOk() (*[]Quota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaList) SetItems(v []Quota)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaListAllOf.md new file mode 100644 index 00000000..a38270f8 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaListAllOf.md @@ -0,0 +1,56 @@ +# QuotaListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Quota**](Quota.md) | | [optional] + +## Methods + +### NewQuotaListAllOf + +`func NewQuotaListAllOf() *QuotaListAllOf` + +NewQuotaListAllOf instantiates a new QuotaListAllOf 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 + +### NewQuotaListAllOfWithDefaults + +`func NewQuotaListAllOfWithDefaults() *QuotaListAllOf` + +NewQuotaListAllOfWithDefaults instantiates a new QuotaListAllOf 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 + +### GetItems + +`func (o *QuotaListAllOf) GetItems() []Quota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaListAllOf) GetItemsOk() (*[]Quota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaListAllOf) SetItems(v []Quota)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *QuotaListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRules.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRules.md new file mode 100644 index 00000000..5fce6c32 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRules.md @@ -0,0 +1,337 @@ +# QuotaRules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AvailabilityZone** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | Pointer to **string** | | [optional] +**Cloud** | Pointer to **string** | | [optional] +**Cost** | **int32** | | +**Name** | Pointer to **string** | | [optional] +**Product** | Pointer to **string** | | [optional] +**QuotaId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewQuotaRules + +`func NewQuotaRules(cost int32, ) *QuotaRules` + +NewQuotaRules instantiates a new QuotaRules 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 + +### NewQuotaRulesWithDefaults + +`func NewQuotaRulesWithDefaults() *QuotaRules` + +NewQuotaRulesWithDefaults instantiates a new QuotaRules 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 + +### GetHref + +`func (o *QuotaRules) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *QuotaRules) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *QuotaRules) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *QuotaRules) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *QuotaRules) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *QuotaRules) 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 *QuotaRules) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *QuotaRules) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *QuotaRules) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *QuotaRules) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *QuotaRules) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *QuotaRules) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAvailabilityZone + +`func (o *QuotaRules) GetAvailabilityZone() string` + +GetAvailabilityZone returns the AvailabilityZone field if non-nil, zero value otherwise. + +### GetAvailabilityZoneOk + +`func (o *QuotaRules) GetAvailabilityZoneOk() (*string, bool)` + +GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZone + +`func (o *QuotaRules) SetAvailabilityZone(v string)` + +SetAvailabilityZone sets AvailabilityZone field to given value. + +### HasAvailabilityZone + +`func (o *QuotaRules) HasAvailabilityZone() bool` + +HasAvailabilityZone returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *QuotaRules) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *QuotaRules) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *QuotaRules) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *QuotaRules) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *QuotaRules) GetByoc() string` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *QuotaRules) GetByocOk() (*string, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *QuotaRules) SetByoc(v string)` + +SetByoc sets Byoc field to given value. + +### HasByoc + +`func (o *QuotaRules) HasByoc() bool` + +HasByoc returns a boolean if a field has been set. + +### GetCloud + +`func (o *QuotaRules) GetCloud() string` + +GetCloud returns the Cloud field if non-nil, zero value otherwise. + +### GetCloudOk + +`func (o *QuotaRules) GetCloudOk() (*string, bool)` + +GetCloudOk returns a tuple with the Cloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloud + +`func (o *QuotaRules) SetCloud(v string)` + +SetCloud sets Cloud field to given value. + +### HasCloud + +`func (o *QuotaRules) HasCloud() bool` + +HasCloud returns a boolean if a field has been set. + +### GetCost + +`func (o *QuotaRules) GetCost() int32` + +GetCost returns the Cost field if non-nil, zero value otherwise. + +### GetCostOk + +`func (o *QuotaRules) GetCostOk() (*int32, bool)` + +GetCostOk returns a tuple with the Cost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCost + +`func (o *QuotaRules) SetCost(v int32)` + +SetCost sets Cost field to given value. + + +### GetName + +`func (o *QuotaRules) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *QuotaRules) 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 *QuotaRules) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *QuotaRules) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProduct + +`func (o *QuotaRules) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *QuotaRules) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *QuotaRules) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *QuotaRules) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *QuotaRules) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *QuotaRules) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *QuotaRules) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + +### HasQuotaId + +`func (o *QuotaRules) HasQuotaId() bool` + +HasQuotaId returns a boolean if a field has been set. + +### GetType + +`func (o *QuotaRules) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *QuotaRules) GetTypeOk() (*string, 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 *QuotaRules) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *QuotaRules) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesAllOf.md new file mode 100644 index 00000000..29c0e061 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesAllOf.md @@ -0,0 +1,259 @@ +# QuotaRulesAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZone** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | Pointer to **string** | | [optional] +**Cloud** | Pointer to **string** | | [optional] +**Cost** | **int32** | | +**Name** | Pointer to **string** | | [optional] +**Product** | Pointer to **string** | | [optional] +**QuotaId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewQuotaRulesAllOf + +`func NewQuotaRulesAllOf(cost int32, ) *QuotaRulesAllOf` + +NewQuotaRulesAllOf instantiates a new QuotaRulesAllOf 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 + +### NewQuotaRulesAllOfWithDefaults + +`func NewQuotaRulesAllOfWithDefaults() *QuotaRulesAllOf` + +NewQuotaRulesAllOfWithDefaults instantiates a new QuotaRulesAllOf 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 + +### GetAvailabilityZone + +`func (o *QuotaRulesAllOf) GetAvailabilityZone() string` + +GetAvailabilityZone returns the AvailabilityZone field if non-nil, zero value otherwise. + +### GetAvailabilityZoneOk + +`func (o *QuotaRulesAllOf) GetAvailabilityZoneOk() (*string, bool)` + +GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZone + +`func (o *QuotaRulesAllOf) SetAvailabilityZone(v string)` + +SetAvailabilityZone sets AvailabilityZone field to given value. + +### HasAvailabilityZone + +`func (o *QuotaRulesAllOf) HasAvailabilityZone() bool` + +HasAvailabilityZone returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *QuotaRulesAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *QuotaRulesAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *QuotaRulesAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *QuotaRulesAllOf) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *QuotaRulesAllOf) GetByoc() string` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *QuotaRulesAllOf) GetByocOk() (*string, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *QuotaRulesAllOf) SetByoc(v string)` + +SetByoc sets Byoc field to given value. + +### HasByoc + +`func (o *QuotaRulesAllOf) HasByoc() bool` + +HasByoc returns a boolean if a field has been set. + +### GetCloud + +`func (o *QuotaRulesAllOf) GetCloud() string` + +GetCloud returns the Cloud field if non-nil, zero value otherwise. + +### GetCloudOk + +`func (o *QuotaRulesAllOf) GetCloudOk() (*string, bool)` + +GetCloudOk returns a tuple with the Cloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloud + +`func (o *QuotaRulesAllOf) SetCloud(v string)` + +SetCloud sets Cloud field to given value. + +### HasCloud + +`func (o *QuotaRulesAllOf) HasCloud() bool` + +HasCloud returns a boolean if a field has been set. + +### GetCost + +`func (o *QuotaRulesAllOf) GetCost() int32` + +GetCost returns the Cost field if non-nil, zero value otherwise. + +### GetCostOk + +`func (o *QuotaRulesAllOf) GetCostOk() (*int32, bool)` + +GetCostOk returns a tuple with the Cost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCost + +`func (o *QuotaRulesAllOf) SetCost(v int32)` + +SetCost sets Cost field to given value. + + +### GetName + +`func (o *QuotaRulesAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *QuotaRulesAllOf) 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 *QuotaRulesAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *QuotaRulesAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProduct + +`func (o *QuotaRulesAllOf) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *QuotaRulesAllOf) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *QuotaRulesAllOf) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *QuotaRulesAllOf) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *QuotaRulesAllOf) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *QuotaRulesAllOf) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *QuotaRulesAllOf) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + +### HasQuotaId + +`func (o *QuotaRulesAllOf) HasQuotaId() bool` + +HasQuotaId returns a boolean if a field has been set. + +### GetType + +`func (o *QuotaRulesAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *QuotaRulesAllOf) GetTypeOk() (*string, 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 *QuotaRulesAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *QuotaRulesAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesList.md new file mode 100644 index 00000000..ac38256d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesList.md @@ -0,0 +1,135 @@ +# QuotaRulesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]QuotaRules**](QuotaRules.md) | | + +## Methods + +### NewQuotaRulesList + +`func NewQuotaRulesList(kind string, page int32, size int32, total int32, items []QuotaRules, ) *QuotaRulesList` + +NewQuotaRulesList instantiates a new QuotaRulesList 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 + +### NewQuotaRulesListWithDefaults + +`func NewQuotaRulesListWithDefaults() *QuotaRulesList` + +NewQuotaRulesListWithDefaults instantiates a new QuotaRulesList 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 + +### GetKind + +`func (o *QuotaRulesList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *QuotaRulesList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *QuotaRulesList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *QuotaRulesList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *QuotaRulesList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *QuotaRulesList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *QuotaRulesList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *QuotaRulesList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *QuotaRulesList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *QuotaRulesList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *QuotaRulesList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *QuotaRulesList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *QuotaRulesList) GetItems() []QuotaRules` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaRulesList) GetItemsOk() (*[]QuotaRules, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaRulesList) SetItems(v []QuotaRules)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesListAllOf.md new file mode 100644 index 00000000..a2800876 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/QuotaRulesListAllOf.md @@ -0,0 +1,56 @@ +# QuotaRulesListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]QuotaRules**](QuotaRules.md) | | [optional] + +## Methods + +### NewQuotaRulesListAllOf + +`func NewQuotaRulesListAllOf() *QuotaRulesListAllOf` + +NewQuotaRulesListAllOf instantiates a new QuotaRulesListAllOf 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 + +### NewQuotaRulesListAllOfWithDefaults + +`func NewQuotaRulesListAllOfWithDefaults() *QuotaRulesListAllOf` + +NewQuotaRulesListAllOfWithDefaults instantiates a new QuotaRulesListAllOf 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 + +### GetItems + +`func (o *QuotaRulesListAllOf) GetItems() []QuotaRules` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *QuotaRulesListAllOf) GetItemsOk() (*[]QuotaRules, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *QuotaRulesListAllOf) SetItems(v []QuotaRules)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *QuotaRulesListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Registry.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Registry.md new file mode 100644 index 00000000..322b0d0b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Registry.md @@ -0,0 +1,316 @@ +# Registry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**CloudAlias** | Pointer to **bool** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Name** | Pointer to **string** | | [optional] +**OrgName** | Pointer to **string** | | [optional] +**TeamName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistry + +`func NewRegistry() *Registry` + +NewRegistry instantiates a new Registry 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 + +### NewRegistryWithDefaults + +`func NewRegistryWithDefaults() *Registry` + +NewRegistryWithDefaults instantiates a new Registry 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 + +### GetHref + +`func (o *Registry) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Registry) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Registry) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Registry) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Registry) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Registry) 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 *Registry) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Registry) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Registry) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Registry) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Registry) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Registry) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCloudAlias + +`func (o *Registry) GetCloudAlias() bool` + +GetCloudAlias returns the CloudAlias field if non-nil, zero value otherwise. + +### GetCloudAliasOk + +`func (o *Registry) GetCloudAliasOk() (*bool, bool)` + +GetCloudAliasOk returns a tuple with the CloudAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAlias + +`func (o *Registry) SetCloudAlias(v bool)` + +SetCloudAlias sets CloudAlias field to given value. + +### HasCloudAlias + +`func (o *Registry) HasCloudAlias() bool` + +HasCloudAlias returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Registry) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Registry) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Registry) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Registry) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetName + +`func (o *Registry) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Registry) 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 *Registry) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Registry) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOrgName + +`func (o *Registry) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *Registry) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *Registry) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *Registry) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetTeamName + +`func (o *Registry) GetTeamName() string` + +GetTeamName returns the TeamName field if non-nil, zero value otherwise. + +### GetTeamNameOk + +`func (o *Registry) GetTeamNameOk() (*string, bool)` + +GetTeamNameOk returns a tuple with the TeamName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamName + +`func (o *Registry) SetTeamName(v string)` + +SetTeamName sets TeamName field to given value. + +### HasTeamName + +`func (o *Registry) HasTeamName() bool` + +HasTeamName returns a boolean if a field has been set. + +### GetType + +`func (o *Registry) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Registry) GetTypeOk() (*string, 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 *Registry) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Registry) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Registry) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Registry) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Registry) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Registry) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUrl + +`func (o *Registry) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Registry) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Registry) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *Registry) HasUrl() bool` + +HasUrl 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryAllOf.md new file mode 100644 index 00000000..319b828a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryAllOf.md @@ -0,0 +1,238 @@ +# RegistryAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudAlias** | Pointer to **bool** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Name** | Pointer to **string** | | [optional] +**OrgName** | Pointer to **string** | | [optional] +**TeamName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistryAllOf + +`func NewRegistryAllOf() *RegistryAllOf` + +NewRegistryAllOf instantiates a new RegistryAllOf 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 + +### NewRegistryAllOfWithDefaults + +`func NewRegistryAllOfWithDefaults() *RegistryAllOf` + +NewRegistryAllOfWithDefaults instantiates a new RegistryAllOf 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 + +### GetCloudAlias + +`func (o *RegistryAllOf) GetCloudAlias() bool` + +GetCloudAlias returns the CloudAlias field if non-nil, zero value otherwise. + +### GetCloudAliasOk + +`func (o *RegistryAllOf) GetCloudAliasOk() (*bool, bool)` + +GetCloudAliasOk returns a tuple with the CloudAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAlias + +`func (o *RegistryAllOf) SetCloudAlias(v bool)` + +SetCloudAlias sets CloudAlias field to given value. + +### HasCloudAlias + +`func (o *RegistryAllOf) HasCloudAlias() bool` + +HasCloudAlias returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RegistryAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RegistryAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RegistryAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *RegistryAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetName + +`func (o *RegistryAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RegistryAllOf) 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 *RegistryAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RegistryAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOrgName + +`func (o *RegistryAllOf) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *RegistryAllOf) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *RegistryAllOf) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *RegistryAllOf) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetTeamName + +`func (o *RegistryAllOf) GetTeamName() string` + +GetTeamName returns the TeamName field if non-nil, zero value otherwise. + +### GetTeamNameOk + +`func (o *RegistryAllOf) GetTeamNameOk() (*string, bool)` + +GetTeamNameOk returns a tuple with the TeamName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamName + +`func (o *RegistryAllOf) SetTeamName(v string)` + +SetTeamName sets TeamName field to given value. + +### HasTeamName + +`func (o *RegistryAllOf) HasTeamName() bool` + +HasTeamName returns a boolean if a field has been set. + +### GetType + +`func (o *RegistryAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RegistryAllOf) GetTypeOk() (*string, 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 *RegistryAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RegistryAllOf) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *RegistryAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RegistryAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RegistryAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *RegistryAllOf) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUrl + +`func (o *RegistryAllOf) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RegistryAllOf) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *RegistryAllOf) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *RegistryAllOf) HasUrl() bool` + +HasUrl 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCreateRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCreateRequest.md new file mode 100644 index 00000000..f4f20329 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCreateRequest.md @@ -0,0 +1,171 @@ +# RegistryCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudAlias** | Pointer to **bool** | | [optional] +**Name** | **string** | | +**OrgName** | Pointer to **string** | | [optional] +**TeamName** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Url** | **string** | | + +## Methods + +### NewRegistryCreateRequest + +`func NewRegistryCreateRequest(name string, type_ string, url string, ) *RegistryCreateRequest` + +NewRegistryCreateRequest instantiates a new RegistryCreateRequest 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 + +### NewRegistryCreateRequestWithDefaults + +`func NewRegistryCreateRequestWithDefaults() *RegistryCreateRequest` + +NewRegistryCreateRequestWithDefaults instantiates a new RegistryCreateRequest 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 + +### GetCloudAlias + +`func (o *RegistryCreateRequest) GetCloudAlias() bool` + +GetCloudAlias returns the CloudAlias field if non-nil, zero value otherwise. + +### GetCloudAliasOk + +`func (o *RegistryCreateRequest) GetCloudAliasOk() (*bool, bool)` + +GetCloudAliasOk returns a tuple with the CloudAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAlias + +`func (o *RegistryCreateRequest) SetCloudAlias(v bool)` + +SetCloudAlias sets CloudAlias field to given value. + +### HasCloudAlias + +`func (o *RegistryCreateRequest) HasCloudAlias() bool` + +HasCloudAlias returns a boolean if a field has been set. + +### GetName + +`func (o *RegistryCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RegistryCreateRequest) 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 *RegistryCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrgName + +`func (o *RegistryCreateRequest) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *RegistryCreateRequest) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *RegistryCreateRequest) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *RegistryCreateRequest) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetTeamName + +`func (o *RegistryCreateRequest) GetTeamName() string` + +GetTeamName returns the TeamName field if non-nil, zero value otherwise. + +### GetTeamNameOk + +`func (o *RegistryCreateRequest) GetTeamNameOk() (*string, bool)` + +GetTeamNameOk returns a tuple with the TeamName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamName + +`func (o *RegistryCreateRequest) SetTeamName(v string)` + +SetTeamName sets TeamName field to given value. + +### HasTeamName + +`func (o *RegistryCreateRequest) HasTeamName() bool` + +HasTeamName returns a boolean if a field has been set. + +### GetType + +`func (o *RegistryCreateRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RegistryCreateRequest) GetTypeOk() (*string, 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 *RegistryCreateRequest) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUrl + +`func (o *RegistryCreateRequest) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RegistryCreateRequest) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *RegistryCreateRequest) SetUrl(v string)` + +SetUrl sets Url 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredential.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredential.md new file mode 100644 index 00000000..9c1580e3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredential.md @@ -0,0 +1,290 @@ +# RegistryCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Account** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExternalResourceId** | Pointer to **string** | | [optional] +**Registry** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Token** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistryCredential + +`func NewRegistryCredential() *RegistryCredential` + +NewRegistryCredential instantiates a new RegistryCredential 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 + +### NewRegistryCredentialWithDefaults + +`func NewRegistryCredentialWithDefaults() *RegistryCredential` + +NewRegistryCredentialWithDefaults instantiates a new RegistryCredential 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 + +### GetHref + +`func (o *RegistryCredential) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *RegistryCredential) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *RegistryCredential) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *RegistryCredential) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *RegistryCredential) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RegistryCredential) 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 *RegistryCredential) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RegistryCredential) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *RegistryCredential) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RegistryCredential) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RegistryCredential) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *RegistryCredential) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAccount + +`func (o *RegistryCredential) GetAccount() ObjectReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *RegistryCredential) GetAccountOk() (*ObjectReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *RegistryCredential) SetAccount(v ObjectReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *RegistryCredential) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RegistryCredential) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RegistryCredential) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RegistryCredential) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *RegistryCredential) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExternalResourceId + +`func (o *RegistryCredential) GetExternalResourceId() string` + +GetExternalResourceId returns the ExternalResourceId field if non-nil, zero value otherwise. + +### GetExternalResourceIdOk + +`func (o *RegistryCredential) GetExternalResourceIdOk() (*string, bool)` + +GetExternalResourceIdOk returns a tuple with the ExternalResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalResourceId + +`func (o *RegistryCredential) SetExternalResourceId(v string)` + +SetExternalResourceId sets ExternalResourceId field to given value. + +### HasExternalResourceId + +`func (o *RegistryCredential) HasExternalResourceId() bool` + +HasExternalResourceId returns a boolean if a field has been set. + +### GetRegistry + +`func (o *RegistryCredential) GetRegistry() ObjectReference` + +GetRegistry returns the Registry field if non-nil, zero value otherwise. + +### GetRegistryOk + +`func (o *RegistryCredential) GetRegistryOk() (*ObjectReference, bool)` + +GetRegistryOk returns a tuple with the Registry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistry + +`func (o *RegistryCredential) SetRegistry(v ObjectReference)` + +SetRegistry sets Registry field to given value. + +### HasRegistry + +`func (o *RegistryCredential) HasRegistry() bool` + +HasRegistry returns a boolean if a field has been set. + +### GetToken + +`func (o *RegistryCredential) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *RegistryCredential) 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 *RegistryCredential) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *RegistryCredential) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *RegistryCredential) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RegistryCredential) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RegistryCredential) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *RegistryCredential) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUsername + +`func (o *RegistryCredential) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RegistryCredential) 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 *RegistryCredential) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RegistryCredential) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialAllOf.md new file mode 100644 index 00000000..8dbfd865 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialAllOf.md @@ -0,0 +1,212 @@ +# RegistryCredentialAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Account** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExternalResourceId** | Pointer to **string** | | [optional] +**Registry** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Token** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistryCredentialAllOf + +`func NewRegistryCredentialAllOf() *RegistryCredentialAllOf` + +NewRegistryCredentialAllOf instantiates a new RegistryCredentialAllOf 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 + +### NewRegistryCredentialAllOfWithDefaults + +`func NewRegistryCredentialAllOfWithDefaults() *RegistryCredentialAllOf` + +NewRegistryCredentialAllOfWithDefaults instantiates a new RegistryCredentialAllOf 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 + +### GetAccount + +`func (o *RegistryCredentialAllOf) GetAccount() ObjectReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *RegistryCredentialAllOf) GetAccountOk() (*ObjectReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *RegistryCredentialAllOf) SetAccount(v ObjectReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *RegistryCredentialAllOf) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RegistryCredentialAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RegistryCredentialAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RegistryCredentialAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *RegistryCredentialAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExternalResourceId + +`func (o *RegistryCredentialAllOf) GetExternalResourceId() string` + +GetExternalResourceId returns the ExternalResourceId field if non-nil, zero value otherwise. + +### GetExternalResourceIdOk + +`func (o *RegistryCredentialAllOf) GetExternalResourceIdOk() (*string, bool)` + +GetExternalResourceIdOk returns a tuple with the ExternalResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalResourceId + +`func (o *RegistryCredentialAllOf) SetExternalResourceId(v string)` + +SetExternalResourceId sets ExternalResourceId field to given value. + +### HasExternalResourceId + +`func (o *RegistryCredentialAllOf) HasExternalResourceId() bool` + +HasExternalResourceId returns a boolean if a field has been set. + +### GetRegistry + +`func (o *RegistryCredentialAllOf) GetRegistry() ObjectReference` + +GetRegistry returns the Registry field if non-nil, zero value otherwise. + +### GetRegistryOk + +`func (o *RegistryCredentialAllOf) GetRegistryOk() (*ObjectReference, bool)` + +GetRegistryOk returns a tuple with the Registry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistry + +`func (o *RegistryCredentialAllOf) SetRegistry(v ObjectReference)` + +SetRegistry sets Registry field to given value. + +### HasRegistry + +`func (o *RegistryCredentialAllOf) HasRegistry() bool` + +HasRegistry returns a boolean if a field has been set. + +### GetToken + +`func (o *RegistryCredentialAllOf) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *RegistryCredentialAllOf) 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 *RegistryCredentialAllOf) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *RegistryCredentialAllOf) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *RegistryCredentialAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RegistryCredentialAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RegistryCredentialAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *RegistryCredentialAllOf) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUsername + +`func (o *RegistryCredentialAllOf) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RegistryCredentialAllOf) 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 *RegistryCredentialAllOf) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RegistryCredentialAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialList.md new file mode 100644 index 00000000..3308c06b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialList.md @@ -0,0 +1,135 @@ +# RegistryCredentialList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]RegistryCredential**](RegistryCredential.md) | | + +## Methods + +### NewRegistryCredentialList + +`func NewRegistryCredentialList(kind string, page int32, size int32, total int32, items []RegistryCredential, ) *RegistryCredentialList` + +NewRegistryCredentialList instantiates a new RegistryCredentialList 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 + +### NewRegistryCredentialListWithDefaults + +`func NewRegistryCredentialListWithDefaults() *RegistryCredentialList` + +NewRegistryCredentialListWithDefaults instantiates a new RegistryCredentialList 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 + +### GetKind + +`func (o *RegistryCredentialList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RegistryCredentialList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RegistryCredentialList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *RegistryCredentialList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RegistryCredentialList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RegistryCredentialList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *RegistryCredentialList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RegistryCredentialList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RegistryCredentialList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *RegistryCredentialList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RegistryCredentialList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RegistryCredentialList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *RegistryCredentialList) GetItems() []RegistryCredential` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryCredentialList) GetItemsOk() (*[]RegistryCredential, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryCredentialList) SetItems(v []RegistryCredential)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialListAllOf.md new file mode 100644 index 00000000..612ce5a0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialListAllOf.md @@ -0,0 +1,56 @@ +# RegistryCredentialListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]RegistryCredential**](RegistryCredential.md) | | [optional] + +## Methods + +### NewRegistryCredentialListAllOf + +`func NewRegistryCredentialListAllOf() *RegistryCredentialListAllOf` + +NewRegistryCredentialListAllOf instantiates a new RegistryCredentialListAllOf 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 + +### NewRegistryCredentialListAllOfWithDefaults + +`func NewRegistryCredentialListAllOfWithDefaults() *RegistryCredentialListAllOf` + +NewRegistryCredentialListAllOfWithDefaults instantiates a new RegistryCredentialListAllOf 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 + +### GetItems + +`func (o *RegistryCredentialListAllOf) GetItems() []RegistryCredential` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryCredentialListAllOf) GetItemsOk() (*[]RegistryCredential, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryCredentialListAllOf) SetItems(v []RegistryCredential)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *RegistryCredentialListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialPatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialPatchRequest.md new file mode 100644 index 00000000..8aadc31b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryCredentialPatchRequest.md @@ -0,0 +1,160 @@ +# RegistryCredentialPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | Pointer to **string** | | [optional] +**ExternalResourceId** | Pointer to **string** | | [optional] +**RegistryId** | Pointer to **string** | | [optional] +**Token** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistryCredentialPatchRequest + +`func NewRegistryCredentialPatchRequest() *RegistryCredentialPatchRequest` + +NewRegistryCredentialPatchRequest instantiates a new RegistryCredentialPatchRequest 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 + +### NewRegistryCredentialPatchRequestWithDefaults + +`func NewRegistryCredentialPatchRequestWithDefaults() *RegistryCredentialPatchRequest` + +NewRegistryCredentialPatchRequestWithDefaults instantiates a new RegistryCredentialPatchRequest 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 + +### GetAccountId + +`func (o *RegistryCredentialPatchRequest) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RegistryCredentialPatchRequest) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RegistryCredentialPatchRequest) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *RegistryCredentialPatchRequest) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetExternalResourceId + +`func (o *RegistryCredentialPatchRequest) GetExternalResourceId() string` + +GetExternalResourceId returns the ExternalResourceId field if non-nil, zero value otherwise. + +### GetExternalResourceIdOk + +`func (o *RegistryCredentialPatchRequest) GetExternalResourceIdOk() (*string, bool)` + +GetExternalResourceIdOk returns a tuple with the ExternalResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalResourceId + +`func (o *RegistryCredentialPatchRequest) SetExternalResourceId(v string)` + +SetExternalResourceId sets ExternalResourceId field to given value. + +### HasExternalResourceId + +`func (o *RegistryCredentialPatchRequest) HasExternalResourceId() bool` + +HasExternalResourceId returns a boolean if a field has been set. + +### GetRegistryId + +`func (o *RegistryCredentialPatchRequest) GetRegistryId() string` + +GetRegistryId returns the RegistryId field if non-nil, zero value otherwise. + +### GetRegistryIdOk + +`func (o *RegistryCredentialPatchRequest) GetRegistryIdOk() (*string, bool)` + +GetRegistryIdOk returns a tuple with the RegistryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistryId + +`func (o *RegistryCredentialPatchRequest) SetRegistryId(v string)` + +SetRegistryId sets RegistryId field to given value. + +### HasRegistryId + +`func (o *RegistryCredentialPatchRequest) HasRegistryId() bool` + +HasRegistryId returns a boolean if a field has been set. + +### GetToken + +`func (o *RegistryCredentialPatchRequest) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *RegistryCredentialPatchRequest) 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 *RegistryCredentialPatchRequest) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *RegistryCredentialPatchRequest) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetUsername + +`func (o *RegistryCredentialPatchRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *RegistryCredentialPatchRequest) 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 *RegistryCredentialPatchRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *RegistryCredentialPatchRequest) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryList.md new file mode 100644 index 00000000..45db502c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryList.md @@ -0,0 +1,135 @@ +# RegistryList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Registry**](Registry.md) | | + +## Methods + +### NewRegistryList + +`func NewRegistryList(kind string, page int32, size int32, total int32, items []Registry, ) *RegistryList` + +NewRegistryList instantiates a new RegistryList 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 + +### NewRegistryListWithDefaults + +`func NewRegistryListWithDefaults() *RegistryList` + +NewRegistryListWithDefaults instantiates a new RegistryList 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 + +### GetKind + +`func (o *RegistryList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RegistryList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RegistryList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *RegistryList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RegistryList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RegistryList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *RegistryList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RegistryList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RegistryList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *RegistryList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RegistryList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RegistryList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *RegistryList) GetItems() []Registry` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryList) GetItemsOk() (*[]Registry, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryList) SetItems(v []Registry)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryListAllOf.md new file mode 100644 index 00000000..5d7f1466 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryListAllOf.md @@ -0,0 +1,56 @@ +# RegistryListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Registry**](Registry.md) | | [optional] + +## Methods + +### NewRegistryListAllOf + +`func NewRegistryListAllOf() *RegistryListAllOf` + +NewRegistryListAllOf instantiates a new RegistryListAllOf 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 + +### NewRegistryListAllOfWithDefaults + +`func NewRegistryListAllOfWithDefaults() *RegistryListAllOf` + +NewRegistryListAllOfWithDefaults instantiates a new RegistryListAllOf 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 + +### GetItems + +`func (o *RegistryListAllOf) GetItems() []Registry` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryListAllOf) GetItemsOk() (*[]Registry, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryListAllOf) SetItems(v []Registry)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *RegistryListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryRequest.md new file mode 100644 index 00000000..a85aad85 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RegistryRequest.md @@ -0,0 +1,186 @@ +# RegistryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudAlias** | Pointer to **bool** | | [optional] +**Name** | Pointer to **string** | | [optional] +**OrgName** | Pointer to **string** | | [optional] +**TeamName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewRegistryRequest + +`func NewRegistryRequest() *RegistryRequest` + +NewRegistryRequest instantiates a new RegistryRequest 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 + +### NewRegistryRequestWithDefaults + +`func NewRegistryRequestWithDefaults() *RegistryRequest` + +NewRegistryRequestWithDefaults instantiates a new RegistryRequest 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 + +### GetCloudAlias + +`func (o *RegistryRequest) GetCloudAlias() bool` + +GetCloudAlias returns the CloudAlias field if non-nil, zero value otherwise. + +### GetCloudAliasOk + +`func (o *RegistryRequest) GetCloudAliasOk() (*bool, bool)` + +GetCloudAliasOk returns a tuple with the CloudAlias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAlias + +`func (o *RegistryRequest) SetCloudAlias(v bool)` + +SetCloudAlias sets CloudAlias field to given value. + +### HasCloudAlias + +`func (o *RegistryRequest) HasCloudAlias() bool` + +HasCloudAlias returns a boolean if a field has been set. + +### GetName + +`func (o *RegistryRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RegistryRequest) 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 *RegistryRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RegistryRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOrgName + +`func (o *RegistryRequest) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *RegistryRequest) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *RegistryRequest) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *RegistryRequest) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetTeamName + +`func (o *RegistryRequest) GetTeamName() string` + +GetTeamName returns the TeamName field if non-nil, zero value otherwise. + +### GetTeamNameOk + +`func (o *RegistryRequest) GetTeamNameOk() (*string, bool)` + +GetTeamNameOk returns a tuple with the TeamName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamName + +`func (o *RegistryRequest) SetTeamName(v string)` + +SetTeamName sets TeamName field to given value. + +### HasTeamName + +`func (o *RegistryRequest) HasTeamName() bool` + +HasTeamName returns a boolean if a field has been set. + +### GetType + +`func (o *RegistryRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RegistryRequest) GetTypeOk() (*string, 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 *RegistryRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RegistryRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUrl + +`func (o *RegistryRequest) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RegistryRequest) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *RegistryRequest) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *RegistryRequest) HasUrl() bool` + +HasUrl 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResource.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResource.md new file mode 100644 index 00000000..24fa08fd --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResource.md @@ -0,0 +1,307 @@ +# RelatedResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AvailabilityZoneType** | **string** | | +**BillingModel** | **string** | | +**Byoc** | **string** | | +**CloudProvider** | **string** | | +**Cost** | **int32** | | +**Product** | **string** | | +**ProductId** | Pointer to **string** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | **string** | | + +## Methods + +### NewRelatedResource + +`func NewRelatedResource(availabilityZoneType string, billingModel string, byoc string, cloudProvider string, cost int32, product string, resourceType string, ) *RelatedResource` + +NewRelatedResource instantiates a new RelatedResource 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 + +### NewRelatedResourceWithDefaults + +`func NewRelatedResourceWithDefaults() *RelatedResource` + +NewRelatedResourceWithDefaults instantiates a new RelatedResource 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 + +### GetHref + +`func (o *RelatedResource) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *RelatedResource) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *RelatedResource) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *RelatedResource) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *RelatedResource) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RelatedResource) 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 *RelatedResource) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RelatedResource) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *RelatedResource) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RelatedResource) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RelatedResource) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *RelatedResource) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAvailabilityZoneType + +`func (o *RelatedResource) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *RelatedResource) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *RelatedResource) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + + +### GetBillingModel + +`func (o *RelatedResource) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *RelatedResource) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *RelatedResource) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + + +### GetByoc + +`func (o *RelatedResource) GetByoc() string` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *RelatedResource) GetByocOk() (*string, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *RelatedResource) SetByoc(v string)` + +SetByoc sets Byoc field to given value. + + +### GetCloudProvider + +`func (o *RelatedResource) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *RelatedResource) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *RelatedResource) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + + +### GetCost + +`func (o *RelatedResource) GetCost() int32` + +GetCost returns the Cost field if non-nil, zero value otherwise. + +### GetCostOk + +`func (o *RelatedResource) GetCostOk() (*int32, bool)` + +GetCostOk returns a tuple with the Cost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCost + +`func (o *RelatedResource) SetCost(v int32)` + +SetCost sets Cost field to given value. + + +### GetProduct + +`func (o *RelatedResource) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *RelatedResource) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *RelatedResource) SetProduct(v string)` + +SetProduct sets Product field to given value. + + +### GetProductId + +`func (o *RelatedResource) GetProductId() string` + +GetProductId returns the ProductId field if non-nil, zero value otherwise. + +### GetProductIdOk + +`func (o *RelatedResource) GetProductIdOk() (*string, bool)` + +GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductId + +`func (o *RelatedResource) SetProductId(v string)` + +SetProductId sets ProductId field to given value. + +### HasProductId + +`func (o *RelatedResource) HasProductId() bool` + +HasProductId returns a boolean if a field has been set. + +### GetResourceName + +`func (o *RelatedResource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *RelatedResource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *RelatedResource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *RelatedResource) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *RelatedResource) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *RelatedResource) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *RelatedResource) SetResourceType(v string)` + +SetResourceType sets ResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResourceAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResourceAllOf.md new file mode 100644 index 00000000..76b93034 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RelatedResourceAllOf.md @@ -0,0 +1,229 @@ +# RelatedResourceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZoneType** | **string** | | +**BillingModel** | **string** | | +**Byoc** | **string** | | +**CloudProvider** | **string** | | +**Cost** | **int32** | | +**Product** | **string** | | +**ProductId** | Pointer to **string** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | **string** | | + +## Methods + +### NewRelatedResourceAllOf + +`func NewRelatedResourceAllOf(availabilityZoneType string, billingModel string, byoc string, cloudProvider string, cost int32, product string, resourceType string, ) *RelatedResourceAllOf` + +NewRelatedResourceAllOf instantiates a new RelatedResourceAllOf 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 + +### NewRelatedResourceAllOfWithDefaults + +`func NewRelatedResourceAllOfWithDefaults() *RelatedResourceAllOf` + +NewRelatedResourceAllOfWithDefaults instantiates a new RelatedResourceAllOf 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 + +### GetAvailabilityZoneType + +`func (o *RelatedResourceAllOf) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *RelatedResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *RelatedResourceAllOf) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + + +### GetBillingModel + +`func (o *RelatedResourceAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *RelatedResourceAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *RelatedResourceAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + + +### GetByoc + +`func (o *RelatedResourceAllOf) GetByoc() string` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *RelatedResourceAllOf) GetByocOk() (*string, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *RelatedResourceAllOf) SetByoc(v string)` + +SetByoc sets Byoc field to given value. + + +### GetCloudProvider + +`func (o *RelatedResourceAllOf) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *RelatedResourceAllOf) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *RelatedResourceAllOf) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + + +### GetCost + +`func (o *RelatedResourceAllOf) GetCost() int32` + +GetCost returns the Cost field if non-nil, zero value otherwise. + +### GetCostOk + +`func (o *RelatedResourceAllOf) GetCostOk() (*int32, bool)` + +GetCostOk returns a tuple with the Cost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCost + +`func (o *RelatedResourceAllOf) SetCost(v int32)` + +SetCost sets Cost field to given value. + + +### GetProduct + +`func (o *RelatedResourceAllOf) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *RelatedResourceAllOf) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *RelatedResourceAllOf) SetProduct(v string)` + +SetProduct sets Product field to given value. + + +### GetProductId + +`func (o *RelatedResourceAllOf) GetProductId() string` + +GetProductId returns the ProductId field if non-nil, zero value otherwise. + +### GetProductIdOk + +`func (o *RelatedResourceAllOf) GetProductIdOk() (*string, bool)` + +GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductId + +`func (o *RelatedResourceAllOf) SetProductId(v string)` + +SetProductId sets ProductId field to given value. + +### HasProductId + +`func (o *RelatedResourceAllOf) HasProductId() bool` + +HasProductId returns a boolean if a field has been set. + +### GetResourceName + +`func (o *RelatedResourceAllOf) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *RelatedResourceAllOf) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *RelatedResourceAllOf) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *RelatedResourceAllOf) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *RelatedResourceAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *RelatedResourceAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *RelatedResourceAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResource.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResource.md new file mode 100644 index 00000000..027aec82 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResource.md @@ -0,0 +1,389 @@ +# ReservedResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**Cluster** | Pointer to **bool** | | [optional] +**Count** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewReservedResource + +`func NewReservedResource(byoc bool, ) *ReservedResource` + +NewReservedResource instantiates a new ReservedResource 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 + +### NewReservedResourceWithDefaults + +`func NewReservedResourceWithDefaults() *ReservedResource` + +NewReservedResourceWithDefaults instantiates a new ReservedResource 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 + +### GetHref + +`func (o *ReservedResource) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ReservedResource) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ReservedResource) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ReservedResource) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ReservedResource) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReservedResource) 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 *ReservedResource) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ReservedResource) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ReservedResource) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ReservedResource) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ReservedResource) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ReservedResource) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAvailabilityZoneType + +`func (o *ReservedResource) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ReservedResource) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ReservedResource) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ReservedResource) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *ReservedResource) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *ReservedResource) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *ReservedResource) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *ReservedResource) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ReservedResource) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ReservedResource) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ReservedResource) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ReservedResource) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ReservedResource) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ReservedResource) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ReservedResource) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCluster + +`func (o *ReservedResource) GetCluster() bool` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ReservedResource) GetClusterOk() (*bool, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ReservedResource) SetCluster(v bool)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *ReservedResource) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCount + +`func (o *ReservedResource) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ReservedResource) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ReservedResource) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ReservedResource) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ReservedResource) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ReservedResource) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ReservedResource) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ReservedResource) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ReservedResource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ReservedResource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ReservedResource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ReservedResource) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ReservedResource) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ReservedResource) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ReservedResource) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ReservedResource) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSubscription + +`func (o *ReservedResource) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *ReservedResource) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *ReservedResource) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *ReservedResource) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ReservedResource) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ReservedResource) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ReservedResource) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ReservedResource) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceAllOf.md new file mode 100644 index 00000000..4b1bded4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceAllOf.md @@ -0,0 +1,311 @@ +# ReservedResourceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityZoneType** | Pointer to **string** | | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] +**Byoc** | **bool** | | +**Cluster** | Pointer to **bool** | | [optional] +**Count** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ResourceName** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewReservedResourceAllOf + +`func NewReservedResourceAllOf(byoc bool, ) *ReservedResourceAllOf` + +NewReservedResourceAllOf instantiates a new ReservedResourceAllOf 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 + +### NewReservedResourceAllOfWithDefaults + +`func NewReservedResourceAllOfWithDefaults() *ReservedResourceAllOf` + +NewReservedResourceAllOfWithDefaults instantiates a new ReservedResourceAllOf 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 + +### GetAvailabilityZoneType + +`func (o *ReservedResourceAllOf) GetAvailabilityZoneType() string` + +GetAvailabilityZoneType returns the AvailabilityZoneType field if non-nil, zero value otherwise. + +### GetAvailabilityZoneTypeOk + +`func (o *ReservedResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool)` + +GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityZoneType + +`func (o *ReservedResourceAllOf) SetAvailabilityZoneType(v string)` + +SetAvailabilityZoneType sets AvailabilityZoneType field to given value. + +### HasAvailabilityZoneType + +`func (o *ReservedResourceAllOf) HasAvailabilityZoneType() bool` + +HasAvailabilityZoneType returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *ReservedResourceAllOf) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *ReservedResourceAllOf) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *ReservedResourceAllOf) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *ReservedResourceAllOf) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *ReservedResourceAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ReservedResourceAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ReservedResourceAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ReservedResourceAllOf) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### GetByoc + +`func (o *ReservedResourceAllOf) GetByoc() bool` + +GetByoc returns the Byoc field if non-nil, zero value otherwise. + +### GetByocOk + +`func (o *ReservedResourceAllOf) GetByocOk() (*bool, bool)` + +GetByocOk returns a tuple with the Byoc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetByoc + +`func (o *ReservedResourceAllOf) SetByoc(v bool)` + +SetByoc sets Byoc field to given value. + + +### GetCluster + +`func (o *ReservedResourceAllOf) GetCluster() bool` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ReservedResourceAllOf) GetClusterOk() (*bool, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ReservedResourceAllOf) SetCluster(v bool)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *ReservedResourceAllOf) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetCount + +`func (o *ReservedResourceAllOf) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ReservedResourceAllOf) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ReservedResourceAllOf) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ReservedResourceAllOf) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ReservedResourceAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ReservedResourceAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ReservedResourceAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ReservedResourceAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetResourceName + +`func (o *ReservedResourceAllOf) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ReservedResourceAllOf) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ReservedResourceAllOf) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ReservedResourceAllOf) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ReservedResourceAllOf) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ReservedResourceAllOf) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ReservedResourceAllOf) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ReservedResourceAllOf) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### GetSubscription + +`func (o *ReservedResourceAllOf) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *ReservedResourceAllOf) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *ReservedResourceAllOf) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *ReservedResourceAllOf) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ReservedResourceAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ReservedResourceAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ReservedResourceAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ReservedResourceAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceList.md new file mode 100644 index 00000000..49811710 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceList.md @@ -0,0 +1,135 @@ +# ReservedResourceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ReservedResource**](ReservedResource.md) | | + +## Methods + +### NewReservedResourceList + +`func NewReservedResourceList(kind string, page int32, size int32, total int32, items []ReservedResource, ) *ReservedResourceList` + +NewReservedResourceList instantiates a new ReservedResourceList 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 + +### NewReservedResourceListWithDefaults + +`func NewReservedResourceListWithDefaults() *ReservedResourceList` + +NewReservedResourceListWithDefaults instantiates a new ReservedResourceList 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 + +### GetKind + +`func (o *ReservedResourceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ReservedResourceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ReservedResourceList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ReservedResourceList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ReservedResourceList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ReservedResourceList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ReservedResourceList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ReservedResourceList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ReservedResourceList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ReservedResourceList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ReservedResourceList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ReservedResourceList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ReservedResourceList) GetItems() []ReservedResource` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ReservedResourceList) GetItemsOk() (*[]ReservedResource, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ReservedResourceList) SetItems(v []ReservedResource)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceListAllOf.md new file mode 100644 index 00000000..59c9a86b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourceListAllOf.md @@ -0,0 +1,56 @@ +# ReservedResourceListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ReservedResource**](ReservedResource.md) | | [optional] + +## Methods + +### NewReservedResourceListAllOf + +`func NewReservedResourceListAllOf() *ReservedResourceListAllOf` + +NewReservedResourceListAllOf instantiates a new ReservedResourceListAllOf 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 + +### NewReservedResourceListAllOfWithDefaults + +`func NewReservedResourceListAllOfWithDefaults() *ReservedResourceListAllOf` + +NewReservedResourceListAllOfWithDefaults instantiates a new ReservedResourceListAllOf 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 + +### GetItems + +`func (o *ReservedResourceListAllOf) GetItems() []ReservedResource` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ReservedResourceListAllOf) GetItemsOk() (*[]ReservedResource, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ReservedResourceListAllOf) SetItems(v []ReservedResource)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ReservedResourceListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourcePatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourcePatchRequest.md new file mode 100644 index 00000000..e050f5c4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ReservedResourcePatchRequest.md @@ -0,0 +1,56 @@ +# ReservedResourcePatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BillingModel** | Pointer to **string** | | [optional] + +## Methods + +### NewReservedResourcePatchRequest + +`func NewReservedResourcePatchRequest() *ReservedResourcePatchRequest` + +NewReservedResourcePatchRequest instantiates a new ReservedResourcePatchRequest 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 + +### NewReservedResourcePatchRequestWithDefaults + +`func NewReservedResourcePatchRequestWithDefaults() *ReservedResourcePatchRequest` + +NewReservedResourcePatchRequestWithDefaults instantiates a new ReservedResourcePatchRequest 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 + +### GetBillingModel + +`func (o *ReservedResourcePatchRequest) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *ReservedResourcePatchRequest) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *ReservedResourcePatchRequest) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *ReservedResourcePatchRequest) HasBillingModel() bool` + +HasBillingModel 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuota.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuota.md new file mode 100644 index 00000000..b6f88bb2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuota.md @@ -0,0 +1,259 @@ +# ResourceQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**Sku** | Pointer to **string** | | [optional] +**SkuCount** | **int32** | | +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewResourceQuota + +`func NewResourceQuota(skuCount int32, ) *ResourceQuota` + +NewResourceQuota instantiates a new ResourceQuota 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 + +### NewResourceQuotaWithDefaults + +`func NewResourceQuotaWithDefaults() *ResourceQuota` + +NewResourceQuotaWithDefaults instantiates a new ResourceQuota 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 + +### GetHref + +`func (o *ResourceQuota) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ResourceQuota) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ResourceQuota) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ResourceQuota) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *ResourceQuota) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceQuota) 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 *ResourceQuota) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ResourceQuota) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ResourceQuota) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ResourceQuota) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ResourceQuota) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ResourceQuota) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ResourceQuota) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ResourceQuota) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ResourceQuota) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ResourceQuota) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *ResourceQuota) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ResourceQuota) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ResourceQuota) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ResourceQuota) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSku + +`func (o *ResourceQuota) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *ResourceQuota) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *ResourceQuota) SetSku(v string)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *ResourceQuota) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetSkuCount + +`func (o *ResourceQuota) GetSkuCount() int32` + +GetSkuCount returns the SkuCount field if non-nil, zero value otherwise. + +### GetSkuCountOk + +`func (o *ResourceQuota) GetSkuCountOk() (*int32, bool)` + +GetSkuCountOk returns a tuple with the SkuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCount + +`func (o *ResourceQuota) SetSkuCount(v int32)` + +SetSkuCount sets SkuCount field to given value. + + +### GetType + +`func (o *ResourceQuota) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceQuota) GetTypeOk() (*string, 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 *ResourceQuota) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ResourceQuota) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ResourceQuota) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ResourceQuota) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ResourceQuota) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ResourceQuota) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaAllOf.md new file mode 100644 index 00000000..da36a97c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaAllOf.md @@ -0,0 +1,181 @@ +# ResourceQuotaAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**Sku** | Pointer to **string** | | [optional] +**SkuCount** | **int32** | | +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewResourceQuotaAllOf + +`func NewResourceQuotaAllOf(skuCount int32, ) *ResourceQuotaAllOf` + +NewResourceQuotaAllOf instantiates a new ResourceQuotaAllOf 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 + +### NewResourceQuotaAllOfWithDefaults + +`func NewResourceQuotaAllOfWithDefaults() *ResourceQuotaAllOf` + +NewResourceQuotaAllOfWithDefaults instantiates a new ResourceQuotaAllOf 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 + +### GetCreatedAt + +`func (o *ResourceQuotaAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ResourceQuotaAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ResourceQuotaAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ResourceQuotaAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *ResourceQuotaAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *ResourceQuotaAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *ResourceQuotaAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *ResourceQuotaAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetSku + +`func (o *ResourceQuotaAllOf) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *ResourceQuotaAllOf) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *ResourceQuotaAllOf) SetSku(v string)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *ResourceQuotaAllOf) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetSkuCount + +`func (o *ResourceQuotaAllOf) GetSkuCount() int32` + +GetSkuCount returns the SkuCount field if non-nil, zero value otherwise. + +### GetSkuCountOk + +`func (o *ResourceQuotaAllOf) GetSkuCountOk() (*int32, bool)` + +GetSkuCountOk returns a tuple with the SkuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCount + +`func (o *ResourceQuotaAllOf) SetSkuCount(v int32)` + +SetSkuCount sets SkuCount field to given value. + + +### GetType + +`func (o *ResourceQuotaAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceQuotaAllOf) GetTypeOk() (*string, 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 *ResourceQuotaAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ResourceQuotaAllOf) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ResourceQuotaAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ResourceQuotaAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ResourceQuotaAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ResourceQuotaAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaList.md new file mode 100644 index 00000000..b5a59ff2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaList.md @@ -0,0 +1,135 @@ +# ResourceQuotaList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ResourceQuota**](ResourceQuota.md) | | + +## Methods + +### NewResourceQuotaList + +`func NewResourceQuotaList(kind string, page int32, size int32, total int32, items []ResourceQuota, ) *ResourceQuotaList` + +NewResourceQuotaList instantiates a new ResourceQuotaList 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 + +### NewResourceQuotaListWithDefaults + +`func NewResourceQuotaListWithDefaults() *ResourceQuotaList` + +NewResourceQuotaListWithDefaults instantiates a new ResourceQuotaList 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 + +### GetKind + +`func (o *ResourceQuotaList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ResourceQuotaList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ResourceQuotaList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ResourceQuotaList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ResourceQuotaList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ResourceQuotaList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ResourceQuotaList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ResourceQuotaList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ResourceQuotaList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ResourceQuotaList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ResourceQuotaList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ResourceQuotaList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ResourceQuotaList) GetItems() []ResourceQuota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ResourceQuotaList) GetItemsOk() (*[]ResourceQuota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ResourceQuotaList) SetItems(v []ResourceQuota)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaListAllOf.md new file mode 100644 index 00000000..0947e431 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaListAllOf.md @@ -0,0 +1,56 @@ +# ResourceQuotaListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ResourceQuota**](ResourceQuota.md) | | [optional] + +## Methods + +### NewResourceQuotaListAllOf + +`func NewResourceQuotaListAllOf() *ResourceQuotaListAllOf` + +NewResourceQuotaListAllOf instantiates a new ResourceQuotaListAllOf 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 + +### NewResourceQuotaListAllOfWithDefaults + +`func NewResourceQuotaListAllOfWithDefaults() *ResourceQuotaListAllOf` + +NewResourceQuotaListAllOfWithDefaults instantiates a new ResourceQuotaListAllOf 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 + +### GetItems + +`func (o *ResourceQuotaListAllOf) GetItems() []ResourceQuota` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ResourceQuotaListAllOf) GetItemsOk() (*[]ResourceQuota, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ResourceQuotaListAllOf) SetItems(v []ResourceQuota)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ResourceQuotaListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaRequest.md new file mode 100644 index 00000000..7a8e80be --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceQuotaRequest.md @@ -0,0 +1,98 @@ +# ResourceQuotaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sku** | **string** | | +**SkuCount** | **int32** | | +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewResourceQuotaRequest + +`func NewResourceQuotaRequest(sku string, skuCount int32, ) *ResourceQuotaRequest` + +NewResourceQuotaRequest instantiates a new ResourceQuotaRequest 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 + +### NewResourceQuotaRequestWithDefaults + +`func NewResourceQuotaRequestWithDefaults() *ResourceQuotaRequest` + +NewResourceQuotaRequestWithDefaults instantiates a new ResourceQuotaRequest 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 + +### GetSku + +`func (o *ResourceQuotaRequest) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *ResourceQuotaRequest) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *ResourceQuotaRequest) SetSku(v string)` + +SetSku sets Sku field to given value. + + +### GetSkuCount + +`func (o *ResourceQuotaRequest) GetSkuCount() int32` + +GetSkuCount returns the SkuCount field if non-nil, zero value otherwise. + +### GetSkuCountOk + +`func (o *ResourceQuotaRequest) GetSkuCountOk() (*int32, bool)` + +GetSkuCountOk returns a tuple with the SkuCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCount + +`func (o *ResourceQuotaRequest) SetSkuCount(v int32)` + +SetSkuCount sets SkuCount field to given value. + + +### GetType + +`func (o *ResourceQuotaRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceQuotaRequest) GetTypeOk() (*string, 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 *ResourceQuotaRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ResourceQuotaRequest) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReview.md new file mode 100644 index 00000000..0d2cfecc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReview.md @@ -0,0 +1,177 @@ +# ResourceReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**Action** | **string** | | +**ClusterIds** | **[]string** | | +**ClusterUuids** | **[]string** | | +**OrganizationIds** | **[]string** | | +**ResourceType** | **string** | | +**SubscriptionIds** | **[]string** | | + +## Methods + +### NewResourceReview + +`func NewResourceReview(accountUsername string, action string, clusterIds []string, clusterUuids []string, organizationIds []string, resourceType string, subscriptionIds []string, ) *ResourceReview` + +NewResourceReview instantiates a new ResourceReview 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 + +### NewResourceReviewWithDefaults + +`func NewResourceReviewWithDefaults() *ResourceReview` + +NewResourceReviewWithDefaults instantiates a new ResourceReview 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 + +### GetAccountUsername + +`func (o *ResourceReview) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *ResourceReview) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *ResourceReview) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetAction + +`func (o *ResourceReview) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ResourceReview) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ResourceReview) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetClusterIds + +`func (o *ResourceReview) GetClusterIds() []string` + +GetClusterIds returns the ClusterIds field if non-nil, zero value otherwise. + +### GetClusterIdsOk + +`func (o *ResourceReview) GetClusterIdsOk() (*[]string, bool)` + +GetClusterIdsOk returns a tuple with the ClusterIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterIds + +`func (o *ResourceReview) SetClusterIds(v []string)` + +SetClusterIds sets ClusterIds field to given value. + + +### GetClusterUuids + +`func (o *ResourceReview) GetClusterUuids() []string` + +GetClusterUuids returns the ClusterUuids field if non-nil, zero value otherwise. + +### GetClusterUuidsOk + +`func (o *ResourceReview) GetClusterUuidsOk() (*[]string, bool)` + +GetClusterUuidsOk returns a tuple with the ClusterUuids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuids + +`func (o *ResourceReview) SetClusterUuids(v []string)` + +SetClusterUuids sets ClusterUuids field to given value. + + +### GetOrganizationIds + +`func (o *ResourceReview) GetOrganizationIds() []string` + +GetOrganizationIds returns the OrganizationIds field if non-nil, zero value otherwise. + +### GetOrganizationIdsOk + +`func (o *ResourceReview) GetOrganizationIdsOk() (*[]string, bool)` + +GetOrganizationIdsOk returns a tuple with the OrganizationIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationIds + +`func (o *ResourceReview) SetOrganizationIds(v []string)` + +SetOrganizationIds sets OrganizationIds field to given value. + + +### GetResourceType + +`func (o *ResourceReview) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ResourceReview) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ResourceReview) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetSubscriptionIds + +`func (o *ResourceReview) GetSubscriptionIds() []string` + +GetSubscriptionIds returns the SubscriptionIds field if non-nil, zero value otherwise. + +### GetSubscriptionIdsOk + +`func (o *ResourceReview) GetSubscriptionIdsOk() (*[]string, bool)` + +GetSubscriptionIdsOk returns a tuple with the SubscriptionIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionIds + +`func (o *ResourceReview) SetSubscriptionIds(v []string)` + +SetSubscriptionIds sets SubscriptionIds 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReviewRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReviewRequest.md new file mode 100644 index 00000000..c8a9ae99 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/ResourceReviewRequest.md @@ -0,0 +1,108 @@ +# ResourceReviewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | Pointer to **string** | | [optional] +**Action** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] + +## Methods + +### NewResourceReviewRequest + +`func NewResourceReviewRequest() *ResourceReviewRequest` + +NewResourceReviewRequest instantiates a new ResourceReviewRequest 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 + +### NewResourceReviewRequestWithDefaults + +`func NewResourceReviewRequestWithDefaults() *ResourceReviewRequest` + +NewResourceReviewRequestWithDefaults instantiates a new ResourceReviewRequest 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 + +### GetAccountUsername + +`func (o *ResourceReviewRequest) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *ResourceReviewRequest) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *ResourceReviewRequest) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + +### HasAccountUsername + +`func (o *ResourceReviewRequest) HasAccountUsername() bool` + +HasAccountUsername returns a boolean if a field has been set. + +### GetAction + +`func (o *ResourceReviewRequest) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ResourceReviewRequest) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ResourceReviewRequest) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *ResourceReviewRequest) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetResourceType + +`func (o *ResourceReviewRequest) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *ResourceReviewRequest) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *ResourceReviewRequest) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *ResourceReviewRequest) HasResourceType() bool` + +HasResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Role.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Role.md new file mode 100644 index 00000000..c9402b6e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Role.md @@ -0,0 +1,160 @@ +# Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Permissions** | Pointer to [**[]Permission**](Permission.md) | | [optional] + +## Methods + +### NewRole + +`func NewRole() *Role` + +NewRole instantiates a new Role 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 + +### NewRoleWithDefaults + +`func NewRoleWithDefaults() *Role` + +NewRoleWithDefaults instantiates a new Role 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 + +### GetHref + +`func (o *Role) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Role) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Role) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Role) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Role) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Role) 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 *Role) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Role) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Role) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Role) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Role) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Role) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetName + +`func (o *Role) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Role) 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 *Role) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Role) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPermissions + +`func (o *Role) GetPermissions() []Permission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *Role) GetPermissionsOk() (*[]Permission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *Role) SetPermissions(v []Permission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *Role) HasPermissions() bool` + +HasPermissions 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleAllOf.md new file mode 100644 index 00000000..46d4b409 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleAllOf.md @@ -0,0 +1,82 @@ +# RoleAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Permissions** | Pointer to [**[]Permission**](Permission.md) | | [optional] + +## Methods + +### NewRoleAllOf + +`func NewRoleAllOf() *RoleAllOf` + +NewRoleAllOf instantiates a new RoleAllOf 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 + +### NewRoleAllOfWithDefaults + +`func NewRoleAllOfWithDefaults() *RoleAllOf` + +NewRoleAllOfWithDefaults instantiates a new RoleAllOf 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 *RoleAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleAllOf) 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 *RoleAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RoleAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPermissions + +`func (o *RoleAllOf) GetPermissions() []Permission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *RoleAllOf) GetPermissionsOk() (*[]Permission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *RoleAllOf) SetPermissions(v []Permission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *RoleAllOf) HasPermissions() bool` + +HasPermissions 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBinding.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBinding.md new file mode 100644 index 00000000..c64dbb88 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBinding.md @@ -0,0 +1,368 @@ +# RoleBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Account** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**AccountGroup** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**ConfigManaged** | Pointer to **bool** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ManagedBy** | Pointer to **string** | | [optional] +**Organization** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Role** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewRoleBinding + +`func NewRoleBinding() *RoleBinding` + +NewRoleBinding instantiates a new RoleBinding 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 + +### NewRoleBindingWithDefaults + +`func NewRoleBindingWithDefaults() *RoleBinding` + +NewRoleBindingWithDefaults instantiates a new RoleBinding 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 + +### GetHref + +`func (o *RoleBinding) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *RoleBinding) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *RoleBinding) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *RoleBinding) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *RoleBinding) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RoleBinding) 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 *RoleBinding) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *RoleBinding) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *RoleBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RoleBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RoleBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *RoleBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAccount + +`func (o *RoleBinding) GetAccount() ObjectReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *RoleBinding) GetAccountOk() (*ObjectReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *RoleBinding) SetAccount(v ObjectReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *RoleBinding) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetAccountGroup + +`func (o *RoleBinding) GetAccountGroup() ObjectReference` + +GetAccountGroup returns the AccountGroup field if non-nil, zero value otherwise. + +### GetAccountGroupOk + +`func (o *RoleBinding) GetAccountGroupOk() (*ObjectReference, bool)` + +GetAccountGroupOk returns a tuple with the AccountGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroup + +`func (o *RoleBinding) SetAccountGroup(v ObjectReference)` + +SetAccountGroup sets AccountGroup field to given value. + +### HasAccountGroup + +`func (o *RoleBinding) HasAccountGroup() bool` + +HasAccountGroup returns a boolean if a field has been set. + +### GetConfigManaged + +`func (o *RoleBinding) GetConfigManaged() bool` + +GetConfigManaged returns the ConfigManaged field if non-nil, zero value otherwise. + +### GetConfigManagedOk + +`func (o *RoleBinding) GetConfigManagedOk() (*bool, bool)` + +GetConfigManagedOk returns a tuple with the ConfigManaged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigManaged + +`func (o *RoleBinding) SetConfigManaged(v bool)` + +SetConfigManaged sets ConfigManaged field to given value. + +### HasConfigManaged + +`func (o *RoleBinding) HasConfigManaged() bool` + +HasConfigManaged returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RoleBinding) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RoleBinding) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RoleBinding) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *RoleBinding) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetManagedBy + +`func (o *RoleBinding) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *RoleBinding) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *RoleBinding) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + +### HasManagedBy + +`func (o *RoleBinding) HasManagedBy() bool` + +HasManagedBy returns a boolean if a field has been set. + +### GetOrganization + +`func (o *RoleBinding) GetOrganization() ObjectReference` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *RoleBinding) GetOrganizationOk() (*ObjectReference, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *RoleBinding) SetOrganization(v ObjectReference)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *RoleBinding) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetRole + +`func (o *RoleBinding) GetRole() ObjectReference` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RoleBinding) GetRoleOk() (*ObjectReference, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RoleBinding) SetRole(v ObjectReference)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RoleBinding) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetSubscription + +`func (o *RoleBinding) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *RoleBinding) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *RoleBinding) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *RoleBinding) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetType + +`func (o *RoleBinding) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RoleBinding) GetTypeOk() (*string, 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 *RoleBinding) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RoleBinding) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *RoleBinding) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RoleBinding) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RoleBinding) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *RoleBinding) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingAllOf.md new file mode 100644 index 00000000..1a85ab24 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingAllOf.md @@ -0,0 +1,290 @@ +# RoleBindingAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Account** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**AccountGroup** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**ConfigManaged** | Pointer to **bool** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ManagedBy** | Pointer to **string** | | [optional] +**Organization** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Role** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewRoleBindingAllOf + +`func NewRoleBindingAllOf() *RoleBindingAllOf` + +NewRoleBindingAllOf instantiates a new RoleBindingAllOf 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 + +### NewRoleBindingAllOfWithDefaults + +`func NewRoleBindingAllOfWithDefaults() *RoleBindingAllOf` + +NewRoleBindingAllOfWithDefaults instantiates a new RoleBindingAllOf 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 + +### GetAccount + +`func (o *RoleBindingAllOf) GetAccount() ObjectReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *RoleBindingAllOf) GetAccountOk() (*ObjectReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *RoleBindingAllOf) SetAccount(v ObjectReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *RoleBindingAllOf) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetAccountGroup + +`func (o *RoleBindingAllOf) GetAccountGroup() ObjectReference` + +GetAccountGroup returns the AccountGroup field if non-nil, zero value otherwise. + +### GetAccountGroupOk + +`func (o *RoleBindingAllOf) GetAccountGroupOk() (*ObjectReference, bool)` + +GetAccountGroupOk returns a tuple with the AccountGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroup + +`func (o *RoleBindingAllOf) SetAccountGroup(v ObjectReference)` + +SetAccountGroup sets AccountGroup field to given value. + +### HasAccountGroup + +`func (o *RoleBindingAllOf) HasAccountGroup() bool` + +HasAccountGroup returns a boolean if a field has been set. + +### GetConfigManaged + +`func (o *RoleBindingAllOf) GetConfigManaged() bool` + +GetConfigManaged returns the ConfigManaged field if non-nil, zero value otherwise. + +### GetConfigManagedOk + +`func (o *RoleBindingAllOf) GetConfigManagedOk() (*bool, bool)` + +GetConfigManagedOk returns a tuple with the ConfigManaged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigManaged + +`func (o *RoleBindingAllOf) SetConfigManaged(v bool)` + +SetConfigManaged sets ConfigManaged field to given value. + +### HasConfigManaged + +`func (o *RoleBindingAllOf) HasConfigManaged() bool` + +HasConfigManaged returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RoleBindingAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RoleBindingAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RoleBindingAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *RoleBindingAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetManagedBy + +`func (o *RoleBindingAllOf) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *RoleBindingAllOf) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *RoleBindingAllOf) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + +### HasManagedBy + +`func (o *RoleBindingAllOf) HasManagedBy() bool` + +HasManagedBy returns a boolean if a field has been set. + +### GetOrganization + +`func (o *RoleBindingAllOf) GetOrganization() ObjectReference` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *RoleBindingAllOf) GetOrganizationOk() (*ObjectReference, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *RoleBindingAllOf) SetOrganization(v ObjectReference)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *RoleBindingAllOf) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetRole + +`func (o *RoleBindingAllOf) GetRole() ObjectReference` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RoleBindingAllOf) GetRoleOk() (*ObjectReference, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RoleBindingAllOf) SetRole(v ObjectReference)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RoleBindingAllOf) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetSubscription + +`func (o *RoleBindingAllOf) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *RoleBindingAllOf) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *RoleBindingAllOf) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *RoleBindingAllOf) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetType + +`func (o *RoleBindingAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RoleBindingAllOf) GetTypeOk() (*string, 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 *RoleBindingAllOf) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RoleBindingAllOf) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *RoleBindingAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RoleBindingAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RoleBindingAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *RoleBindingAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingCreateRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingCreateRequest.md new file mode 100644 index 00000000..8f6483e4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingCreateRequest.md @@ -0,0 +1,228 @@ +# RoleBindingCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountGroupId** | Pointer to **string** | | [optional] +**AccountId** | Pointer to **string** | | [optional] +**ConfigManaged** | Pointer to **bool** | | [optional] +**ManagedBy** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**RoleId** | **string** | | +**SubscriptionId** | Pointer to **string** | | [optional] +**Type** | **string** | | + +## Methods + +### NewRoleBindingCreateRequest + +`func NewRoleBindingCreateRequest(roleId string, type_ string, ) *RoleBindingCreateRequest` + +NewRoleBindingCreateRequest instantiates a new RoleBindingCreateRequest 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 + +### NewRoleBindingCreateRequestWithDefaults + +`func NewRoleBindingCreateRequestWithDefaults() *RoleBindingCreateRequest` + +NewRoleBindingCreateRequestWithDefaults instantiates a new RoleBindingCreateRequest 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 + +### GetAccountGroupId + +`func (o *RoleBindingCreateRequest) GetAccountGroupId() string` + +GetAccountGroupId returns the AccountGroupId field if non-nil, zero value otherwise. + +### GetAccountGroupIdOk + +`func (o *RoleBindingCreateRequest) GetAccountGroupIdOk() (*string, bool)` + +GetAccountGroupIdOk returns a tuple with the AccountGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroupId + +`func (o *RoleBindingCreateRequest) SetAccountGroupId(v string)` + +SetAccountGroupId sets AccountGroupId field to given value. + +### HasAccountGroupId + +`func (o *RoleBindingCreateRequest) HasAccountGroupId() bool` + +HasAccountGroupId returns a boolean if a field has been set. + +### GetAccountId + +`func (o *RoleBindingCreateRequest) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RoleBindingCreateRequest) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RoleBindingCreateRequest) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *RoleBindingCreateRequest) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetConfigManaged + +`func (o *RoleBindingCreateRequest) GetConfigManaged() bool` + +GetConfigManaged returns the ConfigManaged field if non-nil, zero value otherwise. + +### GetConfigManagedOk + +`func (o *RoleBindingCreateRequest) GetConfigManagedOk() (*bool, bool)` + +GetConfigManagedOk returns a tuple with the ConfigManaged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigManaged + +`func (o *RoleBindingCreateRequest) SetConfigManaged(v bool)` + +SetConfigManaged sets ConfigManaged field to given value. + +### HasConfigManaged + +`func (o *RoleBindingCreateRequest) HasConfigManaged() bool` + +HasConfigManaged returns a boolean if a field has been set. + +### GetManagedBy + +`func (o *RoleBindingCreateRequest) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *RoleBindingCreateRequest) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *RoleBindingCreateRequest) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + +### HasManagedBy + +`func (o *RoleBindingCreateRequest) HasManagedBy() bool` + +HasManagedBy returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *RoleBindingCreateRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *RoleBindingCreateRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *RoleBindingCreateRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *RoleBindingCreateRequest) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetRoleId + +`func (o *RoleBindingCreateRequest) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *RoleBindingCreateRequest) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *RoleBindingCreateRequest) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + +### GetSubscriptionId + +`func (o *RoleBindingCreateRequest) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *RoleBindingCreateRequest) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *RoleBindingCreateRequest) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *RoleBindingCreateRequest) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetType + +`func (o *RoleBindingCreateRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RoleBindingCreateRequest) GetTypeOk() (*string, 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 *RoleBindingCreateRequest) SetType(v string)` + +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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingList.md new file mode 100644 index 00000000..a303f606 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingList.md @@ -0,0 +1,135 @@ +# RoleBindingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]RoleBinding**](RoleBinding.md) | | + +## Methods + +### NewRoleBindingList + +`func NewRoleBindingList(kind string, page int32, size int32, total int32, items []RoleBinding, ) *RoleBindingList` + +NewRoleBindingList instantiates a new RoleBindingList 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 + +### NewRoleBindingListWithDefaults + +`func NewRoleBindingListWithDefaults() *RoleBindingList` + +NewRoleBindingListWithDefaults instantiates a new RoleBindingList 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 + +### GetKind + +`func (o *RoleBindingList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RoleBindingList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RoleBindingList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *RoleBindingList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RoleBindingList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RoleBindingList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *RoleBindingList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RoleBindingList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RoleBindingList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *RoleBindingList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RoleBindingList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RoleBindingList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *RoleBindingList) GetItems() []RoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RoleBindingList) GetItemsOk() (*[]RoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RoleBindingList) SetItems(v []RoleBinding)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingListAllOf.md new file mode 100644 index 00000000..806901db --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingListAllOf.md @@ -0,0 +1,56 @@ +# RoleBindingListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]RoleBinding**](RoleBinding.md) | | [optional] + +## Methods + +### NewRoleBindingListAllOf + +`func NewRoleBindingListAllOf() *RoleBindingListAllOf` + +NewRoleBindingListAllOf instantiates a new RoleBindingListAllOf 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 + +### NewRoleBindingListAllOfWithDefaults + +`func NewRoleBindingListAllOfWithDefaults() *RoleBindingListAllOf` + +NewRoleBindingListAllOfWithDefaults instantiates a new RoleBindingListAllOf 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 + +### GetItems + +`func (o *RoleBindingListAllOf) GetItems() []RoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RoleBindingListAllOf) GetItemsOk() (*[]RoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RoleBindingListAllOf) SetItems(v []RoleBinding)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *RoleBindingListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingRequest.md new file mode 100644 index 00000000..4e0ff85f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleBindingRequest.md @@ -0,0 +1,238 @@ +# RoleBindingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountGroupId** | Pointer to **string** | | [optional] +**AccountId** | Pointer to **string** | | [optional] +**ConfigManaged** | Pointer to **bool** | | [optional] +**ManagedBy** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**RoleId** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewRoleBindingRequest + +`func NewRoleBindingRequest() *RoleBindingRequest` + +NewRoleBindingRequest instantiates a new RoleBindingRequest 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 + +### NewRoleBindingRequestWithDefaults + +`func NewRoleBindingRequestWithDefaults() *RoleBindingRequest` + +NewRoleBindingRequestWithDefaults instantiates a new RoleBindingRequest 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 + +### GetAccountGroupId + +`func (o *RoleBindingRequest) GetAccountGroupId() string` + +GetAccountGroupId returns the AccountGroupId field if non-nil, zero value otherwise. + +### GetAccountGroupIdOk + +`func (o *RoleBindingRequest) GetAccountGroupIdOk() (*string, bool)` + +GetAccountGroupIdOk returns a tuple with the AccountGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGroupId + +`func (o *RoleBindingRequest) SetAccountGroupId(v string)` + +SetAccountGroupId sets AccountGroupId field to given value. + +### HasAccountGroupId + +`func (o *RoleBindingRequest) HasAccountGroupId() bool` + +HasAccountGroupId returns a boolean if a field has been set. + +### GetAccountId + +`func (o *RoleBindingRequest) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *RoleBindingRequest) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *RoleBindingRequest) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *RoleBindingRequest) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### GetConfigManaged + +`func (o *RoleBindingRequest) GetConfigManaged() bool` + +GetConfigManaged returns the ConfigManaged field if non-nil, zero value otherwise. + +### GetConfigManagedOk + +`func (o *RoleBindingRequest) GetConfigManagedOk() (*bool, bool)` + +GetConfigManagedOk returns a tuple with the ConfigManaged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigManaged + +`func (o *RoleBindingRequest) SetConfigManaged(v bool)` + +SetConfigManaged sets ConfigManaged field to given value. + +### HasConfigManaged + +`func (o *RoleBindingRequest) HasConfigManaged() bool` + +HasConfigManaged returns a boolean if a field has been set. + +### GetManagedBy + +`func (o *RoleBindingRequest) GetManagedBy() string` + +GetManagedBy returns the ManagedBy field if non-nil, zero value otherwise. + +### GetManagedByOk + +`func (o *RoleBindingRequest) GetManagedByOk() (*string, bool)` + +GetManagedByOk returns a tuple with the ManagedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedBy + +`func (o *RoleBindingRequest) SetManagedBy(v string)` + +SetManagedBy sets ManagedBy field to given value. + +### HasManagedBy + +`func (o *RoleBindingRequest) HasManagedBy() bool` + +HasManagedBy returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *RoleBindingRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *RoleBindingRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *RoleBindingRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *RoleBindingRequest) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetRoleId + +`func (o *RoleBindingRequest) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *RoleBindingRequest) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *RoleBindingRequest) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *RoleBindingRequest) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *RoleBindingRequest) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *RoleBindingRequest) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *RoleBindingRequest) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *RoleBindingRequest) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetType + +`func (o *RoleBindingRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RoleBindingRequest) GetTypeOk() (*string, 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 *RoleBindingRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *RoleBindingRequest) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleList.md new file mode 100644 index 00000000..006343e6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleList.md @@ -0,0 +1,135 @@ +# RoleList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Role**](Role.md) | | + +## Methods + +### NewRoleList + +`func NewRoleList(kind string, page int32, size int32, total int32, items []Role, ) *RoleList` + +NewRoleList instantiates a new RoleList 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 + +### NewRoleListWithDefaults + +`func NewRoleListWithDefaults() *RoleList` + +NewRoleListWithDefaults instantiates a new RoleList 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 + +### GetKind + +`func (o *RoleList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RoleList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RoleList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *RoleList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RoleList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RoleList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *RoleList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RoleList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RoleList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *RoleList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RoleList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RoleList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *RoleList) GetItems() []Role` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RoleList) GetItemsOk() (*[]Role, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RoleList) SetItems(v []Role)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleListAllOf.md new file mode 100644 index 00000000..e4389ce5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/RoleListAllOf.md @@ -0,0 +1,56 @@ +# RoleListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Role**](Role.md) | | [optional] + +## Methods + +### NewRoleListAllOf + +`func NewRoleListAllOf() *RoleListAllOf` + +NewRoleListAllOf instantiates a new RoleListAllOf 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 + +### NewRoleListAllOfWithDefaults + +`func NewRoleListAllOfWithDefaults() *RoleListAllOf` + +NewRoleListAllOfWithDefaults instantiates a new RoleListAllOf 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 + +### GetItems + +`func (o *RoleListAllOf) GetItems() []Role` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RoleListAllOf) GetItemsOk() (*[]Role, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RoleListAllOf) SetItems(v []Role)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *RoleListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKU.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKU.md new file mode 100644 index 00000000..a97e16e2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKU.md @@ -0,0 +1,186 @@ +# SKU + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSKU + +`func NewSKU() *SKU` + +NewSKU instantiates a new SKU 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 + +### NewSKUWithDefaults + +`func NewSKUWithDefaults() *SKU` + +NewSKUWithDefaults instantiates a new SKU 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 + +### GetHref + +`func (o *SKU) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SKU) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *SKU) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SKU) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *SKU) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SKU) 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 *SKU) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SKU) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *SKU) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SKU) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SKU) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *SKU) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SKU) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SKU) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SKU) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SKU) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *SKU) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SKU) 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 *SKU) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SKU) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SKU) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SKU) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SKU) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SKU) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKUAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKUAllOf.md new file mode 100644 index 00000000..4204bc96 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SKUAllOf.md @@ -0,0 +1,108 @@ +# SKUAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSKUAllOf + +`func NewSKUAllOf() *SKUAllOf` + +NewSKUAllOf instantiates a new SKUAllOf 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 + +### NewSKUAllOfWithDefaults + +`func NewSKUAllOfWithDefaults() *SKUAllOf` + +NewSKUAllOfWithDefaults instantiates a new SKUAllOf 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 + +### GetCreatedAt + +`func (o *SKUAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SKUAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SKUAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SKUAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *SKUAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SKUAllOf) 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 *SKUAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SKUAllOf) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SKUAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SKUAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SKUAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SKUAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfAccessReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfAccessReview.md new file mode 100644 index 00000000..ee2c6f46 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfAccessReview.md @@ -0,0 +1,176 @@ +# SelfAccessReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**ResourceType** | **string** | | +**SubscriptionId** | Pointer to **string** | | [optional] + +## Methods + +### NewSelfAccessReview + +`func NewSelfAccessReview(action string, resourceType string, ) *SelfAccessReview` + +NewSelfAccessReview instantiates a new SelfAccessReview 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 + +### NewSelfAccessReviewWithDefaults + +`func NewSelfAccessReviewWithDefaults() *SelfAccessReview` + +NewSelfAccessReviewWithDefaults instantiates a new SelfAccessReview 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 + +### GetAction + +`func (o *SelfAccessReview) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SelfAccessReview) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SelfAccessReview) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetClusterId + +`func (o *SelfAccessReview) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SelfAccessReview) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SelfAccessReview) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SelfAccessReview) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *SelfAccessReview) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *SelfAccessReview) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *SelfAccessReview) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *SelfAccessReview) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *SelfAccessReview) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *SelfAccessReview) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *SelfAccessReview) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *SelfAccessReview) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetResourceType + +`func (o *SelfAccessReview) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *SelfAccessReview) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *SelfAccessReview) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetSubscriptionId + +`func (o *SelfAccessReview) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *SelfAccessReview) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *SelfAccessReview) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *SelfAccessReview) HasSubscriptionId() bool` + +HasSubscriptionId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfEntitlementStatus.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfEntitlementStatus.md new file mode 100644 index 00000000..d174a46e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfEntitlementStatus.md @@ -0,0 +1,82 @@ +# SelfEntitlementStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Product** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewSelfEntitlementStatus + +`func NewSelfEntitlementStatus() *SelfEntitlementStatus` + +NewSelfEntitlementStatus instantiates a new SelfEntitlementStatus 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 + +### NewSelfEntitlementStatusWithDefaults + +`func NewSelfEntitlementStatusWithDefaults() *SelfEntitlementStatus` + +NewSelfEntitlementStatusWithDefaults instantiates a new SelfEntitlementStatus 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 + +### GetProduct + +`func (o *SelfEntitlementStatus) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *SelfEntitlementStatus) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *SelfEntitlementStatus) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *SelfEntitlementStatus) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetStatus + +`func (o *SelfEntitlementStatus) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SelfEntitlementStatus) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SelfEntitlementStatus) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SelfEntitlementStatus) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfFeatureReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfFeatureReview.md new file mode 100644 index 00000000..d8b58dd2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfFeatureReview.md @@ -0,0 +1,51 @@ +# SelfFeatureReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Feature** | **string** | | + +## Methods + +### NewSelfFeatureReview + +`func NewSelfFeatureReview(feature string, ) *SelfFeatureReview` + +NewSelfFeatureReview instantiates a new SelfFeatureReview 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 + +### NewSelfFeatureReviewWithDefaults + +`func NewSelfFeatureReviewWithDefaults() *SelfFeatureReview` + +NewSelfFeatureReviewWithDefaults instantiates a new SelfFeatureReview 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 + +### GetFeature + +`func (o *SelfFeatureReview) GetFeature() string` + +GetFeature returns the Feature field if non-nil, zero value otherwise. + +### GetFeatureOk + +`func (o *SelfFeatureReview) GetFeatureOk() (*string, bool)` + +GetFeatureOk returns a tuple with the Feature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeature + +`func (o *SelfFeatureReview) SetFeature(v string)` + +SetFeature sets Feature 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReview.md new file mode 100644 index 00000000..c3252c6a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReview.md @@ -0,0 +1,156 @@ +# SelfResourceReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | | +**ClusterIds** | **[]string** | | +**ClusterUuids** | **[]string** | | +**OrganizationIds** | **[]string** | | +**ResourceType** | **string** | | +**SubscriptionIds** | **[]string** | | + +## Methods + +### NewSelfResourceReview + +`func NewSelfResourceReview(action string, clusterIds []string, clusterUuids []string, organizationIds []string, resourceType string, subscriptionIds []string, ) *SelfResourceReview` + +NewSelfResourceReview instantiates a new SelfResourceReview 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 + +### NewSelfResourceReviewWithDefaults + +`func NewSelfResourceReviewWithDefaults() *SelfResourceReview` + +NewSelfResourceReviewWithDefaults instantiates a new SelfResourceReview 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 + +### GetAction + +`func (o *SelfResourceReview) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SelfResourceReview) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SelfResourceReview) SetAction(v string)` + +SetAction sets Action field to given value. + + +### GetClusterIds + +`func (o *SelfResourceReview) GetClusterIds() []string` + +GetClusterIds returns the ClusterIds field if non-nil, zero value otherwise. + +### GetClusterIdsOk + +`func (o *SelfResourceReview) GetClusterIdsOk() (*[]string, bool)` + +GetClusterIdsOk returns a tuple with the ClusterIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterIds + +`func (o *SelfResourceReview) SetClusterIds(v []string)` + +SetClusterIds sets ClusterIds field to given value. + + +### GetClusterUuids + +`func (o *SelfResourceReview) GetClusterUuids() []string` + +GetClusterUuids returns the ClusterUuids field if non-nil, zero value otherwise. + +### GetClusterUuidsOk + +`func (o *SelfResourceReview) GetClusterUuidsOk() (*[]string, bool)` + +GetClusterUuidsOk returns a tuple with the ClusterUuids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuids + +`func (o *SelfResourceReview) SetClusterUuids(v []string)` + +SetClusterUuids sets ClusterUuids field to given value. + + +### GetOrganizationIds + +`func (o *SelfResourceReview) GetOrganizationIds() []string` + +GetOrganizationIds returns the OrganizationIds field if non-nil, zero value otherwise. + +### GetOrganizationIdsOk + +`func (o *SelfResourceReview) GetOrganizationIdsOk() (*[]string, bool)` + +GetOrganizationIdsOk returns a tuple with the OrganizationIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationIds + +`func (o *SelfResourceReview) SetOrganizationIds(v []string)` + +SetOrganizationIds sets OrganizationIds field to given value. + + +### GetResourceType + +`func (o *SelfResourceReview) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *SelfResourceReview) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *SelfResourceReview) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + + +### GetSubscriptionIds + +`func (o *SelfResourceReview) GetSubscriptionIds() []string` + +GetSubscriptionIds returns the SubscriptionIds field if non-nil, zero value otherwise. + +### GetSubscriptionIdsOk + +`func (o *SelfResourceReview) GetSubscriptionIdsOk() (*[]string, bool)` + +GetSubscriptionIdsOk returns a tuple with the SubscriptionIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionIds + +`func (o *SelfResourceReview) SetSubscriptionIds(v []string)` + +SetSubscriptionIds sets SubscriptionIds 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReviewRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReviewRequest.md new file mode 100644 index 00000000..7d769eb5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfResourceReviewRequest.md @@ -0,0 +1,82 @@ +# SelfResourceReviewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **string** | | [optional] +**ResourceType** | Pointer to **string** | | [optional] + +## Methods + +### NewSelfResourceReviewRequest + +`func NewSelfResourceReviewRequest() *SelfResourceReviewRequest` + +NewSelfResourceReviewRequest instantiates a new SelfResourceReviewRequest 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 + +### NewSelfResourceReviewRequestWithDefaults + +`func NewSelfResourceReviewRequestWithDefaults() *SelfResourceReviewRequest` + +NewSelfResourceReviewRequestWithDefaults instantiates a new SelfResourceReviewRequest 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 + +### GetAction + +`func (o *SelfResourceReviewRequest) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SelfResourceReviewRequest) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SelfResourceReviewRequest) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *SelfResourceReviewRequest) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetResourceType + +`func (o *SelfResourceReviewRequest) GetResourceType() string` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *SelfResourceReviewRequest) GetResourceTypeOk() (*string, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *SelfResourceReviewRequest) SetResourceType(v string)` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *SelfResourceReviewRequest) HasResourceType() bool` + +HasResourceType 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchema.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchema.md new file mode 100644 index 00000000..8e68d344 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchema.md @@ -0,0 +1,82 @@ +# SelfServiceLandingPageSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigTryLearn** | Pointer to [**SelfServiceLandingPageSchemaConfigTryLearn**](SelfServiceLandingPageSchemaConfigTryLearn.md) | | [optional] +**Estate** | Pointer to [**SelfServiceLandingPageSchemaEstate**](SelfServiceLandingPageSchemaEstate.md) | | [optional] + +## Methods + +### NewSelfServiceLandingPageSchema + +`func NewSelfServiceLandingPageSchema() *SelfServiceLandingPageSchema` + +NewSelfServiceLandingPageSchema instantiates a new SelfServiceLandingPageSchema 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 + +### NewSelfServiceLandingPageSchemaWithDefaults + +`func NewSelfServiceLandingPageSchemaWithDefaults() *SelfServiceLandingPageSchema` + +NewSelfServiceLandingPageSchemaWithDefaults instantiates a new SelfServiceLandingPageSchema 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 + +### GetConfigTryLearn + +`func (o *SelfServiceLandingPageSchema) GetConfigTryLearn() SelfServiceLandingPageSchemaConfigTryLearn` + +GetConfigTryLearn returns the ConfigTryLearn field if non-nil, zero value otherwise. + +### GetConfigTryLearnOk + +`func (o *SelfServiceLandingPageSchema) GetConfigTryLearnOk() (*SelfServiceLandingPageSchemaConfigTryLearn, bool)` + +GetConfigTryLearnOk returns a tuple with the ConfigTryLearn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTryLearn + +`func (o *SelfServiceLandingPageSchema) SetConfigTryLearn(v SelfServiceLandingPageSchemaConfigTryLearn)` + +SetConfigTryLearn sets ConfigTryLearn field to given value. + +### HasConfigTryLearn + +`func (o *SelfServiceLandingPageSchema) HasConfigTryLearn() bool` + +HasConfigTryLearn returns a boolean if a field has been set. + +### GetEstate + +`func (o *SelfServiceLandingPageSchema) GetEstate() SelfServiceLandingPageSchemaEstate` + +GetEstate returns the Estate field if non-nil, zero value otherwise. + +### GetEstateOk + +`func (o *SelfServiceLandingPageSchema) GetEstateOk() (*SelfServiceLandingPageSchemaEstate, bool)` + +GetEstateOk returns a tuple with the Estate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstate + +`func (o *SelfServiceLandingPageSchema) SetEstate(v SelfServiceLandingPageSchemaEstate)` + +SetEstate sets Estate field to given value. + +### HasEstate + +`func (o *SelfServiceLandingPageSchema) HasEstate() bool` + +HasEstate 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaConfigTryLearn.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaConfigTryLearn.md new file mode 100644 index 00000000..7c1768b7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaConfigTryLearn.md @@ -0,0 +1,82 @@ +# SelfServiceLandingPageSchemaConfigTryLearn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configure** | Pointer to [**[]LandingPageCTLItem**](LandingPageCTLItem.md) | | [optional] +**Try** | Pointer to [**[]LandingPageCTLItem**](LandingPageCTLItem.md) | | [optional] + +## Methods + +### NewSelfServiceLandingPageSchemaConfigTryLearn + +`func NewSelfServiceLandingPageSchemaConfigTryLearn() *SelfServiceLandingPageSchemaConfigTryLearn` + +NewSelfServiceLandingPageSchemaConfigTryLearn instantiates a new SelfServiceLandingPageSchemaConfigTryLearn 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 + +### NewSelfServiceLandingPageSchemaConfigTryLearnWithDefaults + +`func NewSelfServiceLandingPageSchemaConfigTryLearnWithDefaults() *SelfServiceLandingPageSchemaConfigTryLearn` + +NewSelfServiceLandingPageSchemaConfigTryLearnWithDefaults instantiates a new SelfServiceLandingPageSchemaConfigTryLearn 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 + +### GetConfigure + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetConfigure() []LandingPageCTLItem` + +GetConfigure returns the Configure field if non-nil, zero value otherwise. + +### GetConfigureOk + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetConfigureOk() (*[]LandingPageCTLItem, bool)` + +GetConfigureOk returns a tuple with the Configure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigure + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) SetConfigure(v []LandingPageCTLItem)` + +SetConfigure sets Configure field to given value. + +### HasConfigure + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) HasConfigure() bool` + +HasConfigure returns a boolean if a field has been set. + +### GetTry + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetTry() []LandingPageCTLItem` + +GetTry returns the Try field if non-nil, zero value otherwise. + +### GetTryOk + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetTryOk() (*[]LandingPageCTLItem, bool)` + +GetTryOk returns a tuple with the Try field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTry + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) SetTry(v []LandingPageCTLItem)` + +SetTry sets Try field to given value. + +### HasTry + +`func (o *SelfServiceLandingPageSchemaConfigTryLearn) HasTry() bool` + +HasTry 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaEstate.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaEstate.md new file mode 100644 index 00000000..b6751c55 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfServiceLandingPageSchemaEstate.md @@ -0,0 +1,56 @@ +# SelfServiceLandingPageSchemaEstate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]LandingPageEstateItem**](LandingPageEstateItem.md) | | [optional] + +## Methods + +### NewSelfServiceLandingPageSchemaEstate + +`func NewSelfServiceLandingPageSchemaEstate() *SelfServiceLandingPageSchemaEstate` + +NewSelfServiceLandingPageSchemaEstate instantiates a new SelfServiceLandingPageSchemaEstate 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 + +### NewSelfServiceLandingPageSchemaEstateWithDefaults + +`func NewSelfServiceLandingPageSchemaEstateWithDefaults() *SelfServiceLandingPageSchemaEstate` + +NewSelfServiceLandingPageSchemaEstateWithDefaults instantiates a new SelfServiceLandingPageSchemaEstate 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 + +### GetItems + +`func (o *SelfServiceLandingPageSchemaEstate) GetItems() []LandingPageEstateItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SelfServiceLandingPageSchemaEstate) GetItemsOk() (*[]LandingPageEstateItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SelfServiceLandingPageSchemaEstate) SetItems(v []LandingPageEstateItem)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SelfServiceLandingPageSchemaEstate) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfTermsReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfTermsReview.md new file mode 100644 index 00000000..74b85e08 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SelfTermsReview.md @@ -0,0 +1,108 @@ +# SelfTermsReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CheckOptionalTerms** | Pointer to **bool** | | [optional] [default to true] +**EventCode** | Pointer to **string** | | [optional] +**SiteCode** | Pointer to **string** | | [optional] + +## Methods + +### NewSelfTermsReview + +`func NewSelfTermsReview() *SelfTermsReview` + +NewSelfTermsReview instantiates a new SelfTermsReview 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 + +### NewSelfTermsReviewWithDefaults + +`func NewSelfTermsReviewWithDefaults() *SelfTermsReview` + +NewSelfTermsReviewWithDefaults instantiates a new SelfTermsReview 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 + +### GetCheckOptionalTerms + +`func (o *SelfTermsReview) GetCheckOptionalTerms() bool` + +GetCheckOptionalTerms returns the CheckOptionalTerms field if non-nil, zero value otherwise. + +### GetCheckOptionalTermsOk + +`func (o *SelfTermsReview) GetCheckOptionalTermsOk() (*bool, bool)` + +GetCheckOptionalTermsOk returns a tuple with the CheckOptionalTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckOptionalTerms + +`func (o *SelfTermsReview) SetCheckOptionalTerms(v bool)` + +SetCheckOptionalTerms sets CheckOptionalTerms field to given value. + +### HasCheckOptionalTerms + +`func (o *SelfTermsReview) HasCheckOptionalTerms() bool` + +HasCheckOptionalTerms returns a boolean if a field has been set. + +### GetEventCode + +`func (o *SelfTermsReview) GetEventCode() string` + +GetEventCode returns the EventCode field if non-nil, zero value otherwise. + +### GetEventCodeOk + +`func (o *SelfTermsReview) GetEventCodeOk() (*string, bool)` + +GetEventCodeOk returns a tuple with the EventCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventCode + +`func (o *SelfTermsReview) SetEventCode(v string)` + +SetEventCode sets EventCode field to given value. + +### HasEventCode + +`func (o *SelfTermsReview) HasEventCode() bool` + +HasEventCode returns a boolean if a field has been set. + +### GetSiteCode + +`func (o *SelfTermsReview) GetSiteCode() string` + +GetSiteCode returns the SiteCode field if non-nil, zero value otherwise. + +### GetSiteCodeOk + +`func (o *SelfTermsReview) GetSiteCodeOk() (*string, bool)` + +GetSiteCodeOk returns a tuple with the SiteCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCode + +`func (o *SelfTermsReview) SetSiteCode(v string)` + +SetSiteCode sets SiteCode field to given value. + +### HasSiteCode + +`func (o *SelfTermsReview) HasSiteCode() bool` + +HasSiteCode 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuList.md new file mode 100644 index 00000000..9bbb8721 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuList.md @@ -0,0 +1,135 @@ +# SkuList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]SKU**](SKU.md) | | + +## Methods + +### NewSkuList + +`func NewSkuList(kind string, page int32, size int32, total int32, items []SKU, ) *SkuList` + +NewSkuList instantiates a new SkuList 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 + +### NewSkuListWithDefaults + +`func NewSkuListWithDefaults() *SkuList` + +NewSkuListWithDefaults instantiates a new SkuList 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 + +### GetKind + +`func (o *SkuList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SkuList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SkuList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *SkuList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SkuList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SkuList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *SkuList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SkuList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SkuList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *SkuList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *SkuList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *SkuList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *SkuList) GetItems() []SKU` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SkuList) GetItemsOk() (*[]SKU, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SkuList) SetItems(v []SKU)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuListAllOf.md new file mode 100644 index 00000000..6e51bf9f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuListAllOf.md @@ -0,0 +1,56 @@ +# SkuListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]SKU**](SKU.md) | | [optional] + +## Methods + +### NewSkuListAllOf + +`func NewSkuListAllOf() *SkuListAllOf` + +NewSkuListAllOf instantiates a new SkuListAllOf 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 + +### NewSkuListAllOfWithDefaults + +`func NewSkuListAllOfWithDefaults() *SkuListAllOf` + +NewSkuListAllOfWithDefaults instantiates a new SkuListAllOf 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 + +### GetItems + +`func (o *SkuListAllOf) GetItems() []SKU` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SkuListAllOf) GetItemsOk() (*[]SKU, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SkuListAllOf) SetItems(v []SKU)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SkuListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRules.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRules.md new file mode 100644 index 00000000..c9eb9c84 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRules.md @@ -0,0 +1,186 @@ +# SkuRules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Allowed** | Pointer to **int32** | | [optional] +**QuotaId** | Pointer to **string** | | [optional] +**Sku** | Pointer to **string** | | [optional] + +## Methods + +### NewSkuRules + +`func NewSkuRules() *SkuRules` + +NewSkuRules instantiates a new SkuRules 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 + +### NewSkuRulesWithDefaults + +`func NewSkuRulesWithDefaults() *SkuRules` + +NewSkuRulesWithDefaults instantiates a new SkuRules 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 + +### GetHref + +`func (o *SkuRules) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SkuRules) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *SkuRules) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SkuRules) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *SkuRules) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SkuRules) 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 *SkuRules) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SkuRules) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *SkuRules) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SkuRules) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SkuRules) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *SkuRules) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAllowed + +`func (o *SkuRules) GetAllowed() int32` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *SkuRules) GetAllowedOk() (*int32, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *SkuRules) SetAllowed(v int32)` + +SetAllowed sets Allowed field to given value. + +### HasAllowed + +`func (o *SkuRules) HasAllowed() bool` + +HasAllowed returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *SkuRules) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *SkuRules) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *SkuRules) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + +### HasQuotaId + +`func (o *SkuRules) HasQuotaId() bool` + +HasQuotaId returns a boolean if a field has been set. + +### GetSku + +`func (o *SkuRules) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *SkuRules) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *SkuRules) SetSku(v string)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *SkuRules) HasSku() bool` + +HasSku 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesAllOf.md new file mode 100644 index 00000000..28d8da38 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesAllOf.md @@ -0,0 +1,108 @@ +# SkuRulesAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allowed** | Pointer to **int32** | | [optional] +**QuotaId** | Pointer to **string** | | [optional] +**Sku** | Pointer to **string** | | [optional] + +## Methods + +### NewSkuRulesAllOf + +`func NewSkuRulesAllOf() *SkuRulesAllOf` + +NewSkuRulesAllOf instantiates a new SkuRulesAllOf 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 + +### NewSkuRulesAllOfWithDefaults + +`func NewSkuRulesAllOfWithDefaults() *SkuRulesAllOf` + +NewSkuRulesAllOfWithDefaults instantiates a new SkuRulesAllOf 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 + +### GetAllowed + +`func (o *SkuRulesAllOf) GetAllowed() int32` + +GetAllowed returns the Allowed field if non-nil, zero value otherwise. + +### GetAllowedOk + +`func (o *SkuRulesAllOf) GetAllowedOk() (*int32, bool)` + +GetAllowedOk returns a tuple with the Allowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowed + +`func (o *SkuRulesAllOf) SetAllowed(v int32)` + +SetAllowed sets Allowed field to given value. + +### HasAllowed + +`func (o *SkuRulesAllOf) HasAllowed() bool` + +HasAllowed returns a boolean if a field has been set. + +### GetQuotaId + +`func (o *SkuRulesAllOf) GetQuotaId() string` + +GetQuotaId returns the QuotaId field if non-nil, zero value otherwise. + +### GetQuotaIdOk + +`func (o *SkuRulesAllOf) GetQuotaIdOk() (*string, bool)` + +GetQuotaIdOk returns a tuple with the QuotaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaId + +`func (o *SkuRulesAllOf) SetQuotaId(v string)` + +SetQuotaId sets QuotaId field to given value. + +### HasQuotaId + +`func (o *SkuRulesAllOf) HasQuotaId() bool` + +HasQuotaId returns a boolean if a field has been set. + +### GetSku + +`func (o *SkuRulesAllOf) GetSku() string` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *SkuRulesAllOf) GetSkuOk() (*string, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *SkuRulesAllOf) SetSku(v string)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *SkuRulesAllOf) HasSku() bool` + +HasSku 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesList.md new file mode 100644 index 00000000..2e806d9b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesList.md @@ -0,0 +1,135 @@ +# SkuRulesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]SkuRules**](SkuRules.md) | | + +## Methods + +### NewSkuRulesList + +`func NewSkuRulesList(kind string, page int32, size int32, total int32, items []SkuRules, ) *SkuRulesList` + +NewSkuRulesList instantiates a new SkuRulesList 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 + +### NewSkuRulesListWithDefaults + +`func NewSkuRulesListWithDefaults() *SkuRulesList` + +NewSkuRulesListWithDefaults instantiates a new SkuRulesList 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 + +### GetKind + +`func (o *SkuRulesList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SkuRulesList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SkuRulesList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *SkuRulesList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SkuRulesList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SkuRulesList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *SkuRulesList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SkuRulesList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SkuRulesList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *SkuRulesList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *SkuRulesList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *SkuRulesList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *SkuRulesList) GetItems() []SkuRules` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SkuRulesList) GetItemsOk() (*[]SkuRules, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SkuRulesList) SetItems(v []SkuRules)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesListAllOf.md new file mode 100644 index 00000000..b622821e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SkuRulesListAllOf.md @@ -0,0 +1,56 @@ +# SkuRulesListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]SkuRules**](SkuRules.md) | | [optional] + +## Methods + +### NewSkuRulesListAllOf + +`func NewSkuRulesListAllOf() *SkuRulesListAllOf` + +NewSkuRulesListAllOf instantiates a new SkuRulesListAllOf 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 + +### NewSkuRulesListAllOfWithDefaults + +`func NewSkuRulesListAllOfWithDefaults() *SkuRulesListAllOf` + +NewSkuRulesListAllOfWithDefaults instantiates a new SkuRulesListAllOf 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 + +### GetItems + +`func (o *SkuRulesListAllOf) GetItems() []SkuRules` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SkuRulesListAllOf) GetItemsOk() (*[]SkuRules, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SkuRulesListAllOf) SetItems(v []SkuRules)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SkuRulesListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Subscription.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Subscription.md new file mode 100644 index 00000000..a88487a2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Subscription.md @@ -0,0 +1,1091 @@ +# Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**BillingExpirationDate** | Pointer to **time.Time** | If set, the date the subscription expires based on the billing model | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterBillingModel** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ConsoleUrl** | Pointer to **string** | | [optional] +**ConsumerUuid** | Pointer to **string** | | [optional] +**CpuTotal** | Pointer to **int32** | | [optional] +**CreatorId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**LastReconcileDate** | Pointer to **time.Time** | Last time this subscription were reconciled about cluster usage | [optional] +**LastReleasedAt** | Pointer to **time.Time** | Last time status was set to Released for this cluster/subscription in Unix time | [optional] +**LastTelemetryDate** | Pointer to **time.Time** | Last telemetry authorization request for this cluster/subscription in Unix time | [optional] +**Managed** | **bool** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ProductBundle** | Pointer to **string** | | [optional] +**Provenance** | Pointer to **string** | | [optional] +**RegionId** | Pointer to **string** | | [optional] +**Released** | Pointer to **bool** | | [optional] +**ServiceLevel** | Pointer to **string** | | [optional] +**SocketTotal** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SupportLevel** | Pointer to **string** | | [optional] +**SystemUnits** | Pointer to **string** | | [optional] +**TrialEndDate** | Pointer to **time.Time** | If the subscription is a trial, date the trial ends | [optional] +**Usage** | Pointer to **string** | | [optional] +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Creator** | Pointer to [**AccountReference**](AccountReference.md) | | [optional] +**EvalExpirationDate** | Pointer to **time.Time** | Calulated as the subscription created date + 60 days | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**Metrics** | Pointer to [**[]OneMetric**](OneMetric.md) | | [optional] +**NotificationContacts** | Pointer to [**[]Account**](Account.md) | | [optional] +**Plan** | Pointer to [**Plan**](Plan.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSubscription + +`func NewSubscription(managed bool, ) *Subscription` + +NewSubscription instantiates a new Subscription 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 + +### NewSubscriptionWithDefaults + +`func NewSubscriptionWithDefaults() *Subscription` + +NewSubscriptionWithDefaults instantiates a new Subscription 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 + +### GetHref + +`func (o *Subscription) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Subscription) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Subscription) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Subscription) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Subscription) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Subscription) 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 *Subscription) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Subscription) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Subscription) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Subscription) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Subscription) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Subscription) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetBillingExpirationDate + +`func (o *Subscription) GetBillingExpirationDate() time.Time` + +GetBillingExpirationDate returns the BillingExpirationDate field if non-nil, zero value otherwise. + +### GetBillingExpirationDateOk + +`func (o *Subscription) GetBillingExpirationDateOk() (*time.Time, bool)` + +GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingExpirationDate + +`func (o *Subscription) SetBillingExpirationDate(v time.Time)` + +SetBillingExpirationDate sets BillingExpirationDate field to given value. + +### HasBillingExpirationDate + +`func (o *Subscription) HasBillingExpirationDate() bool` + +HasBillingExpirationDate returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *Subscription) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *Subscription) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *Subscription) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *Subscription) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *Subscription) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *Subscription) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *Subscription) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *Subscription) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *Subscription) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *Subscription) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *Subscription) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *Subscription) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterBillingModel + +`func (o *Subscription) GetClusterBillingModel() string` + +GetClusterBillingModel returns the ClusterBillingModel field if non-nil, zero value otherwise. + +### GetClusterBillingModelOk + +`func (o *Subscription) GetClusterBillingModelOk() (*string, bool)` + +GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterBillingModel + +`func (o *Subscription) SetClusterBillingModel(v string)` + +SetClusterBillingModel sets ClusterBillingModel field to given value. + +### HasClusterBillingModel + +`func (o *Subscription) HasClusterBillingModel() bool` + +HasClusterBillingModel returns a boolean if a field has been set. + +### GetClusterId + +`func (o *Subscription) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *Subscription) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *Subscription) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *Subscription) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetConsoleUrl + +`func (o *Subscription) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *Subscription) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *Subscription) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *Subscription) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetConsumerUuid + +`func (o *Subscription) GetConsumerUuid() string` + +GetConsumerUuid returns the ConsumerUuid field if non-nil, zero value otherwise. + +### GetConsumerUuidOk + +`func (o *Subscription) GetConsumerUuidOk() (*string, bool)` + +GetConsumerUuidOk returns a tuple with the ConsumerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumerUuid + +`func (o *Subscription) SetConsumerUuid(v string)` + +SetConsumerUuid sets ConsumerUuid field to given value. + +### HasConsumerUuid + +`func (o *Subscription) HasConsumerUuid() bool` + +HasConsumerUuid returns a boolean if a field has been set. + +### GetCpuTotal + +`func (o *Subscription) GetCpuTotal() int32` + +GetCpuTotal returns the CpuTotal field if non-nil, zero value otherwise. + +### GetCpuTotalOk + +`func (o *Subscription) GetCpuTotalOk() (*int32, bool)` + +GetCpuTotalOk returns a tuple with the CpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuTotal + +`func (o *Subscription) SetCpuTotal(v int32)` + +SetCpuTotal sets CpuTotal field to given value. + +### HasCpuTotal + +`func (o *Subscription) HasCpuTotal() bool` + +HasCpuTotal returns a boolean if a field has been set. + +### GetCreatorId + +`func (o *Subscription) GetCreatorId() string` + +GetCreatorId returns the CreatorId field if non-nil, zero value otherwise. + +### GetCreatorIdOk + +`func (o *Subscription) GetCreatorIdOk() (*string, bool)` + +GetCreatorIdOk returns a tuple with the CreatorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorId + +`func (o *Subscription) SetCreatorId(v string)` + +SetCreatorId sets CreatorId field to given value. + +### HasCreatorId + +`func (o *Subscription) HasCreatorId() bool` + +HasCreatorId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *Subscription) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *Subscription) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *Subscription) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *Subscription) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *Subscription) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *Subscription) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *Subscription) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *Subscription) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetLastReconcileDate + +`func (o *Subscription) GetLastReconcileDate() time.Time` + +GetLastReconcileDate returns the LastReconcileDate field if non-nil, zero value otherwise. + +### GetLastReconcileDateOk + +`func (o *Subscription) GetLastReconcileDateOk() (*time.Time, bool)` + +GetLastReconcileDateOk returns a tuple with the LastReconcileDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReconcileDate + +`func (o *Subscription) SetLastReconcileDate(v time.Time)` + +SetLastReconcileDate sets LastReconcileDate field to given value. + +### HasLastReconcileDate + +`func (o *Subscription) HasLastReconcileDate() bool` + +HasLastReconcileDate returns a boolean if a field has been set. + +### GetLastReleasedAt + +`func (o *Subscription) GetLastReleasedAt() time.Time` + +GetLastReleasedAt returns the LastReleasedAt field if non-nil, zero value otherwise. + +### GetLastReleasedAtOk + +`func (o *Subscription) GetLastReleasedAtOk() (*time.Time, bool)` + +GetLastReleasedAtOk returns a tuple with the LastReleasedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReleasedAt + +`func (o *Subscription) SetLastReleasedAt(v time.Time)` + +SetLastReleasedAt sets LastReleasedAt field to given value. + +### HasLastReleasedAt + +`func (o *Subscription) HasLastReleasedAt() bool` + +HasLastReleasedAt returns a boolean if a field has been set. + +### GetLastTelemetryDate + +`func (o *Subscription) GetLastTelemetryDate() time.Time` + +GetLastTelemetryDate returns the LastTelemetryDate field if non-nil, zero value otherwise. + +### GetLastTelemetryDateOk + +`func (o *Subscription) GetLastTelemetryDateOk() (*time.Time, bool)` + +GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTelemetryDate + +`func (o *Subscription) SetLastTelemetryDate(v time.Time)` + +SetLastTelemetryDate sets LastTelemetryDate field to given value. + +### HasLastTelemetryDate + +`func (o *Subscription) HasLastTelemetryDate() bool` + +HasLastTelemetryDate returns a boolean if a field has been set. + +### GetManaged + +`func (o *Subscription) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *Subscription) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *Subscription) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + + +### GetOrganizationId + +`func (o *Subscription) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *Subscription) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *Subscription) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *Subscription) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *Subscription) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *Subscription) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *Subscription) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *Subscription) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetProductBundle + +`func (o *Subscription) GetProductBundle() string` + +GetProductBundle returns the ProductBundle field if non-nil, zero value otherwise. + +### GetProductBundleOk + +`func (o *Subscription) GetProductBundleOk() (*string, bool)` + +GetProductBundleOk returns a tuple with the ProductBundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductBundle + +`func (o *Subscription) SetProductBundle(v string)` + +SetProductBundle sets ProductBundle field to given value. + +### HasProductBundle + +`func (o *Subscription) HasProductBundle() bool` + +HasProductBundle returns a boolean if a field has been set. + +### GetProvenance + +`func (o *Subscription) GetProvenance() string` + +GetProvenance returns the Provenance field if non-nil, zero value otherwise. + +### GetProvenanceOk + +`func (o *Subscription) GetProvenanceOk() (*string, bool)` + +GetProvenanceOk returns a tuple with the Provenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvenance + +`func (o *Subscription) SetProvenance(v string)` + +SetProvenance sets Provenance field to given value. + +### HasProvenance + +`func (o *Subscription) HasProvenance() bool` + +HasProvenance returns a boolean if a field has been set. + +### GetRegionId + +`func (o *Subscription) GetRegionId() string` + +GetRegionId returns the RegionId field if non-nil, zero value otherwise. + +### GetRegionIdOk + +`func (o *Subscription) GetRegionIdOk() (*string, bool)` + +GetRegionIdOk returns a tuple with the RegionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegionId + +`func (o *Subscription) SetRegionId(v string)` + +SetRegionId sets RegionId field to given value. + +### HasRegionId + +`func (o *Subscription) HasRegionId() bool` + +HasRegionId returns a boolean if a field has been set. + +### GetReleased + +`func (o *Subscription) GetReleased() bool` + +GetReleased returns the Released field if non-nil, zero value otherwise. + +### GetReleasedOk + +`func (o *Subscription) GetReleasedOk() (*bool, bool)` + +GetReleasedOk returns a tuple with the Released field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleased + +`func (o *Subscription) SetReleased(v bool)` + +SetReleased sets Released field to given value. + +### HasReleased + +`func (o *Subscription) HasReleased() bool` + +HasReleased returns a boolean if a field has been set. + +### GetServiceLevel + +`func (o *Subscription) GetServiceLevel() string` + +GetServiceLevel returns the ServiceLevel field if non-nil, zero value otherwise. + +### GetServiceLevelOk + +`func (o *Subscription) GetServiceLevelOk() (*string, bool)` + +GetServiceLevelOk returns a tuple with the ServiceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceLevel + +`func (o *Subscription) SetServiceLevel(v string)` + +SetServiceLevel sets ServiceLevel field to given value. + +### HasServiceLevel + +`func (o *Subscription) HasServiceLevel() bool` + +HasServiceLevel returns a boolean if a field has been set. + +### GetSocketTotal + +`func (o *Subscription) GetSocketTotal() int32` + +GetSocketTotal returns the SocketTotal field if non-nil, zero value otherwise. + +### GetSocketTotalOk + +`func (o *Subscription) GetSocketTotalOk() (*int32, bool)` + +GetSocketTotalOk returns a tuple with the SocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocketTotal + +`func (o *Subscription) SetSocketTotal(v int32)` + +SetSocketTotal sets SocketTotal field to given value. + +### HasSocketTotal + +`func (o *Subscription) HasSocketTotal() bool` + +HasSocketTotal returns a boolean if a field has been set. + +### GetStatus + +`func (o *Subscription) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Subscription) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Subscription) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Subscription) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSupportLevel + +`func (o *Subscription) GetSupportLevel() string` + +GetSupportLevel returns the SupportLevel field if non-nil, zero value otherwise. + +### GetSupportLevelOk + +`func (o *Subscription) GetSupportLevelOk() (*string, bool)` + +GetSupportLevelOk returns a tuple with the SupportLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportLevel + +`func (o *Subscription) SetSupportLevel(v string)` + +SetSupportLevel sets SupportLevel field to given value. + +### HasSupportLevel + +`func (o *Subscription) HasSupportLevel() bool` + +HasSupportLevel returns a boolean if a field has been set. + +### GetSystemUnits + +`func (o *Subscription) GetSystemUnits() string` + +GetSystemUnits returns the SystemUnits field if non-nil, zero value otherwise. + +### GetSystemUnitsOk + +`func (o *Subscription) GetSystemUnitsOk() (*string, bool)` + +GetSystemUnitsOk returns a tuple with the SystemUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemUnits + +`func (o *Subscription) SetSystemUnits(v string)` + +SetSystemUnits sets SystemUnits field to given value. + +### HasSystemUnits + +`func (o *Subscription) HasSystemUnits() bool` + +HasSystemUnits returns a boolean if a field has been set. + +### GetTrialEndDate + +`func (o *Subscription) GetTrialEndDate() time.Time` + +GetTrialEndDate returns the TrialEndDate field if non-nil, zero value otherwise. + +### GetTrialEndDateOk + +`func (o *Subscription) GetTrialEndDateOk() (*time.Time, bool)` + +GetTrialEndDateOk returns a tuple with the TrialEndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialEndDate + +`func (o *Subscription) SetTrialEndDate(v time.Time)` + +SetTrialEndDate sets TrialEndDate field to given value. + +### HasTrialEndDate + +`func (o *Subscription) HasTrialEndDate() bool` + +HasTrialEndDate returns a boolean if a field has been set. + +### GetUsage + +`func (o *Subscription) GetUsage() string` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *Subscription) GetUsageOk() (*string, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *Subscription) SetUsage(v string)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *Subscription) HasUsage() bool` + +HasUsage returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *Subscription) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *Subscription) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *Subscription) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *Subscription) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Subscription) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Subscription) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Subscription) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Subscription) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetCreator + +`func (o *Subscription) GetCreator() AccountReference` + +GetCreator returns the Creator field if non-nil, zero value otherwise. + +### GetCreatorOk + +`func (o *Subscription) GetCreatorOk() (*AccountReference, bool)` + +GetCreatorOk returns a tuple with the Creator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreator + +`func (o *Subscription) SetCreator(v AccountReference)` + +SetCreator sets Creator field to given value. + +### HasCreator + +`func (o *Subscription) HasCreator() bool` + +HasCreator returns a boolean if a field has been set. + +### GetEvalExpirationDate + +`func (o *Subscription) GetEvalExpirationDate() time.Time` + +GetEvalExpirationDate returns the EvalExpirationDate field if non-nil, zero value otherwise. + +### GetEvalExpirationDateOk + +`func (o *Subscription) GetEvalExpirationDateOk() (*time.Time, bool)` + +GetEvalExpirationDateOk returns a tuple with the EvalExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvalExpirationDate + +`func (o *Subscription) SetEvalExpirationDate(v time.Time)` + +SetEvalExpirationDate sets EvalExpirationDate field to given value. + +### HasEvalExpirationDate + +`func (o *Subscription) HasEvalExpirationDate() bool` + +HasEvalExpirationDate returns a boolean if a field has been set. + +### GetLabels + +`func (o *Subscription) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *Subscription) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *Subscription) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *Subscription) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetMetrics + +`func (o *Subscription) GetMetrics() []OneMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *Subscription) GetMetricsOk() (*[]OneMetric, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *Subscription) SetMetrics(v []OneMetric)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *Subscription) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetNotificationContacts + +`func (o *Subscription) GetNotificationContacts() []Account` + +GetNotificationContacts returns the NotificationContacts field if non-nil, zero value otherwise. + +### GetNotificationContactsOk + +`func (o *Subscription) GetNotificationContactsOk() (*[]Account, bool)` + +GetNotificationContactsOk returns a tuple with the NotificationContacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationContacts + +`func (o *Subscription) SetNotificationContacts(v []Account)` + +SetNotificationContacts sets NotificationContacts field to given value. + +### HasNotificationContacts + +`func (o *Subscription) HasNotificationContacts() bool` + +HasNotificationContacts returns a boolean if a field has been set. + +### GetPlan + +`func (o *Subscription) GetPlan() Plan` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *Subscription) GetPlanOk() (*Plan, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *Subscription) SetPlan(v Plan)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *Subscription) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Subscription) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Subscription) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Subscription) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Subscription) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionAllOf.md new file mode 100644 index 00000000..109ab706 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionAllOf.md @@ -0,0 +1,264 @@ +# SubscriptionAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capabilities** | Pointer to [**[]Capability**](Capability.md) | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Creator** | Pointer to [**AccountReference**](AccountReference.md) | | [optional] +**EvalExpirationDate** | Pointer to **time.Time** | Calulated as the subscription created date + 60 days | [optional] +**Labels** | Pointer to [**[]Label**](Label.md) | | [optional] +**Metrics** | Pointer to [**[]OneMetric**](OneMetric.md) | | [optional] +**NotificationContacts** | Pointer to [**[]Account**](Account.md) | | [optional] +**Plan** | Pointer to [**Plan**](Plan.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSubscriptionAllOf + +`func NewSubscriptionAllOf() *SubscriptionAllOf` + +NewSubscriptionAllOf instantiates a new SubscriptionAllOf 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 + +### NewSubscriptionAllOfWithDefaults + +`func NewSubscriptionAllOfWithDefaults() *SubscriptionAllOf` + +NewSubscriptionAllOfWithDefaults instantiates a new SubscriptionAllOf 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 + +### GetCapabilities + +`func (o *SubscriptionAllOf) GetCapabilities() []Capability` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *SubscriptionAllOf) GetCapabilitiesOk() (*[]Capability, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *SubscriptionAllOf) SetCapabilities(v []Capability)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *SubscriptionAllOf) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SubscriptionAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SubscriptionAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SubscriptionAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SubscriptionAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetCreator + +`func (o *SubscriptionAllOf) GetCreator() AccountReference` + +GetCreator returns the Creator field if non-nil, zero value otherwise. + +### GetCreatorOk + +`func (o *SubscriptionAllOf) GetCreatorOk() (*AccountReference, bool)` + +GetCreatorOk returns a tuple with the Creator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreator + +`func (o *SubscriptionAllOf) SetCreator(v AccountReference)` + +SetCreator sets Creator field to given value. + +### HasCreator + +`func (o *SubscriptionAllOf) HasCreator() bool` + +HasCreator returns a boolean if a field has been set. + +### GetEvalExpirationDate + +`func (o *SubscriptionAllOf) GetEvalExpirationDate() time.Time` + +GetEvalExpirationDate returns the EvalExpirationDate field if non-nil, zero value otherwise. + +### GetEvalExpirationDateOk + +`func (o *SubscriptionAllOf) GetEvalExpirationDateOk() (*time.Time, bool)` + +GetEvalExpirationDateOk returns a tuple with the EvalExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvalExpirationDate + +`func (o *SubscriptionAllOf) SetEvalExpirationDate(v time.Time)` + +SetEvalExpirationDate sets EvalExpirationDate field to given value. + +### HasEvalExpirationDate + +`func (o *SubscriptionAllOf) HasEvalExpirationDate() bool` + +HasEvalExpirationDate returns a boolean if a field has been set. + +### GetLabels + +`func (o *SubscriptionAllOf) GetLabels() []Label` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *SubscriptionAllOf) GetLabelsOk() (*[]Label, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *SubscriptionAllOf) SetLabels(v []Label)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *SubscriptionAllOf) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetMetrics + +`func (o *SubscriptionAllOf) GetMetrics() []OneMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *SubscriptionAllOf) GetMetricsOk() (*[]OneMetric, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *SubscriptionAllOf) SetMetrics(v []OneMetric)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *SubscriptionAllOf) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetNotificationContacts + +`func (o *SubscriptionAllOf) GetNotificationContacts() []Account` + +GetNotificationContacts returns the NotificationContacts field if non-nil, zero value otherwise. + +### GetNotificationContactsOk + +`func (o *SubscriptionAllOf) GetNotificationContactsOk() (*[]Account, bool)` + +GetNotificationContactsOk returns a tuple with the NotificationContacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationContacts + +`func (o *SubscriptionAllOf) SetNotificationContacts(v []Account)` + +SetNotificationContacts sets NotificationContacts field to given value. + +### HasNotificationContacts + +`func (o *SubscriptionAllOf) HasNotificationContacts() bool` + +HasNotificationContacts returns a boolean if a field has been set. + +### GetPlan + +`func (o *SubscriptionAllOf) GetPlan() Plan` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *SubscriptionAllOf) GetPlanOk() (*Plan, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *SubscriptionAllOf) SetPlan(v Plan)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *SubscriptionAllOf) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SubscriptionAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SubscriptionAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SubscriptionAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SubscriptionAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFields.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFields.md new file mode 100644 index 00000000..bfba901a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFields.md @@ -0,0 +1,857 @@ +# SubscriptionCommonFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**BillingExpirationDate** | Pointer to **time.Time** | If set, the date the subscription expires based on the billing model | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterBillingModel** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ConsoleUrl** | Pointer to **string** | | [optional] +**ConsumerUuid** | Pointer to **string** | | [optional] +**CpuTotal** | Pointer to **int32** | | [optional] +**CreatorId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**LastReconcileDate** | Pointer to **time.Time** | Last time this subscription were reconciled about cluster usage | [optional] +**LastReleasedAt** | Pointer to **time.Time** | Last time status was set to Released for this cluster/subscription in Unix time | [optional] +**LastTelemetryDate** | Pointer to **time.Time** | Last telemetry authorization request for this cluster/subscription in Unix time | [optional] +**Managed** | **bool** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ProductBundle** | Pointer to **string** | | [optional] +**Provenance** | Pointer to **string** | | [optional] +**RegionId** | Pointer to **string** | | [optional] +**Released** | Pointer to **bool** | | [optional] +**ServiceLevel** | Pointer to **string** | | [optional] +**SocketTotal** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SupportLevel** | Pointer to **string** | | [optional] +**SystemUnits** | Pointer to **string** | | [optional] +**TrialEndDate** | Pointer to **time.Time** | If the subscription is a trial, date the trial ends | [optional] +**Usage** | Pointer to **string** | | [optional] + +## Methods + +### NewSubscriptionCommonFields + +`func NewSubscriptionCommonFields(managed bool, ) *SubscriptionCommonFields` + +NewSubscriptionCommonFields instantiates a new SubscriptionCommonFields 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 + +### NewSubscriptionCommonFieldsWithDefaults + +`func NewSubscriptionCommonFieldsWithDefaults() *SubscriptionCommonFields` + +NewSubscriptionCommonFieldsWithDefaults instantiates a new SubscriptionCommonFields 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 + +### GetHref + +`func (o *SubscriptionCommonFields) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SubscriptionCommonFields) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *SubscriptionCommonFields) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SubscriptionCommonFields) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *SubscriptionCommonFields) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SubscriptionCommonFields) 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 *SubscriptionCommonFields) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SubscriptionCommonFields) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *SubscriptionCommonFields) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SubscriptionCommonFields) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SubscriptionCommonFields) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *SubscriptionCommonFields) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetBillingExpirationDate + +`func (o *SubscriptionCommonFields) GetBillingExpirationDate() time.Time` + +GetBillingExpirationDate returns the BillingExpirationDate field if non-nil, zero value otherwise. + +### GetBillingExpirationDateOk + +`func (o *SubscriptionCommonFields) GetBillingExpirationDateOk() (*time.Time, bool)` + +GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingExpirationDate + +`func (o *SubscriptionCommonFields) SetBillingExpirationDate(v time.Time)` + +SetBillingExpirationDate sets BillingExpirationDate field to given value. + +### HasBillingExpirationDate + +`func (o *SubscriptionCommonFields) HasBillingExpirationDate() bool` + +HasBillingExpirationDate returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *SubscriptionCommonFields) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *SubscriptionCommonFields) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *SubscriptionCommonFields) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *SubscriptionCommonFields) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *SubscriptionCommonFields) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *SubscriptionCommonFields) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *SubscriptionCommonFields) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *SubscriptionCommonFields) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *SubscriptionCommonFields) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *SubscriptionCommonFields) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *SubscriptionCommonFields) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *SubscriptionCommonFields) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterBillingModel + +`func (o *SubscriptionCommonFields) GetClusterBillingModel() string` + +GetClusterBillingModel returns the ClusterBillingModel field if non-nil, zero value otherwise. + +### GetClusterBillingModelOk + +`func (o *SubscriptionCommonFields) GetClusterBillingModelOk() (*string, bool)` + +GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterBillingModel + +`func (o *SubscriptionCommonFields) SetClusterBillingModel(v string)` + +SetClusterBillingModel sets ClusterBillingModel field to given value. + +### HasClusterBillingModel + +`func (o *SubscriptionCommonFields) HasClusterBillingModel() bool` + +HasClusterBillingModel returns a boolean if a field has been set. + +### GetClusterId + +`func (o *SubscriptionCommonFields) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SubscriptionCommonFields) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SubscriptionCommonFields) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SubscriptionCommonFields) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetConsoleUrl + +`func (o *SubscriptionCommonFields) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *SubscriptionCommonFields) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *SubscriptionCommonFields) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *SubscriptionCommonFields) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetConsumerUuid + +`func (o *SubscriptionCommonFields) GetConsumerUuid() string` + +GetConsumerUuid returns the ConsumerUuid field if non-nil, zero value otherwise. + +### GetConsumerUuidOk + +`func (o *SubscriptionCommonFields) GetConsumerUuidOk() (*string, bool)` + +GetConsumerUuidOk returns a tuple with the ConsumerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumerUuid + +`func (o *SubscriptionCommonFields) SetConsumerUuid(v string)` + +SetConsumerUuid sets ConsumerUuid field to given value. + +### HasConsumerUuid + +`func (o *SubscriptionCommonFields) HasConsumerUuid() bool` + +HasConsumerUuid returns a boolean if a field has been set. + +### GetCpuTotal + +`func (o *SubscriptionCommonFields) GetCpuTotal() int32` + +GetCpuTotal returns the CpuTotal field if non-nil, zero value otherwise. + +### GetCpuTotalOk + +`func (o *SubscriptionCommonFields) GetCpuTotalOk() (*int32, bool)` + +GetCpuTotalOk returns a tuple with the CpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuTotal + +`func (o *SubscriptionCommonFields) SetCpuTotal(v int32)` + +SetCpuTotal sets CpuTotal field to given value. + +### HasCpuTotal + +`func (o *SubscriptionCommonFields) HasCpuTotal() bool` + +HasCpuTotal returns a boolean if a field has been set. + +### GetCreatorId + +`func (o *SubscriptionCommonFields) GetCreatorId() string` + +GetCreatorId returns the CreatorId field if non-nil, zero value otherwise. + +### GetCreatorIdOk + +`func (o *SubscriptionCommonFields) GetCreatorIdOk() (*string, bool)` + +GetCreatorIdOk returns a tuple with the CreatorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorId + +`func (o *SubscriptionCommonFields) SetCreatorId(v string)` + +SetCreatorId sets CreatorId field to given value. + +### HasCreatorId + +`func (o *SubscriptionCommonFields) HasCreatorId() bool` + +HasCreatorId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SubscriptionCommonFields) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SubscriptionCommonFields) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SubscriptionCommonFields) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SubscriptionCommonFields) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *SubscriptionCommonFields) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *SubscriptionCommonFields) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *SubscriptionCommonFields) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *SubscriptionCommonFields) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetLastReconcileDate + +`func (o *SubscriptionCommonFields) GetLastReconcileDate() time.Time` + +GetLastReconcileDate returns the LastReconcileDate field if non-nil, zero value otherwise. + +### GetLastReconcileDateOk + +`func (o *SubscriptionCommonFields) GetLastReconcileDateOk() (*time.Time, bool)` + +GetLastReconcileDateOk returns a tuple with the LastReconcileDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReconcileDate + +`func (o *SubscriptionCommonFields) SetLastReconcileDate(v time.Time)` + +SetLastReconcileDate sets LastReconcileDate field to given value. + +### HasLastReconcileDate + +`func (o *SubscriptionCommonFields) HasLastReconcileDate() bool` + +HasLastReconcileDate returns a boolean if a field has been set. + +### GetLastReleasedAt + +`func (o *SubscriptionCommonFields) GetLastReleasedAt() time.Time` + +GetLastReleasedAt returns the LastReleasedAt field if non-nil, zero value otherwise. + +### GetLastReleasedAtOk + +`func (o *SubscriptionCommonFields) GetLastReleasedAtOk() (*time.Time, bool)` + +GetLastReleasedAtOk returns a tuple with the LastReleasedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReleasedAt + +`func (o *SubscriptionCommonFields) SetLastReleasedAt(v time.Time)` + +SetLastReleasedAt sets LastReleasedAt field to given value. + +### HasLastReleasedAt + +`func (o *SubscriptionCommonFields) HasLastReleasedAt() bool` + +HasLastReleasedAt returns a boolean if a field has been set. + +### GetLastTelemetryDate + +`func (o *SubscriptionCommonFields) GetLastTelemetryDate() time.Time` + +GetLastTelemetryDate returns the LastTelemetryDate field if non-nil, zero value otherwise. + +### GetLastTelemetryDateOk + +`func (o *SubscriptionCommonFields) GetLastTelemetryDateOk() (*time.Time, bool)` + +GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTelemetryDate + +`func (o *SubscriptionCommonFields) SetLastTelemetryDate(v time.Time)` + +SetLastTelemetryDate sets LastTelemetryDate field to given value. + +### HasLastTelemetryDate + +`func (o *SubscriptionCommonFields) HasLastTelemetryDate() bool` + +HasLastTelemetryDate returns a boolean if a field has been set. + +### GetManaged + +`func (o *SubscriptionCommonFields) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *SubscriptionCommonFields) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *SubscriptionCommonFields) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + + +### GetOrganizationId + +`func (o *SubscriptionCommonFields) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *SubscriptionCommonFields) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *SubscriptionCommonFields) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *SubscriptionCommonFields) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *SubscriptionCommonFields) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *SubscriptionCommonFields) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *SubscriptionCommonFields) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *SubscriptionCommonFields) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetProductBundle + +`func (o *SubscriptionCommonFields) GetProductBundle() string` + +GetProductBundle returns the ProductBundle field if non-nil, zero value otherwise. + +### GetProductBundleOk + +`func (o *SubscriptionCommonFields) GetProductBundleOk() (*string, bool)` + +GetProductBundleOk returns a tuple with the ProductBundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductBundle + +`func (o *SubscriptionCommonFields) SetProductBundle(v string)` + +SetProductBundle sets ProductBundle field to given value. + +### HasProductBundle + +`func (o *SubscriptionCommonFields) HasProductBundle() bool` + +HasProductBundle returns a boolean if a field has been set. + +### GetProvenance + +`func (o *SubscriptionCommonFields) GetProvenance() string` + +GetProvenance returns the Provenance field if non-nil, zero value otherwise. + +### GetProvenanceOk + +`func (o *SubscriptionCommonFields) GetProvenanceOk() (*string, bool)` + +GetProvenanceOk returns a tuple with the Provenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvenance + +`func (o *SubscriptionCommonFields) SetProvenance(v string)` + +SetProvenance sets Provenance field to given value. + +### HasProvenance + +`func (o *SubscriptionCommonFields) HasProvenance() bool` + +HasProvenance returns a boolean if a field has been set. + +### GetRegionId + +`func (o *SubscriptionCommonFields) GetRegionId() string` + +GetRegionId returns the RegionId field if non-nil, zero value otherwise. + +### GetRegionIdOk + +`func (o *SubscriptionCommonFields) GetRegionIdOk() (*string, bool)` + +GetRegionIdOk returns a tuple with the RegionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegionId + +`func (o *SubscriptionCommonFields) SetRegionId(v string)` + +SetRegionId sets RegionId field to given value. + +### HasRegionId + +`func (o *SubscriptionCommonFields) HasRegionId() bool` + +HasRegionId returns a boolean if a field has been set. + +### GetReleased + +`func (o *SubscriptionCommonFields) GetReleased() bool` + +GetReleased returns the Released field if non-nil, zero value otherwise. + +### GetReleasedOk + +`func (o *SubscriptionCommonFields) GetReleasedOk() (*bool, bool)` + +GetReleasedOk returns a tuple with the Released field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleased + +`func (o *SubscriptionCommonFields) SetReleased(v bool)` + +SetReleased sets Released field to given value. + +### HasReleased + +`func (o *SubscriptionCommonFields) HasReleased() bool` + +HasReleased returns a boolean if a field has been set. + +### GetServiceLevel + +`func (o *SubscriptionCommonFields) GetServiceLevel() string` + +GetServiceLevel returns the ServiceLevel field if non-nil, zero value otherwise. + +### GetServiceLevelOk + +`func (o *SubscriptionCommonFields) GetServiceLevelOk() (*string, bool)` + +GetServiceLevelOk returns a tuple with the ServiceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceLevel + +`func (o *SubscriptionCommonFields) SetServiceLevel(v string)` + +SetServiceLevel sets ServiceLevel field to given value. + +### HasServiceLevel + +`func (o *SubscriptionCommonFields) HasServiceLevel() bool` + +HasServiceLevel returns a boolean if a field has been set. + +### GetSocketTotal + +`func (o *SubscriptionCommonFields) GetSocketTotal() int32` + +GetSocketTotal returns the SocketTotal field if non-nil, zero value otherwise. + +### GetSocketTotalOk + +`func (o *SubscriptionCommonFields) GetSocketTotalOk() (*int32, bool)` + +GetSocketTotalOk returns a tuple with the SocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocketTotal + +`func (o *SubscriptionCommonFields) SetSocketTotal(v int32)` + +SetSocketTotal sets SocketTotal field to given value. + +### HasSocketTotal + +`func (o *SubscriptionCommonFields) HasSocketTotal() bool` + +HasSocketTotal returns a boolean if a field has been set. + +### GetStatus + +`func (o *SubscriptionCommonFields) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SubscriptionCommonFields) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SubscriptionCommonFields) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SubscriptionCommonFields) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSupportLevel + +`func (o *SubscriptionCommonFields) GetSupportLevel() string` + +GetSupportLevel returns the SupportLevel field if non-nil, zero value otherwise. + +### GetSupportLevelOk + +`func (o *SubscriptionCommonFields) GetSupportLevelOk() (*string, bool)` + +GetSupportLevelOk returns a tuple with the SupportLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportLevel + +`func (o *SubscriptionCommonFields) SetSupportLevel(v string)` + +SetSupportLevel sets SupportLevel field to given value. + +### HasSupportLevel + +`func (o *SubscriptionCommonFields) HasSupportLevel() bool` + +HasSupportLevel returns a boolean if a field has been set. + +### GetSystemUnits + +`func (o *SubscriptionCommonFields) GetSystemUnits() string` + +GetSystemUnits returns the SystemUnits field if non-nil, zero value otherwise. + +### GetSystemUnitsOk + +`func (o *SubscriptionCommonFields) GetSystemUnitsOk() (*string, bool)` + +GetSystemUnitsOk returns a tuple with the SystemUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemUnits + +`func (o *SubscriptionCommonFields) SetSystemUnits(v string)` + +SetSystemUnits sets SystemUnits field to given value. + +### HasSystemUnits + +`func (o *SubscriptionCommonFields) HasSystemUnits() bool` + +HasSystemUnits returns a boolean if a field has been set. + +### GetTrialEndDate + +`func (o *SubscriptionCommonFields) GetTrialEndDate() time.Time` + +GetTrialEndDate returns the TrialEndDate field if non-nil, zero value otherwise. + +### GetTrialEndDateOk + +`func (o *SubscriptionCommonFields) GetTrialEndDateOk() (*time.Time, bool)` + +GetTrialEndDateOk returns a tuple with the TrialEndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialEndDate + +`func (o *SubscriptionCommonFields) SetTrialEndDate(v time.Time)` + +SetTrialEndDate sets TrialEndDate field to given value. + +### HasTrialEndDate + +`func (o *SubscriptionCommonFields) HasTrialEndDate() bool` + +HasTrialEndDate returns a boolean if a field has been set. + +### GetUsage + +`func (o *SubscriptionCommonFields) GetUsage() string` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *SubscriptionCommonFields) GetUsageOk() (*string, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *SubscriptionCommonFields) SetUsage(v string)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *SubscriptionCommonFields) HasUsage() bool` + +HasUsage 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFieldsAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFieldsAllOf.md new file mode 100644 index 00000000..3d724894 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCommonFieldsAllOf.md @@ -0,0 +1,779 @@ +# SubscriptionCommonFieldsAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BillingExpirationDate** | Pointer to **time.Time** | If set, the date the subscription expires based on the billing model | [optional] +**BillingMarketplaceAccount** | Pointer to **string** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterBillingModel** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ConsoleUrl** | Pointer to **string** | | [optional] +**ConsumerUuid** | Pointer to **string** | | [optional] +**CpuTotal** | Pointer to **int32** | | [optional] +**CreatorId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**LastReconcileDate** | Pointer to **time.Time** | Last time this subscription were reconciled about cluster usage | [optional] +**LastReleasedAt** | Pointer to **time.Time** | Last time status was set to Released for this cluster/subscription in Unix time | [optional] +**LastTelemetryDate** | Pointer to **time.Time** | Last telemetry authorization request for this cluster/subscription in Unix time | [optional] +**Managed** | **bool** | | +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ProductBundle** | Pointer to **string** | | [optional] +**Provenance** | Pointer to **string** | | [optional] +**RegionId** | Pointer to **string** | | [optional] +**Released** | Pointer to **bool** | | [optional] +**ServiceLevel** | Pointer to **string** | | [optional] +**SocketTotal** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SupportLevel** | Pointer to **string** | | [optional] +**SystemUnits** | Pointer to **string** | | [optional] +**TrialEndDate** | Pointer to **time.Time** | If the subscription is a trial, date the trial ends | [optional] +**Usage** | Pointer to **string** | | [optional] + +## Methods + +### NewSubscriptionCommonFieldsAllOf + +`func NewSubscriptionCommonFieldsAllOf(managed bool, ) *SubscriptionCommonFieldsAllOf` + +NewSubscriptionCommonFieldsAllOf instantiates a new SubscriptionCommonFieldsAllOf 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 + +### NewSubscriptionCommonFieldsAllOfWithDefaults + +`func NewSubscriptionCommonFieldsAllOfWithDefaults() *SubscriptionCommonFieldsAllOf` + +NewSubscriptionCommonFieldsAllOfWithDefaults instantiates a new SubscriptionCommonFieldsAllOf 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 + +### GetBillingExpirationDate + +`func (o *SubscriptionCommonFieldsAllOf) GetBillingExpirationDate() time.Time` + +GetBillingExpirationDate returns the BillingExpirationDate field if non-nil, zero value otherwise. + +### GetBillingExpirationDateOk + +`func (o *SubscriptionCommonFieldsAllOf) GetBillingExpirationDateOk() (*time.Time, bool)` + +GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingExpirationDate + +`func (o *SubscriptionCommonFieldsAllOf) SetBillingExpirationDate(v time.Time)` + +SetBillingExpirationDate sets BillingExpirationDate field to given value. + +### HasBillingExpirationDate + +`func (o *SubscriptionCommonFieldsAllOf) HasBillingExpirationDate() bool` + +HasBillingExpirationDate returns a boolean if a field has been set. + +### GetBillingMarketplaceAccount + +`func (o *SubscriptionCommonFieldsAllOf) GetBillingMarketplaceAccount() string` + +GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field if non-nil, zero value otherwise. + +### GetBillingMarketplaceAccountOk + +`func (o *SubscriptionCommonFieldsAllOf) GetBillingMarketplaceAccountOk() (*string, bool)` + +GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingMarketplaceAccount + +`func (o *SubscriptionCommonFieldsAllOf) SetBillingMarketplaceAccount(v string)` + +SetBillingMarketplaceAccount sets BillingMarketplaceAccount field to given value. + +### HasBillingMarketplaceAccount + +`func (o *SubscriptionCommonFieldsAllOf) HasBillingMarketplaceAccount() bool` + +HasBillingMarketplaceAccount returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *SubscriptionCommonFieldsAllOf) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *SubscriptionCommonFieldsAllOf) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *SubscriptionCommonFieldsAllOf) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *SubscriptionCommonFieldsAllOf) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *SubscriptionCommonFieldsAllOf) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *SubscriptionCommonFieldsAllOf) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterBillingModel + +`func (o *SubscriptionCommonFieldsAllOf) GetClusterBillingModel() string` + +GetClusterBillingModel returns the ClusterBillingModel field if non-nil, zero value otherwise. + +### GetClusterBillingModelOk + +`func (o *SubscriptionCommonFieldsAllOf) GetClusterBillingModelOk() (*string, bool)` + +GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterBillingModel + +`func (o *SubscriptionCommonFieldsAllOf) SetClusterBillingModel(v string)` + +SetClusterBillingModel sets ClusterBillingModel field to given value. + +### HasClusterBillingModel + +`func (o *SubscriptionCommonFieldsAllOf) HasClusterBillingModel() bool` + +HasClusterBillingModel returns a boolean if a field has been set. + +### GetClusterId + +`func (o *SubscriptionCommonFieldsAllOf) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SubscriptionCommonFieldsAllOf) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SubscriptionCommonFieldsAllOf) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetConsoleUrl + +`func (o *SubscriptionCommonFieldsAllOf) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *SubscriptionCommonFieldsAllOf) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *SubscriptionCommonFieldsAllOf) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *SubscriptionCommonFieldsAllOf) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetConsumerUuid + +`func (o *SubscriptionCommonFieldsAllOf) GetConsumerUuid() string` + +GetConsumerUuid returns the ConsumerUuid field if non-nil, zero value otherwise. + +### GetConsumerUuidOk + +`func (o *SubscriptionCommonFieldsAllOf) GetConsumerUuidOk() (*string, bool)` + +GetConsumerUuidOk returns a tuple with the ConsumerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumerUuid + +`func (o *SubscriptionCommonFieldsAllOf) SetConsumerUuid(v string)` + +SetConsumerUuid sets ConsumerUuid field to given value. + +### HasConsumerUuid + +`func (o *SubscriptionCommonFieldsAllOf) HasConsumerUuid() bool` + +HasConsumerUuid returns a boolean if a field has been set. + +### GetCpuTotal + +`func (o *SubscriptionCommonFieldsAllOf) GetCpuTotal() int32` + +GetCpuTotal returns the CpuTotal field if non-nil, zero value otherwise. + +### GetCpuTotalOk + +`func (o *SubscriptionCommonFieldsAllOf) GetCpuTotalOk() (*int32, bool)` + +GetCpuTotalOk returns a tuple with the CpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuTotal + +`func (o *SubscriptionCommonFieldsAllOf) SetCpuTotal(v int32)` + +SetCpuTotal sets CpuTotal field to given value. + +### HasCpuTotal + +`func (o *SubscriptionCommonFieldsAllOf) HasCpuTotal() bool` + +HasCpuTotal returns a boolean if a field has been set. + +### GetCreatorId + +`func (o *SubscriptionCommonFieldsAllOf) GetCreatorId() string` + +GetCreatorId returns the CreatorId field if non-nil, zero value otherwise. + +### GetCreatorIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetCreatorIdOk() (*string, bool)` + +GetCreatorIdOk returns a tuple with the CreatorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorId + +`func (o *SubscriptionCommonFieldsAllOf) SetCreatorId(v string)` + +SetCreatorId sets CreatorId field to given value. + +### HasCreatorId + +`func (o *SubscriptionCommonFieldsAllOf) HasCreatorId() bool` + +HasCreatorId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SubscriptionCommonFieldsAllOf) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SubscriptionCommonFieldsAllOf) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SubscriptionCommonFieldsAllOf) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SubscriptionCommonFieldsAllOf) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *SubscriptionCommonFieldsAllOf) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *SubscriptionCommonFieldsAllOf) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *SubscriptionCommonFieldsAllOf) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetLastReconcileDate + +`func (o *SubscriptionCommonFieldsAllOf) GetLastReconcileDate() time.Time` + +GetLastReconcileDate returns the LastReconcileDate field if non-nil, zero value otherwise. + +### GetLastReconcileDateOk + +`func (o *SubscriptionCommonFieldsAllOf) GetLastReconcileDateOk() (*time.Time, bool)` + +GetLastReconcileDateOk returns a tuple with the LastReconcileDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReconcileDate + +`func (o *SubscriptionCommonFieldsAllOf) SetLastReconcileDate(v time.Time)` + +SetLastReconcileDate sets LastReconcileDate field to given value. + +### HasLastReconcileDate + +`func (o *SubscriptionCommonFieldsAllOf) HasLastReconcileDate() bool` + +HasLastReconcileDate returns a boolean if a field has been set. + +### GetLastReleasedAt + +`func (o *SubscriptionCommonFieldsAllOf) GetLastReleasedAt() time.Time` + +GetLastReleasedAt returns the LastReleasedAt field if non-nil, zero value otherwise. + +### GetLastReleasedAtOk + +`func (o *SubscriptionCommonFieldsAllOf) GetLastReleasedAtOk() (*time.Time, bool)` + +GetLastReleasedAtOk returns a tuple with the LastReleasedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastReleasedAt + +`func (o *SubscriptionCommonFieldsAllOf) SetLastReleasedAt(v time.Time)` + +SetLastReleasedAt sets LastReleasedAt field to given value. + +### HasLastReleasedAt + +`func (o *SubscriptionCommonFieldsAllOf) HasLastReleasedAt() bool` + +HasLastReleasedAt returns a boolean if a field has been set. + +### GetLastTelemetryDate + +`func (o *SubscriptionCommonFieldsAllOf) GetLastTelemetryDate() time.Time` + +GetLastTelemetryDate returns the LastTelemetryDate field if non-nil, zero value otherwise. + +### GetLastTelemetryDateOk + +`func (o *SubscriptionCommonFieldsAllOf) GetLastTelemetryDateOk() (*time.Time, bool)` + +GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTelemetryDate + +`func (o *SubscriptionCommonFieldsAllOf) SetLastTelemetryDate(v time.Time)` + +SetLastTelemetryDate sets LastTelemetryDate field to given value. + +### HasLastTelemetryDate + +`func (o *SubscriptionCommonFieldsAllOf) HasLastTelemetryDate() bool` + +HasLastTelemetryDate returns a boolean if a field has been set. + +### GetManaged + +`func (o *SubscriptionCommonFieldsAllOf) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *SubscriptionCommonFieldsAllOf) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *SubscriptionCommonFieldsAllOf) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + + +### GetOrganizationId + +`func (o *SubscriptionCommonFieldsAllOf) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *SubscriptionCommonFieldsAllOf) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *SubscriptionCommonFieldsAllOf) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *SubscriptionCommonFieldsAllOf) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *SubscriptionCommonFieldsAllOf) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *SubscriptionCommonFieldsAllOf) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetProductBundle + +`func (o *SubscriptionCommonFieldsAllOf) GetProductBundle() string` + +GetProductBundle returns the ProductBundle field if non-nil, zero value otherwise. + +### GetProductBundleOk + +`func (o *SubscriptionCommonFieldsAllOf) GetProductBundleOk() (*string, bool)` + +GetProductBundleOk returns a tuple with the ProductBundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductBundle + +`func (o *SubscriptionCommonFieldsAllOf) SetProductBundle(v string)` + +SetProductBundle sets ProductBundle field to given value. + +### HasProductBundle + +`func (o *SubscriptionCommonFieldsAllOf) HasProductBundle() bool` + +HasProductBundle returns a boolean if a field has been set. + +### GetProvenance + +`func (o *SubscriptionCommonFieldsAllOf) GetProvenance() string` + +GetProvenance returns the Provenance field if non-nil, zero value otherwise. + +### GetProvenanceOk + +`func (o *SubscriptionCommonFieldsAllOf) GetProvenanceOk() (*string, bool)` + +GetProvenanceOk returns a tuple with the Provenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvenance + +`func (o *SubscriptionCommonFieldsAllOf) SetProvenance(v string)` + +SetProvenance sets Provenance field to given value. + +### HasProvenance + +`func (o *SubscriptionCommonFieldsAllOf) HasProvenance() bool` + +HasProvenance returns a boolean if a field has been set. + +### GetRegionId + +`func (o *SubscriptionCommonFieldsAllOf) GetRegionId() string` + +GetRegionId returns the RegionId field if non-nil, zero value otherwise. + +### GetRegionIdOk + +`func (o *SubscriptionCommonFieldsAllOf) GetRegionIdOk() (*string, bool)` + +GetRegionIdOk returns a tuple with the RegionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegionId + +`func (o *SubscriptionCommonFieldsAllOf) SetRegionId(v string)` + +SetRegionId sets RegionId field to given value. + +### HasRegionId + +`func (o *SubscriptionCommonFieldsAllOf) HasRegionId() bool` + +HasRegionId returns a boolean if a field has been set. + +### GetReleased + +`func (o *SubscriptionCommonFieldsAllOf) GetReleased() bool` + +GetReleased returns the Released field if non-nil, zero value otherwise. + +### GetReleasedOk + +`func (o *SubscriptionCommonFieldsAllOf) GetReleasedOk() (*bool, bool)` + +GetReleasedOk returns a tuple with the Released field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleased + +`func (o *SubscriptionCommonFieldsAllOf) SetReleased(v bool)` + +SetReleased sets Released field to given value. + +### HasReleased + +`func (o *SubscriptionCommonFieldsAllOf) HasReleased() bool` + +HasReleased returns a boolean if a field has been set. + +### GetServiceLevel + +`func (o *SubscriptionCommonFieldsAllOf) GetServiceLevel() string` + +GetServiceLevel returns the ServiceLevel field if non-nil, zero value otherwise. + +### GetServiceLevelOk + +`func (o *SubscriptionCommonFieldsAllOf) GetServiceLevelOk() (*string, bool)` + +GetServiceLevelOk returns a tuple with the ServiceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceLevel + +`func (o *SubscriptionCommonFieldsAllOf) SetServiceLevel(v string)` + +SetServiceLevel sets ServiceLevel field to given value. + +### HasServiceLevel + +`func (o *SubscriptionCommonFieldsAllOf) HasServiceLevel() bool` + +HasServiceLevel returns a boolean if a field has been set. + +### GetSocketTotal + +`func (o *SubscriptionCommonFieldsAllOf) GetSocketTotal() int32` + +GetSocketTotal returns the SocketTotal field if non-nil, zero value otherwise. + +### GetSocketTotalOk + +`func (o *SubscriptionCommonFieldsAllOf) GetSocketTotalOk() (*int32, bool)` + +GetSocketTotalOk returns a tuple with the SocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocketTotal + +`func (o *SubscriptionCommonFieldsAllOf) SetSocketTotal(v int32)` + +SetSocketTotal sets SocketTotal field to given value. + +### HasSocketTotal + +`func (o *SubscriptionCommonFieldsAllOf) HasSocketTotal() bool` + +HasSocketTotal returns a boolean if a field has been set. + +### GetStatus + +`func (o *SubscriptionCommonFieldsAllOf) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SubscriptionCommonFieldsAllOf) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SubscriptionCommonFieldsAllOf) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SubscriptionCommonFieldsAllOf) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSupportLevel + +`func (o *SubscriptionCommonFieldsAllOf) GetSupportLevel() string` + +GetSupportLevel returns the SupportLevel field if non-nil, zero value otherwise. + +### GetSupportLevelOk + +`func (o *SubscriptionCommonFieldsAllOf) GetSupportLevelOk() (*string, bool)` + +GetSupportLevelOk returns a tuple with the SupportLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportLevel + +`func (o *SubscriptionCommonFieldsAllOf) SetSupportLevel(v string)` + +SetSupportLevel sets SupportLevel field to given value. + +### HasSupportLevel + +`func (o *SubscriptionCommonFieldsAllOf) HasSupportLevel() bool` + +HasSupportLevel returns a boolean if a field has been set. + +### GetSystemUnits + +`func (o *SubscriptionCommonFieldsAllOf) GetSystemUnits() string` + +GetSystemUnits returns the SystemUnits field if non-nil, zero value otherwise. + +### GetSystemUnitsOk + +`func (o *SubscriptionCommonFieldsAllOf) GetSystemUnitsOk() (*string, bool)` + +GetSystemUnitsOk returns a tuple with the SystemUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemUnits + +`func (o *SubscriptionCommonFieldsAllOf) SetSystemUnits(v string)` + +SetSystemUnits sets SystemUnits field to given value. + +### HasSystemUnits + +`func (o *SubscriptionCommonFieldsAllOf) HasSystemUnits() bool` + +HasSystemUnits returns a boolean if a field has been set. + +### GetTrialEndDate + +`func (o *SubscriptionCommonFieldsAllOf) GetTrialEndDate() time.Time` + +GetTrialEndDate returns the TrialEndDate field if non-nil, zero value otherwise. + +### GetTrialEndDateOk + +`func (o *SubscriptionCommonFieldsAllOf) GetTrialEndDateOk() (*time.Time, bool)` + +GetTrialEndDateOk returns a tuple with the TrialEndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialEndDate + +`func (o *SubscriptionCommonFieldsAllOf) SetTrialEndDate(v time.Time)` + +SetTrialEndDate sets TrialEndDate field to given value. + +### HasTrialEndDate + +`func (o *SubscriptionCommonFieldsAllOf) HasTrialEndDate() bool` + +HasTrialEndDate returns a boolean if a field has been set. + +### GetUsage + +`func (o *SubscriptionCommonFieldsAllOf) GetUsage() string` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *SubscriptionCommonFieldsAllOf) GetUsageOk() (*string, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *SubscriptionCommonFieldsAllOf) SetUsage(v string)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *SubscriptionCommonFieldsAllOf) HasUsage() bool` + +HasUsage 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCreateRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCreateRequest.md new file mode 100644 index 00000000..807cff04 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionCreateRequest.md @@ -0,0 +1,145 @@ +# SubscriptionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterUuid** | **string** | | +**ConsoleUrl** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**PlanId** | **string** | | +**Status** | **string** | | + +## Methods + +### NewSubscriptionCreateRequest + +`func NewSubscriptionCreateRequest(clusterUuid string, planId string, status string, ) *SubscriptionCreateRequest` + +NewSubscriptionCreateRequest instantiates a new SubscriptionCreateRequest 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 + +### NewSubscriptionCreateRequestWithDefaults + +`func NewSubscriptionCreateRequestWithDefaults() *SubscriptionCreateRequest` + +NewSubscriptionCreateRequestWithDefaults instantiates a new SubscriptionCreateRequest 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 + +### GetClusterUuid + +`func (o *SubscriptionCreateRequest) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *SubscriptionCreateRequest) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *SubscriptionCreateRequest) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + + +### GetConsoleUrl + +`func (o *SubscriptionCreateRequest) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *SubscriptionCreateRequest) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *SubscriptionCreateRequest) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *SubscriptionCreateRequest) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SubscriptionCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SubscriptionCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SubscriptionCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SubscriptionCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetPlanId + +`func (o *SubscriptionCreateRequest) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *SubscriptionCreateRequest) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *SubscriptionCreateRequest) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + + +### GetStatus + +`func (o *SubscriptionCreateRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SubscriptionCreateRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SubscriptionCreateRequest) SetStatus(v string)` + +SetStatus sets Status 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionList.md new file mode 100644 index 00000000..bbe9fcaa --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionList.md @@ -0,0 +1,135 @@ +# SubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Subscription**](Subscription.md) | | + +## Methods + +### NewSubscriptionList + +`func NewSubscriptionList(kind string, page int32, size int32, total int32, items []Subscription, ) *SubscriptionList` + +NewSubscriptionList instantiates a new SubscriptionList 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 + +### NewSubscriptionListWithDefaults + +`func NewSubscriptionListWithDefaults() *SubscriptionList` + +NewSubscriptionListWithDefaults instantiates a new SubscriptionList 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 + +### GetKind + +`func (o *SubscriptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SubscriptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SubscriptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *SubscriptionList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SubscriptionList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SubscriptionList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *SubscriptionList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SubscriptionList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SubscriptionList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *SubscriptionList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *SubscriptionList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *SubscriptionList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *SubscriptionList) GetItems() []Subscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionList) GetItemsOk() (*[]Subscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionList) SetItems(v []Subscription)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionListAllOf.md new file mode 100644 index 00000000..e354140e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionListAllOf.md @@ -0,0 +1,56 @@ +# SubscriptionListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Subscription**](Subscription.md) | | [optional] + +## Methods + +### NewSubscriptionListAllOf + +`func NewSubscriptionListAllOf() *SubscriptionListAllOf` + +NewSubscriptionListAllOf instantiates a new SubscriptionListAllOf 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 + +### NewSubscriptionListAllOfWithDefaults + +`func NewSubscriptionListAllOfWithDefaults() *SubscriptionListAllOf` + +NewSubscriptionListAllOfWithDefaults instantiates a new SubscriptionListAllOf 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 + +### GetItems + +`func (o *SubscriptionListAllOf) GetItems() []Subscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionListAllOf) GetItemsOk() (*[]Subscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionListAllOf) SetItems(v []Subscription)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SubscriptionListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetric.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetric.md new file mode 100644 index 00000000..16cdd24a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetric.md @@ -0,0 +1,56 @@ +# SubscriptionMetric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewSubscriptionMetric + +`func NewSubscriptionMetric() *SubscriptionMetric` + +NewSubscriptionMetric instantiates a new SubscriptionMetric 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 + +### NewSubscriptionMetricWithDefaults + +`func NewSubscriptionMetricWithDefaults() *SubscriptionMetric` + +NewSubscriptionMetricWithDefaults instantiates a new SubscriptionMetric 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 *SubscriptionMetric) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SubscriptionMetric) 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 *SubscriptionMetric) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SubscriptionMetric) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricAllOf.md new file mode 100644 index 00000000..7c72da3f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricAllOf.md @@ -0,0 +1,56 @@ +# SubscriptionMetricAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewSubscriptionMetricAllOf + +`func NewSubscriptionMetricAllOf() *SubscriptionMetricAllOf` + +NewSubscriptionMetricAllOf instantiates a new SubscriptionMetricAllOf 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 + +### NewSubscriptionMetricAllOfWithDefaults + +`func NewSubscriptionMetricAllOfWithDefaults() *SubscriptionMetricAllOf` + +NewSubscriptionMetricAllOfWithDefaults instantiates a new SubscriptionMetricAllOf 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 *SubscriptionMetricAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SubscriptionMetricAllOf) 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 *SubscriptionMetricAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SubscriptionMetricAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricList.md new file mode 100644 index 00000000..ac31db3d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricList.md @@ -0,0 +1,135 @@ +# SubscriptionMetricList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]SubscriptionMetric**](SubscriptionMetric.md) | | + +## Methods + +### NewSubscriptionMetricList + +`func NewSubscriptionMetricList(kind string, page int32, size int32, total int32, items []SubscriptionMetric, ) *SubscriptionMetricList` + +NewSubscriptionMetricList instantiates a new SubscriptionMetricList 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 + +### NewSubscriptionMetricListWithDefaults + +`func NewSubscriptionMetricListWithDefaults() *SubscriptionMetricList` + +NewSubscriptionMetricListWithDefaults instantiates a new SubscriptionMetricList 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 + +### GetKind + +`func (o *SubscriptionMetricList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SubscriptionMetricList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SubscriptionMetricList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *SubscriptionMetricList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SubscriptionMetricList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SubscriptionMetricList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *SubscriptionMetricList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SubscriptionMetricList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SubscriptionMetricList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *SubscriptionMetricList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *SubscriptionMetricList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *SubscriptionMetricList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *SubscriptionMetricList) GetItems() []SubscriptionMetric` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionMetricList) GetItemsOk() (*[]SubscriptionMetric, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionMetricList) SetItems(v []SubscriptionMetric)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricListAllOf.md new file mode 100644 index 00000000..2a676693 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionMetricListAllOf.md @@ -0,0 +1,56 @@ +# SubscriptionMetricListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]SubscriptionMetric**](SubscriptionMetric.md) | | [optional] + +## Methods + +### NewSubscriptionMetricListAllOf + +`func NewSubscriptionMetricListAllOf() *SubscriptionMetricListAllOf` + +NewSubscriptionMetricListAllOf instantiates a new SubscriptionMetricListAllOf 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 + +### NewSubscriptionMetricListAllOfWithDefaults + +`func NewSubscriptionMetricListAllOfWithDefaults() *SubscriptionMetricListAllOf` + +NewSubscriptionMetricListAllOfWithDefaults instantiates a new SubscriptionMetricListAllOf 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 + +### GetItems + +`func (o *SubscriptionMetricListAllOf) GetItems() []SubscriptionMetric` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionMetricListAllOf) GetItemsOk() (*[]SubscriptionMetric, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionMetricListAllOf) SetItems(v []SubscriptionMetric)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SubscriptionMetricListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionPatchRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionPatchRequest.md new file mode 100644 index 00000000..8741fa3a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionPatchRequest.md @@ -0,0 +1,680 @@ +# SubscriptionPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BillingExpirationDate** | Pointer to **time.Time** | | [optional] +**CloudAccountId** | Pointer to **string** | | [optional] +**CloudProviderId** | Pointer to **string** | | [optional] +**ClusterBillingModel** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ConsoleUrl** | Pointer to **string** | | [optional] +**ConsumerUuid** | Pointer to **string** | | [optional] +**CpuTotal** | Pointer to **int32** | | [optional] +**CreatorId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ExternalClusterId** | Pointer to **string** | | [optional] +**Managed** | Pointer to **bool** | | [optional] +**OrganizationId** | Pointer to **string** | | [optional] +**PlanId** | Pointer to **string** | | [optional] +**ProductBundle** | Pointer to **string** | | [optional] +**Provenance** | Pointer to **string** | | [optional] +**RegionId** | Pointer to **string** | | [optional] +**Released** | Pointer to **bool** | | [optional] +**ServiceLevel** | Pointer to **string** | | [optional] +**SocketTotal** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SupportLevel** | Pointer to **string** | | [optional] +**SystemUnits** | Pointer to **string** | | [optional] +**TrialEndDate** | Pointer to **time.Time** | | [optional] +**Usage** | Pointer to **string** | | [optional] + +## Methods + +### NewSubscriptionPatchRequest + +`func NewSubscriptionPatchRequest() *SubscriptionPatchRequest` + +NewSubscriptionPatchRequest instantiates a new SubscriptionPatchRequest 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 + +### NewSubscriptionPatchRequestWithDefaults + +`func NewSubscriptionPatchRequestWithDefaults() *SubscriptionPatchRequest` + +NewSubscriptionPatchRequestWithDefaults instantiates a new SubscriptionPatchRequest 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 + +### GetBillingExpirationDate + +`func (o *SubscriptionPatchRequest) GetBillingExpirationDate() time.Time` + +GetBillingExpirationDate returns the BillingExpirationDate field if non-nil, zero value otherwise. + +### GetBillingExpirationDateOk + +`func (o *SubscriptionPatchRequest) GetBillingExpirationDateOk() (*time.Time, bool)` + +GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingExpirationDate + +`func (o *SubscriptionPatchRequest) SetBillingExpirationDate(v time.Time)` + +SetBillingExpirationDate sets BillingExpirationDate field to given value. + +### HasBillingExpirationDate + +`func (o *SubscriptionPatchRequest) HasBillingExpirationDate() bool` + +HasBillingExpirationDate returns a boolean if a field has been set. + +### GetCloudAccountId + +`func (o *SubscriptionPatchRequest) GetCloudAccountId() string` + +GetCloudAccountId returns the CloudAccountId field if non-nil, zero value otherwise. + +### GetCloudAccountIdOk + +`func (o *SubscriptionPatchRequest) GetCloudAccountIdOk() (*string, bool)` + +GetCloudAccountIdOk returns a tuple with the CloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudAccountId + +`func (o *SubscriptionPatchRequest) SetCloudAccountId(v string)` + +SetCloudAccountId sets CloudAccountId field to given value. + +### HasCloudAccountId + +`func (o *SubscriptionPatchRequest) HasCloudAccountId() bool` + +HasCloudAccountId returns a boolean if a field has been set. + +### GetCloudProviderId + +`func (o *SubscriptionPatchRequest) GetCloudProviderId() string` + +GetCloudProviderId returns the CloudProviderId field if non-nil, zero value otherwise. + +### GetCloudProviderIdOk + +`func (o *SubscriptionPatchRequest) GetCloudProviderIdOk() (*string, bool)` + +GetCloudProviderIdOk returns a tuple with the CloudProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProviderId + +`func (o *SubscriptionPatchRequest) SetCloudProviderId(v string)` + +SetCloudProviderId sets CloudProviderId field to given value. + +### HasCloudProviderId + +`func (o *SubscriptionPatchRequest) HasCloudProviderId() bool` + +HasCloudProviderId returns a boolean if a field has been set. + +### GetClusterBillingModel + +`func (o *SubscriptionPatchRequest) GetClusterBillingModel() string` + +GetClusterBillingModel returns the ClusterBillingModel field if non-nil, zero value otherwise. + +### GetClusterBillingModelOk + +`func (o *SubscriptionPatchRequest) GetClusterBillingModelOk() (*string, bool)` + +GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterBillingModel + +`func (o *SubscriptionPatchRequest) SetClusterBillingModel(v string)` + +SetClusterBillingModel sets ClusterBillingModel field to given value. + +### HasClusterBillingModel + +`func (o *SubscriptionPatchRequest) HasClusterBillingModel() bool` + +HasClusterBillingModel returns a boolean if a field has been set. + +### GetClusterId + +`func (o *SubscriptionPatchRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SubscriptionPatchRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SubscriptionPatchRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SubscriptionPatchRequest) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetConsoleUrl + +`func (o *SubscriptionPatchRequest) GetConsoleUrl() string` + +GetConsoleUrl returns the ConsoleUrl field if non-nil, zero value otherwise. + +### GetConsoleUrlOk + +`func (o *SubscriptionPatchRequest) GetConsoleUrlOk() (*string, bool)` + +GetConsoleUrlOk returns a tuple with the ConsoleUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleUrl + +`func (o *SubscriptionPatchRequest) SetConsoleUrl(v string)` + +SetConsoleUrl sets ConsoleUrl field to given value. + +### HasConsoleUrl + +`func (o *SubscriptionPatchRequest) HasConsoleUrl() bool` + +HasConsoleUrl returns a boolean if a field has been set. + +### GetConsumerUuid + +`func (o *SubscriptionPatchRequest) GetConsumerUuid() string` + +GetConsumerUuid returns the ConsumerUuid field if non-nil, zero value otherwise. + +### GetConsumerUuidOk + +`func (o *SubscriptionPatchRequest) GetConsumerUuidOk() (*string, bool)` + +GetConsumerUuidOk returns a tuple with the ConsumerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumerUuid + +`func (o *SubscriptionPatchRequest) SetConsumerUuid(v string)` + +SetConsumerUuid sets ConsumerUuid field to given value. + +### HasConsumerUuid + +`func (o *SubscriptionPatchRequest) HasConsumerUuid() bool` + +HasConsumerUuid returns a boolean if a field has been set. + +### GetCpuTotal + +`func (o *SubscriptionPatchRequest) GetCpuTotal() int32` + +GetCpuTotal returns the CpuTotal field if non-nil, zero value otherwise. + +### GetCpuTotalOk + +`func (o *SubscriptionPatchRequest) GetCpuTotalOk() (*int32, bool)` + +GetCpuTotalOk returns a tuple with the CpuTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuTotal + +`func (o *SubscriptionPatchRequest) SetCpuTotal(v int32)` + +SetCpuTotal sets CpuTotal field to given value. + +### HasCpuTotal + +`func (o *SubscriptionPatchRequest) HasCpuTotal() bool` + +HasCpuTotal returns a boolean if a field has been set. + +### GetCreatorId + +`func (o *SubscriptionPatchRequest) GetCreatorId() string` + +GetCreatorId returns the CreatorId field if non-nil, zero value otherwise. + +### GetCreatorIdOk + +`func (o *SubscriptionPatchRequest) GetCreatorIdOk() (*string, bool)` + +GetCreatorIdOk returns a tuple with the CreatorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorId + +`func (o *SubscriptionPatchRequest) SetCreatorId(v string)` + +SetCreatorId sets CreatorId field to given value. + +### HasCreatorId + +`func (o *SubscriptionPatchRequest) HasCreatorId() bool` + +HasCreatorId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SubscriptionPatchRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SubscriptionPatchRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SubscriptionPatchRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SubscriptionPatchRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExternalClusterId + +`func (o *SubscriptionPatchRequest) GetExternalClusterId() string` + +GetExternalClusterId returns the ExternalClusterId field if non-nil, zero value otherwise. + +### GetExternalClusterIdOk + +`func (o *SubscriptionPatchRequest) GetExternalClusterIdOk() (*string, bool)` + +GetExternalClusterIdOk returns a tuple with the ExternalClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalClusterId + +`func (o *SubscriptionPatchRequest) SetExternalClusterId(v string)` + +SetExternalClusterId sets ExternalClusterId field to given value. + +### HasExternalClusterId + +`func (o *SubscriptionPatchRequest) HasExternalClusterId() bool` + +HasExternalClusterId returns a boolean if a field has been set. + +### GetManaged + +`func (o *SubscriptionPatchRequest) GetManaged() bool` + +GetManaged returns the Managed field if non-nil, zero value otherwise. + +### GetManagedOk + +`func (o *SubscriptionPatchRequest) GetManagedOk() (*bool, bool)` + +GetManagedOk returns a tuple with the Managed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManaged + +`func (o *SubscriptionPatchRequest) SetManaged(v bool)` + +SetManaged sets Managed field to given value. + +### HasManaged + +`func (o *SubscriptionPatchRequest) HasManaged() bool` + +HasManaged returns a boolean if a field has been set. + +### GetOrganizationId + +`func (o *SubscriptionPatchRequest) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *SubscriptionPatchRequest) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *SubscriptionPatchRequest) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + +### HasOrganizationId + +`func (o *SubscriptionPatchRequest) HasOrganizationId() bool` + +HasOrganizationId returns a boolean if a field has been set. + +### GetPlanId + +`func (o *SubscriptionPatchRequest) GetPlanId() string` + +GetPlanId returns the PlanId field if non-nil, zero value otherwise. + +### GetPlanIdOk + +`func (o *SubscriptionPatchRequest) GetPlanIdOk() (*string, bool)` + +GetPlanIdOk returns a tuple with the PlanId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanId + +`func (o *SubscriptionPatchRequest) SetPlanId(v string)` + +SetPlanId sets PlanId field to given value. + +### HasPlanId + +`func (o *SubscriptionPatchRequest) HasPlanId() bool` + +HasPlanId returns a boolean if a field has been set. + +### GetProductBundle + +`func (o *SubscriptionPatchRequest) GetProductBundle() string` + +GetProductBundle returns the ProductBundle field if non-nil, zero value otherwise. + +### GetProductBundleOk + +`func (o *SubscriptionPatchRequest) GetProductBundleOk() (*string, bool)` + +GetProductBundleOk returns a tuple with the ProductBundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductBundle + +`func (o *SubscriptionPatchRequest) SetProductBundle(v string)` + +SetProductBundle sets ProductBundle field to given value. + +### HasProductBundle + +`func (o *SubscriptionPatchRequest) HasProductBundle() bool` + +HasProductBundle returns a boolean if a field has been set. + +### GetProvenance + +`func (o *SubscriptionPatchRequest) GetProvenance() string` + +GetProvenance returns the Provenance field if non-nil, zero value otherwise. + +### GetProvenanceOk + +`func (o *SubscriptionPatchRequest) GetProvenanceOk() (*string, bool)` + +GetProvenanceOk returns a tuple with the Provenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvenance + +`func (o *SubscriptionPatchRequest) SetProvenance(v string)` + +SetProvenance sets Provenance field to given value. + +### HasProvenance + +`func (o *SubscriptionPatchRequest) HasProvenance() bool` + +HasProvenance returns a boolean if a field has been set. + +### GetRegionId + +`func (o *SubscriptionPatchRequest) GetRegionId() string` + +GetRegionId returns the RegionId field if non-nil, zero value otherwise. + +### GetRegionIdOk + +`func (o *SubscriptionPatchRequest) GetRegionIdOk() (*string, bool)` + +GetRegionIdOk returns a tuple with the RegionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegionId + +`func (o *SubscriptionPatchRequest) SetRegionId(v string)` + +SetRegionId sets RegionId field to given value. + +### HasRegionId + +`func (o *SubscriptionPatchRequest) HasRegionId() bool` + +HasRegionId returns a boolean if a field has been set. + +### GetReleased + +`func (o *SubscriptionPatchRequest) GetReleased() bool` + +GetReleased returns the Released field if non-nil, zero value otherwise. + +### GetReleasedOk + +`func (o *SubscriptionPatchRequest) GetReleasedOk() (*bool, bool)` + +GetReleasedOk returns a tuple with the Released field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleased + +`func (o *SubscriptionPatchRequest) SetReleased(v bool)` + +SetReleased sets Released field to given value. + +### HasReleased + +`func (o *SubscriptionPatchRequest) HasReleased() bool` + +HasReleased returns a boolean if a field has been set. + +### GetServiceLevel + +`func (o *SubscriptionPatchRequest) GetServiceLevel() string` + +GetServiceLevel returns the ServiceLevel field if non-nil, zero value otherwise. + +### GetServiceLevelOk + +`func (o *SubscriptionPatchRequest) GetServiceLevelOk() (*string, bool)` + +GetServiceLevelOk returns a tuple with the ServiceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceLevel + +`func (o *SubscriptionPatchRequest) SetServiceLevel(v string)` + +SetServiceLevel sets ServiceLevel field to given value. + +### HasServiceLevel + +`func (o *SubscriptionPatchRequest) HasServiceLevel() bool` + +HasServiceLevel returns a boolean if a field has been set. + +### GetSocketTotal + +`func (o *SubscriptionPatchRequest) GetSocketTotal() int32` + +GetSocketTotal returns the SocketTotal field if non-nil, zero value otherwise. + +### GetSocketTotalOk + +`func (o *SubscriptionPatchRequest) GetSocketTotalOk() (*int32, bool)` + +GetSocketTotalOk returns a tuple with the SocketTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSocketTotal + +`func (o *SubscriptionPatchRequest) SetSocketTotal(v int32)` + +SetSocketTotal sets SocketTotal field to given value. + +### HasSocketTotal + +`func (o *SubscriptionPatchRequest) HasSocketTotal() bool` + +HasSocketTotal returns a boolean if a field has been set. + +### GetStatus + +`func (o *SubscriptionPatchRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SubscriptionPatchRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SubscriptionPatchRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SubscriptionPatchRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSupportLevel + +`func (o *SubscriptionPatchRequest) GetSupportLevel() string` + +GetSupportLevel returns the SupportLevel field if non-nil, zero value otherwise. + +### GetSupportLevelOk + +`func (o *SubscriptionPatchRequest) GetSupportLevelOk() (*string, bool)` + +GetSupportLevelOk returns a tuple with the SupportLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportLevel + +`func (o *SubscriptionPatchRequest) SetSupportLevel(v string)` + +SetSupportLevel sets SupportLevel field to given value. + +### HasSupportLevel + +`func (o *SubscriptionPatchRequest) HasSupportLevel() bool` + +HasSupportLevel returns a boolean if a field has been set. + +### GetSystemUnits + +`func (o *SubscriptionPatchRequest) GetSystemUnits() string` + +GetSystemUnits returns the SystemUnits field if non-nil, zero value otherwise. + +### GetSystemUnitsOk + +`func (o *SubscriptionPatchRequest) GetSystemUnitsOk() (*string, bool)` + +GetSystemUnitsOk returns a tuple with the SystemUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemUnits + +`func (o *SubscriptionPatchRequest) SetSystemUnits(v string)` + +SetSystemUnits sets SystemUnits field to given value. + +### HasSystemUnits + +`func (o *SubscriptionPatchRequest) HasSystemUnits() bool` + +HasSystemUnits returns a boolean if a field has been set. + +### GetTrialEndDate + +`func (o *SubscriptionPatchRequest) GetTrialEndDate() time.Time` + +GetTrialEndDate returns the TrialEndDate field if non-nil, zero value otherwise. + +### GetTrialEndDateOk + +`func (o *SubscriptionPatchRequest) GetTrialEndDateOk() (*time.Time, bool)` + +GetTrialEndDateOk returns a tuple with the TrialEndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialEndDate + +`func (o *SubscriptionPatchRequest) SetTrialEndDate(v time.Time)` + +SetTrialEndDate sets TrialEndDate field to given value. + +### HasTrialEndDate + +`func (o *SubscriptionPatchRequest) HasTrialEndDate() bool` + +HasTrialEndDate returns a boolean if a field has been set. + +### GetUsage + +`func (o *SubscriptionPatchRequest) GetUsage() string` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *SubscriptionPatchRequest) GetUsageOk() (*string, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *SubscriptionPatchRequest) SetUsage(v string)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *SubscriptionPatchRequest) HasUsage() bool` + +HasUsage 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBinding.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBinding.md new file mode 100644 index 00000000..46e0f6e5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBinding.md @@ -0,0 +1,290 @@ +# SubscriptionRoleBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Account** | Pointer to [**AccountReference**](AccountReference.md) | | [optional] +**AccountEmail** | Pointer to **string** | | [optional] +**AccountUsername** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Role** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSubscriptionRoleBinding + +`func NewSubscriptionRoleBinding() *SubscriptionRoleBinding` + +NewSubscriptionRoleBinding instantiates a new SubscriptionRoleBinding 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 + +### NewSubscriptionRoleBindingWithDefaults + +`func NewSubscriptionRoleBindingWithDefaults() *SubscriptionRoleBinding` + +NewSubscriptionRoleBindingWithDefaults instantiates a new SubscriptionRoleBinding 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 + +### GetHref + +`func (o *SubscriptionRoleBinding) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SubscriptionRoleBinding) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *SubscriptionRoleBinding) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *SubscriptionRoleBinding) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *SubscriptionRoleBinding) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SubscriptionRoleBinding) 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 *SubscriptionRoleBinding) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SubscriptionRoleBinding) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *SubscriptionRoleBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SubscriptionRoleBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SubscriptionRoleBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *SubscriptionRoleBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetAccount + +`func (o *SubscriptionRoleBinding) GetAccount() AccountReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *SubscriptionRoleBinding) GetAccountOk() (*AccountReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *SubscriptionRoleBinding) SetAccount(v AccountReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *SubscriptionRoleBinding) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetAccountEmail + +`func (o *SubscriptionRoleBinding) GetAccountEmail() string` + +GetAccountEmail returns the AccountEmail field if non-nil, zero value otherwise. + +### GetAccountEmailOk + +`func (o *SubscriptionRoleBinding) GetAccountEmailOk() (*string, bool)` + +GetAccountEmailOk returns a tuple with the AccountEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountEmail + +`func (o *SubscriptionRoleBinding) SetAccountEmail(v string)` + +SetAccountEmail sets AccountEmail field to given value. + +### HasAccountEmail + +`func (o *SubscriptionRoleBinding) HasAccountEmail() bool` + +HasAccountEmail returns a boolean if a field has been set. + +### GetAccountUsername + +`func (o *SubscriptionRoleBinding) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *SubscriptionRoleBinding) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *SubscriptionRoleBinding) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + +### HasAccountUsername + +`func (o *SubscriptionRoleBinding) HasAccountUsername() bool` + +HasAccountUsername returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SubscriptionRoleBinding) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SubscriptionRoleBinding) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SubscriptionRoleBinding) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SubscriptionRoleBinding) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetRole + +`func (o *SubscriptionRoleBinding) GetRole() ObjectReference` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *SubscriptionRoleBinding) GetRoleOk() (*ObjectReference, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *SubscriptionRoleBinding) SetRole(v ObjectReference)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *SubscriptionRoleBinding) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetSubscription + +`func (o *SubscriptionRoleBinding) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *SubscriptionRoleBinding) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *SubscriptionRoleBinding) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *SubscriptionRoleBinding) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SubscriptionRoleBinding) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SubscriptionRoleBinding) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SubscriptionRoleBinding) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SubscriptionRoleBinding) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingAllOf.md new file mode 100644 index 00000000..2ce4b2d6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingAllOf.md @@ -0,0 +1,212 @@ +# SubscriptionRoleBindingAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Account** | Pointer to [**AccountReference**](AccountReference.md) | | [optional] +**AccountEmail** | Pointer to **string** | | [optional] +**AccountUsername** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**Role** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**Subscription** | Pointer to [**ObjectReference**](ObjectReference.md) | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSubscriptionRoleBindingAllOf + +`func NewSubscriptionRoleBindingAllOf() *SubscriptionRoleBindingAllOf` + +NewSubscriptionRoleBindingAllOf instantiates a new SubscriptionRoleBindingAllOf 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 + +### NewSubscriptionRoleBindingAllOfWithDefaults + +`func NewSubscriptionRoleBindingAllOfWithDefaults() *SubscriptionRoleBindingAllOf` + +NewSubscriptionRoleBindingAllOfWithDefaults instantiates a new SubscriptionRoleBindingAllOf 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 + +### GetAccount + +`func (o *SubscriptionRoleBindingAllOf) GetAccount() AccountReference` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *SubscriptionRoleBindingAllOf) GetAccountOk() (*AccountReference, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *SubscriptionRoleBindingAllOf) SetAccount(v AccountReference)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *SubscriptionRoleBindingAllOf) HasAccount() bool` + +HasAccount returns a boolean if a field has been set. + +### GetAccountEmail + +`func (o *SubscriptionRoleBindingAllOf) GetAccountEmail() string` + +GetAccountEmail returns the AccountEmail field if non-nil, zero value otherwise. + +### GetAccountEmailOk + +`func (o *SubscriptionRoleBindingAllOf) GetAccountEmailOk() (*string, bool)` + +GetAccountEmailOk returns a tuple with the AccountEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountEmail + +`func (o *SubscriptionRoleBindingAllOf) SetAccountEmail(v string)` + +SetAccountEmail sets AccountEmail field to given value. + +### HasAccountEmail + +`func (o *SubscriptionRoleBindingAllOf) HasAccountEmail() bool` + +HasAccountEmail returns a boolean if a field has been set. + +### GetAccountUsername + +`func (o *SubscriptionRoleBindingAllOf) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *SubscriptionRoleBindingAllOf) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *SubscriptionRoleBindingAllOf) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + +### HasAccountUsername + +`func (o *SubscriptionRoleBindingAllOf) HasAccountUsername() bool` + +HasAccountUsername returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SubscriptionRoleBindingAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SubscriptionRoleBindingAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SubscriptionRoleBindingAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SubscriptionRoleBindingAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetRole + +`func (o *SubscriptionRoleBindingAllOf) GetRole() ObjectReference` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *SubscriptionRoleBindingAllOf) GetRoleOk() (*ObjectReference, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *SubscriptionRoleBindingAllOf) SetRole(v ObjectReference)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *SubscriptionRoleBindingAllOf) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetSubscription + +`func (o *SubscriptionRoleBindingAllOf) GetSubscription() ObjectReference` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *SubscriptionRoleBindingAllOf) GetSubscriptionOk() (*ObjectReference, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *SubscriptionRoleBindingAllOf) SetSubscription(v ObjectReference)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *SubscriptionRoleBindingAllOf) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SubscriptionRoleBindingAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SubscriptionRoleBindingAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SubscriptionRoleBindingAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SubscriptionRoleBindingAllOf) HasUpdatedAt() bool` + +HasUpdatedAt 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingCreateRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingCreateRequest.md new file mode 100644 index 00000000..fa6505e3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingCreateRequest.md @@ -0,0 +1,72 @@ +# SubscriptionRoleBindingCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**RoleId** | **string** | | + +## Methods + +### NewSubscriptionRoleBindingCreateRequest + +`func NewSubscriptionRoleBindingCreateRequest(accountUsername string, roleId string, ) *SubscriptionRoleBindingCreateRequest` + +NewSubscriptionRoleBindingCreateRequest instantiates a new SubscriptionRoleBindingCreateRequest 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 + +### NewSubscriptionRoleBindingCreateRequestWithDefaults + +`func NewSubscriptionRoleBindingCreateRequestWithDefaults() *SubscriptionRoleBindingCreateRequest` + +NewSubscriptionRoleBindingCreateRequestWithDefaults instantiates a new SubscriptionRoleBindingCreateRequest 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 + +### GetAccountUsername + +`func (o *SubscriptionRoleBindingCreateRequest) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *SubscriptionRoleBindingCreateRequest) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *SubscriptionRoleBindingCreateRequest) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetRoleId + +`func (o *SubscriptionRoleBindingCreateRequest) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SubscriptionRoleBindingCreateRequest) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *SubscriptionRoleBindingCreateRequest) SetRoleId(v string)` + +SetRoleId sets RoleId 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingList.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingList.md new file mode 100644 index 00000000..521991c3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingList.md @@ -0,0 +1,135 @@ +# SubscriptionRoleBindingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]SubscriptionRoleBinding**](SubscriptionRoleBinding.md) | | + +## Methods + +### NewSubscriptionRoleBindingList + +`func NewSubscriptionRoleBindingList(kind string, page int32, size int32, total int32, items []SubscriptionRoleBinding, ) *SubscriptionRoleBindingList` + +NewSubscriptionRoleBindingList instantiates a new SubscriptionRoleBindingList 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 + +### NewSubscriptionRoleBindingListWithDefaults + +`func NewSubscriptionRoleBindingListWithDefaults() *SubscriptionRoleBindingList` + +NewSubscriptionRoleBindingListWithDefaults instantiates a new SubscriptionRoleBindingList 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 + +### GetKind + +`func (o *SubscriptionRoleBindingList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SubscriptionRoleBindingList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SubscriptionRoleBindingList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *SubscriptionRoleBindingList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SubscriptionRoleBindingList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SubscriptionRoleBindingList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *SubscriptionRoleBindingList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *SubscriptionRoleBindingList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *SubscriptionRoleBindingList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *SubscriptionRoleBindingList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *SubscriptionRoleBindingList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *SubscriptionRoleBindingList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *SubscriptionRoleBindingList) GetItems() []SubscriptionRoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionRoleBindingList) GetItemsOk() (*[]SubscriptionRoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionRoleBindingList) SetItems(v []SubscriptionRoleBinding)` + +SetItems sets Items 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingListAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingListAllOf.md new file mode 100644 index 00000000..c5e162fd --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SubscriptionRoleBindingListAllOf.md @@ -0,0 +1,56 @@ +# SubscriptionRoleBindingListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]SubscriptionRoleBinding**](SubscriptionRoleBinding.md) | | [optional] + +## Methods + +### NewSubscriptionRoleBindingListAllOf + +`func NewSubscriptionRoleBindingListAllOf() *SubscriptionRoleBindingListAllOf` + +NewSubscriptionRoleBindingListAllOf instantiates a new SubscriptionRoleBindingListAllOf 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 + +### NewSubscriptionRoleBindingListAllOfWithDefaults + +`func NewSubscriptionRoleBindingListAllOfWithDefaults() *SubscriptionRoleBindingListAllOf` + +NewSubscriptionRoleBindingListAllOfWithDefaults instantiates a new SubscriptionRoleBindingListAllOf 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 + +### GetItems + +`func (o *SubscriptionRoleBindingListAllOf) GetItems() []SubscriptionRoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *SubscriptionRoleBindingListAllOf) GetItemsOk() (*[]SubscriptionRoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *SubscriptionRoleBindingListAllOf) SetItems(v []SubscriptionRoleBinding)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *SubscriptionRoleBindingListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/Summary.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Summary.md new file mode 100644 index 00000000..e732c710 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/Summary.md @@ -0,0 +1,155 @@ +# Summary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Href** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Metrics** | [**[]SummaryMetrics**](SummaryMetrics.md) | | +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSummary + +`func NewSummary(metrics []SummaryMetrics, ) *Summary` + +NewSummary instantiates a new Summary 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 + +### NewSummaryWithDefaults + +`func NewSummaryWithDefaults() *Summary` + +NewSummaryWithDefaults instantiates a new Summary 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 + +### GetHref + +`func (o *Summary) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Summary) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Summary) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Summary) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetId + +`func (o *Summary) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Summary) 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 *Summary) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Summary) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Summary) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Summary) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Summary) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Summary) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetrics + +`func (o *Summary) GetMetrics() []SummaryMetrics` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *Summary) GetMetricsOk() (*[]SummaryMetrics, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *Summary) SetMetrics(v []SummaryMetrics)` + +SetMetrics sets Metrics field to given value. + + +### GetName + +`func (o *Summary) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Summary) 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 *Summary) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Summary) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryAllOf.md new file mode 100644 index 00000000..27f3e47d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryAllOf.md @@ -0,0 +1,77 @@ +# SummaryAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metrics** | [**[]SummaryMetrics**](SummaryMetrics.md) | | +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSummaryAllOf + +`func NewSummaryAllOf(metrics []SummaryMetrics, ) *SummaryAllOf` + +NewSummaryAllOf instantiates a new SummaryAllOf 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 + +### NewSummaryAllOfWithDefaults + +`func NewSummaryAllOfWithDefaults() *SummaryAllOf` + +NewSummaryAllOfWithDefaults instantiates a new SummaryAllOf 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 + +### GetMetrics + +`func (o *SummaryAllOf) GetMetrics() []SummaryMetrics` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *SummaryAllOf) GetMetricsOk() (*[]SummaryMetrics, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *SummaryAllOf) SetMetrics(v []SummaryMetrics)` + +SetMetrics sets Metrics field to given value. + + +### GetName + +`func (o *SummaryAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SummaryAllOf) 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 *SummaryAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SummaryAllOf) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetrics.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetrics.md new file mode 100644 index 00000000..aef2aec5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetrics.md @@ -0,0 +1,82 @@ +# SummaryMetrics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Vector** | Pointer to [**[]SummaryVector**](SummaryVector.md) | | [optional] + +## Methods + +### NewSummaryMetrics + +`func NewSummaryMetrics() *SummaryMetrics` + +NewSummaryMetrics instantiates a new SummaryMetrics 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 + +### NewSummaryMetricsWithDefaults + +`func NewSummaryMetricsWithDefaults() *SummaryMetrics` + +NewSummaryMetricsWithDefaults instantiates a new SummaryMetrics 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 *SummaryMetrics) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SummaryMetrics) 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 *SummaryMetrics) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SummaryMetrics) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVector + +`func (o *SummaryMetrics) GetVector() []SummaryVector` + +GetVector returns the Vector field if non-nil, zero value otherwise. + +### GetVectorOk + +`func (o *SummaryMetrics) GetVectorOk() (*[]SummaryVector, bool)` + +GetVectorOk returns a tuple with the Vector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVector + +`func (o *SummaryMetrics) SetVector(v []SummaryVector)` + +SetVector sets Vector field to given value. + +### HasVector + +`func (o *SummaryMetrics) HasVector() bool` + +HasVector 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetricsAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetricsAllOf.md new file mode 100644 index 00000000..5d5f8618 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryMetricsAllOf.md @@ -0,0 +1,82 @@ +# SummaryMetricsAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Vector** | Pointer to [**[]SummaryVector**](SummaryVector.md) | | [optional] + +## Methods + +### NewSummaryMetricsAllOf + +`func NewSummaryMetricsAllOf() *SummaryMetricsAllOf` + +NewSummaryMetricsAllOf instantiates a new SummaryMetricsAllOf 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 + +### NewSummaryMetricsAllOfWithDefaults + +`func NewSummaryMetricsAllOfWithDefaults() *SummaryMetricsAllOf` + +NewSummaryMetricsAllOfWithDefaults instantiates a new SummaryMetricsAllOf 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 *SummaryMetricsAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SummaryMetricsAllOf) 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 *SummaryMetricsAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SummaryMetricsAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVector + +`func (o *SummaryMetricsAllOf) GetVector() []SummaryVector` + +GetVector returns the Vector field if non-nil, zero value otherwise. + +### GetVectorOk + +`func (o *SummaryMetricsAllOf) GetVectorOk() (*[]SummaryVector, bool)` + +GetVectorOk returns a tuple with the Vector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVector + +`func (o *SummaryMetricsAllOf) SetVector(v []SummaryVector)` + +SetVector sets Vector field to given value. + +### HasVector + +`func (o *SummaryMetricsAllOf) HasVector() bool` + +HasVector 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVector.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVector.md new file mode 100644 index 00000000..55c2dc40 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVector.md @@ -0,0 +1,82 @@ +# SummaryVector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **time.Time** | | [optional] +**Value** | Pointer to **float64** | | [optional] + +## Methods + +### NewSummaryVector + +`func NewSummaryVector() *SummaryVector` + +NewSummaryVector instantiates a new SummaryVector 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 + +### NewSummaryVectorWithDefaults + +`func NewSummaryVectorWithDefaults() *SummaryVector` + +NewSummaryVectorWithDefaults instantiates a new SummaryVector 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 + +### GetTime + +`func (o *SummaryVector) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *SummaryVector) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *SummaryVector) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *SummaryVector) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetValue + +`func (o *SummaryVector) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SummaryVector) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SummaryVector) SetValue(v float64)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *SummaryVector) HasValue() bool` + +HasValue 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVectorAllOf.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVectorAllOf.md new file mode 100644 index 00000000..04f0650c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SummaryVectorAllOf.md @@ -0,0 +1,82 @@ +# SummaryVectorAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **time.Time** | | [optional] +**Value** | Pointer to **float64** | | [optional] + +## Methods + +### NewSummaryVectorAllOf + +`func NewSummaryVectorAllOf() *SummaryVectorAllOf` + +NewSummaryVectorAllOf instantiates a new SummaryVectorAllOf 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 + +### NewSummaryVectorAllOfWithDefaults + +`func NewSummaryVectorAllOfWithDefaults() *SummaryVectorAllOf` + +NewSummaryVectorAllOfWithDefaults instantiates a new SummaryVectorAllOf 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 + +### GetTime + +`func (o *SummaryVectorAllOf) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *SummaryVectorAllOf) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *SummaryVectorAllOf) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *SummaryVectorAllOf) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetValue + +`func (o *SummaryVectorAllOf) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SummaryVectorAllOf) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SummaryVectorAllOf) SetValue(v float64)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *SummaryVectorAllOf) HasValue() bool` + +HasValue 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesCreatedResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesCreatedResponse.md new file mode 100644 index 00000000..88ec37ed --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesCreatedResponse.md @@ -0,0 +1,264 @@ +# SupportCasesCreatedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaseNumber** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Severity** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**SubscriptionId** | Pointer to **string** | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Uri** | Pointer to **string** | | [optional] + +## Methods + +### NewSupportCasesCreatedResponse + +`func NewSupportCasesCreatedResponse() *SupportCasesCreatedResponse` + +NewSupportCasesCreatedResponse instantiates a new SupportCasesCreatedResponse 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 + +### NewSupportCasesCreatedResponseWithDefaults + +`func NewSupportCasesCreatedResponseWithDefaults() *SupportCasesCreatedResponse` + +NewSupportCasesCreatedResponseWithDefaults instantiates a new SupportCasesCreatedResponse 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 + +### GetCaseNumber + +`func (o *SupportCasesCreatedResponse) GetCaseNumber() string` + +GetCaseNumber returns the CaseNumber field if non-nil, zero value otherwise. + +### GetCaseNumberOk + +`func (o *SupportCasesCreatedResponse) GetCaseNumberOk() (*string, bool)` + +GetCaseNumberOk returns a tuple with the CaseNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseNumber + +`func (o *SupportCasesCreatedResponse) SetCaseNumber(v string)` + +SetCaseNumber sets CaseNumber field to given value. + +### HasCaseNumber + +`func (o *SupportCasesCreatedResponse) HasCaseNumber() bool` + +HasCaseNumber returns a boolean if a field has been set. + +### GetClusterId + +`func (o *SupportCasesCreatedResponse) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SupportCasesCreatedResponse) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SupportCasesCreatedResponse) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SupportCasesCreatedResponse) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *SupportCasesCreatedResponse) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *SupportCasesCreatedResponse) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *SupportCasesCreatedResponse) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *SupportCasesCreatedResponse) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetDescription + +`func (o *SupportCasesCreatedResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SupportCasesCreatedResponse) 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 *SupportCasesCreatedResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SupportCasesCreatedResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSeverity + +`func (o *SupportCasesCreatedResponse) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *SupportCasesCreatedResponse) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *SupportCasesCreatedResponse) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *SupportCasesCreatedResponse) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetStatus + +`func (o *SupportCasesCreatedResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SupportCasesCreatedResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SupportCasesCreatedResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SupportCasesCreatedResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSubscriptionId + +`func (o *SupportCasesCreatedResponse) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *SupportCasesCreatedResponse) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *SupportCasesCreatedResponse) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *SupportCasesCreatedResponse) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetSummary + +`func (o *SupportCasesCreatedResponse) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *SupportCasesCreatedResponse) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *SupportCasesCreatedResponse) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *SupportCasesCreatedResponse) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetUri + +`func (o *SupportCasesCreatedResponse) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *SupportCasesCreatedResponse) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *SupportCasesCreatedResponse) SetUri(v string)` + +SetUri sets Uri field to given value. + +### HasUri + +`func (o *SupportCasesCreatedResponse) HasUri() bool` + +HasUri 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesRequest.md new file mode 100644 index 00000000..30f9b291 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/SupportCasesRequest.md @@ -0,0 +1,353 @@ +# SupportCasesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**CaseLanguage** | Pointer to **string** | | [optional] +**ClusterId** | Pointer to **string** | | [optional] +**ClusterUuid** | Pointer to **string** | | [optional] +**ContactSsoName** | Pointer to **string** | | [optional] +**Description** | **string** | | +**EventStreamId** | Pointer to **string** | | [optional] +**OpenshiftClusterId** | Pointer to **string** | | [optional] +**Product** | Pointer to **string** | | [optional] [default to "OpenShift Container Platform"] +**Severity** | **string** | | +**SubscriptionId** | Pointer to **string** | | [optional] +**Summary** | **string** | | +**Version** | Pointer to **string** | | [optional] [default to "4.10"] + +## Methods + +### NewSupportCasesRequest + +`func NewSupportCasesRequest(description string, severity string, summary string, ) *SupportCasesRequest` + +NewSupportCasesRequest instantiates a new SupportCasesRequest 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 + +### NewSupportCasesRequestWithDefaults + +`func NewSupportCasesRequestWithDefaults() *SupportCasesRequest` + +NewSupportCasesRequestWithDefaults instantiates a new SupportCasesRequest 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 + +### GetAccountNumber + +`func (o *SupportCasesRequest) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *SupportCasesRequest) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *SupportCasesRequest) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *SupportCasesRequest) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetCaseLanguage + +`func (o *SupportCasesRequest) GetCaseLanguage() string` + +GetCaseLanguage returns the CaseLanguage field if non-nil, zero value otherwise. + +### GetCaseLanguageOk + +`func (o *SupportCasesRequest) GetCaseLanguageOk() (*string, bool)` + +GetCaseLanguageOk returns a tuple with the CaseLanguage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseLanguage + +`func (o *SupportCasesRequest) SetCaseLanguage(v string)` + +SetCaseLanguage sets CaseLanguage field to given value. + +### HasCaseLanguage + +`func (o *SupportCasesRequest) HasCaseLanguage() bool` + +HasCaseLanguage returns a boolean if a field has been set. + +### GetClusterId + +`func (o *SupportCasesRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *SupportCasesRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *SupportCasesRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *SupportCasesRequest) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetClusterUuid + +`func (o *SupportCasesRequest) GetClusterUuid() string` + +GetClusterUuid returns the ClusterUuid field if non-nil, zero value otherwise. + +### GetClusterUuidOk + +`func (o *SupportCasesRequest) GetClusterUuidOk() (*string, bool)` + +GetClusterUuidOk returns a tuple with the ClusterUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterUuid + +`func (o *SupportCasesRequest) SetClusterUuid(v string)` + +SetClusterUuid sets ClusterUuid field to given value. + +### HasClusterUuid + +`func (o *SupportCasesRequest) HasClusterUuid() bool` + +HasClusterUuid returns a boolean if a field has been set. + +### GetContactSsoName + +`func (o *SupportCasesRequest) GetContactSsoName() string` + +GetContactSsoName returns the ContactSsoName field if non-nil, zero value otherwise. + +### GetContactSsoNameOk + +`func (o *SupportCasesRequest) GetContactSsoNameOk() (*string, bool)` + +GetContactSsoNameOk returns a tuple with the ContactSsoName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactSsoName + +`func (o *SupportCasesRequest) SetContactSsoName(v string)` + +SetContactSsoName sets ContactSsoName field to given value. + +### HasContactSsoName + +`func (o *SupportCasesRequest) HasContactSsoName() bool` + +HasContactSsoName returns a boolean if a field has been set. + +### GetDescription + +`func (o *SupportCasesRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SupportCasesRequest) 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 *SupportCasesRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEventStreamId + +`func (o *SupportCasesRequest) GetEventStreamId() string` + +GetEventStreamId returns the EventStreamId field if non-nil, zero value otherwise. + +### GetEventStreamIdOk + +`func (o *SupportCasesRequest) GetEventStreamIdOk() (*string, bool)` + +GetEventStreamIdOk returns a tuple with the EventStreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventStreamId + +`func (o *SupportCasesRequest) SetEventStreamId(v string)` + +SetEventStreamId sets EventStreamId field to given value. + +### HasEventStreamId + +`func (o *SupportCasesRequest) HasEventStreamId() bool` + +HasEventStreamId returns a boolean if a field has been set. + +### GetOpenshiftClusterId + +`func (o *SupportCasesRequest) GetOpenshiftClusterId() string` + +GetOpenshiftClusterId returns the OpenshiftClusterId field if non-nil, zero value otherwise. + +### GetOpenshiftClusterIdOk + +`func (o *SupportCasesRequest) GetOpenshiftClusterIdOk() (*string, bool)` + +GetOpenshiftClusterIdOk returns a tuple with the OpenshiftClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenshiftClusterId + +`func (o *SupportCasesRequest) SetOpenshiftClusterId(v string)` + +SetOpenshiftClusterId sets OpenshiftClusterId field to given value. + +### HasOpenshiftClusterId + +`func (o *SupportCasesRequest) HasOpenshiftClusterId() bool` + +HasOpenshiftClusterId returns a boolean if a field has been set. + +### GetProduct + +`func (o *SupportCasesRequest) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *SupportCasesRequest) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *SupportCasesRequest) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *SupportCasesRequest) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetSeverity + +`func (o *SupportCasesRequest) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *SupportCasesRequest) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *SupportCasesRequest) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + + +### GetSubscriptionId + +`func (o *SupportCasesRequest) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *SupportCasesRequest) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *SupportCasesRequest) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *SupportCasesRequest) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### GetSummary + +`func (o *SupportCasesRequest) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *SupportCasesRequest) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *SupportCasesRequest) SetSummary(v string)` + +SetSummary sets Summary field to given value. + + +### GetVersion + +`func (o *SupportCasesRequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SupportCasesRequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SupportCasesRequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SupportCasesRequest) HasVersion() bool` + +HasVersion 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/TemplateParameter.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TemplateParameter.md new file mode 100644 index 00000000..db9ac2e9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TemplateParameter.md @@ -0,0 +1,72 @@ +# TemplateParameter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | | +**Name** | **string** | | + +## Methods + +### NewTemplateParameter + +`func NewTemplateParameter(content string, name string, ) *TemplateParameter` + +NewTemplateParameter instantiates a new TemplateParameter 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 + +### NewTemplateParameterWithDefaults + +`func NewTemplateParameterWithDefaults() *TemplateParameter` + +NewTemplateParameterWithDefaults instantiates a new TemplateParameter 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 + +### GetContent + +`func (o *TemplateParameter) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *TemplateParameter) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *TemplateParameter) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetName + +`func (o *TemplateParameter) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TemplateParameter) 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 *TemplateParameter) 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReview.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReview.md new file mode 100644 index 00000000..d6a325af --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReview.md @@ -0,0 +1,129 @@ +# TermsReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountUsername** | **string** | | +**CheckOptionalTerms** | Pointer to **bool** | | [optional] [default to true] +**EventCode** | Pointer to **string** | | [optional] +**SiteCode** | Pointer to **string** | | [optional] + +## Methods + +### NewTermsReview + +`func NewTermsReview(accountUsername string, ) *TermsReview` + +NewTermsReview instantiates a new TermsReview 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 + +### NewTermsReviewWithDefaults + +`func NewTermsReviewWithDefaults() *TermsReview` + +NewTermsReviewWithDefaults instantiates a new TermsReview 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 + +### GetAccountUsername + +`func (o *TermsReview) GetAccountUsername() string` + +GetAccountUsername returns the AccountUsername field if non-nil, zero value otherwise. + +### GetAccountUsernameOk + +`func (o *TermsReview) GetAccountUsernameOk() (*string, bool)` + +GetAccountUsernameOk returns a tuple with the AccountUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountUsername + +`func (o *TermsReview) SetAccountUsername(v string)` + +SetAccountUsername sets AccountUsername field to given value. + + +### GetCheckOptionalTerms + +`func (o *TermsReview) GetCheckOptionalTerms() bool` + +GetCheckOptionalTerms returns the CheckOptionalTerms field if non-nil, zero value otherwise. + +### GetCheckOptionalTermsOk + +`func (o *TermsReview) GetCheckOptionalTermsOk() (*bool, bool)` + +GetCheckOptionalTermsOk returns a tuple with the CheckOptionalTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckOptionalTerms + +`func (o *TermsReview) SetCheckOptionalTerms(v bool)` + +SetCheckOptionalTerms sets CheckOptionalTerms field to given value. + +### HasCheckOptionalTerms + +`func (o *TermsReview) HasCheckOptionalTerms() bool` + +HasCheckOptionalTerms returns a boolean if a field has been set. + +### GetEventCode + +`func (o *TermsReview) GetEventCode() string` + +GetEventCode returns the EventCode field if non-nil, zero value otherwise. + +### GetEventCodeOk + +`func (o *TermsReview) GetEventCodeOk() (*string, bool)` + +GetEventCodeOk returns a tuple with the EventCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventCode + +`func (o *TermsReview) SetEventCode(v string)` + +SetEventCode sets EventCode field to given value. + +### HasEventCode + +`func (o *TermsReview) HasEventCode() bool` + +HasEventCode returns a boolean if a field has been set. + +### GetSiteCode + +`func (o *TermsReview) GetSiteCode() string` + +GetSiteCode returns the SiteCode field if non-nil, zero value otherwise. + +### GetSiteCodeOk + +`func (o *TermsReview) GetSiteCodeOk() (*string, bool)` + +GetSiteCodeOk returns a tuple with the SiteCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCode + +`func (o *TermsReview) SetSiteCode(v string)` + +SetSiteCode sets SiteCode field to given value. + +### HasSiteCode + +`func (o *TermsReview) HasSiteCode() bool` + +HasSiteCode 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReviewResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReviewResponse.md new file mode 100644 index 00000000..f1167768 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TermsReviewResponse.md @@ -0,0 +1,140 @@ +# TermsReviewResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | +**OrganizationId** | **string** | | +**RedirectUrl** | Pointer to **string** | | [optional] +**TermsAvailable** | **bool** | | +**TermsRequired** | **bool** | | + +## Methods + +### NewTermsReviewResponse + +`func NewTermsReviewResponse(accountId string, organizationId string, termsAvailable bool, termsRequired bool, ) *TermsReviewResponse` + +NewTermsReviewResponse instantiates a new TermsReviewResponse 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 + +### NewTermsReviewResponseWithDefaults + +`func NewTermsReviewResponseWithDefaults() *TermsReviewResponse` + +NewTermsReviewResponseWithDefaults instantiates a new TermsReviewResponse 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 + +### GetAccountId + +`func (o *TermsReviewResponse) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *TermsReviewResponse) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *TermsReviewResponse) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetOrganizationId + +`func (o *TermsReviewResponse) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *TermsReviewResponse) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *TermsReviewResponse) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId field to given value. + + +### GetRedirectUrl + +`func (o *TermsReviewResponse) GetRedirectUrl() string` + +GetRedirectUrl returns the RedirectUrl field if non-nil, zero value otherwise. + +### GetRedirectUrlOk + +`func (o *TermsReviewResponse) GetRedirectUrlOk() (*string, bool)` + +GetRedirectUrlOk returns a tuple with the RedirectUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectUrl + +`func (o *TermsReviewResponse) SetRedirectUrl(v string)` + +SetRedirectUrl sets RedirectUrl field to given value. + +### HasRedirectUrl + +`func (o *TermsReviewResponse) HasRedirectUrl() bool` + +HasRedirectUrl returns a boolean if a field has been set. + +### GetTermsAvailable + +`func (o *TermsReviewResponse) GetTermsAvailable() bool` + +GetTermsAvailable returns the TermsAvailable field if non-nil, zero value otherwise. + +### GetTermsAvailableOk + +`func (o *TermsReviewResponse) GetTermsAvailableOk() (*bool, bool)` + +GetTermsAvailableOk returns a tuple with the TermsAvailable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsAvailable + +`func (o *TermsReviewResponse) SetTermsAvailable(v bool)` + +SetTermsAvailable sets TermsAvailable field to given value. + + +### GetTermsRequired + +`func (o *TermsReviewResponse) GetTermsRequired() bool` + +GetTermsRequired returns the TermsRequired field if non-nil, zero value otherwise. + +### GetTermsRequiredOk + +`func (o *TermsReviewResponse) GetTermsRequiredOk() (*bool, bool)` + +GetTermsRequiredOk returns a tuple with the TermsRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsRequired + +`func (o *TermsReviewResponse) SetTermsRequired(v bool)` + +SetTermsRequired sets TermsRequired 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationRequest.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationRequest.md new file mode 100644 index 00000000..c58e36a9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationRequest.md @@ -0,0 +1,56 @@ +# TokenAuthorizationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorizationToken** | Pointer to **string** | | [optional] + +## Methods + +### NewTokenAuthorizationRequest + +`func NewTokenAuthorizationRequest() *TokenAuthorizationRequest` + +NewTokenAuthorizationRequest instantiates a new TokenAuthorizationRequest 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 + +### NewTokenAuthorizationRequestWithDefaults + +`func NewTokenAuthorizationRequestWithDefaults() *TokenAuthorizationRequest` + +NewTokenAuthorizationRequestWithDefaults instantiates a new TokenAuthorizationRequest 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 + +### GetAuthorizationToken + +`func (o *TokenAuthorizationRequest) GetAuthorizationToken() string` + +GetAuthorizationToken returns the AuthorizationToken field if non-nil, zero value otherwise. + +### GetAuthorizationTokenOk + +`func (o *TokenAuthorizationRequest) GetAuthorizationTokenOk() (*string, bool)` + +GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorizationToken + +`func (o *TokenAuthorizationRequest) SetAuthorizationToken(v string)` + +SetAuthorizationToken sets AuthorizationToken field to given value. + +### HasAuthorizationToken + +`func (o *TokenAuthorizationRequest) HasAuthorizationToken() bool` + +HasAuthorizationToken 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/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationResponse.md b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationResponse.md new file mode 100644 index 00000000..7a8ac7be --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/docs/TokenAuthorizationResponse.md @@ -0,0 +1,56 @@ +# TokenAuthorizationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Account** | Pointer to [**Account**](Account.md) | | [optional] + +## Methods + +### NewTokenAuthorizationResponse + +`func NewTokenAuthorizationResponse() *TokenAuthorizationResponse` + +NewTokenAuthorizationResponse instantiates a new TokenAuthorizationResponse 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 + +### NewTokenAuthorizationResponseWithDefaults + +`func NewTokenAuthorizationResponseWithDefaults() *TokenAuthorizationResponse` + +NewTokenAuthorizationResponseWithDefaults instantiates a new TokenAuthorizationResponse 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 + +### GetAccount + +`func (o *TokenAuthorizationResponse) GetAccount() Account` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *TokenAuthorizationResponse) GetAccountOk() (*Account, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *TokenAuthorizationResponse) SetAccount(v Account)` + +SetAccount sets Account field to given value. + +### HasAccount + +`func (o *TokenAuthorizationResponse) HasAccount() bool` + +HasAccount 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/app-services-sdk-go/accountmgmt/apiv1/client/git_push.sh b/app-services-sdk-go/accountmgmt/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/go.mod b/app-services-sdk-go/accountmgmt/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/go.sum b/app-services-sdk-go/accountmgmt/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review.go new file mode 100644 index 00000000..f91b8695 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review.go @@ -0,0 +1,310 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccessReview struct for AccessReview +type AccessReview struct { + AccountUsername string `json:"account_username"` + Action string `json:"action"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceType string `json:"resource_type"` + SubscriptionId *string `json:"subscription_id,omitempty"` +} + +// NewAccessReview instantiates a new AccessReview 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 NewAccessReview(accountUsername string, action string, resourceType string) *AccessReview { + this := AccessReview{} + this.AccountUsername = accountUsername + this.Action = action + this.ResourceType = resourceType + return &this +} + +// NewAccessReviewWithDefaults instantiates a new AccessReview 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 NewAccessReviewWithDefaults() *AccessReview { + this := AccessReview{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *AccessReview) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *AccessReview) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *AccessReview) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetAction returns the Action field value +func (o *AccessReview) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *AccessReview) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *AccessReview) SetAction(v string) { + o.Action = v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *AccessReview) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReview) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *AccessReview) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *AccessReview) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *AccessReview) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReview) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *AccessReview) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *AccessReview) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *AccessReview) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReview) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *AccessReview) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *AccessReview) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetResourceType returns the ResourceType field value +func (o *AccessReview) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *AccessReview) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *AccessReview) SetResourceType(v string) { + o.ResourceType = v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *AccessReview) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReview) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *AccessReview) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *AccessReview) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +func (o AccessReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if true { + toSerialize["action"] = o.Action + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + return json.Marshal(toSerialize) +} + +type NullableAccessReview struct { + value *AccessReview + isSet bool +} + +func (v NullableAccessReview) Get() *AccessReview { + return v.value +} + +func (v *NullableAccessReview) Set(val *AccessReview) { + v.value = val + v.isSet = true +} + +func (v NullableAccessReview) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessReview(val *AccessReview) *NullableAccessReview { + return &NullableAccessReview{value: val, isSet: true} +} + +func (v NullableAccessReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review_response.go new file mode 100644 index 00000000..16ee8654 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_review_response.go @@ -0,0 +1,360 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccessReviewResponse struct for AccessReviewResponse +type AccessReviewResponse struct { + AccountId *string `json:"account_id,omitempty"` + Action *string `json:"action,omitempty"` + Allowed bool `json:"allowed"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` +} + +// NewAccessReviewResponse instantiates a new AccessReviewResponse 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 NewAccessReviewResponse(allowed bool) *AccessReviewResponse { + this := AccessReviewResponse{} + this.Allowed = allowed + return &this +} + +// NewAccessReviewResponseWithDefaults instantiates a new AccessReviewResponse 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 NewAccessReviewResponseWithDefaults() *AccessReviewResponse { + this := AccessReviewResponse{} + return &this +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *AccessReviewResponse) SetAccountId(v string) { + o.AccountId = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetAction() string { + if o == nil || o.Action == nil { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetActionOk() (*string, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *AccessReviewResponse) SetAction(v string) { + o.Action = &v +} + +// GetAllowed returns the Allowed field value +func (o *AccessReviewResponse) GetAllowed() bool { + if o == nil { + var ret bool + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetAllowedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *AccessReviewResponse) SetAllowed(v bool) { + o.Allowed = v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *AccessReviewResponse) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *AccessReviewResponse) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *AccessReviewResponse) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *AccessReviewResponse) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *AccessReviewResponse) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessReviewResponse) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *AccessReviewResponse) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *AccessReviewResponse) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +func (o AccessReviewResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.Action != nil { + toSerialize["action"] = o.Action + } + if true { + toSerialize["allowed"] = o.Allowed + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + return json.Marshal(toSerialize) +} + +type NullableAccessReviewResponse struct { + value *AccessReviewResponse + isSet bool +} + +func (v NullableAccessReviewResponse) Get() *AccessReviewResponse { + return v.value +} + +func (v *NullableAccessReviewResponse) Set(val *AccessReviewResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAccessReviewResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessReviewResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessReviewResponse(val *AccessReviewResponse) *NullableAccessReviewResponse { + return &NullableAccessReviewResponse{value: val, isSet: true} +} + +func (v NullableAccessReviewResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessReviewResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_access_token_cfg.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_token_cfg.go new file mode 100644 index 00000000..6bc7d9b4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_access_token_cfg.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccessTokenCfg struct for AccessTokenCfg +type AccessTokenCfg struct { + Auths map[string]map[string]interface{} `json:"auths"` +} + +// NewAccessTokenCfg instantiates a new AccessTokenCfg 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 NewAccessTokenCfg(auths map[string]map[string]interface{}) *AccessTokenCfg { + this := AccessTokenCfg{} + this.Auths = auths + return &this +} + +// NewAccessTokenCfgWithDefaults instantiates a new AccessTokenCfg 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 NewAccessTokenCfgWithDefaults() *AccessTokenCfg { + this := AccessTokenCfg{} + return &this +} + +// GetAuths returns the Auths field value +func (o *AccessTokenCfg) GetAuths() map[string]map[string]interface{} { + if o == nil { + var ret map[string]map[string]interface{} + return ret + } + + return o.Auths +} + +// GetAuthsOk returns a tuple with the Auths field value +// and a boolean to check if the value has been set. +func (o *AccessTokenCfg) GetAuthsOk() (*map[string]map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Auths, true +} + +// SetAuths sets field value +func (o *AccessTokenCfg) SetAuths(v map[string]map[string]interface{}) { + o.Auths = v +} + +func (o AccessTokenCfg) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["auths"] = o.Auths + } + return json.Marshal(toSerialize) +} + +type NullableAccessTokenCfg struct { + value *AccessTokenCfg + isSet bool +} + +func (v NullableAccessTokenCfg) Get() *AccessTokenCfg { + return v.value +} + +func (v *NullableAccessTokenCfg) Set(val *AccessTokenCfg) { + v.value = val + v.isSet = true +} + +func (v NullableAccessTokenCfg) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessTokenCfg) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessTokenCfg(val *AccessTokenCfg) *NullableAccessTokenCfg { + return &NullableAccessTokenCfg{value: val, isSet: true} +} + +func (v NullableAccessTokenCfg) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessTokenCfg) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account.go new file mode 100644 index 00000000..89da4c69 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account.go @@ -0,0 +1,765 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Account struct for Account +type Account struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + BanCode *string `json:"ban_code,omitempty"` + BanDescription *string `json:"ban_description,omitempty"` + Banned *bool `json:"banned,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + LastName *string `json:"last_name,omitempty"` + Organization *Organization `json:"organization,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + RhitAccountId *string `json:"rhit_account_id,omitempty"` + RhitWebUserId *string `json:"rhit_web_user_id,omitempty"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` +} + +// NewAccount instantiates a new Account 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 NewAccount(username string) *Account { + this := Account{} + var banned bool = false + this.Banned = &banned + var serviceAccount bool = false + this.ServiceAccount = &serviceAccount + this.Username = username + return &this +} + +// NewAccountWithDefaults instantiates a new Account 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 NewAccountWithDefaults() *Account { + this := Account{} + var banned bool = false + this.Banned = &banned + var serviceAccount bool = false + this.ServiceAccount = &serviceAccount + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Account) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Account) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Account) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Account) GetId() string { + if o == nil || o.Id == nil { + 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 *Account) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Account) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Account) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Account) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Account) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Account) SetKind(v string) { + o.Kind = &v +} + +// GetBanCode returns the BanCode field value if set, zero value otherwise. +func (o *Account) GetBanCode() string { + if o == nil || o.BanCode == nil { + var ret string + return ret + } + return *o.BanCode +} + +// GetBanCodeOk returns a tuple with the BanCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetBanCodeOk() (*string, bool) { + if o == nil || o.BanCode == nil { + return nil, false + } + return o.BanCode, true +} + +// HasBanCode returns a boolean if a field has been set. +func (o *Account) HasBanCode() bool { + if o != nil && o.BanCode != nil { + return true + } + + return false +} + +// SetBanCode gets a reference to the given string and assigns it to the BanCode field. +func (o *Account) SetBanCode(v string) { + o.BanCode = &v +} + +// GetBanDescription returns the BanDescription field value if set, zero value otherwise. +func (o *Account) GetBanDescription() string { + if o == nil || o.BanDescription == nil { + var ret string + return ret + } + return *o.BanDescription +} + +// GetBanDescriptionOk returns a tuple with the BanDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetBanDescriptionOk() (*string, bool) { + if o == nil || o.BanDescription == nil { + return nil, false + } + return o.BanDescription, true +} + +// HasBanDescription returns a boolean if a field has been set. +func (o *Account) HasBanDescription() bool { + if o != nil && o.BanDescription != nil { + return true + } + + return false +} + +// SetBanDescription gets a reference to the given string and assigns it to the BanDescription field. +func (o *Account) SetBanDescription(v string) { + o.BanDescription = &v +} + +// GetBanned returns the Banned field value if set, zero value otherwise. +func (o *Account) GetBanned() bool { + if o == nil || o.Banned == nil { + var ret bool + return ret + } + return *o.Banned +} + +// GetBannedOk returns a tuple with the Banned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetBannedOk() (*bool, bool) { + if o == nil || o.Banned == nil { + return nil, false + } + return o.Banned, true +} + +// HasBanned returns a boolean if a field has been set. +func (o *Account) HasBanned() bool { + if o != nil && o.Banned != nil { + return true + } + + return false +} + +// SetBanned gets a reference to the given bool and assigns it to the Banned field. +func (o *Account) SetBanned(v bool) { + o.Banned = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *Account) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *Account) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *Account) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Account) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Account) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Account) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *Account) GetEmail() string { + if o == nil || o.Email == nil { + 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 *Account) GetEmailOk() (*string, bool) { + if o == nil || o.Email == nil { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *Account) HasEmail() bool { + if o != nil && o.Email != nil { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *Account) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *Account) GetFirstName() string { + if o == nil || o.FirstName == nil { + 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 *Account) GetFirstNameOk() (*string, bool) { + if o == nil || o.FirstName == nil { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *Account) HasFirstName() bool { + if o != nil && o.FirstName != nil { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *Account) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *Account) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *Account) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *Account) SetLabels(v []Label) { + o.Labels = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *Account) GetLastName() string { + if o == nil || o.LastName == nil { + 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 *Account) GetLastNameOk() (*string, bool) { + if o == nil || o.LastName == nil { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *Account) HasLastName() bool { + if o != nil && o.LastName != nil { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *Account) SetLastName(v string) { + o.LastName = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *Account) GetOrganization() Organization { + if o == nil || o.Organization == nil { + var ret Organization + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetOrganizationOk() (*Organization, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *Account) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given Organization and assigns it to the Organization field. +func (o *Account) SetOrganization(v Organization) { + o.Organization = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *Account) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *Account) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *Account) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetRhitAccountId returns the RhitAccountId field value if set, zero value otherwise. +func (o *Account) GetRhitAccountId() string { + if o == nil || o.RhitAccountId == nil { + var ret string + return ret + } + return *o.RhitAccountId +} + +// GetRhitAccountIdOk returns a tuple with the RhitAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetRhitAccountIdOk() (*string, bool) { + if o == nil || o.RhitAccountId == nil { + return nil, false + } + return o.RhitAccountId, true +} + +// HasRhitAccountId returns a boolean if a field has been set. +func (o *Account) HasRhitAccountId() bool { + if o != nil && o.RhitAccountId != nil { + return true + } + + return false +} + +// SetRhitAccountId gets a reference to the given string and assigns it to the RhitAccountId field. +func (o *Account) SetRhitAccountId(v string) { + o.RhitAccountId = &v +} + +// GetRhitWebUserId returns the RhitWebUserId field value if set, zero value otherwise. +func (o *Account) GetRhitWebUserId() string { + if o == nil || o.RhitWebUserId == nil { + var ret string + return ret + } + return *o.RhitWebUserId +} + +// GetRhitWebUserIdOk returns a tuple with the RhitWebUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetRhitWebUserIdOk() (*string, bool) { + if o == nil || o.RhitWebUserId == nil { + return nil, false + } + return o.RhitWebUserId, true +} + +// HasRhitWebUserId returns a boolean if a field has been set. +func (o *Account) HasRhitWebUserId() bool { + if o != nil && o.RhitWebUserId != nil { + return true + } + + return false +} + +// SetRhitWebUserId gets a reference to the given string and assigns it to the RhitWebUserId field. +func (o *Account) SetRhitWebUserId(v string) { + o.RhitWebUserId = &v +} + +// GetServiceAccount returns the ServiceAccount field value if set, zero value otherwise. +func (o *Account) GetServiceAccount() bool { + if o == nil || o.ServiceAccount == nil { + var ret bool + return ret + } + return *o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetServiceAccountOk() (*bool, bool) { + if o == nil || o.ServiceAccount == nil { + return nil, false + } + return o.ServiceAccount, true +} + +// HasServiceAccount returns a boolean if a field has been set. +func (o *Account) HasServiceAccount() bool { + if o != nil && o.ServiceAccount != nil { + return true + } + + return false +} + +// SetServiceAccount gets a reference to the given bool and assigns it to the ServiceAccount field. +func (o *Account) SetServiceAccount(v bool) { + o.ServiceAccount = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Account) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Account) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Account) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Account) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUsername returns the Username field value +func (o *Account) 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 *Account) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *Account) SetUsername(v string) { + o.Username = v +} + +func (o Account) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.BanCode != nil { + toSerialize["ban_code"] = o.BanCode + } + if o.BanDescription != nil { + toSerialize["ban_description"] = o.BanDescription + } + if o.Banned != nil { + toSerialize["banned"] = o.Banned + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Email != nil { + toSerialize["email"] = o.Email + } + if o.FirstName != nil { + toSerialize["first_name"] = o.FirstName + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.LastName != nil { + toSerialize["last_name"] = o.LastName + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.RhitAccountId != nil { + toSerialize["rhit_account_id"] = o.RhitAccountId + } + if o.RhitWebUserId != nil { + toSerialize["rhit_web_user_id"] = o.RhitWebUserId + } + if o.ServiceAccount != nil { + toSerialize["service_account"] = o.ServiceAccount + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableAccount struct { + value *Account + isSet bool +} + +func (v NullableAccount) Get() *Account { + return v.value +} + +func (v *NullableAccount) Set(val *Account) { + v.value = val + v.isSet = true +} + +func (v NullableAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccount(val *Account) *NullableAccount { + return &NullableAccount{value: val, isSet: true} +} + +func (v NullableAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_all_of.go new file mode 100644 index 00000000..d32845bd --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_all_of.go @@ -0,0 +1,657 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// AccountAllOf struct for AccountAllOf +type AccountAllOf struct { + BanCode *string `json:"ban_code,omitempty"` + BanDescription *string `json:"ban_description,omitempty"` + Banned *bool `json:"banned,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + LastName *string `json:"last_name,omitempty"` + Organization *Organization `json:"organization,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + RhitAccountId *string `json:"rhit_account_id,omitempty"` + RhitWebUserId *string `json:"rhit_web_user_id,omitempty"` + ServiceAccount *bool `json:"service_account,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username string `json:"username"` +} + +// NewAccountAllOf instantiates a new AccountAllOf 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 NewAccountAllOf(username string) *AccountAllOf { + this := AccountAllOf{} + var banned bool = false + this.Banned = &banned + var serviceAccount bool = false + this.ServiceAccount = &serviceAccount + this.Username = username + return &this +} + +// NewAccountAllOfWithDefaults instantiates a new AccountAllOf 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 NewAccountAllOfWithDefaults() *AccountAllOf { + this := AccountAllOf{} + var banned bool = false + this.Banned = &banned + var serviceAccount bool = false + this.ServiceAccount = &serviceAccount + return &this +} + +// GetBanCode returns the BanCode field value if set, zero value otherwise. +func (o *AccountAllOf) GetBanCode() string { + if o == nil || o.BanCode == nil { + var ret string + return ret + } + return *o.BanCode +} + +// GetBanCodeOk returns a tuple with the BanCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetBanCodeOk() (*string, bool) { + if o == nil || o.BanCode == nil { + return nil, false + } + return o.BanCode, true +} + +// HasBanCode returns a boolean if a field has been set. +func (o *AccountAllOf) HasBanCode() bool { + if o != nil && o.BanCode != nil { + return true + } + + return false +} + +// SetBanCode gets a reference to the given string and assigns it to the BanCode field. +func (o *AccountAllOf) SetBanCode(v string) { + o.BanCode = &v +} + +// GetBanDescription returns the BanDescription field value if set, zero value otherwise. +func (o *AccountAllOf) GetBanDescription() string { + if o == nil || o.BanDescription == nil { + var ret string + return ret + } + return *o.BanDescription +} + +// GetBanDescriptionOk returns a tuple with the BanDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetBanDescriptionOk() (*string, bool) { + if o == nil || o.BanDescription == nil { + return nil, false + } + return o.BanDescription, true +} + +// HasBanDescription returns a boolean if a field has been set. +func (o *AccountAllOf) HasBanDescription() bool { + if o != nil && o.BanDescription != nil { + return true + } + + return false +} + +// SetBanDescription gets a reference to the given string and assigns it to the BanDescription field. +func (o *AccountAllOf) SetBanDescription(v string) { + o.BanDescription = &v +} + +// GetBanned returns the Banned field value if set, zero value otherwise. +func (o *AccountAllOf) GetBanned() bool { + if o == nil || o.Banned == nil { + var ret bool + return ret + } + return *o.Banned +} + +// GetBannedOk returns a tuple with the Banned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetBannedOk() (*bool, bool) { + if o == nil || o.Banned == nil { + return nil, false + } + return o.Banned, true +} + +// HasBanned returns a boolean if a field has been set. +func (o *AccountAllOf) HasBanned() bool { + if o != nil && o.Banned != nil { + return true + } + + return false +} + +// SetBanned gets a reference to the given bool and assigns it to the Banned field. +func (o *AccountAllOf) SetBanned(v bool) { + o.Banned = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *AccountAllOf) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *AccountAllOf) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *AccountAllOf) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AccountAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AccountAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AccountAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AccountAllOf) GetEmail() string { + if o == nil || o.Email == nil { + 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 *AccountAllOf) GetEmailOk() (*string, bool) { + if o == nil || o.Email == nil { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AccountAllOf) HasEmail() bool { + if o != nil && o.Email != nil { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AccountAllOf) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *AccountAllOf) GetFirstName() string { + if o == nil || o.FirstName == nil { + 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 *AccountAllOf) GetFirstNameOk() (*string, bool) { + if o == nil || o.FirstName == nil { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *AccountAllOf) HasFirstName() bool { + if o != nil && o.FirstName != nil { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *AccountAllOf) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *AccountAllOf) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *AccountAllOf) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *AccountAllOf) SetLabels(v []Label) { + o.Labels = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *AccountAllOf) GetLastName() string { + if o == nil || o.LastName == nil { + 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 *AccountAllOf) GetLastNameOk() (*string, bool) { + if o == nil || o.LastName == nil { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *AccountAllOf) HasLastName() bool { + if o != nil && o.LastName != nil { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *AccountAllOf) SetLastName(v string) { + o.LastName = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *AccountAllOf) GetOrganization() Organization { + if o == nil || o.Organization == nil { + var ret Organization + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetOrganizationOk() (*Organization, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *AccountAllOf) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given Organization and assigns it to the Organization field. +func (o *AccountAllOf) SetOrganization(v Organization) { + o.Organization = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *AccountAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *AccountAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *AccountAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetRhitAccountId returns the RhitAccountId field value if set, zero value otherwise. +func (o *AccountAllOf) GetRhitAccountId() string { + if o == nil || o.RhitAccountId == nil { + var ret string + return ret + } + return *o.RhitAccountId +} + +// GetRhitAccountIdOk returns a tuple with the RhitAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetRhitAccountIdOk() (*string, bool) { + if o == nil || o.RhitAccountId == nil { + return nil, false + } + return o.RhitAccountId, true +} + +// HasRhitAccountId returns a boolean if a field has been set. +func (o *AccountAllOf) HasRhitAccountId() bool { + if o != nil && o.RhitAccountId != nil { + return true + } + + return false +} + +// SetRhitAccountId gets a reference to the given string and assigns it to the RhitAccountId field. +func (o *AccountAllOf) SetRhitAccountId(v string) { + o.RhitAccountId = &v +} + +// GetRhitWebUserId returns the RhitWebUserId field value if set, zero value otherwise. +func (o *AccountAllOf) GetRhitWebUserId() string { + if o == nil || o.RhitWebUserId == nil { + var ret string + return ret + } + return *o.RhitWebUserId +} + +// GetRhitWebUserIdOk returns a tuple with the RhitWebUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetRhitWebUserIdOk() (*string, bool) { + if o == nil || o.RhitWebUserId == nil { + return nil, false + } + return o.RhitWebUserId, true +} + +// HasRhitWebUserId returns a boolean if a field has been set. +func (o *AccountAllOf) HasRhitWebUserId() bool { + if o != nil && o.RhitWebUserId != nil { + return true + } + + return false +} + +// SetRhitWebUserId gets a reference to the given string and assigns it to the RhitWebUserId field. +func (o *AccountAllOf) SetRhitWebUserId(v string) { + o.RhitWebUserId = &v +} + +// GetServiceAccount returns the ServiceAccount field value if set, zero value otherwise. +func (o *AccountAllOf) GetServiceAccount() bool { + if o == nil || o.ServiceAccount == nil { + var ret bool + return ret + } + return *o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetServiceAccountOk() (*bool, bool) { + if o == nil || o.ServiceAccount == nil { + return nil, false + } + return o.ServiceAccount, true +} + +// HasServiceAccount returns a boolean if a field has been set. +func (o *AccountAllOf) HasServiceAccount() bool { + if o != nil && o.ServiceAccount != nil { + return true + } + + return false +} + +// SetServiceAccount gets a reference to the given bool and assigns it to the ServiceAccount field. +func (o *AccountAllOf) SetServiceAccount(v bool) { + o.ServiceAccount = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccountAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccountAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AccountAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUsername returns the Username field value +func (o *AccountAllOf) 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 *AccountAllOf) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *AccountAllOf) SetUsername(v string) { + o.Username = v +} + +func (o AccountAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BanCode != nil { + toSerialize["ban_code"] = o.BanCode + } + if o.BanDescription != nil { + toSerialize["ban_description"] = o.BanDescription + } + if o.Banned != nil { + toSerialize["banned"] = o.Banned + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Email != nil { + toSerialize["email"] = o.Email + } + if o.FirstName != nil { + toSerialize["first_name"] = o.FirstName + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.LastName != nil { + toSerialize["last_name"] = o.LastName + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.RhitAccountId != nil { + toSerialize["rhit_account_id"] = o.RhitAccountId + } + if o.RhitWebUserId != nil { + toSerialize["rhit_web_user_id"] = o.RhitWebUserId + } + if o.ServiceAccount != nil { + toSerialize["service_account"] = o.ServiceAccount + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableAccountAllOf struct { + value *AccountAllOf + isSet bool +} + +func (v NullableAccountAllOf) Get() *AccountAllOf { + return v.value +} + +func (v *NullableAccountAllOf) Set(val *AccountAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountAllOf(val *AccountAllOf) *NullableAccountAllOf { + return &NullableAccountAllOf{value: val, isSet: true} +} + +func (v NullableAccountAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group.go new file mode 100644 index 00000000..893b595c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group.go @@ -0,0 +1,376 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// AccountGroup struct for AccountGroup +type AccountGroup struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description string `json:"description"` + ManagedBy string `json:"managed_by"` + Name string `json:"name"` + OrganizationId string `json:"organization_id"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAccountGroup instantiates a new AccountGroup 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 NewAccountGroup(description string, managedBy string, name string, organizationId string) *AccountGroup { + this := AccountGroup{} + this.Description = description + this.ManagedBy = managedBy + this.Name = name + this.OrganizationId = organizationId + return &this +} + +// NewAccountGroupWithDefaults instantiates a new AccountGroup 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 NewAccountGroupWithDefaults() *AccountGroup { + this := AccountGroup{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AccountGroup) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AccountGroup) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AccountGroup) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AccountGroup) GetId() string { + if o == nil || o.Id == nil { + 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 *AccountGroup) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AccountGroup) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AccountGroup) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AccountGroup) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AccountGroup) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AccountGroup) SetKind(v string) { + o.Kind = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AccountGroup) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AccountGroup) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AccountGroup) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value +func (o *AccountGroup) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *AccountGroup) SetDescription(v string) { + o.Description = v +} + +// GetManagedBy returns the ManagedBy field value +func (o *AccountGroup) GetManagedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetManagedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ManagedBy, true +} + +// SetManagedBy sets field value +func (o *AccountGroup) SetManagedBy(v string) { + o.ManagedBy = v +} + +// GetName returns the Name field value +func (o *AccountGroup) 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 *AccountGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AccountGroup) SetName(v string) { + o.Name = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *AccountGroup) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *AccountGroup) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccountGroup) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroup) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccountGroup) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AccountGroup) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AccountGroup) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["managed_by"] = o.ManagedBy + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["organization_id"] = o.OrganizationId + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroup struct { + value *AccountGroup + isSet bool +} + +func (v NullableAccountGroup) Get() *AccountGroup { + return v.value +} + +func (v *NullableAccountGroup) Set(val *AccountGroup) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroup(val *AccountGroup) *NullableAccountGroup { + return &NullableAccountGroup{value: val, isSet: true} +} + +func (v NullableAccountGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_all_of.go new file mode 100644 index 00000000..010b1ebf --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_all_of.go @@ -0,0 +1,268 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// AccountGroupAllOf struct for AccountGroupAllOf +type AccountGroupAllOf struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Description string `json:"description"` + ManagedBy string `json:"managed_by"` + Name string `json:"name"` + OrganizationId string `json:"organization_id"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAccountGroupAllOf instantiates a new AccountGroupAllOf 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 NewAccountGroupAllOf(description string, managedBy string, name string, organizationId string) *AccountGroupAllOf { + this := AccountGroupAllOf{} + this.Description = description + this.ManagedBy = managedBy + this.Name = name + this.OrganizationId = organizationId + return &this +} + +// NewAccountGroupAllOfWithDefaults instantiates a new AccountGroupAllOf 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 NewAccountGroupAllOfWithDefaults() *AccountGroupAllOf { + this := AccountGroupAllOf{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AccountGroupAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AccountGroupAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AccountGroupAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value +func (o *AccountGroupAllOf) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAllOf) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *AccountGroupAllOf) SetDescription(v string) { + o.Description = v +} + +// GetManagedBy returns the ManagedBy field value +func (o *AccountGroupAllOf) GetManagedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAllOf) GetManagedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ManagedBy, true +} + +// SetManagedBy sets field value +func (o *AccountGroupAllOf) SetManagedBy(v string) { + o.ManagedBy = v +} + +// GetName returns the Name field value +func (o *AccountGroupAllOf) 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 *AccountGroupAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AccountGroupAllOf) SetName(v string) { + o.Name = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *AccountGroupAllOf) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *AccountGroupAllOf) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccountGroupAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccountGroupAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AccountGroupAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AccountGroupAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["managed_by"] = o.ManagedBy + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["organization_id"] = o.OrganizationId + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupAllOf struct { + value *AccountGroupAllOf + isSet bool +} + +func (v NullableAccountGroupAllOf) Get() *AccountGroupAllOf { + return v.value +} + +func (v *NullableAccountGroupAllOf) Set(val *AccountGroupAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupAllOf(val *AccountGroupAllOf) *NullableAccountGroupAllOf { + return &NullableAccountGroupAllOf{value: val, isSet: true} +} + +func (v NullableAccountGroupAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment.go new file mode 100644 index 00000000..cc6b7805 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment.go @@ -0,0 +1,318 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// AccountGroupAssignment struct for AccountGroupAssignment +type AccountGroupAssignment struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AccountGroupId string `json:"account_group_id"` + AccountId string `json:"account_id"` + CreatedAt *time.Time `json:"created_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAccountGroupAssignment instantiates a new AccountGroupAssignment 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 NewAccountGroupAssignment(accountGroupId string, accountId string) *AccountGroupAssignment { + this := AccountGroupAssignment{} + this.AccountGroupId = accountGroupId + this.AccountId = accountId + return &this +} + +// NewAccountGroupAssignmentWithDefaults instantiates a new AccountGroupAssignment 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 NewAccountGroupAssignmentWithDefaults() *AccountGroupAssignment { + this := AccountGroupAssignment{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AccountGroupAssignment) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AccountGroupAssignment) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AccountGroupAssignment) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AccountGroupAssignment) GetId() string { + if o == nil || o.Id == nil { + 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 *AccountGroupAssignment) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AccountGroupAssignment) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AccountGroupAssignment) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AccountGroupAssignment) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AccountGroupAssignment) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AccountGroupAssignment) SetKind(v string) { + o.Kind = &v +} + +// GetAccountGroupId returns the AccountGroupId field value +func (o *AccountGroupAssignment) GetAccountGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountGroupId +} + +// GetAccountGroupIdOk returns a tuple with the AccountGroupId field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetAccountGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountGroupId, true +} + +// SetAccountGroupId sets field value +func (o *AccountGroupAssignment) SetAccountGroupId(v string) { + o.AccountGroupId = v +} + +// GetAccountId returns the AccountId field value +func (o *AccountGroupAssignment) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *AccountGroupAssignment) SetAccountId(v string) { + o.AccountId = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AccountGroupAssignment) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AccountGroupAssignment) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AccountGroupAssignment) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccountGroupAssignment) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignment) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccountGroupAssignment) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AccountGroupAssignment) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AccountGroupAssignment) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["account_group_id"] = o.AccountGroupId + } + if true { + toSerialize["account_id"] = o.AccountId + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupAssignment struct { + value *AccountGroupAssignment + isSet bool +} + +func (v NullableAccountGroupAssignment) Get() *AccountGroupAssignment { + return v.value +} + +func (v *NullableAccountGroupAssignment) Set(val *AccountGroupAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupAssignment(val *AccountGroupAssignment) *NullableAccountGroupAssignment { + return &NullableAccountGroupAssignment{value: val, isSet: true} +} + +func (v NullableAccountGroupAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_all_of.go new file mode 100644 index 00000000..dc3c2acd --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_all_of.go @@ -0,0 +1,210 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// AccountGroupAssignmentAllOf struct for AccountGroupAssignmentAllOf +type AccountGroupAssignmentAllOf struct { + AccountGroupId string `json:"account_group_id"` + AccountId string `json:"account_id"` + CreatedAt *time.Time `json:"created_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewAccountGroupAssignmentAllOf instantiates a new AccountGroupAssignmentAllOf 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 NewAccountGroupAssignmentAllOf(accountGroupId string, accountId string) *AccountGroupAssignmentAllOf { + this := AccountGroupAssignmentAllOf{} + this.AccountGroupId = accountGroupId + this.AccountId = accountId + return &this +} + +// NewAccountGroupAssignmentAllOfWithDefaults instantiates a new AccountGroupAssignmentAllOf 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 NewAccountGroupAssignmentAllOfWithDefaults() *AccountGroupAssignmentAllOf { + this := AccountGroupAssignmentAllOf{} + return &this +} + +// GetAccountGroupId returns the AccountGroupId field value +func (o *AccountGroupAssignmentAllOf) GetAccountGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountGroupId +} + +// GetAccountGroupIdOk returns a tuple with the AccountGroupId field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentAllOf) GetAccountGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountGroupId, true +} + +// SetAccountGroupId sets field value +func (o *AccountGroupAssignmentAllOf) SetAccountGroupId(v string) { + o.AccountGroupId = v +} + +// GetAccountId returns the AccountId field value +func (o *AccountGroupAssignmentAllOf) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentAllOf) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *AccountGroupAssignmentAllOf) SetAccountId(v string) { + o.AccountId = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *AccountGroupAssignmentAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *AccountGroupAssignmentAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *AccountGroupAssignmentAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *AccountGroupAssignmentAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *AccountGroupAssignmentAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *AccountGroupAssignmentAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o AccountGroupAssignmentAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_group_id"] = o.AccountGroupId + } + if true { + toSerialize["account_id"] = o.AccountId + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupAssignmentAllOf struct { + value *AccountGroupAssignmentAllOf + isSet bool +} + +func (v NullableAccountGroupAssignmentAllOf) Get() *AccountGroupAssignmentAllOf { + return v.value +} + +func (v *NullableAccountGroupAssignmentAllOf) Set(val *AccountGroupAssignmentAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupAssignmentAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupAssignmentAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupAssignmentAllOf(val *AccountGroupAssignmentAllOf) *NullableAccountGroupAssignmentAllOf { + return &NullableAccountGroupAssignmentAllOf{value: val, isSet: true} +} + +func (v NullableAccountGroupAssignmentAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupAssignmentAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list.go new file mode 100644 index 00000000..84eed306 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupAssignmentList struct for AccountGroupAssignmentList +type AccountGroupAssignmentList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []AccountGroupAssignment `json:"items"` +} + +// NewAccountGroupAssignmentList instantiates a new AccountGroupAssignmentList 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 NewAccountGroupAssignmentList(kind string, page int32, size int32, total int32, items []AccountGroupAssignment) *AccountGroupAssignmentList { + this := AccountGroupAssignmentList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewAccountGroupAssignmentListWithDefaults instantiates a new AccountGroupAssignmentList 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 NewAccountGroupAssignmentListWithDefaults() *AccountGroupAssignmentList { + this := AccountGroupAssignmentList{} + return &this +} + +// GetKind returns the Kind field value +func (o *AccountGroupAssignmentList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *AccountGroupAssignmentList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *AccountGroupAssignmentList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *AccountGroupAssignmentList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *AccountGroupAssignmentList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *AccountGroupAssignmentList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *AccountGroupAssignmentList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *AccountGroupAssignmentList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *AccountGroupAssignmentList) GetItems() []AccountGroupAssignment { + if o == nil { + var ret []AccountGroupAssignment + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentList) GetItemsOk() (*[]AccountGroupAssignment, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *AccountGroupAssignmentList) SetItems(v []AccountGroupAssignment) { + o.Items = v +} + +func (o AccountGroupAssignmentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupAssignmentList struct { + value *AccountGroupAssignmentList + isSet bool +} + +func (v NullableAccountGroupAssignmentList) Get() *AccountGroupAssignmentList { + return v.value +} + +func (v *NullableAccountGroupAssignmentList) Set(val *AccountGroupAssignmentList) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupAssignmentList) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupAssignmentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupAssignmentList(val *AccountGroupAssignmentList) *NullableAccountGroupAssignmentList { + return &NullableAccountGroupAssignmentList{value: val, isSet: true} +} + +func (v NullableAccountGroupAssignmentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupAssignmentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list_all_of.go new file mode 100644 index 00000000..98031c89 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_assignment_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupAssignmentListAllOf struct for AccountGroupAssignmentListAllOf +type AccountGroupAssignmentListAllOf struct { + Items *[]AccountGroupAssignment `json:"items,omitempty"` +} + +// NewAccountGroupAssignmentListAllOf instantiates a new AccountGroupAssignmentListAllOf 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 NewAccountGroupAssignmentListAllOf() *AccountGroupAssignmentListAllOf { + this := AccountGroupAssignmentListAllOf{} + return &this +} + +// NewAccountGroupAssignmentListAllOfWithDefaults instantiates a new AccountGroupAssignmentListAllOf 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 NewAccountGroupAssignmentListAllOfWithDefaults() *AccountGroupAssignmentListAllOf { + this := AccountGroupAssignmentListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AccountGroupAssignmentListAllOf) GetItems() []AccountGroupAssignment { + if o == nil || o.Items == nil { + var ret []AccountGroupAssignment + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupAssignmentListAllOf) GetItemsOk() (*[]AccountGroupAssignment, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AccountGroupAssignmentListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []AccountGroupAssignment and assigns it to the Items field. +func (o *AccountGroupAssignmentListAllOf) SetItems(v []AccountGroupAssignment) { + o.Items = &v +} + +func (o AccountGroupAssignmentListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupAssignmentListAllOf struct { + value *AccountGroupAssignmentListAllOf + isSet bool +} + +func (v NullableAccountGroupAssignmentListAllOf) Get() *AccountGroupAssignmentListAllOf { + return v.value +} + +func (v *NullableAccountGroupAssignmentListAllOf) Set(val *AccountGroupAssignmentListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupAssignmentListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupAssignmentListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupAssignmentListAllOf(val *AccountGroupAssignmentListAllOf) *NullableAccountGroupAssignmentListAllOf { + return &NullableAccountGroupAssignmentListAllOf{value: val, isSet: true} +} + +func (v NullableAccountGroupAssignmentListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupAssignmentListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list.go new file mode 100644 index 00000000..1ddadb75 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupList struct for AccountGroupList +type AccountGroupList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []AccountGroup `json:"items"` +} + +// NewAccountGroupList instantiates a new AccountGroupList 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 NewAccountGroupList(kind string, page int32, size int32, total int32, items []AccountGroup) *AccountGroupList { + this := AccountGroupList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewAccountGroupListWithDefaults instantiates a new AccountGroupList 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 NewAccountGroupListWithDefaults() *AccountGroupList { + this := AccountGroupList{} + return &this +} + +// GetKind returns the Kind field value +func (o *AccountGroupList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *AccountGroupList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *AccountGroupList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *AccountGroupList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *AccountGroupList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *AccountGroupList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *AccountGroupList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *AccountGroupList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *AccountGroupList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *AccountGroupList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *AccountGroupList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *AccountGroupList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *AccountGroupList) GetItems() []AccountGroup { + if o == nil { + var ret []AccountGroup + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *AccountGroupList) GetItemsOk() (*[]AccountGroup, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *AccountGroupList) SetItems(v []AccountGroup) { + o.Items = v +} + +func (o AccountGroupList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupList struct { + value *AccountGroupList + isSet bool +} + +func (v NullableAccountGroupList) Get() *AccountGroupList { + return v.value +} + +func (v *NullableAccountGroupList) Set(val *AccountGroupList) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupList(val *AccountGroupList) *NullableAccountGroupList { + return &NullableAccountGroupList{value: val, isSet: true} +} + +func (v NullableAccountGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list_all_of.go new file mode 100644 index 00000000..28e83d16 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupListAllOf struct for AccountGroupListAllOf +type AccountGroupListAllOf struct { + Items *[]AccountGroup `json:"items,omitempty"` +} + +// NewAccountGroupListAllOf instantiates a new AccountGroupListAllOf 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 NewAccountGroupListAllOf() *AccountGroupListAllOf { + this := AccountGroupListAllOf{} + return &this +} + +// NewAccountGroupListAllOfWithDefaults instantiates a new AccountGroupListAllOf 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 NewAccountGroupListAllOfWithDefaults() *AccountGroupListAllOf { + this := AccountGroupListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AccountGroupListAllOf) GetItems() []AccountGroup { + if o == nil || o.Items == nil { + var ret []AccountGroup + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupListAllOf) GetItemsOk() (*[]AccountGroup, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AccountGroupListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []AccountGroup and assigns it to the Items field. +func (o *AccountGroupListAllOf) SetItems(v []AccountGroup) { + o.Items = &v +} + +func (o AccountGroupListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupListAllOf struct { + value *AccountGroupListAllOf + isSet bool +} + +func (v NullableAccountGroupListAllOf) Get() *AccountGroupListAllOf { + return v.value +} + +func (v *NullableAccountGroupListAllOf) Set(val *AccountGroupListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupListAllOf(val *AccountGroupListAllOf) *NullableAccountGroupListAllOf { + return &NullableAccountGroupListAllOf{value: val, isSet: true} +} + +func (v NullableAccountGroupListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request.go new file mode 100644 index 00000000..8d21eab7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request.go @@ -0,0 +1,245 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupRequest struct for AccountGroupRequest +type AccountGroupRequest struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Description string `json:"description"` + Name string `json:"name"` +} + +// NewAccountGroupRequest instantiates a new AccountGroupRequest 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 NewAccountGroupRequest(description string, name string) *AccountGroupRequest { + this := AccountGroupRequest{} + this.Description = description + this.Name = name + return &this +} + +// NewAccountGroupRequestWithDefaults instantiates a new AccountGroupRequest 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 NewAccountGroupRequestWithDefaults() *AccountGroupRequest { + this := AccountGroupRequest{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AccountGroupRequest) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupRequest) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AccountGroupRequest) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AccountGroupRequest) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AccountGroupRequest) GetId() string { + if o == nil || o.Id == nil { + 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 *AccountGroupRequest) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AccountGroupRequest) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AccountGroupRequest) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AccountGroupRequest) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountGroupRequest) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AccountGroupRequest) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AccountGroupRequest) SetKind(v string) { + o.Kind = &v +} + +// GetDescription returns the Description field value +func (o *AccountGroupRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *AccountGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *AccountGroupRequest) SetDescription(v string) { + o.Description = v +} + +// GetName returns the Name field value +func (o *AccountGroupRequest) 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 *AccountGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AccountGroupRequest) SetName(v string) { + o.Name = v +} + +func (o AccountGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupRequest struct { + value *AccountGroupRequest + isSet bool +} + +func (v NullableAccountGroupRequest) Get() *AccountGroupRequest { + return v.value +} + +func (v *NullableAccountGroupRequest) Set(val *AccountGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupRequest(val *AccountGroupRequest) *NullableAccountGroupRequest { + return &NullableAccountGroupRequest{value: val, isSet: true} +} + +func (v NullableAccountGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request_all_of.go new file mode 100644 index 00000000..faa5d393 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_group_request_all_of.go @@ -0,0 +1,137 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountGroupRequestAllOf struct for AccountGroupRequestAllOf +type AccountGroupRequestAllOf struct { + Description string `json:"description"` + Name string `json:"name"` +} + +// NewAccountGroupRequestAllOf instantiates a new AccountGroupRequestAllOf 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 NewAccountGroupRequestAllOf(description string, name string) *AccountGroupRequestAllOf { + this := AccountGroupRequestAllOf{} + this.Description = description + this.Name = name + return &this +} + +// NewAccountGroupRequestAllOfWithDefaults instantiates a new AccountGroupRequestAllOf 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 NewAccountGroupRequestAllOfWithDefaults() *AccountGroupRequestAllOf { + this := AccountGroupRequestAllOf{} + return &this +} + +// GetDescription returns the Description field value +func (o *AccountGroupRequestAllOf) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *AccountGroupRequestAllOf) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *AccountGroupRequestAllOf) SetDescription(v string) { + o.Description = v +} + +// GetName returns the Name field value +func (o *AccountGroupRequestAllOf) 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 *AccountGroupRequestAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AccountGroupRequestAllOf) SetName(v string) { + o.Name = v +} + +func (o AccountGroupRequestAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableAccountGroupRequestAllOf struct { + value *AccountGroupRequestAllOf + isSet bool +} + +func (v NullableAccountGroupRequestAllOf) Get() *AccountGroupRequestAllOf { + return v.value +} + +func (v *NullableAccountGroupRequestAllOf) Set(val *AccountGroupRequestAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountGroupRequestAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountGroupRequestAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountGroupRequestAllOf(val *AccountGroupRequestAllOf) *NullableAccountGroupRequestAllOf { + return &NullableAccountGroupRequestAllOf{value: val, isSet: true} +} + +func (v NullableAccountGroupRequestAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountGroupRequestAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list.go new file mode 100644 index 00000000..b1d2d94d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountList struct for AccountList +type AccountList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Account `json:"items"` +} + +// NewAccountList instantiates a new AccountList 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 NewAccountList(kind string, page int32, size int32, total int32, items []Account) *AccountList { + this := AccountList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewAccountListWithDefaults instantiates a new AccountList 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 NewAccountListWithDefaults() *AccountList { + this := AccountList{} + return &this +} + +// GetKind returns the Kind field value +func (o *AccountList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *AccountList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *AccountList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *AccountList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *AccountList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *AccountList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *AccountList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *AccountList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *AccountList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *AccountList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *AccountList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *AccountList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *AccountList) GetItems() []Account { + if o == nil { + var ret []Account + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *AccountList) GetItemsOk() (*[]Account, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *AccountList) SetItems(v []Account) { + o.Items = v +} + +func (o AccountList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountList struct { + value *AccountList + isSet bool +} + +func (v NullableAccountList) Get() *AccountList { + return v.value +} + +func (v *NullableAccountList) Set(val *AccountList) { + v.value = val + v.isSet = true +} + +func (v NullableAccountList) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountList(val *AccountList) *NullableAccountList { + return &NullableAccountList{value: val, isSet: true} +} + +func (v NullableAccountList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list_all_of.go new file mode 100644 index 00000000..63530312 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountListAllOf struct for AccountListAllOf +type AccountListAllOf struct { + Items *[]Account `json:"items,omitempty"` +} + +// NewAccountListAllOf instantiates a new AccountListAllOf 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 NewAccountListAllOf() *AccountListAllOf { + this := AccountListAllOf{} + return &this +} + +// NewAccountListAllOfWithDefaults instantiates a new AccountListAllOf 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 NewAccountListAllOfWithDefaults() *AccountListAllOf { + this := AccountListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AccountListAllOf) GetItems() []Account { + if o == nil || o.Items == nil { + var ret []Account + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountListAllOf) GetItemsOk() (*[]Account, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AccountListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Account and assigns it to the Items field. +func (o *AccountListAllOf) SetItems(v []Account) { + o.Items = &v +} + +func (o AccountListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAccountListAllOf struct { + value *AccountListAllOf + isSet bool +} + +func (v NullableAccountListAllOf) Get() *AccountListAllOf { + return v.value +} + +func (v *NullableAccountListAllOf) Set(val *AccountListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountListAllOf(val *AccountListAllOf) *NullableAccountListAllOf { + return &NullableAccountListAllOf{value: val, isSet: true} +} + +func (v NullableAccountListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_patch_request.go new file mode 100644 index 00000000..d617226a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_patch_request.go @@ -0,0 +1,367 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountPatchRequest struct for AccountPatchRequest +type AccountPatchRequest struct { + BanCode *string `json:"ban_code,omitempty"` + BanDescription *string `json:"ban_description,omitempty"` + Banned *bool `json:"banned,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ServiceAccount *bool `json:"service_account,omitempty"` +} + +// NewAccountPatchRequest instantiates a new AccountPatchRequest 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 NewAccountPatchRequest() *AccountPatchRequest { + this := AccountPatchRequest{} + return &this +} + +// NewAccountPatchRequestWithDefaults instantiates a new AccountPatchRequest 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 NewAccountPatchRequestWithDefaults() *AccountPatchRequest { + this := AccountPatchRequest{} + return &this +} + +// GetBanCode returns the BanCode field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetBanCode() string { + if o == nil || o.BanCode == nil { + var ret string + return ret + } + return *o.BanCode +} + +// GetBanCodeOk returns a tuple with the BanCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountPatchRequest) GetBanCodeOk() (*string, bool) { + if o == nil || o.BanCode == nil { + return nil, false + } + return o.BanCode, true +} + +// HasBanCode returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasBanCode() bool { + if o != nil && o.BanCode != nil { + return true + } + + return false +} + +// SetBanCode gets a reference to the given string and assigns it to the BanCode field. +func (o *AccountPatchRequest) SetBanCode(v string) { + o.BanCode = &v +} + +// GetBanDescription returns the BanDescription field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetBanDescription() string { + if o == nil || o.BanDescription == nil { + var ret string + return ret + } + return *o.BanDescription +} + +// GetBanDescriptionOk returns a tuple with the BanDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountPatchRequest) GetBanDescriptionOk() (*string, bool) { + if o == nil || o.BanDescription == nil { + return nil, false + } + return o.BanDescription, true +} + +// HasBanDescription returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasBanDescription() bool { + if o != nil && o.BanDescription != nil { + return true + } + + return false +} + +// SetBanDescription gets a reference to the given string and assigns it to the BanDescription field. +func (o *AccountPatchRequest) SetBanDescription(v string) { + o.BanDescription = &v +} + +// GetBanned returns the Banned field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetBanned() bool { + if o == nil || o.Banned == nil { + var ret bool + return ret + } + return *o.Banned +} + +// GetBannedOk returns a tuple with the Banned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountPatchRequest) GetBannedOk() (*bool, bool) { + if o == nil || o.Banned == nil { + return nil, false + } + return o.Banned, true +} + +// HasBanned returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasBanned() bool { + if o != nil && o.Banned != nil { + return true + } + + return false +} + +// SetBanned gets a reference to the given bool and assigns it to the Banned field. +func (o *AccountPatchRequest) SetBanned(v bool) { + o.Banned = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetEmail() string { + if o == nil || o.Email == nil { + 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 *AccountPatchRequest) GetEmailOk() (*string, bool) { + if o == nil || o.Email == nil { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasEmail() bool { + if o != nil && o.Email != nil { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AccountPatchRequest) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetFirstName() string { + if o == nil || o.FirstName == nil { + 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 *AccountPatchRequest) GetFirstNameOk() (*string, bool) { + if o == nil || o.FirstName == nil { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasFirstName() bool { + if o != nil && o.FirstName != nil { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *AccountPatchRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetLastName() string { + if o == nil || o.LastName == nil { + 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 *AccountPatchRequest) GetLastNameOk() (*string, bool) { + if o == nil || o.LastName == nil { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasLastName() bool { + if o != nil && o.LastName != nil { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *AccountPatchRequest) SetLastName(v string) { + o.LastName = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountPatchRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *AccountPatchRequest) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetServiceAccount returns the ServiceAccount field value if set, zero value otherwise. +func (o *AccountPatchRequest) GetServiceAccount() bool { + if o == nil || o.ServiceAccount == nil { + var ret bool + return ret + } + return *o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountPatchRequest) GetServiceAccountOk() (*bool, bool) { + if o == nil || o.ServiceAccount == nil { + return nil, false + } + return o.ServiceAccount, true +} + +// HasServiceAccount returns a boolean if a field has been set. +func (o *AccountPatchRequest) HasServiceAccount() bool { + if o != nil && o.ServiceAccount != nil { + return true + } + + return false +} + +// SetServiceAccount gets a reference to the given bool and assigns it to the ServiceAccount field. +func (o *AccountPatchRequest) SetServiceAccount(v bool) { + o.ServiceAccount = &v +} + +func (o AccountPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BanCode != nil { + toSerialize["ban_code"] = o.BanCode + } + if o.BanDescription != nil { + toSerialize["ban_description"] = o.BanDescription + } + if o.Banned != nil { + toSerialize["banned"] = o.Banned + } + if o.Email != nil { + toSerialize["email"] = o.Email + } + if o.FirstName != nil { + toSerialize["first_name"] = o.FirstName + } + if o.LastName != nil { + toSerialize["last_name"] = o.LastName + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.ServiceAccount != nil { + toSerialize["service_account"] = o.ServiceAccount + } + return json.Marshal(toSerialize) +} + +type NullableAccountPatchRequest struct { + value *AccountPatchRequest + isSet bool +} + +func (v NullableAccountPatchRequest) Get() *AccountPatchRequest { + return v.value +} + +func (v *NullableAccountPatchRequest) Set(val *AccountPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAccountPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountPatchRequest(val *AccountPatchRequest) *NullableAccountPatchRequest { + return &NullableAccountPatchRequest{value: val, isSet: true} +} + +func (v NullableAccountPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference.go new file mode 100644 index 00000000..47b07a31 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountReference struct for AccountReference +type AccountReference struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewAccountReference instantiates a new AccountReference 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 NewAccountReference() *AccountReference { + this := AccountReference{} + return &this +} + +// NewAccountReferenceWithDefaults instantiates a new AccountReference 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 NewAccountReferenceWithDefaults() *AccountReference { + this := AccountReference{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AccountReference) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountReference) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AccountReference) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AccountReference) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AccountReference) GetId() string { + if o == nil || o.Id == nil { + 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 *AccountReference) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AccountReference) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AccountReference) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AccountReference) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccountReference) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AccountReference) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AccountReference) SetKind(v string) { + o.Kind = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AccountReference) GetEmail() string { + if o == nil || o.Email == nil { + 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 *AccountReference) GetEmailOk() (*string, bool) { + if o == nil || o.Email == nil { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AccountReference) HasEmail() bool { + if o != nil && o.Email != nil { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AccountReference) SetEmail(v string) { + o.Email = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AccountReference) GetName() string { + if o == nil || o.Name == nil { + 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 *AccountReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *AccountReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *AccountReference) SetName(v string) { + o.Name = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *AccountReference) GetUsername() string { + if o == nil || o.Username == nil { + 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 *AccountReference) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *AccountReference) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *AccountReference) SetUsername(v string) { + o.Username = &v +} + +func (o AccountReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Email != nil { + toSerialize["email"] = o.Email + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableAccountReference struct { + value *AccountReference + isSet bool +} + +func (v NullableAccountReference) Get() *AccountReference { + return v.value +} + +func (v *NullableAccountReference) Set(val *AccountReference) { + v.value = val + v.isSet = true +} + +func (v NullableAccountReference) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountReference(val *AccountReference) *NullableAccountReference { + return &NullableAccountReference{value: val, isSet: true} +} + +func (v NullableAccountReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference_all_of.go new file mode 100644 index 00000000..a9f0388a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_account_reference_all_of.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// AccountReferenceAllOf struct for AccountReferenceAllOf +type AccountReferenceAllOf struct { + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewAccountReferenceAllOf instantiates a new AccountReferenceAllOf 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 NewAccountReferenceAllOf() *AccountReferenceAllOf { + this := AccountReferenceAllOf{} + return &this +} + +// NewAccountReferenceAllOfWithDefaults instantiates a new AccountReferenceAllOf 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 NewAccountReferenceAllOfWithDefaults() *AccountReferenceAllOf { + this := AccountReferenceAllOf{} + return &this +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *AccountReferenceAllOf) GetEmail() string { + if o == nil || o.Email == nil { + 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 *AccountReferenceAllOf) GetEmailOk() (*string, bool) { + if o == nil || o.Email == nil { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *AccountReferenceAllOf) HasEmail() bool { + if o != nil && o.Email != nil { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *AccountReferenceAllOf) SetEmail(v string) { + o.Email = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AccountReferenceAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *AccountReferenceAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *AccountReferenceAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *AccountReferenceAllOf) SetName(v string) { + o.Name = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *AccountReferenceAllOf) GetUsername() string { + if o == nil || o.Username == nil { + 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 *AccountReferenceAllOf) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *AccountReferenceAllOf) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *AccountReferenceAllOf) SetUsername(v string) { + o.Username = &v +} + +func (o AccountReferenceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Email != nil { + toSerialize["email"] = o.Email + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableAccountReferenceAllOf struct { + value *AccountReferenceAllOf + isSet bool +} + +func (v NullableAccountReferenceAllOf) Get() *AccountReferenceAllOf { + return v.value +} + +func (v *NullableAccountReferenceAllOf) Set(val *AccountReferenceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAccountReferenceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAccountReferenceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccountReferenceAllOf(val *AccountReferenceAllOf) *NullableAccountReferenceAllOf { + return &NullableAccountReferenceAllOf{value: val, isSet: true} +} + +func (v NullableAccountReferenceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccountReferenceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_capability.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability.go new file mode 100644 index 00000000..881c7495 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability.go @@ -0,0 +1,274 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Capability struct for Capability +type Capability struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Inherited bool `json:"inherited"` + Name string `json:"name"` + Value string `json:"value"` +} + +// NewCapability instantiates a new Capability 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 NewCapability(inherited bool, name string, value string) *Capability { + this := Capability{} + this.Inherited = inherited + this.Name = name + this.Value = value + return &this +} + +// NewCapabilityWithDefaults instantiates a new Capability 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 NewCapabilityWithDefaults() *Capability { + this := Capability{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Capability) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Capability) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Capability) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Capability) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Capability) GetId() string { + if o == nil || o.Id == nil { + 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 *Capability) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Capability) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Capability) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Capability) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Capability) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Capability) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Capability) SetKind(v string) { + o.Kind = &v +} + +// GetInherited returns the Inherited field value +func (o *Capability) GetInherited() bool { + if o == nil { + var ret bool + return ret + } + + return o.Inherited +} + +// GetInheritedOk returns a tuple with the Inherited field value +// and a boolean to check if the value has been set. +func (o *Capability) GetInheritedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Inherited, true +} + +// SetInherited sets field value +func (o *Capability) SetInherited(v bool) { + o.Inherited = v +} + +// GetName returns the Name field value +func (o *Capability) 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 *Capability) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Capability) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *Capability) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Capability) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Capability) SetValue(v string) { + o.Value = v +} + +func (o Capability) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["inherited"] = o.Inherited + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableCapability struct { + value *Capability + isSet bool +} + +func (v NullableCapability) Get() *Capability { + return v.value +} + +func (v *NullableCapability) Set(val *Capability) { + v.value = val + v.isSet = true +} + +func (v NullableCapability) IsSet() bool { + return v.isSet +} + +func (v *NullableCapability) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCapability(val *Capability) *NullableCapability { + return &NullableCapability{value: val, isSet: true} +} + +func (v NullableCapability) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCapability) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_all_of.go new file mode 100644 index 00000000..3b960558 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_all_of.go @@ -0,0 +1,166 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CapabilityAllOf struct for CapabilityAllOf +type CapabilityAllOf struct { + Inherited bool `json:"inherited"` + Name string `json:"name"` + Value string `json:"value"` +} + +// NewCapabilityAllOf instantiates a new CapabilityAllOf 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 NewCapabilityAllOf(inherited bool, name string, value string) *CapabilityAllOf { + this := CapabilityAllOf{} + this.Inherited = inherited + this.Name = name + this.Value = value + return &this +} + +// NewCapabilityAllOfWithDefaults instantiates a new CapabilityAllOf 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 NewCapabilityAllOfWithDefaults() *CapabilityAllOf { + this := CapabilityAllOf{} + return &this +} + +// GetInherited returns the Inherited field value +func (o *CapabilityAllOf) GetInherited() bool { + if o == nil { + var ret bool + return ret + } + + return o.Inherited +} + +// GetInheritedOk returns a tuple with the Inherited field value +// and a boolean to check if the value has been set. +func (o *CapabilityAllOf) GetInheritedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Inherited, true +} + +// SetInherited sets field value +func (o *CapabilityAllOf) SetInherited(v bool) { + o.Inherited = v +} + +// GetName returns the Name field value +func (o *CapabilityAllOf) 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 *CapabilityAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CapabilityAllOf) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *CapabilityAllOf) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *CapabilityAllOf) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *CapabilityAllOf) SetValue(v string) { + o.Value = v +} + +func (o CapabilityAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["inherited"] = o.Inherited + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableCapabilityAllOf struct { + value *CapabilityAllOf + isSet bool +} + +func (v NullableCapabilityAllOf) Get() *CapabilityAllOf { + return v.value +} + +func (v *NullableCapabilityAllOf) Set(val *CapabilityAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCapabilityAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCapabilityAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCapabilityAllOf(val *CapabilityAllOf) *NullableCapabilityAllOf { + return &NullableCapabilityAllOf{value: val, isSet: true} +} + +func (v NullableCapabilityAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCapabilityAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review.go new file mode 100644 index 00000000..90c0bd48 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CapabilityReview struct for CapabilityReview +type CapabilityReview struct { + Result string `json:"result"` +} + +// NewCapabilityReview instantiates a new CapabilityReview 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 NewCapabilityReview(result string) *CapabilityReview { + this := CapabilityReview{} + this.Result = result + return &this +} + +// NewCapabilityReviewWithDefaults instantiates a new CapabilityReview 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 NewCapabilityReviewWithDefaults() *CapabilityReview { + this := CapabilityReview{} + return &this +} + +// GetResult returns the Result field value +func (o *CapabilityReview) GetResult() string { + if o == nil { + var ret string + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *CapabilityReview) GetResultOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Result, true +} + +// SetResult sets field value +func (o *CapabilityReview) SetResult(v string) { + o.Result = v +} + +func (o CapabilityReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["result"] = o.Result + } + return json.Marshal(toSerialize) +} + +type NullableCapabilityReview struct { + value *CapabilityReview + isSet bool +} + +func (v NullableCapabilityReview) Get() *CapabilityReview { + return v.value +} + +func (v *NullableCapabilityReview) Set(val *CapabilityReview) { + v.value = val + v.isSet = true +} + +func (v NullableCapabilityReview) IsSet() bool { + return v.isSet +} + +func (v *NullableCapabilityReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCapabilityReview(val *CapabilityReview) *NullableCapabilityReview { + return &NullableCapabilityReview{value: val, isSet: true} +} + +func (v NullableCapabilityReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCapabilityReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review_request.go new file mode 100644 index 00000000..a4234366 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_capability_review_request.go @@ -0,0 +1,274 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CapabilityReviewRequest struct for CapabilityReviewRequest +type CapabilityReviewRequest struct { + AccountUsername string `json:"account_username"` + Capability string `json:"capability"` + ClusterId *string `json:"cluster_id,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Type string `json:"type"` +} + +// NewCapabilityReviewRequest instantiates a new CapabilityReviewRequest 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 NewCapabilityReviewRequest(accountUsername string, capability string, type_ string) *CapabilityReviewRequest { + this := CapabilityReviewRequest{} + this.AccountUsername = accountUsername + this.Capability = capability + this.Type = type_ + return &this +} + +// NewCapabilityReviewRequestWithDefaults instantiates a new CapabilityReviewRequest 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 NewCapabilityReviewRequestWithDefaults() *CapabilityReviewRequest { + this := CapabilityReviewRequest{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *CapabilityReviewRequest) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *CapabilityReviewRequest) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *CapabilityReviewRequest) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetCapability returns the Capability field value +func (o *CapabilityReviewRequest) GetCapability() string { + if o == nil { + var ret string + return ret + } + + return o.Capability +} + +// GetCapabilityOk returns a tuple with the Capability field value +// and a boolean to check if the value has been set. +func (o *CapabilityReviewRequest) GetCapabilityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Capability, true +} + +// SetCapability sets field value +func (o *CapabilityReviewRequest) SetCapability(v string) { + o.Capability = v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *CapabilityReviewRequest) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CapabilityReviewRequest) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *CapabilityReviewRequest) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *CapabilityReviewRequest) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *CapabilityReviewRequest) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CapabilityReviewRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *CapabilityReviewRequest) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *CapabilityReviewRequest) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *CapabilityReviewRequest) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CapabilityReviewRequest) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *CapabilityReviewRequest) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *CapabilityReviewRequest) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetType returns the Type field value +func (o *CapabilityReviewRequest) GetType() string { + if o == nil { + var ret string + 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 *CapabilityReviewRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CapabilityReviewRequest) SetType(v string) { + o.Type = v +} + +func (o CapabilityReviewRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if true { + toSerialize["capability"] = o.Capability + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableCapabilityReviewRequest struct { + value *CapabilityReviewRequest + isSet bool +} + +func (v NullableCapabilityReviewRequest) Get() *CapabilityReviewRequest { + return v.value +} + +func (v *NullableCapabilityReviewRequest) Set(val *CapabilityReviewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCapabilityReviewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCapabilityReviewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCapabilityReviewRequest(val *CapabilityReviewRequest) *NullableCapabilityReviewRequest { + return &NullableCapabilityReviewRequest{value: val, isSet: true} +} + +func (v NullableCapabilityReviewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCapabilityReviewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate.go new file mode 100644 index 00000000..5ea1f3d6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate.go @@ -0,0 +1,253 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Certificate struct for Certificate +type Certificate struct { + Cert string `json:"cert"` + Id string `json:"id"` + Key string `json:"key"` + Metadata map[string]string `json:"metadata"` + OrganizationId string `json:"organization_id"` + Serial CertificateSerial `json:"serial"` +} + +// NewCertificate instantiates a new Certificate 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 NewCertificate(cert string, id string, key string, metadata map[string]string, organizationId string, serial CertificateSerial) *Certificate { + this := Certificate{} + this.Cert = cert + this.Id = id + this.Key = key + this.Metadata = metadata + this.OrganizationId = organizationId + this.Serial = serial + return &this +} + +// NewCertificateWithDefaults instantiates a new Certificate 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 NewCertificateWithDefaults() *Certificate { + this := Certificate{} + return &this +} + +// GetCert returns the Cert field value +func (o *Certificate) GetCert() string { + if o == nil { + var ret string + return ret + } + + return o.Cert +} + +// GetCertOk returns a tuple with the Cert field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetCertOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cert, true +} + +// SetCert sets field value +func (o *Certificate) SetCert(v string) { + o.Cert = v +} + +// GetId returns the Id field value +func (o *Certificate) 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 *Certificate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Certificate) SetId(v string) { + o.Id = v +} + +// GetKey returns the Key field value +func (o *Certificate) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *Certificate) SetKey(v string) { + o.Key = v +} + +// GetMetadata returns the Metadata field value +func (o *Certificate) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetMetadataOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *Certificate) SetMetadata(v map[string]string) { + o.Metadata = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *Certificate) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *Certificate) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetSerial returns the Serial field value +func (o *Certificate) GetSerial() CertificateSerial { + if o == nil { + var ret CertificateSerial + return ret + } + + return o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value +// and a boolean to check if the value has been set. +func (o *Certificate) GetSerialOk() (*CertificateSerial, bool) { + if o == nil { + return nil, false + } + return &o.Serial, true +} + +// SetSerial sets field value +func (o *Certificate) SetSerial(v CertificateSerial) { + o.Serial = v +} + +func (o Certificate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cert"] = o.Cert + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["key"] = o.Key + } + if true { + toSerialize["metadata"] = o.Metadata + } + if true { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["serial"] = o.Serial + } + return json.Marshal(toSerialize) +} + +type NullableCertificate struct { + value *Certificate + isSet bool +} + +func (v NullableCertificate) Get() *Certificate { + return v.value +} + +func (v *NullableCertificate) Set(val *Certificate) { + v.value = val + v.isSet = true +} + +func (v NullableCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificate(val *Certificate) *NullableCertificate { + return &NullableCertificate{value: val, isSet: true} +} + +func (v NullableCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate_serial.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate_serial.go new file mode 100644 index 00000000..16bcb4ad --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificate_serial.go @@ -0,0 +1,225 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// CertificateSerial struct for CertificateSerial +type CertificateSerial struct { + Created time.Time `json:"created"` + Expiration time.Time `json:"expiration"` + Id int64 `json:"id"` + Serial int64 `json:"serial"` + Updated time.Time `json:"updated"` +} + +// NewCertificateSerial instantiates a new CertificateSerial 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 NewCertificateSerial(created time.Time, expiration time.Time, id int64, serial int64, updated time.Time) *CertificateSerial { + this := CertificateSerial{} + this.Created = created + this.Expiration = expiration + this.Id = id + this.Serial = serial + this.Updated = updated + return &this +} + +// NewCertificateSerialWithDefaults instantiates a new CertificateSerial 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 NewCertificateSerialWithDefaults() *CertificateSerial { + this := CertificateSerial{} + return &this +} + +// GetCreated returns the Created field value +func (o *CertificateSerial) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *CertificateSerial) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *CertificateSerial) SetCreated(v time.Time) { + o.Created = v +} + +// GetExpiration returns the Expiration field value +func (o *CertificateSerial) GetExpiration() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value +// and a boolean to check if the value has been set. +func (o *CertificateSerial) GetExpirationOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Expiration, true +} + +// SetExpiration sets field value +func (o *CertificateSerial) SetExpiration(v time.Time) { + o.Expiration = v +} + +// GetId returns the Id field value +func (o *CertificateSerial) GetId() int64 { + if o == nil { + var ret int64 + 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 *CertificateSerial) GetIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CertificateSerial) SetId(v int64) { + o.Id = v +} + +// GetSerial returns the Serial field value +func (o *CertificateSerial) GetSerial() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value +// and a boolean to check if the value has been set. +func (o *CertificateSerial) GetSerialOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Serial, true +} + +// SetSerial sets field value +func (o *CertificateSerial) SetSerial(v int64) { + o.Serial = v +} + +// GetUpdated returns the Updated field value +func (o *CertificateSerial) GetUpdated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Updated +} + +// GetUpdatedOk returns a tuple with the Updated field value +// and a boolean to check if the value has been set. +func (o *CertificateSerial) GetUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Updated, true +} + +// SetUpdated sets field value +func (o *CertificateSerial) SetUpdated(v time.Time) { + o.Updated = v +} + +func (o CertificateSerial) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["created"] = o.Created + } + if true { + toSerialize["expiration"] = o.Expiration + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["serial"] = o.Serial + } + if true { + toSerialize["updated"] = o.Updated + } + return json.Marshal(toSerialize) +} + +type NullableCertificateSerial struct { + value *CertificateSerial + isSet bool +} + +func (v NullableCertificateSerial) Get() *CertificateSerial { + return v.value +} + +func (v *NullableCertificateSerial) Set(val *CertificateSerial) { + v.value = val + v.isSet = true +} + +func (v NullableCertificateSerial) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificateSerial) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificateSerial(val *CertificateSerial) *NullableCertificateSerial { + return &NullableCertificateSerial{value: val, isSet: true} +} + +func (v NullableCertificateSerial) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificateSerial) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_certificates_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificates_request.go new file mode 100644 index 00000000..831c34d0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_certificates_request.go @@ -0,0 +1,144 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CertificatesRequest struct for CertificatesRequest +type CertificatesRequest struct { + Arch *string `json:"arch,omitempty"` + Type string `json:"type"` +} + +// NewCertificatesRequest instantiates a new CertificatesRequest 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 NewCertificatesRequest(type_ string) *CertificatesRequest { + this := CertificatesRequest{} + this.Type = type_ + return &this +} + +// NewCertificatesRequestWithDefaults instantiates a new CertificatesRequest 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 NewCertificatesRequestWithDefaults() *CertificatesRequest { + this := CertificatesRequest{} + return &this +} + +// GetArch returns the Arch field value if set, zero value otherwise. +func (o *CertificatesRequest) GetArch() string { + if o == nil || o.Arch == nil { + var ret string + return ret + } + return *o.Arch +} + +// GetArchOk returns a tuple with the Arch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CertificatesRequest) GetArchOk() (*string, bool) { + if o == nil || o.Arch == nil { + return nil, false + } + return o.Arch, true +} + +// HasArch returns a boolean if a field has been set. +func (o *CertificatesRequest) HasArch() bool { + if o != nil && o.Arch != nil { + return true + } + + return false +} + +// SetArch gets a reference to the given string and assigns it to the Arch field. +func (o *CertificatesRequest) SetArch(v string) { + o.Arch = &v +} + +// GetType returns the Type field value +func (o *CertificatesRequest) GetType() string { + if o == nil { + var ret string + 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 *CertificatesRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CertificatesRequest) SetType(v string) { + o.Type = v +} + +func (o CertificatesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Arch != nil { + toSerialize["arch"] = o.Arch + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableCertificatesRequest struct { + value *CertificatesRequest + isSet bool +} + +func (v NullableCertificatesRequest) Get() *CertificatesRequest { + return v.value +} + +func (v *NullableCertificatesRequest) Set(val *CertificatesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCertificatesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCertificatesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCertificatesRequest(val *CertificatesRequest) *NullableCertificatesRequest { + return &NullableCertificatesRequest{value: val, isSet: true} +} + +func (v NullableCertificatesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCertificatesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_account.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_account.go new file mode 100644 index 00000000..0ec0bb31 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_account.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CloudAccount struct for CloudAccount +type CloudAccount struct { + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` +} + +// NewCloudAccount instantiates a new CloudAccount 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 NewCloudAccount() *CloudAccount { + this := CloudAccount{} + return &this +} + +// NewCloudAccountWithDefaults instantiates a new CloudAccount 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 NewCloudAccountWithDefaults() *CloudAccount { + this := CloudAccount{} + return &this +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *CloudAccount) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudAccount) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *CloudAccount) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *CloudAccount) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *CloudAccount) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudAccount) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *CloudAccount) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *CloudAccount) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +func (o CloudAccount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + return json.Marshal(toSerialize) +} + +type NullableCloudAccount struct { + value *CloudAccount + isSet bool +} + +func (v NullableCloudAccount) Get() *CloudAccount { + return v.value +} + +func (v *NullableCloudAccount) Set(val *CloudAccount) { + v.value = val + v.isSet = true +} + +func (v NullableCloudAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudAccount(val *CloudAccount) *NullableCloudAccount { + return &NullableCloudAccount{value: val, isSet: true} +} + +func (v NullableCloudAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource.go new file mode 100644 index 00000000..d76f3382 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource.go @@ -0,0 +1,660 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// CloudResource struct for CloudResource +type CloudResource struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Active *bool `json:"active,omitempty"` + Category *string `json:"category,omitempty"` + CategoryPretty *string `json:"category_pretty,omitempty"` + CloudProvider *string `json:"cloud_provider,omitempty"` + CpuCores *int32 `json:"cpu_cores,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + GenericName *string `json:"generic_name,omitempty"` + Memory *int64 `json:"memory,omitempty"` + MemoryPretty *string `json:"memory_pretty,omitempty"` + NamePretty *string `json:"name_pretty,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + SizePretty *string `json:"size_pretty,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewCloudResource instantiates a new CloudResource 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 NewCloudResource() *CloudResource { + this := CloudResource{} + var active bool = true + this.Active = &active + return &this +} + +// NewCloudResourceWithDefaults instantiates a new CloudResource 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 NewCloudResourceWithDefaults() *CloudResource { + this := CloudResource{} + var active bool = true + this.Active = &active + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *CloudResource) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *CloudResource) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *CloudResource) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CloudResource) GetId() string { + if o == nil || o.Id == nil { + 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 *CloudResource) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CloudResource) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CloudResource) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *CloudResource) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *CloudResource) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *CloudResource) SetKind(v string) { + o.Kind = &v +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *CloudResource) GetActive() bool { + if o == nil || o.Active == nil { + var ret bool + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetActiveOk() (*bool, bool) { + if o == nil || o.Active == nil { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *CloudResource) HasActive() bool { + if o != nil && o.Active != nil { + return true + } + + return false +} + +// SetActive gets a reference to the given bool and assigns it to the Active field. +func (o *CloudResource) SetActive(v bool) { + o.Active = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *CloudResource) GetCategory() string { + if o == nil || o.Category == nil { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetCategoryOk() (*string, bool) { + if o == nil || o.Category == nil { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *CloudResource) HasCategory() bool { + if o != nil && o.Category != nil { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *CloudResource) SetCategory(v string) { + o.Category = &v +} + +// GetCategoryPretty returns the CategoryPretty field value if set, zero value otherwise. +func (o *CloudResource) GetCategoryPretty() string { + if o == nil || o.CategoryPretty == nil { + var ret string + return ret + } + return *o.CategoryPretty +} + +// GetCategoryPrettyOk returns a tuple with the CategoryPretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetCategoryPrettyOk() (*string, bool) { + if o == nil || o.CategoryPretty == nil { + return nil, false + } + return o.CategoryPretty, true +} + +// HasCategoryPretty returns a boolean if a field has been set. +func (o *CloudResource) HasCategoryPretty() bool { + if o != nil && o.CategoryPretty != nil { + return true + } + + return false +} + +// SetCategoryPretty gets a reference to the given string and assigns it to the CategoryPretty field. +func (o *CloudResource) SetCategoryPretty(v string) { + o.CategoryPretty = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *CloudResource) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *CloudResource) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *CloudResource) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetCpuCores returns the CpuCores field value if set, zero value otherwise. +func (o *CloudResource) GetCpuCores() int32 { + if o == nil || o.CpuCores == nil { + var ret int32 + return ret + } + return *o.CpuCores +} + +// GetCpuCoresOk returns a tuple with the CpuCores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetCpuCoresOk() (*int32, bool) { + if o == nil || o.CpuCores == nil { + return nil, false + } + return o.CpuCores, true +} + +// HasCpuCores returns a boolean if a field has been set. +func (o *CloudResource) HasCpuCores() bool { + if o != nil && o.CpuCores != nil { + return true + } + + return false +} + +// SetCpuCores gets a reference to the given int32 and assigns it to the CpuCores field. +func (o *CloudResource) SetCpuCores(v int32) { + o.CpuCores = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *CloudResource) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *CloudResource) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *CloudResource) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGenericName returns the GenericName field value if set, zero value otherwise. +func (o *CloudResource) GetGenericName() string { + if o == nil || o.GenericName == nil { + var ret string + return ret + } + return *o.GenericName +} + +// GetGenericNameOk returns a tuple with the GenericName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetGenericNameOk() (*string, bool) { + if o == nil || o.GenericName == nil { + return nil, false + } + return o.GenericName, true +} + +// HasGenericName returns a boolean if a field has been set. +func (o *CloudResource) HasGenericName() bool { + if o != nil && o.GenericName != nil { + return true + } + + return false +} + +// SetGenericName gets a reference to the given string and assigns it to the GenericName field. +func (o *CloudResource) SetGenericName(v string) { + o.GenericName = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *CloudResource) GetMemory() int64 { + if o == nil || o.Memory == nil { + var ret int64 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetMemoryOk() (*int64, bool) { + if o == nil || o.Memory == nil { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *CloudResource) HasMemory() bool { + if o != nil && o.Memory != nil { + return true + } + + return false +} + +// SetMemory gets a reference to the given int64 and assigns it to the Memory field. +func (o *CloudResource) SetMemory(v int64) { + o.Memory = &v +} + +// GetMemoryPretty returns the MemoryPretty field value if set, zero value otherwise. +func (o *CloudResource) GetMemoryPretty() string { + if o == nil || o.MemoryPretty == nil { + var ret string + return ret + } + return *o.MemoryPretty +} + +// GetMemoryPrettyOk returns a tuple with the MemoryPretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetMemoryPrettyOk() (*string, bool) { + if o == nil || o.MemoryPretty == nil { + return nil, false + } + return o.MemoryPretty, true +} + +// HasMemoryPretty returns a boolean if a field has been set. +func (o *CloudResource) HasMemoryPretty() bool { + if o != nil && o.MemoryPretty != nil { + return true + } + + return false +} + +// SetMemoryPretty gets a reference to the given string and assigns it to the MemoryPretty field. +func (o *CloudResource) SetMemoryPretty(v string) { + o.MemoryPretty = &v +} + +// GetNamePretty returns the NamePretty field value if set, zero value otherwise. +func (o *CloudResource) GetNamePretty() string { + if o == nil || o.NamePretty == nil { + var ret string + return ret + } + return *o.NamePretty +} + +// GetNamePrettyOk returns a tuple with the NamePretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetNamePrettyOk() (*string, bool) { + if o == nil || o.NamePretty == nil { + return nil, false + } + return o.NamePretty, true +} + +// HasNamePretty returns a boolean if a field has been set. +func (o *CloudResource) HasNamePretty() bool { + if o != nil && o.NamePretty != nil { + return true + } + + return false +} + +// SetNamePretty gets a reference to the given string and assigns it to the NamePretty field. +func (o *CloudResource) SetNamePretty(v string) { + o.NamePretty = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *CloudResource) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *CloudResource) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *CloudResource) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSizePretty returns the SizePretty field value if set, zero value otherwise. +func (o *CloudResource) GetSizePretty() string { + if o == nil || o.SizePretty == nil { + var ret string + return ret + } + return *o.SizePretty +} + +// GetSizePrettyOk returns a tuple with the SizePretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetSizePrettyOk() (*string, bool) { + if o == nil || o.SizePretty == nil { + return nil, false + } + return o.SizePretty, true +} + +// HasSizePretty returns a boolean if a field has been set. +func (o *CloudResource) HasSizePretty() bool { + if o != nil && o.SizePretty != nil { + return true + } + + return false +} + +// SetSizePretty gets a reference to the given string and assigns it to the SizePretty field. +func (o *CloudResource) SetSizePretty(v string) { + o.SizePretty = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *CloudResource) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResource) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *CloudResource) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *CloudResource) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o CloudResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Category != nil { + toSerialize["category"] = o.Category + } + if o.CategoryPretty != nil { + toSerialize["category_pretty"] = o.CategoryPretty + } + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if o.CpuCores != nil { + toSerialize["cpu_cores"] = o.CpuCores + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.GenericName != nil { + toSerialize["generic_name"] = o.GenericName + } + if o.Memory != nil { + toSerialize["memory"] = o.Memory + } + if o.MemoryPretty != nil { + toSerialize["memory_pretty"] = o.MemoryPretty + } + if o.NamePretty != nil { + toSerialize["name_pretty"] = o.NamePretty + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.SizePretty != nil { + toSerialize["size_pretty"] = o.SizePretty + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableCloudResource struct { + value *CloudResource + isSet bool +} + +func (v NullableCloudResource) Get() *CloudResource { + return v.value +} + +func (v *NullableCloudResource) Set(val *CloudResource) { + v.value = val + v.isSet = true +} + +func (v NullableCloudResource) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudResource(val *CloudResource) *NullableCloudResource { + return &NullableCloudResource{value: val, isSet: true} +} + +func (v NullableCloudResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_all_of.go new file mode 100644 index 00000000..29aa1771 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_all_of.go @@ -0,0 +1,552 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// CloudResourceAllOf struct for CloudResourceAllOf +type CloudResourceAllOf struct { + Active *bool `json:"active,omitempty"` + Category *string `json:"category,omitempty"` + CategoryPretty *string `json:"category_pretty,omitempty"` + CloudProvider *string `json:"cloud_provider,omitempty"` + CpuCores *int32 `json:"cpu_cores,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + GenericName *string `json:"generic_name,omitempty"` + Memory *int64 `json:"memory,omitempty"` + MemoryPretty *string `json:"memory_pretty,omitempty"` + NamePretty *string `json:"name_pretty,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + SizePretty *string `json:"size_pretty,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewCloudResourceAllOf instantiates a new CloudResourceAllOf 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 NewCloudResourceAllOf() *CloudResourceAllOf { + this := CloudResourceAllOf{} + var active bool = true + this.Active = &active + return &this +} + +// NewCloudResourceAllOfWithDefaults instantiates a new CloudResourceAllOf 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 NewCloudResourceAllOfWithDefaults() *CloudResourceAllOf { + this := CloudResourceAllOf{} + var active bool = true + this.Active = &active + return &this +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetActive() bool { + if o == nil || o.Active == nil { + var ret bool + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetActiveOk() (*bool, bool) { + if o == nil || o.Active == nil { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasActive() bool { + if o != nil && o.Active != nil { + return true + } + + return false +} + +// SetActive gets a reference to the given bool and assigns it to the Active field. +func (o *CloudResourceAllOf) SetActive(v bool) { + o.Active = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetCategory() string { + if o == nil || o.Category == nil { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetCategoryOk() (*string, bool) { + if o == nil || o.Category == nil { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasCategory() bool { + if o != nil && o.Category != nil { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *CloudResourceAllOf) SetCategory(v string) { + o.Category = &v +} + +// GetCategoryPretty returns the CategoryPretty field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetCategoryPretty() string { + if o == nil || o.CategoryPretty == nil { + var ret string + return ret + } + return *o.CategoryPretty +} + +// GetCategoryPrettyOk returns a tuple with the CategoryPretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetCategoryPrettyOk() (*string, bool) { + if o == nil || o.CategoryPretty == nil { + return nil, false + } + return o.CategoryPretty, true +} + +// HasCategoryPretty returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasCategoryPretty() bool { + if o != nil && o.CategoryPretty != nil { + return true + } + + return false +} + +// SetCategoryPretty gets a reference to the given string and assigns it to the CategoryPretty field. +func (o *CloudResourceAllOf) SetCategoryPretty(v string) { + o.CategoryPretty = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *CloudResourceAllOf) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetCpuCores returns the CpuCores field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetCpuCores() int32 { + if o == nil || o.CpuCores == nil { + var ret int32 + return ret + } + return *o.CpuCores +} + +// GetCpuCoresOk returns a tuple with the CpuCores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetCpuCoresOk() (*int32, bool) { + if o == nil || o.CpuCores == nil { + return nil, false + } + return o.CpuCores, true +} + +// HasCpuCores returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasCpuCores() bool { + if o != nil && o.CpuCores != nil { + return true + } + + return false +} + +// SetCpuCores gets a reference to the given int32 and assigns it to the CpuCores field. +func (o *CloudResourceAllOf) SetCpuCores(v int32) { + o.CpuCores = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *CloudResourceAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetGenericName returns the GenericName field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetGenericName() string { + if o == nil || o.GenericName == nil { + var ret string + return ret + } + return *o.GenericName +} + +// GetGenericNameOk returns a tuple with the GenericName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetGenericNameOk() (*string, bool) { + if o == nil || o.GenericName == nil { + return nil, false + } + return o.GenericName, true +} + +// HasGenericName returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasGenericName() bool { + if o != nil && o.GenericName != nil { + return true + } + + return false +} + +// SetGenericName gets a reference to the given string and assigns it to the GenericName field. +func (o *CloudResourceAllOf) SetGenericName(v string) { + o.GenericName = &v +} + +// GetMemory returns the Memory field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetMemory() int64 { + if o == nil || o.Memory == nil { + var ret int64 + return ret + } + return *o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetMemoryOk() (*int64, bool) { + if o == nil || o.Memory == nil { + return nil, false + } + return o.Memory, true +} + +// HasMemory returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasMemory() bool { + if o != nil && o.Memory != nil { + return true + } + + return false +} + +// SetMemory gets a reference to the given int64 and assigns it to the Memory field. +func (o *CloudResourceAllOf) SetMemory(v int64) { + o.Memory = &v +} + +// GetMemoryPretty returns the MemoryPretty field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetMemoryPretty() string { + if o == nil || o.MemoryPretty == nil { + var ret string + return ret + } + return *o.MemoryPretty +} + +// GetMemoryPrettyOk returns a tuple with the MemoryPretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetMemoryPrettyOk() (*string, bool) { + if o == nil || o.MemoryPretty == nil { + return nil, false + } + return o.MemoryPretty, true +} + +// HasMemoryPretty returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasMemoryPretty() bool { + if o != nil && o.MemoryPretty != nil { + return true + } + + return false +} + +// SetMemoryPretty gets a reference to the given string and assigns it to the MemoryPretty field. +func (o *CloudResourceAllOf) SetMemoryPretty(v string) { + o.MemoryPretty = &v +} + +// GetNamePretty returns the NamePretty field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetNamePretty() string { + if o == nil || o.NamePretty == nil { + var ret string + return ret + } + return *o.NamePretty +} + +// GetNamePrettyOk returns a tuple with the NamePretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetNamePrettyOk() (*string, bool) { + if o == nil || o.NamePretty == nil { + return nil, false + } + return o.NamePretty, true +} + +// HasNamePretty returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasNamePretty() bool { + if o != nil && o.NamePretty != nil { + return true + } + + return false +} + +// SetNamePretty gets a reference to the given string and assigns it to the NamePretty field. +func (o *CloudResourceAllOf) SetNamePretty(v string) { + o.NamePretty = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *CloudResourceAllOf) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSizePretty returns the SizePretty field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetSizePretty() string { + if o == nil || o.SizePretty == nil { + var ret string + return ret + } + return *o.SizePretty +} + +// GetSizePrettyOk returns a tuple with the SizePretty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetSizePrettyOk() (*string, bool) { + if o == nil || o.SizePretty == nil { + return nil, false + } + return o.SizePretty, true +} + +// HasSizePretty returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasSizePretty() bool { + if o != nil && o.SizePretty != nil { + return true + } + + return false +} + +// SetSizePretty gets a reference to the given string and assigns it to the SizePretty field. +func (o *CloudResourceAllOf) SetSizePretty(v string) { + o.SizePretty = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *CloudResourceAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *CloudResourceAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *CloudResourceAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o CloudResourceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Category != nil { + toSerialize["category"] = o.Category + } + if o.CategoryPretty != nil { + toSerialize["category_pretty"] = o.CategoryPretty + } + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if o.CpuCores != nil { + toSerialize["cpu_cores"] = o.CpuCores + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.GenericName != nil { + toSerialize["generic_name"] = o.GenericName + } + if o.Memory != nil { + toSerialize["memory"] = o.Memory + } + if o.MemoryPretty != nil { + toSerialize["memory_pretty"] = o.MemoryPretty + } + if o.NamePretty != nil { + toSerialize["name_pretty"] = o.NamePretty + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.SizePretty != nil { + toSerialize["size_pretty"] = o.SizePretty + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableCloudResourceAllOf struct { + value *CloudResourceAllOf + isSet bool +} + +func (v NullableCloudResourceAllOf) Get() *CloudResourceAllOf { + return v.value +} + +func (v *NullableCloudResourceAllOf) Set(val *CloudResourceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCloudResourceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudResourceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudResourceAllOf(val *CloudResourceAllOf) *NullableCloudResourceAllOf { + return &NullableCloudResourceAllOf{value: val, isSet: true} +} + +func (v NullableCloudResourceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudResourceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list.go new file mode 100644 index 00000000..8e93e716 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CloudResourceList struct for CloudResourceList +type CloudResourceList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []CloudResource `json:"items"` +} + +// NewCloudResourceList instantiates a new CloudResourceList 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 NewCloudResourceList(kind string, page int32, size int32, total int32, items []CloudResource) *CloudResourceList { + this := CloudResourceList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewCloudResourceListWithDefaults instantiates a new CloudResourceList 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 NewCloudResourceListWithDefaults() *CloudResourceList { + this := CloudResourceList{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudResourceList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudResourceList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudResourceList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *CloudResourceList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *CloudResourceList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *CloudResourceList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *CloudResourceList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *CloudResourceList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *CloudResourceList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *CloudResourceList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *CloudResourceList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *CloudResourceList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *CloudResourceList) GetItems() []CloudResource { + if o == nil { + var ret []CloudResource + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *CloudResourceList) GetItemsOk() (*[]CloudResource, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *CloudResourceList) SetItems(v []CloudResource) { + o.Items = v +} + +func (o CloudResourceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudResourceList struct { + value *CloudResourceList + isSet bool +} + +func (v NullableCloudResourceList) Get() *CloudResourceList { + return v.value +} + +func (v *NullableCloudResourceList) Set(val *CloudResourceList) { + v.value = val + v.isSet = true +} + +func (v NullableCloudResourceList) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudResourceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudResourceList(val *CloudResourceList) *NullableCloudResourceList { + return &NullableCloudResourceList{value: val, isSet: true} +} + +func (v NullableCloudResourceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudResourceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list_all_of.go new file mode 100644 index 00000000..7e4d0c36 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cloud_resource_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// CloudResourceListAllOf struct for CloudResourceListAllOf +type CloudResourceListAllOf struct { + Items *[]CloudResource `json:"items,omitempty"` +} + +// NewCloudResourceListAllOf instantiates a new CloudResourceListAllOf 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 NewCloudResourceListAllOf() *CloudResourceListAllOf { + this := CloudResourceListAllOf{} + return &this +} + +// NewCloudResourceListAllOfWithDefaults instantiates a new CloudResourceListAllOf 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 NewCloudResourceListAllOfWithDefaults() *CloudResourceListAllOf { + this := CloudResourceListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CloudResourceListAllOf) GetItems() []CloudResource { + if o == nil || o.Items == nil { + var ret []CloudResource + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudResourceListAllOf) GetItemsOk() (*[]CloudResource, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CloudResourceListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []CloudResource and assigns it to the Items field. +func (o *CloudResourceListAllOf) SetItems(v []CloudResource) { + o.Items = &v +} + +func (o CloudResourceListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudResourceListAllOf struct { + value *CloudResourceListAllOf + isSet bool +} + +func (v NullableCloudResourceListAllOf) Get() *CloudResourceListAllOf { + return v.value +} + +func (v *NullableCloudResourceListAllOf) Set(val *CloudResourceListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCloudResourceListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudResourceListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudResourceListAllOf(val *CloudResourceListAllOf) *NullableCloudResourceListAllOf { + return &NullableCloudResourceListAllOf{value: val, isSet: true} +} + +func (v NullableCloudResourceListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudResourceListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_request.go new file mode 100644 index 00000000..051d9a32 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_request.go @@ -0,0 +1,609 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterAuthorizationRequest struct for ClusterAuthorizationRequest +type ClusterAuthorizationRequest struct { + AccountUsername string `json:"account_username"` + AvailabilityZone *string `json:"availability_zone,omitempty"` + Byoc *bool `json:"byoc,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterId string `json:"cluster_id"` + Disconnected *bool `json:"disconnected,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Managed *bool `json:"managed,omitempty"` + ProductCategory *string `json:"product_category,omitempty"` + ProductId *string `json:"product_id,omitempty"` + QuotaVersion *string `json:"quota_version,omitempty"` + Reserve *bool `json:"reserve,omitempty"` + Resources *[]ReservedResource `json:"resources,omitempty"` +} + +// NewClusterAuthorizationRequest instantiates a new ClusterAuthorizationRequest 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 NewClusterAuthorizationRequest(accountUsername string, clusterId string) *ClusterAuthorizationRequest { + this := ClusterAuthorizationRequest{} + this.AccountUsername = accountUsername + this.ClusterId = clusterId + var productId string = "osd" + this.ProductId = &productId + return &this +} + +// NewClusterAuthorizationRequestWithDefaults instantiates a new ClusterAuthorizationRequest 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 NewClusterAuthorizationRequestWithDefaults() *ClusterAuthorizationRequest { + this := ClusterAuthorizationRequest{} + var productId string = "osd" + this.ProductId = &productId + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *ClusterAuthorizationRequest) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *ClusterAuthorizationRequest) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetAvailabilityZone() string { + if o == nil || o.AvailabilityZone == nil { + var ret string + return ret + } + return *o.AvailabilityZone +} + +// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetAvailabilityZoneOk() (*string, bool) { + if o == nil || o.AvailabilityZone == nil { + return nil, false + } + return o.AvailabilityZone, true +} + +// HasAvailabilityZone returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasAvailabilityZone() bool { + if o != nil && o.AvailabilityZone != nil { + return true + } + + return false +} + +// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field. +func (o *ClusterAuthorizationRequest) SetAvailabilityZone(v string) { + o.AvailabilityZone = &v +} + +// GetByoc returns the Byoc field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetByoc() bool { + if o == nil || o.Byoc == nil { + var ret bool + return ret + } + return *o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetByocOk() (*bool, bool) { + if o == nil || o.Byoc == nil { + return nil, false + } + return o.Byoc, true +} + +// HasByoc returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasByoc() bool { + if o != nil && o.Byoc != nil { + return true + } + + return false +} + +// SetByoc gets a reference to the given bool and assigns it to the Byoc field. +func (o *ClusterAuthorizationRequest) SetByoc(v bool) { + o.Byoc = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *ClusterAuthorizationRequest) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *ClusterAuthorizationRequest) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterId returns the ClusterId field value +func (o *ClusterAuthorizationRequest) GetClusterId() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetClusterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterId, true +} + +// SetClusterId sets field value +func (o *ClusterAuthorizationRequest) SetClusterId(v string) { + o.ClusterId = v +} + +// GetDisconnected returns the Disconnected field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetDisconnected() bool { + if o == nil || o.Disconnected == nil { + var ret bool + return ret + } + return *o.Disconnected +} + +// GetDisconnectedOk returns a tuple with the Disconnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetDisconnectedOk() (*bool, bool) { + if o == nil || o.Disconnected == nil { + return nil, false + } + return o.Disconnected, true +} + +// HasDisconnected returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasDisconnected() bool { + if o != nil && o.Disconnected != nil { + return true + } + + return false +} + +// SetDisconnected gets a reference to the given bool and assigns it to the Disconnected field. +func (o *ClusterAuthorizationRequest) SetDisconnected(v bool) { + o.Disconnected = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ClusterAuthorizationRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *ClusterAuthorizationRequest) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetManaged returns the Managed field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetManaged() bool { + if o == nil || o.Managed == nil { + var ret bool + return ret + } + return *o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetManagedOk() (*bool, bool) { + if o == nil || o.Managed == nil { + return nil, false + } + return o.Managed, true +} + +// HasManaged returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasManaged() bool { + if o != nil && o.Managed != nil { + return true + } + + return false +} + +// SetManaged gets a reference to the given bool and assigns it to the Managed field. +func (o *ClusterAuthorizationRequest) SetManaged(v bool) { + o.Managed = &v +} + +// GetProductCategory returns the ProductCategory field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetProductCategory() string { + if o == nil || o.ProductCategory == nil { + var ret string + return ret + } + return *o.ProductCategory +} + +// GetProductCategoryOk returns a tuple with the ProductCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetProductCategoryOk() (*string, bool) { + if o == nil || o.ProductCategory == nil { + return nil, false + } + return o.ProductCategory, true +} + +// HasProductCategory returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasProductCategory() bool { + if o != nil && o.ProductCategory != nil { + return true + } + + return false +} + +// SetProductCategory gets a reference to the given string and assigns it to the ProductCategory field. +func (o *ClusterAuthorizationRequest) SetProductCategory(v string) { + o.ProductCategory = &v +} + +// GetProductId returns the ProductId field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetProductId() string { + if o == nil || o.ProductId == nil { + var ret string + return ret + } + return *o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetProductIdOk() (*string, bool) { + if o == nil || o.ProductId == nil { + return nil, false + } + return o.ProductId, true +} + +// HasProductId returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasProductId() bool { + if o != nil && o.ProductId != nil { + return true + } + + return false +} + +// SetProductId gets a reference to the given string and assigns it to the ProductId field. +func (o *ClusterAuthorizationRequest) SetProductId(v string) { + o.ProductId = &v +} + +// GetQuotaVersion returns the QuotaVersion field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetQuotaVersion() string { + if o == nil || o.QuotaVersion == nil { + var ret string + return ret + } + return *o.QuotaVersion +} + +// GetQuotaVersionOk returns a tuple with the QuotaVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetQuotaVersionOk() (*string, bool) { + if o == nil || o.QuotaVersion == nil { + return nil, false + } + return o.QuotaVersion, true +} + +// HasQuotaVersion returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasQuotaVersion() bool { + if o != nil && o.QuotaVersion != nil { + return true + } + + return false +} + +// SetQuotaVersion gets a reference to the given string and assigns it to the QuotaVersion field. +func (o *ClusterAuthorizationRequest) SetQuotaVersion(v string) { + o.QuotaVersion = &v +} + +// GetReserve returns the Reserve field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetReserve() bool { + if o == nil || o.Reserve == nil { + var ret bool + return ret + } + return *o.Reserve +} + +// GetReserveOk returns a tuple with the Reserve field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetReserveOk() (*bool, bool) { + if o == nil || o.Reserve == nil { + return nil, false + } + return o.Reserve, true +} + +// HasReserve returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasReserve() bool { + if o != nil && o.Reserve != nil { + return true + } + + return false +} + +// SetReserve gets a reference to the given bool and assigns it to the Reserve field. +func (o *ClusterAuthorizationRequest) SetReserve(v bool) { + o.Reserve = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ClusterAuthorizationRequest) GetResources() []ReservedResource { + if o == nil || o.Resources == nil { + var ret []ReservedResource + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationRequest) GetResourcesOk() (*[]ReservedResource, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ClusterAuthorizationRequest) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given []ReservedResource and assigns it to the Resources field. +func (o *ClusterAuthorizationRequest) SetResources(v []ReservedResource) { + o.Resources = &v +} + +func (o ClusterAuthorizationRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if o.AvailabilityZone != nil { + toSerialize["availability_zone"] = o.AvailabilityZone + } + if o.Byoc != nil { + toSerialize["byoc"] = o.Byoc + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if true { + toSerialize["cluster_id"] = o.ClusterId + } + if o.Disconnected != nil { + toSerialize["disconnected"] = o.Disconnected + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.Managed != nil { + toSerialize["managed"] = o.Managed + } + if o.ProductCategory != nil { + toSerialize["product_category"] = o.ProductCategory + } + if o.ProductId != nil { + toSerialize["product_id"] = o.ProductId + } + if o.QuotaVersion != nil { + toSerialize["quota_version"] = o.QuotaVersion + } + if o.Reserve != nil { + toSerialize["reserve"] = o.Reserve + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + return json.Marshal(toSerialize) +} + +type NullableClusterAuthorizationRequest struct { + value *ClusterAuthorizationRequest + isSet bool +} + +func (v NullableClusterAuthorizationRequest) Get() *ClusterAuthorizationRequest { + return v.value +} + +func (v *NullableClusterAuthorizationRequest) Set(val *ClusterAuthorizationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableClusterAuthorizationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterAuthorizationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterAuthorizationRequest(val *ClusterAuthorizationRequest) *NullableClusterAuthorizationRequest { + return &NullableClusterAuthorizationRequest{value: val, isSet: true} +} + +func (v NullableClusterAuthorizationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterAuthorizationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_response.go new file mode 100644 index 00000000..68e3da33 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_authorization_response.go @@ -0,0 +1,209 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterAuthorizationResponse struct for ClusterAuthorizationResponse +type ClusterAuthorizationResponse struct { + Allowed bool `json:"allowed"` + ExcessResources []ExcessResource `json:"excess_resources"` + OrganizationId *string `json:"organization_id,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` +} + +// NewClusterAuthorizationResponse instantiates a new ClusterAuthorizationResponse 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 NewClusterAuthorizationResponse(allowed bool, excessResources []ExcessResource) *ClusterAuthorizationResponse { + this := ClusterAuthorizationResponse{} + this.Allowed = allowed + this.ExcessResources = excessResources + return &this +} + +// NewClusterAuthorizationResponseWithDefaults instantiates a new ClusterAuthorizationResponse 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 NewClusterAuthorizationResponseWithDefaults() *ClusterAuthorizationResponse { + this := ClusterAuthorizationResponse{} + return &this +} + +// GetAllowed returns the Allowed field value +func (o *ClusterAuthorizationResponse) GetAllowed() bool { + if o == nil { + var ret bool + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationResponse) GetAllowedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *ClusterAuthorizationResponse) SetAllowed(v bool) { + o.Allowed = v +} + +// GetExcessResources returns the ExcessResources field value +func (o *ClusterAuthorizationResponse) GetExcessResources() []ExcessResource { + if o == nil { + var ret []ExcessResource + return ret + } + + return o.ExcessResources +} + +// GetExcessResourcesOk returns a tuple with the ExcessResources field value +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationResponse) GetExcessResourcesOk() (*[]ExcessResource, bool) { + if o == nil { + return nil, false + } + return &o.ExcessResources, true +} + +// SetExcessResources sets field value +func (o *ClusterAuthorizationResponse) SetExcessResources(v []ExcessResource) { + o.ExcessResources = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ClusterAuthorizationResponse) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationResponse) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ClusterAuthorizationResponse) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ClusterAuthorizationResponse) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *ClusterAuthorizationResponse) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterAuthorizationResponse) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *ClusterAuthorizationResponse) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *ClusterAuthorizationResponse) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +func (o ClusterAuthorizationResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["allowed"] = o.Allowed + } + if true { + toSerialize["excess_resources"] = o.ExcessResources + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + return json.Marshal(toSerialize) +} + +type NullableClusterAuthorizationResponse struct { + value *ClusterAuthorizationResponse + isSet bool +} + +func (v NullableClusterAuthorizationResponse) Get() *ClusterAuthorizationResponse { + return v.value +} + +func (v *NullableClusterAuthorizationResponse) Set(val *ClusterAuthorizationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableClusterAuthorizationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterAuthorizationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterAuthorizationResponse(val *ClusterAuthorizationResponse) *NullableClusterAuthorizationResponse { + return &NullableClusterAuthorizationResponse{value: val, isSet: true} +} + +func (v NullableClusterAuthorizationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterAuthorizationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_metrics_nodes.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_metrics_nodes.go new file mode 100644 index 00000000..32c50c33 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_metrics_nodes.go @@ -0,0 +1,223 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterMetricsNodes struct for ClusterMetricsNodes +type ClusterMetricsNodes struct { + Compute *float64 `json:"compute,omitempty"` + Infra *float64 `json:"infra,omitempty"` + Master *float64 `json:"master,omitempty"` + Total *float64 `json:"total,omitempty"` +} + +// NewClusterMetricsNodes instantiates a new ClusterMetricsNodes 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 NewClusterMetricsNodes() *ClusterMetricsNodes { + this := ClusterMetricsNodes{} + return &this +} + +// NewClusterMetricsNodesWithDefaults instantiates a new ClusterMetricsNodes 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 NewClusterMetricsNodesWithDefaults() *ClusterMetricsNodes { + this := ClusterMetricsNodes{} + return &this +} + +// GetCompute returns the Compute field value if set, zero value otherwise. +func (o *ClusterMetricsNodes) GetCompute() float64 { + if o == nil || o.Compute == nil { + var ret float64 + return ret + } + return *o.Compute +} + +// GetComputeOk returns a tuple with the Compute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterMetricsNodes) GetComputeOk() (*float64, bool) { + if o == nil || o.Compute == nil { + return nil, false + } + return o.Compute, true +} + +// HasCompute returns a boolean if a field has been set. +func (o *ClusterMetricsNodes) HasCompute() bool { + if o != nil && o.Compute != nil { + return true + } + + return false +} + +// SetCompute gets a reference to the given float64 and assigns it to the Compute field. +func (o *ClusterMetricsNodes) SetCompute(v float64) { + o.Compute = &v +} + +// GetInfra returns the Infra field value if set, zero value otherwise. +func (o *ClusterMetricsNodes) GetInfra() float64 { + if o == nil || o.Infra == nil { + var ret float64 + return ret + } + return *o.Infra +} + +// GetInfraOk returns a tuple with the Infra field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterMetricsNodes) GetInfraOk() (*float64, bool) { + if o == nil || o.Infra == nil { + return nil, false + } + return o.Infra, true +} + +// HasInfra returns a boolean if a field has been set. +func (o *ClusterMetricsNodes) HasInfra() bool { + if o != nil && o.Infra != nil { + return true + } + + return false +} + +// SetInfra gets a reference to the given float64 and assigns it to the Infra field. +func (o *ClusterMetricsNodes) SetInfra(v float64) { + o.Infra = &v +} + +// GetMaster returns the Master field value if set, zero value otherwise. +func (o *ClusterMetricsNodes) GetMaster() float64 { + if o == nil || o.Master == nil { + var ret float64 + return ret + } + return *o.Master +} + +// GetMasterOk returns a tuple with the Master field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterMetricsNodes) GetMasterOk() (*float64, bool) { + if o == nil || o.Master == nil { + return nil, false + } + return o.Master, true +} + +// HasMaster returns a boolean if a field has been set. +func (o *ClusterMetricsNodes) HasMaster() bool { + if o != nil && o.Master != nil { + return true + } + + return false +} + +// SetMaster gets a reference to the given float64 and assigns it to the Master field. +func (o *ClusterMetricsNodes) SetMaster(v float64) { + o.Master = &v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *ClusterMetricsNodes) GetTotal() float64 { + if o == nil || o.Total == nil { + var ret float64 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterMetricsNodes) GetTotalOk() (*float64, bool) { + if o == nil || o.Total == nil { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *ClusterMetricsNodes) HasTotal() bool { + if o != nil && o.Total != nil { + return true + } + + return false +} + +// SetTotal gets a reference to the given float64 and assigns it to the Total field. +func (o *ClusterMetricsNodes) SetTotal(v float64) { + o.Total = &v +} + +func (o ClusterMetricsNodes) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Compute != nil { + toSerialize["compute"] = o.Compute + } + if o.Infra != nil { + toSerialize["infra"] = o.Infra + } + if o.Master != nil { + toSerialize["master"] = o.Master + } + if o.Total != nil { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableClusterMetricsNodes struct { + value *ClusterMetricsNodes + isSet bool +} + +func (v NullableClusterMetricsNodes) Get() *ClusterMetricsNodes { + return v.value +} + +func (v *NullableClusterMetricsNodes) Set(val *ClusterMetricsNodes) { + v.value = val + v.isSet = true +} + +func (v NullableClusterMetricsNodes) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterMetricsNodes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterMetricsNodes(val *ClusterMetricsNodes) *NullableClusterMetricsNodes { + return &NullableClusterMetricsNodes{value: val, isSet: true} +} + +func (v NullableClusterMetricsNodes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterMetricsNodes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_request.go new file mode 100644 index 00000000..c9c7a1a9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_request.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterRegistrationRequest struct for ClusterRegistrationRequest +type ClusterRegistrationRequest struct { + AuthorizationToken *string `json:"authorization_token,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` +} + +// NewClusterRegistrationRequest instantiates a new ClusterRegistrationRequest 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 NewClusterRegistrationRequest() *ClusterRegistrationRequest { + this := ClusterRegistrationRequest{} + return &this +} + +// NewClusterRegistrationRequestWithDefaults instantiates a new ClusterRegistrationRequest 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 NewClusterRegistrationRequestWithDefaults() *ClusterRegistrationRequest { + this := ClusterRegistrationRequest{} + return &this +} + +// GetAuthorizationToken returns the AuthorizationToken field value if set, zero value otherwise. +func (o *ClusterRegistrationRequest) GetAuthorizationToken() string { + if o == nil || o.AuthorizationToken == nil { + var ret string + return ret + } + return *o.AuthorizationToken +} + +// GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationRequest) GetAuthorizationTokenOk() (*string, bool) { + if o == nil || o.AuthorizationToken == nil { + return nil, false + } + return o.AuthorizationToken, true +} + +// HasAuthorizationToken returns a boolean if a field has been set. +func (o *ClusterRegistrationRequest) HasAuthorizationToken() bool { + if o != nil && o.AuthorizationToken != nil { + return true + } + + return false +} + +// SetAuthorizationToken gets a reference to the given string and assigns it to the AuthorizationToken field. +func (o *ClusterRegistrationRequest) SetAuthorizationToken(v string) { + o.AuthorizationToken = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *ClusterRegistrationRequest) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationRequest) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *ClusterRegistrationRequest) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *ClusterRegistrationRequest) SetClusterId(v string) { + o.ClusterId = &v +} + +func (o ClusterRegistrationRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AuthorizationToken != nil { + toSerialize["authorization_token"] = o.AuthorizationToken + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + return json.Marshal(toSerialize) +} + +type NullableClusterRegistrationRequest struct { + value *ClusterRegistrationRequest + isSet bool +} + +func (v NullableClusterRegistrationRequest) Get() *ClusterRegistrationRequest { + return v.value +} + +func (v *NullableClusterRegistrationRequest) Set(val *ClusterRegistrationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableClusterRegistrationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterRegistrationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterRegistrationRequest(val *ClusterRegistrationRequest) *NullableClusterRegistrationRequest { + return &NullableClusterRegistrationRequest{value: val, isSet: true} +} + +func (v NullableClusterRegistrationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterRegistrationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_response.go new file mode 100644 index 00000000..9a3edf6b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_registration_response.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterRegistrationResponse struct for ClusterRegistrationResponse +type ClusterRegistrationResponse struct { + AccountId *string `json:"account_id,omitempty"` + AuthorizationToken *string `json:"authorization_token,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + // Cluster Registration expiration in Unix time + ExpiresAt *string `json:"expires_at,omitempty"` +} + +// NewClusterRegistrationResponse instantiates a new ClusterRegistrationResponse 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 NewClusterRegistrationResponse() *ClusterRegistrationResponse { + this := ClusterRegistrationResponse{} + return &this +} + +// NewClusterRegistrationResponseWithDefaults instantiates a new ClusterRegistrationResponse 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 NewClusterRegistrationResponseWithDefaults() *ClusterRegistrationResponse { + this := ClusterRegistrationResponse{} + return &this +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *ClusterRegistrationResponse) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationResponse) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *ClusterRegistrationResponse) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *ClusterRegistrationResponse) SetAccountId(v string) { + o.AccountId = &v +} + +// GetAuthorizationToken returns the AuthorizationToken field value if set, zero value otherwise. +func (o *ClusterRegistrationResponse) GetAuthorizationToken() string { + if o == nil || o.AuthorizationToken == nil { + var ret string + return ret + } + return *o.AuthorizationToken +} + +// GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationResponse) GetAuthorizationTokenOk() (*string, bool) { + if o == nil || o.AuthorizationToken == nil { + return nil, false + } + return o.AuthorizationToken, true +} + +// HasAuthorizationToken returns a boolean if a field has been set. +func (o *ClusterRegistrationResponse) HasAuthorizationToken() bool { + if o != nil && o.AuthorizationToken != nil { + return true + } + + return false +} + +// SetAuthorizationToken gets a reference to the given string and assigns it to the AuthorizationToken field. +func (o *ClusterRegistrationResponse) SetAuthorizationToken(v string) { + o.AuthorizationToken = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *ClusterRegistrationResponse) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationResponse) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *ClusterRegistrationResponse) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *ClusterRegistrationResponse) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. +func (o *ClusterRegistrationResponse) GetExpiresAt() string { + if o == nil || o.ExpiresAt == nil { + var ret string + return ret + } + return *o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRegistrationResponse) GetExpiresAtOk() (*string, bool) { + if o == nil || o.ExpiresAt == nil { + return nil, false + } + return o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *ClusterRegistrationResponse) HasExpiresAt() bool { + if o != nil && o.ExpiresAt != nil { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. +func (o *ClusterRegistrationResponse) SetExpiresAt(v string) { + o.ExpiresAt = &v +} + +func (o ClusterRegistrationResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.AuthorizationToken != nil { + toSerialize["authorization_token"] = o.AuthorizationToken + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + return json.Marshal(toSerialize) +} + +type NullableClusterRegistrationResponse struct { + value *ClusterRegistrationResponse + isSet bool +} + +func (v NullableClusterRegistrationResponse) Get() *ClusterRegistrationResponse { + return v.value +} + +func (v *NullableClusterRegistrationResponse) Set(val *ClusterRegistrationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableClusterRegistrationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterRegistrationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterRegistrationResponse(val *ClusterRegistrationResponse) *NullableClusterRegistrationResponse { + return &NullableClusterRegistrationResponse{value: val, isSet: true} +} + +func (v NullableClusterRegistrationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterRegistrationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource.go new file mode 100644 index 00000000..dcbb1329 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource.go @@ -0,0 +1,167 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ClusterResource struct for ClusterResource +type ClusterResource struct { + Total ClusterResourceTotal `json:"total"` + UpdatedTimestamp time.Time `json:"updated_timestamp"` + Used ClusterResourceTotal `json:"used"` +} + +// NewClusterResource instantiates a new ClusterResource 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 NewClusterResource(total ClusterResourceTotal, updatedTimestamp time.Time, used ClusterResourceTotal) *ClusterResource { + this := ClusterResource{} + this.Total = total + this.UpdatedTimestamp = updatedTimestamp + this.Used = used + return &this +} + +// NewClusterResourceWithDefaults instantiates a new ClusterResource 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 NewClusterResourceWithDefaults() *ClusterResource { + this := ClusterResource{} + return &this +} + +// GetTotal returns the Total field value +func (o *ClusterResource) GetTotal() ClusterResourceTotal { + if o == nil { + var ret ClusterResourceTotal + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ClusterResource) GetTotalOk() (*ClusterResourceTotal, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ClusterResource) SetTotal(v ClusterResourceTotal) { + o.Total = v +} + +// GetUpdatedTimestamp returns the UpdatedTimestamp field value +func (o *ClusterResource) GetUpdatedTimestamp() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedTimestamp +} + +// GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field value +// and a boolean to check if the value has been set. +func (o *ClusterResource) GetUpdatedTimestampOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedTimestamp, true +} + +// SetUpdatedTimestamp sets field value +func (o *ClusterResource) SetUpdatedTimestamp(v time.Time) { + o.UpdatedTimestamp = v +} + +// GetUsed returns the Used field value +func (o *ClusterResource) GetUsed() ClusterResourceTotal { + if o == nil { + var ret ClusterResourceTotal + return ret + } + + return o.Used +} + +// GetUsedOk returns a tuple with the Used field value +// and a boolean to check if the value has been set. +func (o *ClusterResource) GetUsedOk() (*ClusterResourceTotal, bool) { + if o == nil { + return nil, false + } + return &o.Used, true +} + +// SetUsed sets field value +func (o *ClusterResource) SetUsed(v ClusterResourceTotal) { + o.Used = v +} + +func (o ClusterResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["updated_timestamp"] = o.UpdatedTimestamp + } + if true { + toSerialize["used"] = o.Used + } + return json.Marshal(toSerialize) +} + +type NullableClusterResource struct { + value *ClusterResource + isSet bool +} + +func (v NullableClusterResource) Get() *ClusterResource { + return v.value +} + +func (v *NullableClusterResource) Set(val *ClusterResource) { + v.value = val + v.isSet = true +} + +func (v NullableClusterResource) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterResource(val *ClusterResource) *NullableClusterResource { + return &NullableClusterResource{value: val, isSet: true} +} + +func (v NullableClusterResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource_total.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource_total.go new file mode 100644 index 00000000..e5b478b1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_resource_total.go @@ -0,0 +1,137 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterResourceTotal struct for ClusterResourceTotal +type ClusterResourceTotal struct { + Unit string `json:"unit"` + Value float64 `json:"value"` +} + +// NewClusterResourceTotal instantiates a new ClusterResourceTotal 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 NewClusterResourceTotal(unit string, value float64) *ClusterResourceTotal { + this := ClusterResourceTotal{} + this.Unit = unit + this.Value = value + return &this +} + +// NewClusterResourceTotalWithDefaults instantiates a new ClusterResourceTotal 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 NewClusterResourceTotalWithDefaults() *ClusterResourceTotal { + this := ClusterResourceTotal{} + return &this +} + +// GetUnit returns the Unit field value +func (o *ClusterResourceTotal) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *ClusterResourceTotal) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *ClusterResourceTotal) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *ClusterResourceTotal) GetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ClusterResourceTotal) GetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ClusterResourceTotal) SetValue(v float64) { + o.Value = v +} + +func (o ClusterResourceTotal) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["unit"] = o.Unit + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableClusterResourceTotal struct { + value *ClusterResourceTotal + isSet bool +} + +func (v NullableClusterResourceTotal) Get() *ClusterResourceTotal { + return v.value +} + +func (v *NullableClusterResourceTotal) Set(val *ClusterResourceTotal) { + v.value = val + v.isSet = true +} + +func (v NullableClusterResourceTotal) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterResourceTotal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterResourceTotal(val *ClusterResourceTotal) *NullableClusterResourceTotal { + return &NullableClusterResourceTotal{value: val, isSet: true} +} + +func (v NullableClusterResourceTotal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterResourceTotal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer.go new file mode 100644 index 00000000..ed720ef6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer.go @@ -0,0 +1,476 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ClusterTransfer struct for ClusterTransfer +type ClusterTransfer struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExpirationDate *time.Time `json:"expiration_date,omitempty"` + Owner *string `json:"owner,omitempty"` + Recipient *string `json:"recipient,omitempty"` + Secret *string `json:"secret,omitempty"` + Status *string `json:"status,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewClusterTransfer instantiates a new ClusterTransfer 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 NewClusterTransfer() *ClusterTransfer { + this := ClusterTransfer{} + return &this +} + +// NewClusterTransferWithDefaults instantiates a new ClusterTransfer 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 NewClusterTransferWithDefaults() *ClusterTransfer { + this := ClusterTransfer{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ClusterTransfer) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ClusterTransfer) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ClusterTransfer) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ClusterTransfer) GetId() string { + if o == nil || o.Id == nil { + 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 *ClusterTransfer) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ClusterTransfer) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ClusterTransfer) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ClusterTransfer) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ClusterTransfer) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ClusterTransfer) SetKind(v string) { + o.Kind = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *ClusterTransfer) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *ClusterTransfer) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *ClusterTransfer) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ClusterTransfer) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ClusterTransfer) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ClusterTransfer) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *ClusterTransfer) GetExpirationDate() time.Time { + if o == nil || o.ExpirationDate == nil { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || o.ExpirationDate == nil { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *ClusterTransfer) HasExpirationDate() bool { + if o != nil && o.ExpirationDate != nil { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *ClusterTransfer) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ClusterTransfer) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ClusterTransfer) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ClusterTransfer) SetOwner(v string) { + o.Owner = &v +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise. +func (o *ClusterTransfer) GetRecipient() string { + if o == nil || o.Recipient == nil { + var ret string + return ret + } + return *o.Recipient +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetRecipientOk() (*string, bool) { + if o == nil || o.Recipient == nil { + return nil, false + } + return o.Recipient, true +} + +// HasRecipient returns a boolean if a field has been set. +func (o *ClusterTransfer) HasRecipient() bool { + if o != nil && o.Recipient != nil { + return true + } + + return false +} + +// SetRecipient gets a reference to the given string and assigns it to the Recipient field. +func (o *ClusterTransfer) SetRecipient(v string) { + o.Recipient = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ClusterTransfer) GetSecret() string { + if o == nil || o.Secret == nil { + 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 *ClusterTransfer) GetSecretOk() (*string, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ClusterTransfer) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ClusterTransfer) SetSecret(v string) { + o.Secret = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterTransfer) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterTransfer) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ClusterTransfer) SetStatus(v string) { + o.Status = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ClusterTransfer) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransfer) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ClusterTransfer) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ClusterTransfer) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ClusterTransfer) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExpirationDate != nil { + toSerialize["expiration_date"] = o.ExpirationDate + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.Recipient != nil { + toSerialize["recipient"] = o.Recipient + } + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransfer struct { + value *ClusterTransfer + isSet bool +} + +func (v NullableClusterTransfer) Get() *ClusterTransfer { + return v.value +} + +func (v *NullableClusterTransfer) Set(val *ClusterTransfer) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransfer) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransfer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransfer(val *ClusterTransfer) *NullableClusterTransfer { + return &NullableClusterTransfer{value: val, isSet: true} +} + +func (v NullableClusterTransfer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransfer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_all_of.go new file mode 100644 index 00000000..ce3e06e9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_all_of.go @@ -0,0 +1,368 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ClusterTransferAllOf struct for ClusterTransferAllOf +type ClusterTransferAllOf struct { + ClusterUuid *string `json:"cluster_uuid,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExpirationDate *time.Time `json:"expiration_date,omitempty"` + Owner *string `json:"owner,omitempty"` + Recipient *string `json:"recipient,omitempty"` + Secret *string `json:"secret,omitempty"` + Status *string `json:"status,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewClusterTransferAllOf instantiates a new ClusterTransferAllOf 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 NewClusterTransferAllOf() *ClusterTransferAllOf { + this := ClusterTransferAllOf{} + return &this +} + +// NewClusterTransferAllOfWithDefaults instantiates a new ClusterTransferAllOf 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 NewClusterTransferAllOfWithDefaults() *ClusterTransferAllOf { + this := ClusterTransferAllOf{} + return &this +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *ClusterTransferAllOf) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ClusterTransferAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetExpirationDate() time.Time { + if o == nil || o.ExpirationDate == nil { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || o.ExpirationDate == nil { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasExpirationDate() bool { + if o != nil && o.ExpirationDate != nil { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *ClusterTransferAllOf) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ClusterTransferAllOf) SetOwner(v string) { + o.Owner = &v +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetRecipient() string { + if o == nil || o.Recipient == nil { + var ret string + return ret + } + return *o.Recipient +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetRecipientOk() (*string, bool) { + if o == nil || o.Recipient == nil { + return nil, false + } + return o.Recipient, true +} + +// HasRecipient returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasRecipient() bool { + if o != nil && o.Recipient != nil { + return true + } + + return false +} + +// SetRecipient gets a reference to the given string and assigns it to the Recipient field. +func (o *ClusterTransferAllOf) SetRecipient(v string) { + o.Recipient = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetSecret() string { + if o == nil || o.Secret == nil { + 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 *ClusterTransferAllOf) GetSecretOk() (*string, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ClusterTransferAllOf) SetSecret(v string) { + o.Secret = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ClusterTransferAllOf) SetStatus(v string) { + o.Status = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ClusterTransferAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ClusterTransferAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ClusterTransferAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ClusterTransferAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExpirationDate != nil { + toSerialize["expiration_date"] = o.ExpirationDate + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.Recipient != nil { + toSerialize["recipient"] = o.Recipient + } + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransferAllOf struct { + value *ClusterTransferAllOf + isSet bool +} + +func (v NullableClusterTransferAllOf) Get() *ClusterTransferAllOf { + return v.value +} + +func (v *NullableClusterTransferAllOf) Set(val *ClusterTransferAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransferAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransferAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransferAllOf(val *ClusterTransferAllOf) *NullableClusterTransferAllOf { + return &NullableClusterTransferAllOf{value: val, isSet: true} +} + +func (v NullableClusterTransferAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransferAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list.go new file mode 100644 index 00000000..9999bb59 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterTransferList struct for ClusterTransferList +type ClusterTransferList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ClusterTransfer `json:"items"` +} + +// NewClusterTransferList instantiates a new ClusterTransferList 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 NewClusterTransferList(kind string, page int32, size int32, total int32, items []ClusterTransfer) *ClusterTransferList { + this := ClusterTransferList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewClusterTransferListWithDefaults instantiates a new ClusterTransferList 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 NewClusterTransferListWithDefaults() *ClusterTransferList { + this := ClusterTransferList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ClusterTransferList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ClusterTransferList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ClusterTransferList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ClusterTransferList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ClusterTransferList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ClusterTransferList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ClusterTransferList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ClusterTransferList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ClusterTransferList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ClusterTransferList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ClusterTransferList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ClusterTransferList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ClusterTransferList) GetItems() []ClusterTransfer { + if o == nil { + var ret []ClusterTransfer + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ClusterTransferList) GetItemsOk() (*[]ClusterTransfer, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ClusterTransferList) SetItems(v []ClusterTransfer) { + o.Items = v +} + +func (o ClusterTransferList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransferList struct { + value *ClusterTransferList + isSet bool +} + +func (v NullableClusterTransferList) Get() *ClusterTransferList { + return v.value +} + +func (v *NullableClusterTransferList) Set(val *ClusterTransferList) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransferList) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransferList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransferList(val *ClusterTransferList) *NullableClusterTransferList { + return &NullableClusterTransferList{value: val, isSet: true} +} + +func (v NullableClusterTransferList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransferList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list_all_of.go new file mode 100644 index 00000000..78b00426 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterTransferListAllOf struct for ClusterTransferListAllOf +type ClusterTransferListAllOf struct { + Items *[]ClusterTransfer `json:"items,omitempty"` +} + +// NewClusterTransferListAllOf instantiates a new ClusterTransferListAllOf 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 NewClusterTransferListAllOf() *ClusterTransferListAllOf { + this := ClusterTransferListAllOf{} + return &this +} + +// NewClusterTransferListAllOfWithDefaults instantiates a new ClusterTransferListAllOf 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 NewClusterTransferListAllOfWithDefaults() *ClusterTransferListAllOf { + this := ClusterTransferListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ClusterTransferListAllOf) GetItems() []ClusterTransfer { + if o == nil || o.Items == nil { + var ret []ClusterTransfer + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferListAllOf) GetItemsOk() (*[]ClusterTransfer, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ClusterTransferListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ClusterTransfer and assigns it to the Items field. +func (o *ClusterTransferListAllOf) SetItems(v []ClusterTransfer) { + o.Items = &v +} + +func (o ClusterTransferListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransferListAllOf struct { + value *ClusterTransferListAllOf + isSet bool +} + +func (v NullableClusterTransferListAllOf) Get() *ClusterTransferListAllOf { + return v.value +} + +func (v *NullableClusterTransferListAllOf) Set(val *ClusterTransferListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransferListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransferListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransferListAllOf(val *ClusterTransferListAllOf) *NullableClusterTransferListAllOf { + return &NullableClusterTransferListAllOf{value: val, isSet: true} +} + +func (v NullableClusterTransferListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransferListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_patch_request.go new file mode 100644 index 00000000..40363e03 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_patch_request.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterTransferPatchRequest struct for ClusterTransferPatchRequest +type ClusterTransferPatchRequest struct { + Status *string `json:"status,omitempty"` +} + +// NewClusterTransferPatchRequest instantiates a new ClusterTransferPatchRequest 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 NewClusterTransferPatchRequest() *ClusterTransferPatchRequest { + this := ClusterTransferPatchRequest{} + return &this +} + +// NewClusterTransferPatchRequestWithDefaults instantiates a new ClusterTransferPatchRequest 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 NewClusterTransferPatchRequestWithDefaults() *ClusterTransferPatchRequest { + this := ClusterTransferPatchRequest{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterTransferPatchRequest) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferPatchRequest) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterTransferPatchRequest) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *ClusterTransferPatchRequest) SetStatus(v string) { + o.Status = &v +} + +func (o ClusterTransferPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransferPatchRequest struct { + value *ClusterTransferPatchRequest + isSet bool +} + +func (v NullableClusterTransferPatchRequest) Get() *ClusterTransferPatchRequest { + return v.value +} + +func (v *NullableClusterTransferPatchRequest) Set(val *ClusterTransferPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransferPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransferPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransferPatchRequest(val *ClusterTransferPatchRequest) *NullableClusterTransferPatchRequest { + return &NullableClusterTransferPatchRequest{value: val, isSet: true} +} + +func (v NullableClusterTransferPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransferPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_request.go new file mode 100644 index 00000000..f48702cf --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_transfer_request.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ClusterTransferRequest struct for ClusterTransferRequest +type ClusterTransferRequest struct { + ClusterUuid *string `json:"cluster_uuid,omitempty"` + Owner *string `json:"owner,omitempty"` + Recipient *string `json:"recipient,omitempty"` +} + +// NewClusterTransferRequest instantiates a new ClusterTransferRequest 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 NewClusterTransferRequest() *ClusterTransferRequest { + this := ClusterTransferRequest{} + return &this +} + +// NewClusterTransferRequestWithDefaults instantiates a new ClusterTransferRequest 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 NewClusterTransferRequestWithDefaults() *ClusterTransferRequest { + this := ClusterTransferRequest{} + return &this +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *ClusterTransferRequest) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferRequest) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *ClusterTransferRequest) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *ClusterTransferRequest) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ClusterTransferRequest) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferRequest) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ClusterTransferRequest) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ClusterTransferRequest) SetOwner(v string) { + o.Owner = &v +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise. +func (o *ClusterTransferRequest) GetRecipient() string { + if o == nil || o.Recipient == nil { + var ret string + return ret + } + return *o.Recipient +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterTransferRequest) GetRecipientOk() (*string, bool) { + if o == nil || o.Recipient == nil { + return nil, false + } + return o.Recipient, true +} + +// HasRecipient returns a boolean if a field has been set. +func (o *ClusterTransferRequest) HasRecipient() bool { + if o != nil && o.Recipient != nil { + return true + } + + return false +} + +// SetRecipient gets a reference to the given string and assigns it to the Recipient field. +func (o *ClusterTransferRequest) SetRecipient(v string) { + o.Recipient = &v +} + +func (o ClusterTransferRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.Recipient != nil { + toSerialize["recipient"] = o.Recipient + } + return json.Marshal(toSerialize) +} + +type NullableClusterTransferRequest struct { + value *ClusterTransferRequest + isSet bool +} + +func (v NullableClusterTransferRequest) Get() *ClusterTransferRequest { + return v.value +} + +func (v *NullableClusterTransferRequest) Set(val *ClusterTransferRequest) { + v.value = val + v.isSet = true +} + +func (v NullableClusterTransferRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterTransferRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterTransferRequest(val *ClusterTransferRequest) *NullableClusterTransferRequest { + return &NullableClusterTransferRequest{value: val, isSet: true} +} + +func (v NullableClusterTransferRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterTransferRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_upgrade.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_upgrade.go new file mode 100644 index 00000000..fe36c823 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_cluster_upgrade.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ClusterUpgrade struct for ClusterUpgrade +type ClusterUpgrade struct { + Available *bool `json:"available,omitempty"` + State *string `json:"state,omitempty"` + UpdatedTimestamp *time.Time `json:"updated_timestamp,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewClusterUpgrade instantiates a new ClusterUpgrade 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 NewClusterUpgrade() *ClusterUpgrade { + this := ClusterUpgrade{} + return &this +} + +// NewClusterUpgradeWithDefaults instantiates a new ClusterUpgrade 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 NewClusterUpgradeWithDefaults() *ClusterUpgrade { + this := ClusterUpgrade{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *ClusterUpgrade) GetAvailable() bool { + if o == nil || o.Available == nil { + var ret bool + return ret + } + return *o.Available +} + +// GetAvailableOk returns a tuple with the Available field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterUpgrade) GetAvailableOk() (*bool, bool) { + if o == nil || o.Available == nil { + return nil, false + } + return o.Available, true +} + +// HasAvailable returns a boolean if a field has been set. +func (o *ClusterUpgrade) HasAvailable() bool { + if o != nil && o.Available != nil { + return true + } + + return false +} + +// SetAvailable gets a reference to the given bool and assigns it to the Available field. +func (o *ClusterUpgrade) SetAvailable(v bool) { + o.Available = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ClusterUpgrade) GetState() string { + if o == nil || o.State == nil { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterUpgrade) GetStateOk() (*string, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ClusterUpgrade) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ClusterUpgrade) SetState(v string) { + o.State = &v +} + +// GetUpdatedTimestamp returns the UpdatedTimestamp field value if set, zero value otherwise. +func (o *ClusterUpgrade) GetUpdatedTimestamp() time.Time { + if o == nil || o.UpdatedTimestamp == nil { + var ret time.Time + return ret + } + return *o.UpdatedTimestamp +} + +// GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterUpgrade) GetUpdatedTimestampOk() (*time.Time, bool) { + if o == nil || o.UpdatedTimestamp == nil { + return nil, false + } + return o.UpdatedTimestamp, true +} + +// HasUpdatedTimestamp returns a boolean if a field has been set. +func (o *ClusterUpgrade) HasUpdatedTimestamp() bool { + if o != nil && o.UpdatedTimestamp != nil { + return true + } + + return false +} + +// SetUpdatedTimestamp gets a reference to the given time.Time and assigns it to the UpdatedTimestamp field. +func (o *ClusterUpgrade) SetUpdatedTimestamp(v time.Time) { + o.UpdatedTimestamp = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ClusterUpgrade) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterUpgrade) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ClusterUpgrade) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ClusterUpgrade) SetVersion(v string) { + o.Version = &v +} + +func (o ClusterUpgrade) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Available != nil { + toSerialize["available"] = o.Available + } + if o.State != nil { + toSerialize["state"] = o.State + } + if o.UpdatedTimestamp != nil { + toSerialize["updated_timestamp"] = o.UpdatedTimestamp + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableClusterUpgrade struct { + value *ClusterUpgrade + isSet bool +} + +func (v NullableClusterUpgrade) Get() *ClusterUpgrade { + return v.value +} + +func (v *NullableClusterUpgrade) Set(val *ClusterUpgrade) { + v.value = val + v.isSet = true +} + +func (v NullableClusterUpgrade) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterUpgrade) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterUpgrade(val *ClusterUpgrade) *NullableClusterUpgrade { + return &NullableClusterUpgrade{value: val, isSet: true} +} + +func (v NullableClusterUpgrade) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterUpgrade) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota.go new file mode 100644 index 00000000..52370f5d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota.go @@ -0,0 +1,533 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ConsumedQuota struct for ConsumedQuota +type ConsumedQuota struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + Count int32 `json:"count"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewConsumedQuota instantiates a new ConsumedQuota 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 NewConsumedQuota(byoc bool, count int32) *ConsumedQuota { + this := ConsumedQuota{} + this.Byoc = byoc + this.Count = count + return &this +} + +// NewConsumedQuotaWithDefaults instantiates a new ConsumedQuota 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 NewConsumedQuotaWithDefaults() *ConsumedQuota { + this := ConsumedQuota{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ConsumedQuota) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ConsumedQuota) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ConsumedQuota) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ConsumedQuota) GetId() string { + if o == nil || o.Id == nil { + 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 *ConsumedQuota) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ConsumedQuota) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ConsumedQuota) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConsumedQuota) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConsumedQuota) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConsumedQuota) SetKind(v string) { + o.Kind = &v +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ConsumedQuota) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ConsumedQuota) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ConsumedQuota) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ConsumedQuota) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ConsumedQuota) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ConsumedQuota) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ConsumedQuota) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ConsumedQuota) SetByoc(v bool) { + o.Byoc = v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *ConsumedQuota) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *ConsumedQuota) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *ConsumedQuota) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetCount returns the Count field value +func (o *ConsumedQuota) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ConsumedQuota) SetCount(v int32) { + o.Count = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ConsumedQuota) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ConsumedQuota) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ConsumedQuota) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *ConsumedQuota) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *ConsumedQuota) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *ConsumedQuota) SetPlanId(v string) { + o.PlanId = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ConsumedQuota) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ConsumedQuota) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ConsumedQuota) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ConsumedQuota) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ConsumedQuota) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ConsumedQuota) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ConsumedQuota) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuota) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ConsumedQuota) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ConsumedQuota) SetVersion(v string) { + o.Version = &v +} + +func (o ConsumedQuota) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if true { + toSerialize["count"] = o.Count + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableConsumedQuota struct { + value *ConsumedQuota + isSet bool +} + +func (v NullableConsumedQuota) Get() *ConsumedQuota { + return v.value +} + +func (v *NullableConsumedQuota) Set(val *ConsumedQuota) { + v.value = val + v.isSet = true +} + +func (v NullableConsumedQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumedQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumedQuota(val *ConsumedQuota) *NullableConsumedQuota { + return &NullableConsumedQuota{value: val, isSet: true} +} + +func (v NullableConsumedQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumedQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_all_of.go new file mode 100644 index 00000000..b639ef09 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_all_of.go @@ -0,0 +1,425 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ConsumedQuotaAllOf struct for ConsumedQuotaAllOf +type ConsumedQuotaAllOf struct { + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + Count int32 `json:"count"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewConsumedQuotaAllOf instantiates a new ConsumedQuotaAllOf 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 NewConsumedQuotaAllOf(byoc bool, count int32) *ConsumedQuotaAllOf { + this := ConsumedQuotaAllOf{} + this.Byoc = byoc + this.Count = count + return &this +} + +// NewConsumedQuotaAllOfWithDefaults instantiates a new ConsumedQuotaAllOf 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 NewConsumedQuotaAllOfWithDefaults() *ConsumedQuotaAllOf { + this := ConsumedQuotaAllOf{} + return &this +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ConsumedQuotaAllOf) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ConsumedQuotaAllOf) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ConsumedQuotaAllOf) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ConsumedQuotaAllOf) SetByoc(v bool) { + o.Byoc = v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *ConsumedQuotaAllOf) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetCount returns the Count field value +func (o *ConsumedQuotaAllOf) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ConsumedQuotaAllOf) SetCount(v int32) { + o.Count = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ConsumedQuotaAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *ConsumedQuotaAllOf) SetPlanId(v string) { + o.PlanId = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ConsumedQuotaAllOf) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ConsumedQuotaAllOf) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ConsumedQuotaAllOf) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaAllOf) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ConsumedQuotaAllOf) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ConsumedQuotaAllOf) SetVersion(v string) { + o.Version = &v +} + +func (o ConsumedQuotaAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if true { + toSerialize["count"] = o.Count + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableConsumedQuotaAllOf struct { + value *ConsumedQuotaAllOf + isSet bool +} + +func (v NullableConsumedQuotaAllOf) Get() *ConsumedQuotaAllOf { + return v.value +} + +func (v *NullableConsumedQuotaAllOf) Set(val *ConsumedQuotaAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConsumedQuotaAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumedQuotaAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumedQuotaAllOf(val *ConsumedQuotaAllOf) *NullableConsumedQuotaAllOf { + return &NullableConsumedQuotaAllOf{value: val, isSet: true} +} + +func (v NullableConsumedQuotaAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumedQuotaAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list.go new file mode 100644 index 00000000..1c5e5538 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ConsumedQuotaList struct for ConsumedQuotaList +type ConsumedQuotaList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ConsumedQuota `json:"items"` +} + +// NewConsumedQuotaList instantiates a new ConsumedQuotaList 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 NewConsumedQuotaList(kind string, page int32, size int32, total int32, items []ConsumedQuota) *ConsumedQuotaList { + this := ConsumedQuotaList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewConsumedQuotaListWithDefaults instantiates a new ConsumedQuotaList 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 NewConsumedQuotaListWithDefaults() *ConsumedQuotaList { + this := ConsumedQuotaList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConsumedQuotaList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConsumedQuotaList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ConsumedQuotaList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ConsumedQuotaList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ConsumedQuotaList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ConsumedQuotaList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ConsumedQuotaList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConsumedQuotaList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ConsumedQuotaList) GetItems() []ConsumedQuota { + if o == nil { + var ret []ConsumedQuota + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaList) GetItemsOk() (*[]ConsumedQuota, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConsumedQuotaList) SetItems(v []ConsumedQuota) { + o.Items = v +} + +func (o ConsumedQuotaList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConsumedQuotaList struct { + value *ConsumedQuotaList + isSet bool +} + +func (v NullableConsumedQuotaList) Get() *ConsumedQuotaList { + return v.value +} + +func (v *NullableConsumedQuotaList) Set(val *ConsumedQuotaList) { + v.value = val + v.isSet = true +} + +func (v NullableConsumedQuotaList) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumedQuotaList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumedQuotaList(val *ConsumedQuotaList) *NullableConsumedQuotaList { + return &NullableConsumedQuotaList{value: val, isSet: true} +} + +func (v NullableConsumedQuotaList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumedQuotaList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list_all_of.go new file mode 100644 index 00000000..0f58da62 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_consumed_quota_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ConsumedQuotaListAllOf struct for ConsumedQuotaListAllOf +type ConsumedQuotaListAllOf struct { + Items *[]ConsumedQuota `json:"items,omitempty"` +} + +// NewConsumedQuotaListAllOf instantiates a new ConsumedQuotaListAllOf 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 NewConsumedQuotaListAllOf() *ConsumedQuotaListAllOf { + this := ConsumedQuotaListAllOf{} + return &this +} + +// NewConsumedQuotaListAllOfWithDefaults instantiates a new ConsumedQuotaListAllOf 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 NewConsumedQuotaListAllOfWithDefaults() *ConsumedQuotaListAllOf { + this := ConsumedQuotaListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConsumedQuotaListAllOf) GetItems() []ConsumedQuota { + if o == nil || o.Items == nil { + var ret []ConsumedQuota + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumedQuotaListAllOf) GetItemsOk() (*[]ConsumedQuota, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConsumedQuotaListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConsumedQuota and assigns it to the Items field. +func (o *ConsumedQuotaListAllOf) SetItems(v []ConsumedQuota) { + o.Items = &v +} + +func (o ConsumedQuotaListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConsumedQuotaListAllOf struct { + value *ConsumedQuotaListAllOf + isSet bool +} + +func (v NullableConsumedQuotaListAllOf) Get() *ConsumedQuotaListAllOf { + return v.value +} + +func (v *NullableConsumedQuotaListAllOf) Set(val *ConsumedQuotaListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConsumedQuotaListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumedQuotaListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumedQuotaListAllOf(val *ConsumedQuotaListAllOf) *NullableConsumedQuotaListAllOf { + return &NullableConsumedQuotaListAllOf{value: val, isSet: true} +} + +func (v NullableConsumedQuotaListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumedQuotaListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription.go new file mode 100644 index 00000000..0862c520 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription.go @@ -0,0 +1,1338 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// DeletedSubscription struct for DeletedSubscription +type DeletedSubscription struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // If set, the date the subscription expires based on the billing model + BillingExpirationDate *time.Time `json:"billing_expiration_date,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterBillingModel *string `json:"cluster_billing_model,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ConsoleUrl *string `json:"console_url,omitempty"` + ConsumerUuid *string `json:"consumer_uuid,omitempty"` + CpuTotal *int32 `json:"cpu_total,omitempty"` + CreatorId *string `json:"creator_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + // Last time this subscription were reconciled about cluster usage + LastReconcileDate *time.Time `json:"last_reconcile_date,omitempty"` + // Last time status was set to Released for this cluster/subscription in Unix time + LastReleasedAt *time.Time `json:"last_released_at,omitempty"` + // Last telemetry authorization request for this cluster/subscription in Unix time + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ProductBundle *string `json:"product_bundle,omitempty"` + Provenance *string `json:"provenance,omitempty"` + RegionId *string `json:"region_id,omitempty"` + Released *bool `json:"released,omitempty"` + ServiceLevel *string `json:"service_level,omitempty"` + SocketTotal *int32 `json:"socket_total,omitempty"` + Status *string `json:"status,omitempty"` + SupportLevel *string `json:"support_level,omitempty"` + SystemUnits *string `json:"system_units,omitempty"` + // If the subscription is a trial, date the trial ends + TrialEndDate *time.Time `json:"trial_end_date,omitempty"` + Usage *string `json:"usage,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Metrics *string `json:"metrics,omitempty"` + QueryTimestamp *time.Time `json:"query_timestamp,omitempty"` +} + +// NewDeletedSubscription instantiates a new DeletedSubscription 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 NewDeletedSubscription(managed bool) *DeletedSubscription { + this := DeletedSubscription{} + this.Managed = managed + return &this +} + +// NewDeletedSubscriptionWithDefaults instantiates a new DeletedSubscription 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 NewDeletedSubscriptionWithDefaults() *DeletedSubscription { + this := DeletedSubscription{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *DeletedSubscription) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *DeletedSubscription) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *DeletedSubscription) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DeletedSubscription) GetId() string { + if o == nil || o.Id == nil { + 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 *DeletedSubscription) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DeletedSubscription) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *DeletedSubscription) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *DeletedSubscription) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *DeletedSubscription) SetKind(v string) { + o.Kind = &v +} + +// GetBillingExpirationDate returns the BillingExpirationDate field value if set, zero value otherwise. +func (o *DeletedSubscription) GetBillingExpirationDate() time.Time { + if o == nil || o.BillingExpirationDate == nil { + var ret time.Time + return ret + } + return *o.BillingExpirationDate +} + +// GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetBillingExpirationDateOk() (*time.Time, bool) { + if o == nil || o.BillingExpirationDate == nil { + return nil, false + } + return o.BillingExpirationDate, true +} + +// HasBillingExpirationDate returns a boolean if a field has been set. +func (o *DeletedSubscription) HasBillingExpirationDate() bool { + if o != nil && o.BillingExpirationDate != nil { + return true + } + + return false +} + +// SetBillingExpirationDate gets a reference to the given time.Time and assigns it to the BillingExpirationDate field. +func (o *DeletedSubscription) SetBillingExpirationDate(v time.Time) { + o.BillingExpirationDate = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *DeletedSubscription) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *DeletedSubscription) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *DeletedSubscription) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *DeletedSubscription) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *DeletedSubscription) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise. +func (o *DeletedSubscription) GetClusterBillingModel() string { + if o == nil || o.ClusterBillingModel == nil { + var ret string + return ret + } + return *o.ClusterBillingModel +} + +// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetClusterBillingModelOk() (*string, bool) { + if o == nil || o.ClusterBillingModel == nil { + return nil, false + } + return o.ClusterBillingModel, true +} + +// HasClusterBillingModel returns a boolean if a field has been set. +func (o *DeletedSubscription) HasClusterBillingModel() bool { + if o != nil && o.ClusterBillingModel != nil { + return true + } + + return false +} + +// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field. +func (o *DeletedSubscription) SetClusterBillingModel(v string) { + o.ClusterBillingModel = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *DeletedSubscription) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *DeletedSubscription) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *DeletedSubscription) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *DeletedSubscription) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise. +func (o *DeletedSubscription) GetConsumerUuid() string { + if o == nil || o.ConsumerUuid == nil { + var ret string + return ret + } + return *o.ConsumerUuid +} + +// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetConsumerUuidOk() (*string, bool) { + if o == nil || o.ConsumerUuid == nil { + return nil, false + } + return o.ConsumerUuid, true +} + +// HasConsumerUuid returns a boolean if a field has been set. +func (o *DeletedSubscription) HasConsumerUuid() bool { + if o != nil && o.ConsumerUuid != nil { + return true + } + + return false +} + +// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field. +func (o *DeletedSubscription) SetConsumerUuid(v string) { + o.ConsumerUuid = &v +} + +// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise. +func (o *DeletedSubscription) GetCpuTotal() int32 { + if o == nil || o.CpuTotal == nil { + var ret int32 + return ret + } + return *o.CpuTotal +} + +// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetCpuTotalOk() (*int32, bool) { + if o == nil || o.CpuTotal == nil { + return nil, false + } + return o.CpuTotal, true +} + +// HasCpuTotal returns a boolean if a field has been set. +func (o *DeletedSubscription) HasCpuTotal() bool { + if o != nil && o.CpuTotal != nil { + return true + } + + return false +} + +// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field. +func (o *DeletedSubscription) SetCpuTotal(v int32) { + o.CpuTotal = &v +} + +// GetCreatorId returns the CreatorId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetCreatorId() string { + if o == nil || o.CreatorId == nil { + var ret string + return ret + } + return *o.CreatorId +} + +// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetCreatorIdOk() (*string, bool) { + if o == nil || o.CreatorId == nil { + return nil, false + } + return o.CreatorId, true +} + +// HasCreatorId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasCreatorId() bool { + if o != nil && o.CreatorId != nil { + return true + } + + return false +} + +// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field. +func (o *DeletedSubscription) SetCreatorId(v string) { + o.CreatorId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *DeletedSubscription) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *DeletedSubscription) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *DeletedSubscription) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *DeletedSubscription) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetLastReconcileDate returns the LastReconcileDate field value if set, zero value otherwise. +func (o *DeletedSubscription) GetLastReconcileDate() time.Time { + if o == nil || o.LastReconcileDate == nil { + var ret time.Time + return ret + } + return *o.LastReconcileDate +} + +// GetLastReconcileDateOk returns a tuple with the LastReconcileDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetLastReconcileDateOk() (*time.Time, bool) { + if o == nil || o.LastReconcileDate == nil { + return nil, false + } + return o.LastReconcileDate, true +} + +// HasLastReconcileDate returns a boolean if a field has been set. +func (o *DeletedSubscription) HasLastReconcileDate() bool { + if o != nil && o.LastReconcileDate != nil { + return true + } + + return false +} + +// SetLastReconcileDate gets a reference to the given time.Time and assigns it to the LastReconcileDate field. +func (o *DeletedSubscription) SetLastReconcileDate(v time.Time) { + o.LastReconcileDate = &v +} + +// GetLastReleasedAt returns the LastReleasedAt field value if set, zero value otherwise. +func (o *DeletedSubscription) GetLastReleasedAt() time.Time { + if o == nil || o.LastReleasedAt == nil { + var ret time.Time + return ret + } + return *o.LastReleasedAt +} + +// GetLastReleasedAtOk returns a tuple with the LastReleasedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetLastReleasedAtOk() (*time.Time, bool) { + if o == nil || o.LastReleasedAt == nil { + return nil, false + } + return o.LastReleasedAt, true +} + +// HasLastReleasedAt returns a boolean if a field has been set. +func (o *DeletedSubscription) HasLastReleasedAt() bool { + if o != nil && o.LastReleasedAt != nil { + return true + } + + return false +} + +// SetLastReleasedAt gets a reference to the given time.Time and assigns it to the LastReleasedAt field. +func (o *DeletedSubscription) SetLastReleasedAt(v time.Time) { + o.LastReleasedAt = &v +} + +// GetLastTelemetryDate returns the LastTelemetryDate field value if set, zero value otherwise. +func (o *DeletedSubscription) GetLastTelemetryDate() time.Time { + if o == nil || o.LastTelemetryDate == nil { + var ret time.Time + return ret + } + return *o.LastTelemetryDate +} + +// GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetLastTelemetryDateOk() (*time.Time, bool) { + if o == nil || o.LastTelemetryDate == nil { + return nil, false + } + return o.LastTelemetryDate, true +} + +// HasLastTelemetryDate returns a boolean if a field has been set. +func (o *DeletedSubscription) HasLastTelemetryDate() bool { + if o != nil && o.LastTelemetryDate != nil { + return true + } + + return false +} + +// SetLastTelemetryDate gets a reference to the given time.Time and assigns it to the LastTelemetryDate field. +func (o *DeletedSubscription) SetLastTelemetryDate(v time.Time) { + o.LastTelemetryDate = &v +} + +// GetManaged returns the Managed field value +func (o *DeletedSubscription) GetManaged() bool { + if o == nil { + var ret bool + return ret + } + + return o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetManagedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Managed, true +} + +// SetManaged sets field value +func (o *DeletedSubscription) SetManaged(v bool) { + o.Managed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *DeletedSubscription) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *DeletedSubscription) SetPlanId(v string) { + o.PlanId = &v +} + +// GetProductBundle returns the ProductBundle field value if set, zero value otherwise. +func (o *DeletedSubscription) GetProductBundle() string { + if o == nil || o.ProductBundle == nil { + var ret string + return ret + } + return *o.ProductBundle +} + +// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetProductBundleOk() (*string, bool) { + if o == nil || o.ProductBundle == nil { + return nil, false + } + return o.ProductBundle, true +} + +// HasProductBundle returns a boolean if a field has been set. +func (o *DeletedSubscription) HasProductBundle() bool { + if o != nil && o.ProductBundle != nil { + return true + } + + return false +} + +// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field. +func (o *DeletedSubscription) SetProductBundle(v string) { + o.ProductBundle = &v +} + +// GetProvenance returns the Provenance field value if set, zero value otherwise. +func (o *DeletedSubscription) GetProvenance() string { + if o == nil || o.Provenance == nil { + var ret string + return ret + } + return *o.Provenance +} + +// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetProvenanceOk() (*string, bool) { + if o == nil || o.Provenance == nil { + return nil, false + } + return o.Provenance, true +} + +// HasProvenance returns a boolean if a field has been set. +func (o *DeletedSubscription) HasProvenance() bool { + if o != nil && o.Provenance != nil { + return true + } + + return false +} + +// SetProvenance gets a reference to the given string and assigns it to the Provenance field. +func (o *DeletedSubscription) SetProvenance(v string) { + o.Provenance = &v +} + +// GetRegionId returns the RegionId field value if set, zero value otherwise. +func (o *DeletedSubscription) GetRegionId() string { + if o == nil || o.RegionId == nil { + var ret string + return ret + } + return *o.RegionId +} + +// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetRegionIdOk() (*string, bool) { + if o == nil || o.RegionId == nil { + return nil, false + } + return o.RegionId, true +} + +// HasRegionId returns a boolean if a field has been set. +func (o *DeletedSubscription) HasRegionId() bool { + if o != nil && o.RegionId != nil { + return true + } + + return false +} + +// SetRegionId gets a reference to the given string and assigns it to the RegionId field. +func (o *DeletedSubscription) SetRegionId(v string) { + o.RegionId = &v +} + +// GetReleased returns the Released field value if set, zero value otherwise. +func (o *DeletedSubscription) GetReleased() bool { + if o == nil || o.Released == nil { + var ret bool + return ret + } + return *o.Released +} + +// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetReleasedOk() (*bool, bool) { + if o == nil || o.Released == nil { + return nil, false + } + return o.Released, true +} + +// HasReleased returns a boolean if a field has been set. +func (o *DeletedSubscription) HasReleased() bool { + if o != nil && o.Released != nil { + return true + } + + return false +} + +// SetReleased gets a reference to the given bool and assigns it to the Released field. +func (o *DeletedSubscription) SetReleased(v bool) { + o.Released = &v +} + +// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +func (o *DeletedSubscription) GetServiceLevel() string { + if o == nil || o.ServiceLevel == nil { + var ret string + return ret + } + return *o.ServiceLevel +} + +// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetServiceLevelOk() (*string, bool) { + if o == nil || o.ServiceLevel == nil { + return nil, false + } + return o.ServiceLevel, true +} + +// HasServiceLevel returns a boolean if a field has been set. +func (o *DeletedSubscription) HasServiceLevel() bool { + if o != nil && o.ServiceLevel != nil { + return true + } + + return false +} + +// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +func (o *DeletedSubscription) SetServiceLevel(v string) { + o.ServiceLevel = &v +} + +// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise. +func (o *DeletedSubscription) GetSocketTotal() int32 { + if o == nil || o.SocketTotal == nil { + var ret int32 + return ret + } + return *o.SocketTotal +} + +// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetSocketTotalOk() (*int32, bool) { + if o == nil || o.SocketTotal == nil { + return nil, false + } + return o.SocketTotal, true +} + +// HasSocketTotal returns a boolean if a field has been set. +func (o *DeletedSubscription) HasSocketTotal() bool { + if o != nil && o.SocketTotal != nil { + return true + } + + return false +} + +// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field. +func (o *DeletedSubscription) SetSocketTotal(v int32) { + o.SocketTotal = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DeletedSubscription) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DeletedSubscription) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DeletedSubscription) SetStatus(v string) { + o.Status = &v +} + +// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise. +func (o *DeletedSubscription) GetSupportLevel() string { + if o == nil || o.SupportLevel == nil { + var ret string + return ret + } + return *o.SupportLevel +} + +// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetSupportLevelOk() (*string, bool) { + if o == nil || o.SupportLevel == nil { + return nil, false + } + return o.SupportLevel, true +} + +// HasSupportLevel returns a boolean if a field has been set. +func (o *DeletedSubscription) HasSupportLevel() bool { + if o != nil && o.SupportLevel != nil { + return true + } + + return false +} + +// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field. +func (o *DeletedSubscription) SetSupportLevel(v string) { + o.SupportLevel = &v +} + +// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise. +func (o *DeletedSubscription) GetSystemUnits() string { + if o == nil || o.SystemUnits == nil { + var ret string + return ret + } + return *o.SystemUnits +} + +// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetSystemUnitsOk() (*string, bool) { + if o == nil || o.SystemUnits == nil { + return nil, false + } + return o.SystemUnits, true +} + +// HasSystemUnits returns a boolean if a field has been set. +func (o *DeletedSubscription) HasSystemUnits() bool { + if o != nil && o.SystemUnits != nil { + return true + } + + return false +} + +// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field. +func (o *DeletedSubscription) SetSystemUnits(v string) { + o.SystemUnits = &v +} + +// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise. +func (o *DeletedSubscription) GetTrialEndDate() time.Time { + if o == nil || o.TrialEndDate == nil { + var ret time.Time + return ret + } + return *o.TrialEndDate +} + +// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetTrialEndDateOk() (*time.Time, bool) { + if o == nil || o.TrialEndDate == nil { + return nil, false + } + return o.TrialEndDate, true +} + +// HasTrialEndDate returns a boolean if a field has been set. +func (o *DeletedSubscription) HasTrialEndDate() bool { + if o != nil && o.TrialEndDate != nil { + return true + } + + return false +} + +// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field. +func (o *DeletedSubscription) SetTrialEndDate(v time.Time) { + o.TrialEndDate = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *DeletedSubscription) GetUsage() string { + if o == nil || o.Usage == nil { + var ret string + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetUsageOk() (*string, bool) { + if o == nil || o.Usage == nil { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *DeletedSubscription) HasUsage() bool { + if o != nil && o.Usage != nil { + return true + } + + return false +} + +// SetUsage gets a reference to the given string and assigns it to the Usage field. +func (o *DeletedSubscription) SetUsage(v string) { + o.Usage = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DeletedSubscription) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DeletedSubscription) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DeletedSubscription) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *DeletedSubscription) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *DeletedSubscription) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *DeletedSubscription) SetMetrics(v string) { + o.Metrics = &v +} + +// GetQueryTimestamp returns the QueryTimestamp field value if set, zero value otherwise. +func (o *DeletedSubscription) GetQueryTimestamp() time.Time { + if o == nil || o.QueryTimestamp == nil { + var ret time.Time + return ret + } + return *o.QueryTimestamp +} + +// GetQueryTimestampOk returns a tuple with the QueryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscription) GetQueryTimestampOk() (*time.Time, bool) { + if o == nil || o.QueryTimestamp == nil { + return nil, false + } + return o.QueryTimestamp, true +} + +// HasQueryTimestamp returns a boolean if a field has been set. +func (o *DeletedSubscription) HasQueryTimestamp() bool { + if o != nil && o.QueryTimestamp != nil { + return true + } + + return false +} + +// SetQueryTimestamp gets a reference to the given time.Time and assigns it to the QueryTimestamp field. +func (o *DeletedSubscription) SetQueryTimestamp(v time.Time) { + o.QueryTimestamp = &v +} + +func (o DeletedSubscription) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.BillingExpirationDate != nil { + toSerialize["billing_expiration_date"] = o.BillingExpirationDate + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if o.ClusterBillingModel != nil { + toSerialize["cluster_billing_model"] = o.ClusterBillingModel + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.ConsumerUuid != nil { + toSerialize["consumer_uuid"] = o.ConsumerUuid + } + if o.CpuTotal != nil { + toSerialize["cpu_total"] = o.CpuTotal + } + if o.CreatorId != nil { + toSerialize["creator_id"] = o.CreatorId + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.LastReconcileDate != nil { + toSerialize["last_reconcile_date"] = o.LastReconcileDate + } + if o.LastReleasedAt != nil { + toSerialize["last_released_at"] = o.LastReleasedAt + } + if o.LastTelemetryDate != nil { + toSerialize["last_telemetry_date"] = o.LastTelemetryDate + } + if true { + toSerialize["managed"] = o.Managed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ProductBundle != nil { + toSerialize["product_bundle"] = o.ProductBundle + } + if o.Provenance != nil { + toSerialize["provenance"] = o.Provenance + } + if o.RegionId != nil { + toSerialize["region_id"] = o.RegionId + } + if o.Released != nil { + toSerialize["released"] = o.Released + } + if o.ServiceLevel != nil { + toSerialize["service_level"] = o.ServiceLevel + } + if o.SocketTotal != nil { + toSerialize["socket_total"] = o.SocketTotal + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SupportLevel != nil { + toSerialize["support_level"] = o.SupportLevel + } + if o.SystemUnits != nil { + toSerialize["system_units"] = o.SystemUnits + } + if o.TrialEndDate != nil { + toSerialize["trial_end_date"] = o.TrialEndDate + } + if o.Usage != nil { + toSerialize["usage"] = o.Usage + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.QueryTimestamp != nil { + toSerialize["query_timestamp"] = o.QueryTimestamp + } + return json.Marshal(toSerialize) +} + +type NullableDeletedSubscription struct { + value *DeletedSubscription + isSet bool +} + +func (v NullableDeletedSubscription) Get() *DeletedSubscription { + return v.value +} + +func (v *NullableDeletedSubscription) Set(val *DeletedSubscription) { + v.value = val + v.isSet = true +} + +func (v NullableDeletedSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableDeletedSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeletedSubscription(val *DeletedSubscription) *NullableDeletedSubscription { + return &NullableDeletedSubscription{value: val, isSet: true} +} + +func (v NullableDeletedSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeletedSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_all_of.go new file mode 100644 index 00000000..f6705968 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_all_of.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// DeletedSubscriptionAllOf struct for DeletedSubscriptionAllOf +type DeletedSubscriptionAllOf struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Id *string `json:"id,omitempty"` + Metrics *string `json:"metrics,omitempty"` + QueryTimestamp *time.Time `json:"query_timestamp,omitempty"` +} + +// NewDeletedSubscriptionAllOf instantiates a new DeletedSubscriptionAllOf 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 NewDeletedSubscriptionAllOf() *DeletedSubscriptionAllOf { + this := DeletedSubscriptionAllOf{} + return &this +} + +// NewDeletedSubscriptionAllOfWithDefaults instantiates a new DeletedSubscriptionAllOf 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 NewDeletedSubscriptionAllOfWithDefaults() *DeletedSubscriptionAllOf { + this := DeletedSubscriptionAllOf{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DeletedSubscriptionAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DeletedSubscriptionAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DeletedSubscriptionAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DeletedSubscriptionAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *DeletedSubscriptionAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DeletedSubscriptionAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DeletedSubscriptionAllOf) SetId(v string) { + o.Id = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *DeletedSubscriptionAllOf) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionAllOf) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *DeletedSubscriptionAllOf) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *DeletedSubscriptionAllOf) SetMetrics(v string) { + o.Metrics = &v +} + +// GetQueryTimestamp returns the QueryTimestamp field value if set, zero value otherwise. +func (o *DeletedSubscriptionAllOf) GetQueryTimestamp() time.Time { + if o == nil || o.QueryTimestamp == nil { + var ret time.Time + return ret + } + return *o.QueryTimestamp +} + +// GetQueryTimestampOk returns a tuple with the QueryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionAllOf) GetQueryTimestampOk() (*time.Time, bool) { + if o == nil || o.QueryTimestamp == nil { + return nil, false + } + return o.QueryTimestamp, true +} + +// HasQueryTimestamp returns a boolean if a field has been set. +func (o *DeletedSubscriptionAllOf) HasQueryTimestamp() bool { + if o != nil && o.QueryTimestamp != nil { + return true + } + + return false +} + +// SetQueryTimestamp gets a reference to the given time.Time and assigns it to the QueryTimestamp field. +func (o *DeletedSubscriptionAllOf) SetQueryTimestamp(v time.Time) { + o.QueryTimestamp = &v +} + +func (o DeletedSubscriptionAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.QueryTimestamp != nil { + toSerialize["query_timestamp"] = o.QueryTimestamp + } + return json.Marshal(toSerialize) +} + +type NullableDeletedSubscriptionAllOf struct { + value *DeletedSubscriptionAllOf + isSet bool +} + +func (v NullableDeletedSubscriptionAllOf) Get() *DeletedSubscriptionAllOf { + return v.value +} + +func (v *NullableDeletedSubscriptionAllOf) Set(val *DeletedSubscriptionAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableDeletedSubscriptionAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableDeletedSubscriptionAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeletedSubscriptionAllOf(val *DeletedSubscriptionAllOf) *NullableDeletedSubscriptionAllOf { + return &NullableDeletedSubscriptionAllOf{value: val, isSet: true} +} + +func (v NullableDeletedSubscriptionAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeletedSubscriptionAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list.go new file mode 100644 index 00000000..79f7767e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// DeletedSubscriptionList struct for DeletedSubscriptionList +type DeletedSubscriptionList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []DeletedSubscription `json:"items"` +} + +// NewDeletedSubscriptionList instantiates a new DeletedSubscriptionList 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 NewDeletedSubscriptionList(kind string, page int32, size int32, total int32, items []DeletedSubscription) *DeletedSubscriptionList { + this := DeletedSubscriptionList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewDeletedSubscriptionListWithDefaults instantiates a new DeletedSubscriptionList 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 NewDeletedSubscriptionListWithDefaults() *DeletedSubscriptionList { + this := DeletedSubscriptionList{} + return &this +} + +// GetKind returns the Kind field value +func (o *DeletedSubscriptionList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *DeletedSubscriptionList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *DeletedSubscriptionList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *DeletedSubscriptionList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *DeletedSubscriptionList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *DeletedSubscriptionList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *DeletedSubscriptionList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *DeletedSubscriptionList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *DeletedSubscriptionList) GetItems() []DeletedSubscription { + if o == nil { + var ret []DeletedSubscription + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionList) GetItemsOk() (*[]DeletedSubscription, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *DeletedSubscriptionList) SetItems(v []DeletedSubscription) { + o.Items = v +} + +func (o DeletedSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableDeletedSubscriptionList struct { + value *DeletedSubscriptionList + isSet bool +} + +func (v NullableDeletedSubscriptionList) Get() *DeletedSubscriptionList { + return v.value +} + +func (v *NullableDeletedSubscriptionList) Set(val *DeletedSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullableDeletedSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableDeletedSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeletedSubscriptionList(val *DeletedSubscriptionList) *NullableDeletedSubscriptionList { + return &NullableDeletedSubscriptionList{value: val, isSet: true} +} + +func (v NullableDeletedSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeletedSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list_all_of.go new file mode 100644 index 00000000..de59825b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_deleted_subscription_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// DeletedSubscriptionListAllOf struct for DeletedSubscriptionListAllOf +type DeletedSubscriptionListAllOf struct { + Items *[]DeletedSubscription `json:"items,omitempty"` +} + +// NewDeletedSubscriptionListAllOf instantiates a new DeletedSubscriptionListAllOf 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 NewDeletedSubscriptionListAllOf() *DeletedSubscriptionListAllOf { + this := DeletedSubscriptionListAllOf{} + return &this +} + +// NewDeletedSubscriptionListAllOfWithDefaults instantiates a new DeletedSubscriptionListAllOf 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 NewDeletedSubscriptionListAllOfWithDefaults() *DeletedSubscriptionListAllOf { + this := DeletedSubscriptionListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *DeletedSubscriptionListAllOf) GetItems() []DeletedSubscription { + if o == nil || o.Items == nil { + var ret []DeletedSubscription + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedSubscriptionListAllOf) GetItemsOk() (*[]DeletedSubscription, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *DeletedSubscriptionListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []DeletedSubscription and assigns it to the Items field. +func (o *DeletedSubscriptionListAllOf) SetItems(v []DeletedSubscription) { + o.Items = &v +} + +func (o DeletedSubscriptionListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableDeletedSubscriptionListAllOf struct { + value *DeletedSubscriptionListAllOf + isSet bool +} + +func (v NullableDeletedSubscriptionListAllOf) Get() *DeletedSubscriptionListAllOf { + return v.value +} + +func (v *NullableDeletedSubscriptionListAllOf) Set(val *DeletedSubscriptionListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableDeletedSubscriptionListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableDeletedSubscriptionListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeletedSubscriptionListAllOf(val *DeletedSubscriptionListAllOf) *NullableDeletedSubscriptionListAllOf { + return &NullableDeletedSubscriptionListAllOf{value: val, isSet: true} +} + +func (v NullableDeletedSubscriptionListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeletedSubscriptionListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_ephemeral_resource_quota.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_ephemeral_resource_quota.go new file mode 100644 index 00000000..95725624 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_ephemeral_resource_quota.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// EphemeralResourceQuota struct for EphemeralResourceQuota +type EphemeralResourceQuota struct { + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + Byoc *bool `json:"byoc,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Sku *string `json:"sku,omitempty"` + SkuCount *int32 `json:"sku_count,omitempty"` +} + +// NewEphemeralResourceQuota instantiates a new EphemeralResourceQuota 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 NewEphemeralResourceQuota() *EphemeralResourceQuota { + this := EphemeralResourceQuota{} + return &this +} + +// NewEphemeralResourceQuotaWithDefaults instantiates a new EphemeralResourceQuota 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 NewEphemeralResourceQuotaWithDefaults() *EphemeralResourceQuota { + this := EphemeralResourceQuota{} + return &this +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *EphemeralResourceQuota) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetByoc returns the Byoc field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetByoc() bool { + if o == nil || o.Byoc == nil { + var ret bool + return ret + } + return *o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetByocOk() (*bool, bool) { + if o == nil || o.Byoc == nil { + return nil, false + } + return o.Byoc, true +} + +// HasByoc returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasByoc() bool { + if o != nil && o.Byoc != nil { + return true + } + + return false +} + +// SetByoc gets a reference to the given bool and assigns it to the Byoc field. +func (o *EphemeralResourceQuota) SetByoc(v bool) { + o.Byoc = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *EphemeralResourceQuota) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *EphemeralResourceQuota) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetSku() string { + if o == nil || o.Sku == nil { + var ret string + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetSkuOk() (*string, bool) { + if o == nil || o.Sku == nil { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasSku() bool { + if o != nil && o.Sku != nil { + return true + } + + return false +} + +// SetSku gets a reference to the given string and assigns it to the Sku field. +func (o *EphemeralResourceQuota) SetSku(v string) { + o.Sku = &v +} + +// GetSkuCount returns the SkuCount field value if set, zero value otherwise. +func (o *EphemeralResourceQuota) GetSkuCount() int32 { + if o == nil || o.SkuCount == nil { + var ret int32 + return ret + } + return *o.SkuCount +} + +// GetSkuCountOk returns a tuple with the SkuCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EphemeralResourceQuota) GetSkuCountOk() (*int32, bool) { + if o == nil || o.SkuCount == nil { + return nil, false + } + return o.SkuCount, true +} + +// HasSkuCount returns a boolean if a field has been set. +func (o *EphemeralResourceQuota) HasSkuCount() bool { + if o != nil && o.SkuCount != nil { + return true + } + + return false +} + +// SetSkuCount gets a reference to the given int32 and assigns it to the SkuCount field. +func (o *EphemeralResourceQuota) SetSkuCount(v int32) { + o.SkuCount = &v +} + +func (o EphemeralResourceQuota) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.Byoc != nil { + toSerialize["byoc"] = o.Byoc + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.Sku != nil { + toSerialize["sku"] = o.Sku + } + if o.SkuCount != nil { + toSerialize["sku_count"] = o.SkuCount + } + return json.Marshal(toSerialize) +} + +type NullableEphemeralResourceQuota struct { + value *EphemeralResourceQuota + isSet bool +} + +func (v NullableEphemeralResourceQuota) Get() *EphemeralResourceQuota { + return v.value +} + +func (v *NullableEphemeralResourceQuota) Set(val *EphemeralResourceQuota) { + v.value = val + v.isSet = true +} + +func (v NullableEphemeralResourceQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableEphemeralResourceQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEphemeralResourceQuota(val *EphemeralResourceQuota) *NullableEphemeralResourceQuota { + return &NullableEphemeralResourceQuota{value: val, isSet: true} +} + +func (v NullableEphemeralResourceQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEphemeralResourceQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_error.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_error.go new file mode 100644 index 00000000..f641c9ef --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_error.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Code *string `json:"code,omitempty"` + OperationId *string `json:"operation_id,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// NewError instantiates a new Error 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 NewError() *Error { + this := Error{} + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Error) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Error) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Error) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Error) GetId() string { + if o == nil || o.Id == nil { + 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 *Error) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Error) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Error) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Error) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Error) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Error) SetKind(v string) { + o.Kind = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *Error) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *Error) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *Error) SetCode(v string) { + o.Code = &v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *Error) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *Error) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *Error) SetOperationId(v string) { + o.OperationId = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *Error) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *Error) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *Error) SetReason(v string) { + o.Reason = &v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_error_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_all_of.go new file mode 100644 index 00000000..d5b0b6f3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_all_of.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ErrorAllOf struct for ErrorAllOf +type ErrorAllOf struct { + Code *string `json:"code,omitempty"` + OperationId *string `json:"operation_id,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// NewErrorAllOf instantiates a new ErrorAllOf 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 NewErrorAllOf() *ErrorAllOf { + this := ErrorAllOf{} + return &this +} + +// NewErrorAllOfWithDefaults instantiates a new ErrorAllOf 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 NewErrorAllOfWithDefaults() *ErrorAllOf { + this := ErrorAllOf{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *ErrorAllOf) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *ErrorAllOf) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *ErrorAllOf) SetCode(v string) { + o.Code = &v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *ErrorAllOf) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *ErrorAllOf) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *ErrorAllOf) SetOperationId(v string) { + o.OperationId = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ErrorAllOf) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ErrorAllOf) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ErrorAllOf) SetReason(v string) { + o.Reason = &v +} + +func (o ErrorAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableErrorAllOf struct { + value *ErrorAllOf + isSet bool +} + +func (v NullableErrorAllOf) Get() *ErrorAllOf { + return v.value +} + +func (v *NullableErrorAllOf) Set(val *ErrorAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorAllOf(val *ErrorAllOf) *NullableErrorAllOf { + return &NullableErrorAllOf{value: val, isSet: true} +} + +func (v NullableErrorAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list.go new file mode 100644 index 00000000..ad6b7222 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ErrorList struct for ErrorList +type ErrorList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Error `json:"items"` +} + +// NewErrorList instantiates a new ErrorList 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 NewErrorList(kind string, page int32, size int32, total int32, items []Error) *ErrorList { + this := ErrorList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewErrorListWithDefaults instantiates a new ErrorList 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 NewErrorListWithDefaults() *ErrorList { + this := ErrorList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ErrorList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ErrorList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ErrorList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ErrorList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ErrorList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ErrorList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ErrorList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ErrorList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ErrorList) GetItems() []Error { + if o == nil { + var ret []Error + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetItemsOk() (*[]Error, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ErrorList) SetItems(v []Error) { + o.Items = v +} + +func (o ErrorList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorList struct { + value *ErrorList + isSet bool +} + +func (v NullableErrorList) Get() *ErrorList { + return v.value +} + +func (v *NullableErrorList) Set(val *ErrorList) { + v.value = val + v.isSet = true +} + +func (v NullableErrorList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorList(val *ErrorList) *NullableErrorList { + return &NullableErrorList{value: val, isSet: true} +} + +func (v NullableErrorList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list_all_of.go new file mode 100644 index 00000000..1e4d964e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_error_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ErrorListAllOf struct for ErrorListAllOf +type ErrorListAllOf struct { + Items *[]Error `json:"items,omitempty"` +} + +// NewErrorListAllOf instantiates a new ErrorListAllOf 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 NewErrorListAllOf() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorListAllOf) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorListAllOf) SetItems(v []Error) { + o.Items = &v +} + +func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorListAllOf struct { + value *ErrorListAllOf + isSet bool +} + +func (v NullableErrorListAllOf) Get() *ErrorListAllOf { + return v.value +} + +func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { + return &NullableErrorListAllOf{value: val, isSet: true} +} + +func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource.go new file mode 100644 index 00000000..810e765c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource.go @@ -0,0 +1,396 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ExcessResource struct for ExcessResource +type ExcessResource struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + Count *int32 `json:"count,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` +} + +// NewExcessResource instantiates a new ExcessResource 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 NewExcessResource(byoc bool) *ExcessResource { + this := ExcessResource{} + this.Byoc = byoc + return &this +} + +// NewExcessResourceWithDefaults instantiates a new ExcessResource 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 NewExcessResourceWithDefaults() *ExcessResource { + this := ExcessResource{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ExcessResource) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ExcessResource) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ExcessResource) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ExcessResource) GetId() string { + if o == nil || o.Id == nil { + 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 *ExcessResource) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ExcessResource) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ExcessResource) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ExcessResource) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ExcessResource) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ExcessResource) SetKind(v string) { + o.Kind = &v +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ExcessResource) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ExcessResource) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ExcessResource) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ExcessResource) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ExcessResource) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ExcessResource) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ExcessResource) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ExcessResource) SetByoc(v bool) { + o.Byoc = v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ExcessResource) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ExcessResource) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ExcessResource) SetCount(v int32) { + o.Count = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ExcessResource) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ExcessResource) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ExcessResource) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ExcessResource) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResource) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ExcessResource) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ExcessResource) SetResourceType(v string) { + o.ResourceType = &v +} + +func (o ExcessResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableExcessResource struct { + value *ExcessResource + isSet bool +} + +func (v NullableExcessResource) Get() *ExcessResource { + return v.value +} + +func (v *NullableExcessResource) Set(val *ExcessResource) { + v.value = val + v.isSet = true +} + +func (v NullableExcessResource) IsSet() bool { + return v.isSet +} + +func (v *NullableExcessResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExcessResource(val *ExcessResource) *NullableExcessResource { + return &NullableExcessResource{value: val, isSet: true} +} + +func (v NullableExcessResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExcessResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource_all_of.go new file mode 100644 index 00000000..f8a2805e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_excess_resource_all_of.go @@ -0,0 +1,288 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ExcessResourceAllOf struct for ExcessResourceAllOf +type ExcessResourceAllOf struct { + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + Count *int32 `json:"count,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` +} + +// NewExcessResourceAllOf instantiates a new ExcessResourceAllOf 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 NewExcessResourceAllOf(byoc bool) *ExcessResourceAllOf { + this := ExcessResourceAllOf{} + this.Byoc = byoc + return &this +} + +// NewExcessResourceAllOfWithDefaults instantiates a new ExcessResourceAllOf 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 NewExcessResourceAllOfWithDefaults() *ExcessResourceAllOf { + this := ExcessResourceAllOf{} + return &this +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ExcessResourceAllOf) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ExcessResourceAllOf) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ExcessResourceAllOf) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ExcessResourceAllOf) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ExcessResourceAllOf) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ExcessResourceAllOf) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ExcessResourceAllOf) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ExcessResourceAllOf) SetByoc(v bool) { + o.Byoc = v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ExcessResourceAllOf) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ExcessResourceAllOf) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ExcessResourceAllOf) SetCount(v int32) { + o.Count = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ExcessResourceAllOf) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ExcessResourceAllOf) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ExcessResourceAllOf) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ExcessResourceAllOf) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExcessResourceAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ExcessResourceAllOf) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ExcessResourceAllOf) SetResourceType(v string) { + o.ResourceType = &v +} + +func (o ExcessResourceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableExcessResourceAllOf struct { + value *ExcessResourceAllOf + isSet bool +} + +func (v NullableExcessResourceAllOf) Get() *ExcessResourceAllOf { + return v.value +} + +func (v *NullableExcessResourceAllOf) Set(val *ExcessResourceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableExcessResourceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableExcessResourceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExcessResourceAllOf(val *ExcessResourceAllOf) *NullableExcessResourceAllOf { + return &NullableExcessResourceAllOf{value: val, isSet: true} +} + +func (v NullableExcessResourceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExcessResourceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review.go new file mode 100644 index 00000000..d6f90e5f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ExportControlReview struct for ExportControlReview +type ExportControlReview struct { + Restricted bool `json:"restricted"` +} + +// NewExportControlReview instantiates a new ExportControlReview 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 NewExportControlReview(restricted bool) *ExportControlReview { + this := ExportControlReview{} + this.Restricted = restricted + return &this +} + +// NewExportControlReviewWithDefaults instantiates a new ExportControlReview 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 NewExportControlReviewWithDefaults() *ExportControlReview { + this := ExportControlReview{} + return &this +} + +// GetRestricted returns the Restricted field value +func (o *ExportControlReview) GetRestricted() bool { + if o == nil { + var ret bool + return ret + } + + return o.Restricted +} + +// GetRestrictedOk returns a tuple with the Restricted field value +// and a boolean to check if the value has been set. +func (o *ExportControlReview) GetRestrictedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Restricted, true +} + +// SetRestricted sets field value +func (o *ExportControlReview) SetRestricted(v bool) { + o.Restricted = v +} + +func (o ExportControlReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["restricted"] = o.Restricted + } + return json.Marshal(toSerialize) +} + +type NullableExportControlReview struct { + value *ExportControlReview + isSet bool +} + +func (v NullableExportControlReview) Get() *ExportControlReview { + return v.value +} + +func (v *NullableExportControlReview) Set(val *ExportControlReview) { + v.value = val + v.isSet = true +} + +func (v NullableExportControlReview) IsSet() bool { + return v.isSet +} + +func (v *NullableExportControlReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExportControlReview(val *ExportControlReview) *NullableExportControlReview { + return &NullableExportControlReview{value: val, isSet: true} +} + +func (v NullableExportControlReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExportControlReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review_request.go new file mode 100644 index 00000000..8b71e99c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_export_control_review_request.go @@ -0,0 +1,144 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ExportControlReviewRequest struct for ExportControlReviewRequest +type ExportControlReviewRequest struct { + AccountUsername string `json:"account_username"` + IgnoreCache *bool `json:"ignore_cache,omitempty"` +} + +// NewExportControlReviewRequest instantiates a new ExportControlReviewRequest 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 NewExportControlReviewRequest(accountUsername string) *ExportControlReviewRequest { + this := ExportControlReviewRequest{} + this.AccountUsername = accountUsername + return &this +} + +// NewExportControlReviewRequestWithDefaults instantiates a new ExportControlReviewRequest 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 NewExportControlReviewRequestWithDefaults() *ExportControlReviewRequest { + this := ExportControlReviewRequest{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *ExportControlReviewRequest) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *ExportControlReviewRequest) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *ExportControlReviewRequest) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetIgnoreCache returns the IgnoreCache field value if set, zero value otherwise. +func (o *ExportControlReviewRequest) GetIgnoreCache() bool { + if o == nil || o.IgnoreCache == nil { + var ret bool + return ret + } + return *o.IgnoreCache +} + +// GetIgnoreCacheOk returns a tuple with the IgnoreCache field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExportControlReviewRequest) GetIgnoreCacheOk() (*bool, bool) { + if o == nil || o.IgnoreCache == nil { + return nil, false + } + return o.IgnoreCache, true +} + +// HasIgnoreCache returns a boolean if a field has been set. +func (o *ExportControlReviewRequest) HasIgnoreCache() bool { + if o != nil && o.IgnoreCache != nil { + return true + } + + return false +} + +// SetIgnoreCache gets a reference to the given bool and assigns it to the IgnoreCache field. +func (o *ExportControlReviewRequest) SetIgnoreCache(v bool) { + o.IgnoreCache = &v +} + +func (o ExportControlReviewRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if o.IgnoreCache != nil { + toSerialize["ignore_cache"] = o.IgnoreCache + } + return json.Marshal(toSerialize) +} + +type NullableExportControlReviewRequest struct { + value *ExportControlReviewRequest + isSet bool +} + +func (v NullableExportControlReviewRequest) Get() *ExportControlReviewRequest { + return v.value +} + +func (v *NullableExportControlReviewRequest) Set(val *ExportControlReviewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableExportControlReviewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableExportControlReviewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExportControlReviewRequest(val *ExportControlReviewRequest) *NullableExportControlReviewRequest { + return &NullableExportControlReviewRequest{value: val, isSet: true} +} + +func (v NullableExportControlReviewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExportControlReviewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review.go new file mode 100644 index 00000000..f88c381d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review.go @@ -0,0 +1,180 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureReview struct for FeatureReview +type FeatureReview struct { + AccountUsername *string `json:"account_username,omitempty"` + Feature string `json:"feature"` + OrganizationId *string `json:"organization_id,omitempty"` +} + +// NewFeatureReview instantiates a new FeatureReview 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 NewFeatureReview(feature string) *FeatureReview { + this := FeatureReview{} + this.Feature = feature + return &this +} + +// NewFeatureReviewWithDefaults instantiates a new FeatureReview 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 NewFeatureReviewWithDefaults() *FeatureReview { + this := FeatureReview{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value if set, zero value otherwise. +func (o *FeatureReview) GetAccountUsername() string { + if o == nil || o.AccountUsername == nil { + var ret string + return ret + } + return *o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureReview) GetAccountUsernameOk() (*string, bool) { + if o == nil || o.AccountUsername == nil { + return nil, false + } + return o.AccountUsername, true +} + +// HasAccountUsername returns a boolean if a field has been set. +func (o *FeatureReview) HasAccountUsername() bool { + if o != nil && o.AccountUsername != nil { + return true + } + + return false +} + +// SetAccountUsername gets a reference to the given string and assigns it to the AccountUsername field. +func (o *FeatureReview) SetAccountUsername(v string) { + o.AccountUsername = &v +} + +// GetFeature returns the Feature field value +func (o *FeatureReview) GetFeature() string { + if o == nil { + var ret string + return ret + } + + return o.Feature +} + +// GetFeatureOk returns a tuple with the Feature field value +// and a boolean to check if the value has been set. +func (o *FeatureReview) GetFeatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Feature, true +} + +// SetFeature sets field value +func (o *FeatureReview) SetFeature(v string) { + o.Feature = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *FeatureReview) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureReview) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *FeatureReview) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *FeatureReview) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +func (o FeatureReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountUsername != nil { + toSerialize["account_username"] = o.AccountUsername + } + if true { + toSerialize["feature"] = o.Feature + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + return json.Marshal(toSerialize) +} + +type NullableFeatureReview struct { + value *FeatureReview + isSet bool +} + +func (v NullableFeatureReview) Get() *FeatureReview { + return v.value +} + +func (v *NullableFeatureReview) Set(val *FeatureReview) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureReview) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureReview(val *FeatureReview) *NullableFeatureReview { + return &NullableFeatureReview{value: val, isSet: true} +} + +func (v NullableFeatureReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review_response.go new file mode 100644 index 00000000..a53afbde --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_review_response.go @@ -0,0 +1,139 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureReviewResponse struct for FeatureReviewResponse +type FeatureReviewResponse struct { + Enabled bool `json:"enabled"` + FeatureId string `json:"feature_id"` +} + +// NewFeatureReviewResponse instantiates a new FeatureReviewResponse 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 NewFeatureReviewResponse(enabled bool, featureId string) *FeatureReviewResponse { + this := FeatureReviewResponse{} + this.Enabled = enabled + this.FeatureId = featureId + return &this +} + +// NewFeatureReviewResponseWithDefaults instantiates a new FeatureReviewResponse 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 NewFeatureReviewResponseWithDefaults() *FeatureReviewResponse { + this := FeatureReviewResponse{} + var enabled bool = false + this.Enabled = enabled + return &this +} + +// GetEnabled returns the Enabled field value +func (o *FeatureReviewResponse) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *FeatureReviewResponse) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *FeatureReviewResponse) SetEnabled(v bool) { + o.Enabled = v +} + +// GetFeatureId returns the FeatureId field value +func (o *FeatureReviewResponse) GetFeatureId() string { + if o == nil { + var ret string + return ret + } + + return o.FeatureId +} + +// GetFeatureIdOk returns a tuple with the FeatureId field value +// and a boolean to check if the value has been set. +func (o *FeatureReviewResponse) GetFeatureIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FeatureId, true +} + +// SetFeatureId sets field value +func (o *FeatureReviewResponse) SetFeatureId(v string) { + o.FeatureId = v +} + +func (o FeatureReviewResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["enabled"] = o.Enabled + } + if true { + toSerialize["feature_id"] = o.FeatureId + } + return json.Marshal(toSerialize) +} + +type NullableFeatureReviewResponse struct { + value *FeatureReviewResponse + isSet bool +} + +func (v NullableFeatureReviewResponse) Get() *FeatureReviewResponse { + return v.value +} + +func (v *NullableFeatureReviewResponse) Set(val *FeatureReviewResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureReviewResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureReviewResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureReviewResponse(val *FeatureReviewResponse) *NullableFeatureReviewResponse { + return &NullableFeatureReviewResponse{value: val, isSet: true} +} + +func (v NullableFeatureReviewResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureReviewResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle.go new file mode 100644 index 00000000..4843e0e7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle.go @@ -0,0 +1,218 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureToggle struct for FeatureToggle +type FeatureToggle struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Enabled bool `json:"enabled"` +} + +// NewFeatureToggle instantiates a new FeatureToggle 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 NewFeatureToggle(enabled bool) *FeatureToggle { + this := FeatureToggle{} + this.Enabled = enabled + return &this +} + +// NewFeatureToggleWithDefaults instantiates a new FeatureToggle 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 NewFeatureToggleWithDefaults() *FeatureToggle { + this := FeatureToggle{} + var enabled bool = false + this.Enabled = enabled + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *FeatureToggle) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureToggle) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *FeatureToggle) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *FeatureToggle) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FeatureToggle) GetId() string { + if o == nil || o.Id == nil { + 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 *FeatureToggle) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *FeatureToggle) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *FeatureToggle) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *FeatureToggle) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureToggle) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *FeatureToggle) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *FeatureToggle) SetKind(v string) { + o.Kind = &v +} + +// GetEnabled returns the Enabled field value +func (o *FeatureToggle) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *FeatureToggle) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *FeatureToggle) SetEnabled(v bool) { + o.Enabled = v +} + +func (o FeatureToggle) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["enabled"] = o.Enabled + } + return json.Marshal(toSerialize) +} + +type NullableFeatureToggle struct { + value *FeatureToggle + isSet bool +} + +func (v NullableFeatureToggle) Get() *FeatureToggle { + return v.value +} + +func (v *NullableFeatureToggle) Set(val *FeatureToggle) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureToggle) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureToggle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureToggle(val *FeatureToggle) *NullableFeatureToggle { + return &NullableFeatureToggle{value: val, isSet: true} +} + +func (v NullableFeatureToggle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureToggle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_all_of.go new file mode 100644 index 00000000..40acfabc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_all_of.go @@ -0,0 +1,110 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureToggleAllOf struct for FeatureToggleAllOf +type FeatureToggleAllOf struct { + Enabled bool `json:"enabled"` +} + +// NewFeatureToggleAllOf instantiates a new FeatureToggleAllOf 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 NewFeatureToggleAllOf(enabled bool) *FeatureToggleAllOf { + this := FeatureToggleAllOf{} + this.Enabled = enabled + return &this +} + +// NewFeatureToggleAllOfWithDefaults instantiates a new FeatureToggleAllOf 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 NewFeatureToggleAllOfWithDefaults() *FeatureToggleAllOf { + this := FeatureToggleAllOf{} + var enabled bool = false + this.Enabled = enabled + return &this +} + +// GetEnabled returns the Enabled field value +func (o *FeatureToggleAllOf) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *FeatureToggleAllOf) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *FeatureToggleAllOf) SetEnabled(v bool) { + o.Enabled = v +} + +func (o FeatureToggleAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["enabled"] = o.Enabled + } + return json.Marshal(toSerialize) +} + +type NullableFeatureToggleAllOf struct { + value *FeatureToggleAllOf + isSet bool +} + +func (v NullableFeatureToggleAllOf) Get() *FeatureToggleAllOf { + return v.value +} + +func (v *NullableFeatureToggleAllOf) Set(val *FeatureToggleAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureToggleAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureToggleAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureToggleAllOf(val *FeatureToggleAllOf) *NullableFeatureToggleAllOf { + return &NullableFeatureToggleAllOf{value: val, isSet: true} +} + +func (v NullableFeatureToggleAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureToggleAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request.go new file mode 100644 index 00000000..fcc3a675 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureToggleQueryRequest struct for FeatureToggleQueryRequest +type FeatureToggleQueryRequest struct { + OrganizationId string `json:"organization_id"` +} + +// NewFeatureToggleQueryRequest instantiates a new FeatureToggleQueryRequest 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 NewFeatureToggleQueryRequest(organizationId string) *FeatureToggleQueryRequest { + this := FeatureToggleQueryRequest{} + this.OrganizationId = organizationId + return &this +} + +// NewFeatureToggleQueryRequestWithDefaults instantiates a new FeatureToggleQueryRequest 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 NewFeatureToggleQueryRequestWithDefaults() *FeatureToggleQueryRequest { + this := FeatureToggleQueryRequest{} + return &this +} + +// GetOrganizationId returns the OrganizationId field value +func (o *FeatureToggleQueryRequest) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *FeatureToggleQueryRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *FeatureToggleQueryRequest) SetOrganizationId(v string) { + o.OrganizationId = v +} + +func (o FeatureToggleQueryRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["organization_id"] = o.OrganizationId + } + return json.Marshal(toSerialize) +} + +type NullableFeatureToggleQueryRequest struct { + value *FeatureToggleQueryRequest + isSet bool +} + +func (v NullableFeatureToggleQueryRequest) Get() *FeatureToggleQueryRequest { + return v.value +} + +func (v *NullableFeatureToggleQueryRequest) Set(val *FeatureToggleQueryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureToggleQueryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureToggleQueryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureToggleQueryRequest(val *FeatureToggleQueryRequest) *NullableFeatureToggleQueryRequest { + return &NullableFeatureToggleQueryRequest{value: val, isSet: true} +} + +func (v NullableFeatureToggleQueryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureToggleQueryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request_all_of.go new file mode 100644 index 00000000..e54b4645 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_feature_toggle_query_request_all_of.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// FeatureToggleQueryRequestAllOf struct for FeatureToggleQueryRequestAllOf +type FeatureToggleQueryRequestAllOf struct { + OrganizationId string `json:"organization_id"` +} + +// NewFeatureToggleQueryRequestAllOf instantiates a new FeatureToggleQueryRequestAllOf 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 NewFeatureToggleQueryRequestAllOf(organizationId string) *FeatureToggleQueryRequestAllOf { + this := FeatureToggleQueryRequestAllOf{} + this.OrganizationId = organizationId + return &this +} + +// NewFeatureToggleQueryRequestAllOfWithDefaults instantiates a new FeatureToggleQueryRequestAllOf 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 NewFeatureToggleQueryRequestAllOfWithDefaults() *FeatureToggleQueryRequestAllOf { + this := FeatureToggleQueryRequestAllOf{} + return &this +} + +// GetOrganizationId returns the OrganizationId field value +func (o *FeatureToggleQueryRequestAllOf) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *FeatureToggleQueryRequestAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *FeatureToggleQueryRequestAllOf) SetOrganizationId(v string) { + o.OrganizationId = v +} + +func (o FeatureToggleQueryRequestAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["organization_id"] = o.OrganizationId + } + return json.Marshal(toSerialize) +} + +type NullableFeatureToggleQueryRequestAllOf struct { + value *FeatureToggleQueryRequestAllOf + isSet bool +} + +func (v NullableFeatureToggleQueryRequestAllOf) Get() *FeatureToggleQueryRequestAllOf { + return v.value +} + +func (v *NullableFeatureToggleQueryRequestAllOf) Set(val *FeatureToggleQueryRequestAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureToggleQueryRequestAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureToggleQueryRequestAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureToggleQueryRequestAllOf(val *FeatureToggleQueryRequestAllOf) *NullableFeatureToggleQueryRequestAllOf { + return &NullableFeatureToggleQueryRequestAllOf{value: val, isSet: true} +} + +func (v NullableFeatureToggleQueryRequestAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureToggleQueryRequestAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_label.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_label.go new file mode 100644 index 00000000..a603a227 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_label.go @@ -0,0 +1,491 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Label struct for Label +type Label struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AccountId *string `json:"account_id,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Internal bool `json:"internal"` + Key string `json:"key"` + OrganizationId *string `json:"organization_id,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Value string `json:"value"` +} + +// NewLabel instantiates a new Label 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 NewLabel(internal bool, key string, value string) *Label { + this := Label{} + this.Internal = internal + this.Key = key + this.Value = value + return &this +} + +// NewLabelWithDefaults instantiates a new Label 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 NewLabelWithDefaults() *Label { + this := Label{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Label) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Label) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Label) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Label) GetId() string { + if o == nil || o.Id == nil { + 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 *Label) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Label) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Label) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Label) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Label) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Label) SetKind(v string) { + o.Kind = &v +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *Label) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *Label) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *Label) SetAccountId(v string) { + o.AccountId = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Label) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Label) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Label) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetInternal returns the Internal field value +func (o *Label) GetInternal() bool { + if o == nil { + var ret bool + return ret + } + + return o.Internal +} + +// GetInternalOk returns a tuple with the Internal field value +// and a boolean to check if the value has been set. +func (o *Label) GetInternalOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Internal, true +} + +// SetInternal sets field value +func (o *Label) SetInternal(v bool) { + o.Internal = v +} + +// GetKey returns the Key field value +func (o *Label) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *Label) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *Label) SetKey(v string) { + o.Key = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *Label) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *Label) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *Label) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *Label) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *Label) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *Label) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Label) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *Label) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Label) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Label) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Label) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Label) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Label) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Label) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetValue returns the Value field value +func (o *Label) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Label) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Label) SetValue(v string) { + o.Value = v +} + +func (o Label) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["internal"] = o.Internal + } + if true { + toSerialize["key"] = o.Key + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableLabel struct { + value *Label + isSet bool +} + +func (v NullableLabel) Get() *Label { + return v.value +} + +func (v *NullableLabel) Set(val *Label) { + v.value = val + v.isSet = true +} + +func (v NullableLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLabel(val *Label) *NullableLabel { + return &NullableLabel{value: val, isSet: true} +} + +func (v NullableLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_label_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_all_of.go new file mode 100644 index 00000000..ada339c5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_all_of.go @@ -0,0 +1,383 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// LabelAllOf struct for LabelAllOf +type LabelAllOf struct { + AccountId *string `json:"account_id,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Internal bool `json:"internal"` + Key string `json:"key"` + OrganizationId *string `json:"organization_id,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Value string `json:"value"` +} + +// NewLabelAllOf instantiates a new LabelAllOf 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 NewLabelAllOf(internal bool, key string, value string) *LabelAllOf { + this := LabelAllOf{} + this.Internal = internal + this.Key = key + this.Value = value + return &this +} + +// NewLabelAllOfWithDefaults instantiates a new LabelAllOf 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 NewLabelAllOfWithDefaults() *LabelAllOf { + this := LabelAllOf{} + return &this +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *LabelAllOf) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *LabelAllOf) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *LabelAllOf) SetAccountId(v string) { + o.AccountId = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *LabelAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *LabelAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *LabelAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetInternal returns the Internal field value +func (o *LabelAllOf) GetInternal() bool { + if o == nil { + var ret bool + return ret + } + + return o.Internal +} + +// GetInternalOk returns a tuple with the Internal field value +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetInternalOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Internal, true +} + +// SetInternal sets field value +func (o *LabelAllOf) SetInternal(v bool) { + o.Internal = v +} + +// GetKey returns the Key field value +func (o *LabelAllOf) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *LabelAllOf) SetKey(v string) { + o.Key = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *LabelAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *LabelAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *LabelAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *LabelAllOf) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *LabelAllOf) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *LabelAllOf) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *LabelAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *LabelAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LabelAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *LabelAllOf) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *LabelAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *LabelAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *LabelAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetValue returns the Value field value +func (o *LabelAllOf) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *LabelAllOf) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *LabelAllOf) SetValue(v string) { + o.Value = v +} + +func (o LabelAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["internal"] = o.Internal + } + if true { + toSerialize["key"] = o.Key + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableLabelAllOf struct { + value *LabelAllOf + isSet bool +} + +func (v NullableLabelAllOf) Get() *LabelAllOf { + return v.value +} + +func (v *NullableLabelAllOf) Set(val *LabelAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableLabelAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableLabelAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLabelAllOf(val *LabelAllOf) *NullableLabelAllOf { + return &NullableLabelAllOf{value: val, isSet: true} +} + +func (v NullableLabelAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLabelAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list.go new file mode 100644 index 00000000..0b4f799a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LabelList struct for LabelList +type LabelList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Label `json:"items"` +} + +// NewLabelList instantiates a new LabelList 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 NewLabelList(kind string, page int32, size int32, total int32, items []Label) *LabelList { + this := LabelList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewLabelListWithDefaults instantiates a new LabelList 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 NewLabelListWithDefaults() *LabelList { + this := LabelList{} + return &this +} + +// GetKind returns the Kind field value +func (o *LabelList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *LabelList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *LabelList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *LabelList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *LabelList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *LabelList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *LabelList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *LabelList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *LabelList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *LabelList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *LabelList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *LabelList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *LabelList) GetItems() []Label { + if o == nil { + var ret []Label + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *LabelList) GetItemsOk() (*[]Label, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *LabelList) SetItems(v []Label) { + o.Items = v +} + +func (o LabelList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableLabelList struct { + value *LabelList + isSet bool +} + +func (v NullableLabelList) Get() *LabelList { + return v.value +} + +func (v *NullableLabelList) Set(val *LabelList) { + v.value = val + v.isSet = true +} + +func (v NullableLabelList) IsSet() bool { + return v.isSet +} + +func (v *NullableLabelList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLabelList(val *LabelList) *NullableLabelList { + return &NullableLabelList{value: val, isSet: true} +} + +func (v NullableLabelList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLabelList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list_all_of.go new file mode 100644 index 00000000..bdc47523 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_label_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LabelListAllOf struct for LabelListAllOf +type LabelListAllOf struct { + Items *[]Label `json:"items,omitempty"` +} + +// NewLabelListAllOf instantiates a new LabelListAllOf 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 NewLabelListAllOf() *LabelListAllOf { + this := LabelListAllOf{} + return &this +} + +// NewLabelListAllOfWithDefaults instantiates a new LabelListAllOf 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 NewLabelListAllOfWithDefaults() *LabelListAllOf { + this := LabelListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *LabelListAllOf) GetItems() []Label { + if o == nil || o.Items == nil { + var ret []Label + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LabelListAllOf) GetItemsOk() (*[]Label, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *LabelListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Label and assigns it to the Items field. +func (o *LabelListAllOf) SetItems(v []Label) { + o.Items = &v +} + +func (o LabelListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableLabelListAllOf struct { + value *LabelListAllOf + isSet bool +} + +func (v NullableLabelListAllOf) Get() *LabelListAllOf { + return v.value +} + +func (v *NullableLabelListAllOf) Set(val *LabelListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableLabelListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableLabelListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLabelListAllOf(val *LabelListAllOf) *NullableLabelListAllOf { + return &NullableLabelListAllOf{value: val, isSet: true} +} + +func (v NullableLabelListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLabelListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item.go new file mode 100644 index 00000000..129c02be --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LandingPageCTLItem struct for LandingPageCTLItem +type LandingPageCTLItem struct { + Shape *LandingPageCTLItemShape `json:"shape,omitempty"` +} + +// NewLandingPageCTLItem instantiates a new LandingPageCTLItem 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 NewLandingPageCTLItem() *LandingPageCTLItem { + this := LandingPageCTLItem{} + return &this +} + +// NewLandingPageCTLItemWithDefaults instantiates a new LandingPageCTLItem 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 NewLandingPageCTLItemWithDefaults() *LandingPageCTLItem { + this := LandingPageCTLItem{} + return &this +} + +// GetShape returns the Shape field value if set, zero value otherwise. +func (o *LandingPageCTLItem) GetShape() LandingPageCTLItemShape { + if o == nil || o.Shape == nil { + var ret LandingPageCTLItemShape + return ret + } + return *o.Shape +} + +// GetShapeOk returns a tuple with the Shape field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageCTLItem) GetShapeOk() (*LandingPageCTLItemShape, bool) { + if o == nil || o.Shape == nil { + return nil, false + } + return o.Shape, true +} + +// HasShape returns a boolean if a field has been set. +func (o *LandingPageCTLItem) HasShape() bool { + if o != nil && o.Shape != nil { + return true + } + + return false +} + +// SetShape gets a reference to the given LandingPageCTLItemShape and assigns it to the Shape field. +func (o *LandingPageCTLItem) SetShape(v LandingPageCTLItemShape) { + o.Shape = &v +} + +func (o LandingPageCTLItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Shape != nil { + toSerialize["shape"] = o.Shape + } + return json.Marshal(toSerialize) +} + +type NullableLandingPageCTLItem struct { + value *LandingPageCTLItem + isSet bool +} + +func (v NullableLandingPageCTLItem) Get() *LandingPageCTLItem { + return v.value +} + +func (v *NullableLandingPageCTLItem) Set(val *LandingPageCTLItem) { + v.value = val + v.isSet = true +} + +func (v NullableLandingPageCTLItem) IsSet() bool { + return v.isSet +} + +func (v *NullableLandingPageCTLItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLandingPageCTLItem(val *LandingPageCTLItem) *NullableLandingPageCTLItem { + return &NullableLandingPageCTLItem{value: val, isSet: true} +} + +func (v NullableLandingPageCTLItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLandingPageCTLItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item_shape.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item_shape.go new file mode 100644 index 00000000..c3964133 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_ctl_item_shape.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LandingPageCTLItemShape struct for LandingPageCTLItemShape +type LandingPageCTLItemShape struct { + Description *string `json:"description,omitempty"` + Link *LandingPageLinkShape `json:"link,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewLandingPageCTLItemShape instantiates a new LandingPageCTLItemShape 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 NewLandingPageCTLItemShape() *LandingPageCTLItemShape { + this := LandingPageCTLItemShape{} + return &this +} + +// NewLandingPageCTLItemShapeWithDefaults instantiates a new LandingPageCTLItemShape 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 NewLandingPageCTLItemShapeWithDefaults() *LandingPageCTLItemShape { + this := LandingPageCTLItemShape{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *LandingPageCTLItemShape) GetDescription() string { + if o == nil || o.Description == nil { + 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 *LandingPageCTLItemShape) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *LandingPageCTLItemShape) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *LandingPageCTLItemShape) SetDescription(v string) { + o.Description = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *LandingPageCTLItemShape) GetLink() LandingPageLinkShape { + if o == nil || o.Link == nil { + var ret LandingPageLinkShape + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageCTLItemShape) GetLinkOk() (*LandingPageLinkShape, bool) { + if o == nil || o.Link == nil { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *LandingPageCTLItemShape) HasLink() bool { + if o != nil && o.Link != nil { + return true + } + + return false +} + +// SetLink gets a reference to the given LandingPageLinkShape and assigns it to the Link field. +func (o *LandingPageCTLItemShape) SetLink(v LandingPageLinkShape) { + o.Link = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *LandingPageCTLItemShape) GetTitle() string { + if o == nil || o.Title == nil { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageCTLItemShape) GetTitleOk() (*string, bool) { + if o == nil || o.Title == nil { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *LandingPageCTLItemShape) HasTitle() bool { + if o != nil && o.Title != nil { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *LandingPageCTLItemShape) SetTitle(v string) { + o.Title = &v +} + +func (o LandingPageCTLItemShape) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Link != nil { + toSerialize["link"] = o.Link + } + if o.Title != nil { + toSerialize["title"] = o.Title + } + return json.Marshal(toSerialize) +} + +type NullableLandingPageCTLItemShape struct { + value *LandingPageCTLItemShape + isSet bool +} + +func (v NullableLandingPageCTLItemShape) Get() *LandingPageCTLItemShape { + return v.value +} + +func (v *NullableLandingPageCTLItemShape) Set(val *LandingPageCTLItemShape) { + v.value = val + v.isSet = true +} + +func (v NullableLandingPageCTLItemShape) IsSet() bool { + return v.isSet +} + +func (v *NullableLandingPageCTLItemShape) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLandingPageCTLItemShape(val *LandingPageCTLItemShape) *NullableLandingPageCTLItemShape { + return &NullableLandingPageCTLItemShape{value: val, isSet: true} +} + +func (v NullableLandingPageCTLItemShape) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLandingPageCTLItemShape) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_estate_item.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_estate_item.go new file mode 100644 index 00000000..c682db06 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_estate_item.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LandingPageEstateItem struct for LandingPageEstateItem +type LandingPageEstateItem struct { + Count *int64 `json:"count,omitempty"` + Id *string `json:"id,omitempty"` + Shape *LandingPageLinkShape `json:"shape,omitempty"` +} + +// NewLandingPageEstateItem instantiates a new LandingPageEstateItem 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 NewLandingPageEstateItem() *LandingPageEstateItem { + this := LandingPageEstateItem{} + return &this +} + +// NewLandingPageEstateItemWithDefaults instantiates a new LandingPageEstateItem 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 NewLandingPageEstateItemWithDefaults() *LandingPageEstateItem { + this := LandingPageEstateItem{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *LandingPageEstateItem) GetCount() int64 { + if o == nil || o.Count == nil { + var ret int64 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageEstateItem) GetCountOk() (*int64, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *LandingPageEstateItem) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *LandingPageEstateItem) SetCount(v int64) { + o.Count = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *LandingPageEstateItem) GetId() string { + if o == nil || o.Id == nil { + 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 *LandingPageEstateItem) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LandingPageEstateItem) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *LandingPageEstateItem) SetId(v string) { + o.Id = &v +} + +// GetShape returns the Shape field value if set, zero value otherwise. +func (o *LandingPageEstateItem) GetShape() LandingPageLinkShape { + if o == nil || o.Shape == nil { + var ret LandingPageLinkShape + return ret + } + return *o.Shape +} + +// GetShapeOk returns a tuple with the Shape field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageEstateItem) GetShapeOk() (*LandingPageLinkShape, bool) { + if o == nil || o.Shape == nil { + return nil, false + } + return o.Shape, true +} + +// HasShape returns a boolean if a field has been set. +func (o *LandingPageEstateItem) HasShape() bool { + if o != nil && o.Shape != nil { + return true + } + + return false +} + +// SetShape gets a reference to the given LandingPageLinkShape and assigns it to the Shape field. +func (o *LandingPageEstateItem) SetShape(v LandingPageLinkShape) { + o.Shape = &v +} + +func (o LandingPageEstateItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Count != nil { + toSerialize["count"] = o.Count + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Shape != nil { + toSerialize["shape"] = o.Shape + } + return json.Marshal(toSerialize) +} + +type NullableLandingPageEstateItem struct { + value *LandingPageEstateItem + isSet bool +} + +func (v NullableLandingPageEstateItem) Get() *LandingPageEstateItem { + return v.value +} + +func (v *NullableLandingPageEstateItem) Set(val *LandingPageEstateItem) { + v.value = val + v.isSet = true +} + +func (v NullableLandingPageEstateItem) IsSet() bool { + return v.isSet +} + +func (v *NullableLandingPageEstateItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLandingPageEstateItem(val *LandingPageEstateItem) *NullableLandingPageEstateItem { + return &NullableLandingPageEstateItem{value: val, isSet: true} +} + +func (v NullableLandingPageEstateItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLandingPageEstateItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_link_shape.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_link_shape.go new file mode 100644 index 00000000..2742255f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_landing_page_link_shape.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// LandingPageLinkShape struct for LandingPageLinkShape +type LandingPageLinkShape struct { + Href *string `json:"href,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewLandingPageLinkShape instantiates a new LandingPageLinkShape 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 NewLandingPageLinkShape() *LandingPageLinkShape { + this := LandingPageLinkShape{} + return &this +} + +// NewLandingPageLinkShapeWithDefaults instantiates a new LandingPageLinkShape 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 NewLandingPageLinkShapeWithDefaults() *LandingPageLinkShape { + this := LandingPageLinkShape{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *LandingPageLinkShape) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageLinkShape) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *LandingPageLinkShape) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *LandingPageLinkShape) SetHref(v string) { + o.Href = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *LandingPageLinkShape) GetTitle() string { + if o == nil || o.Title == nil { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LandingPageLinkShape) GetTitleOk() (*string, bool) { + if o == nil || o.Title == nil { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *LandingPageLinkShape) HasTitle() bool { + if o != nil && o.Title != nil { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *LandingPageLinkShape) SetTitle(v string) { + o.Title = &v +} + +func (o LandingPageLinkShape) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Title != nil { + toSerialize["title"] = o.Title + } + return json.Marshal(toSerialize) +} + +type NullableLandingPageLinkShape struct { + value *LandingPageLinkShape + isSet bool +} + +func (v NullableLandingPageLinkShape) Get() *LandingPageLinkShape { + return v.value +} + +func (v *NullableLandingPageLinkShape) Set(val *LandingPageLinkShape) { + v.value = val + v.isSet = true +} + +func (v NullableLandingPageLinkShape) IsSet() bool { + return v.isSet +} + +func (v *NullableLandingPageLinkShape) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLandingPageLinkShape(val *LandingPageLinkShape) *NullableLandingPageLinkShape { + return &NullableLandingPageLinkShape{value: val, isSet: true} +} + +func (v NullableLandingPageLinkShape) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLandingPageLinkShape) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_list.go new file mode 100644 index 00000000..a8172d50 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_list.go @@ -0,0 +1,195 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` +} + +// NewList instantiates a new List 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 NewList(kind string, page int32, size int32, total int32) *List { + this := List{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value +func (o *List) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *List) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *List) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *List) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *List) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *List) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int32) { + o.Total = v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_metric.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_metric.go new file mode 100644 index 00000000..6d648e02 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_metric.go @@ -0,0 +1,332 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Metric struct for Metric +type Metric struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + HealthState *string `json:"health_state,omitempty"` + Metrics *string `json:"metrics,omitempty"` + QueryTimestamp *time.Time `json:"query_timestamp,omitempty"` +} + +// NewMetric instantiates a new Metric 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 NewMetric() *Metric { + this := Metric{} + return &this +} + +// NewMetricWithDefaults instantiates a new Metric 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 NewMetricWithDefaults() *Metric { + this := Metric{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Metric) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Metric) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Metric) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Metric) GetId() string { + if o == nil || o.Id == nil { + 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 *Metric) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Metric) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Metric) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Metric) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Metric) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Metric) SetKind(v string) { + o.Kind = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *Metric) GetExternalId() string { + if o == nil || o.ExternalId == nil { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetExternalIdOk() (*string, bool) { + if o == nil || o.ExternalId == nil { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *Metric) HasExternalId() bool { + if o != nil && o.ExternalId != nil { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *Metric) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetHealthState returns the HealthState field value if set, zero value otherwise. +func (o *Metric) GetHealthState() string { + if o == nil || o.HealthState == nil { + var ret string + return ret + } + return *o.HealthState +} + +// GetHealthStateOk returns a tuple with the HealthState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetHealthStateOk() (*string, bool) { + if o == nil || o.HealthState == nil { + return nil, false + } + return o.HealthState, true +} + +// HasHealthState returns a boolean if a field has been set. +func (o *Metric) HasHealthState() bool { + if o != nil && o.HealthState != nil { + return true + } + + return false +} + +// SetHealthState gets a reference to the given string and assigns it to the HealthState field. +func (o *Metric) SetHealthState(v string) { + o.HealthState = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *Metric) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *Metric) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *Metric) SetMetrics(v string) { + o.Metrics = &v +} + +// GetQueryTimestamp returns the QueryTimestamp field value if set, zero value otherwise. +func (o *Metric) GetQueryTimestamp() time.Time { + if o == nil || o.QueryTimestamp == nil { + var ret time.Time + return ret + } + return *o.QueryTimestamp +} + +// GetQueryTimestampOk returns a tuple with the QueryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Metric) GetQueryTimestampOk() (*time.Time, bool) { + if o == nil || o.QueryTimestamp == nil { + return nil, false + } + return o.QueryTimestamp, true +} + +// HasQueryTimestamp returns a boolean if a field has been set. +func (o *Metric) HasQueryTimestamp() bool { + if o != nil && o.QueryTimestamp != nil { + return true + } + + return false +} + +// SetQueryTimestamp gets a reference to the given time.Time and assigns it to the QueryTimestamp field. +func (o *Metric) SetQueryTimestamp(v time.Time) { + o.QueryTimestamp = &v +} + +func (o Metric) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.ExternalId != nil { + toSerialize["external_id"] = o.ExternalId + } + if o.HealthState != nil { + toSerialize["health_state"] = o.HealthState + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.QueryTimestamp != nil { + toSerialize["query_timestamp"] = o.QueryTimestamp + } + return json.Marshal(toSerialize) +} + +type NullableMetric struct { + value *Metric + isSet bool +} + +func (v NullableMetric) Get() *Metric { + return v.value +} + +func (v *NullableMetric) Set(val *Metric) { + v.value = val + v.isSet = true +} + +func (v NullableMetric) IsSet() bool { + return v.isSet +} + +func (v *NullableMetric) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetric(val *Metric) *NullableMetric { + return &NullableMetric{value: val, isSet: true} +} + +func (v NullableMetric) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetric) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_metric_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_metric_all_of.go new file mode 100644 index 00000000..9519cb12 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_metric_all_of.go @@ -0,0 +1,260 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// MetricAllOf struct for MetricAllOf +type MetricAllOf struct { + ExternalId *string `json:"external_id,omitempty"` + HealthState *string `json:"health_state,omitempty"` + Id *string `json:"id,omitempty"` + Metrics *string `json:"metrics,omitempty"` + QueryTimestamp *time.Time `json:"query_timestamp,omitempty"` +} + +// NewMetricAllOf instantiates a new MetricAllOf 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 NewMetricAllOf() *MetricAllOf { + this := MetricAllOf{} + return &this +} + +// NewMetricAllOfWithDefaults instantiates a new MetricAllOf 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 NewMetricAllOfWithDefaults() *MetricAllOf { + this := MetricAllOf{} + return &this +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *MetricAllOf) GetExternalId() string { + if o == nil || o.ExternalId == nil { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricAllOf) GetExternalIdOk() (*string, bool) { + if o == nil || o.ExternalId == nil { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *MetricAllOf) HasExternalId() bool { + if o != nil && o.ExternalId != nil { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *MetricAllOf) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetHealthState returns the HealthState field value if set, zero value otherwise. +func (o *MetricAllOf) GetHealthState() string { + if o == nil || o.HealthState == nil { + var ret string + return ret + } + return *o.HealthState +} + +// GetHealthStateOk returns a tuple with the HealthState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricAllOf) GetHealthStateOk() (*string, bool) { + if o == nil || o.HealthState == nil { + return nil, false + } + return o.HealthState, true +} + +// HasHealthState returns a boolean if a field has been set. +func (o *MetricAllOf) HasHealthState() bool { + if o != nil && o.HealthState != nil { + return true + } + + return false +} + +// SetHealthState gets a reference to the given string and assigns it to the HealthState field. +func (o *MetricAllOf) SetHealthState(v string) { + o.HealthState = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetricAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *MetricAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetricAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *MetricAllOf) SetId(v string) { + o.Id = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *MetricAllOf) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricAllOf) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *MetricAllOf) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *MetricAllOf) SetMetrics(v string) { + o.Metrics = &v +} + +// GetQueryTimestamp returns the QueryTimestamp field value if set, zero value otherwise. +func (o *MetricAllOf) GetQueryTimestamp() time.Time { + if o == nil || o.QueryTimestamp == nil { + var ret time.Time + return ret + } + return *o.QueryTimestamp +} + +// GetQueryTimestampOk returns a tuple with the QueryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricAllOf) GetQueryTimestampOk() (*time.Time, bool) { + if o == nil || o.QueryTimestamp == nil { + return nil, false + } + return o.QueryTimestamp, true +} + +// HasQueryTimestamp returns a boolean if a field has been set. +func (o *MetricAllOf) HasQueryTimestamp() bool { + if o != nil && o.QueryTimestamp != nil { + return true + } + + return false +} + +// SetQueryTimestamp gets a reference to the given time.Time and assigns it to the QueryTimestamp field. +func (o *MetricAllOf) SetQueryTimestamp(v time.Time) { + o.QueryTimestamp = &v +} + +func (o MetricAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ExternalId != nil { + toSerialize["external_id"] = o.ExternalId + } + if o.HealthState != nil { + toSerialize["health_state"] = o.HealthState + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.QueryTimestamp != nil { + toSerialize["query_timestamp"] = o.QueryTimestamp + } + return json.Marshal(toSerialize) +} + +type NullableMetricAllOf struct { + value *MetricAllOf + isSet bool +} + +func (v NullableMetricAllOf) Get() *MetricAllOf { + return v.value +} + +func (v *NullableMetricAllOf) Set(val *MetricAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetricAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricAllOf(val *MetricAllOf) *NullableMetricAllOf { + return &NullableMetricAllOf{value: val, isSet: true} +} + +func (v NullableMetricAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list.go new file mode 100644 index 00000000..fe1b1005 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// MetricsList struct for MetricsList +type MetricsList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Metric `json:"items"` +} + +// NewMetricsList instantiates a new MetricsList 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 NewMetricsList(kind string, page int32, size int32, total int32, items []Metric) *MetricsList { + this := MetricsList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewMetricsListWithDefaults instantiates a new MetricsList 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 NewMetricsListWithDefaults() *MetricsList { + this := MetricsList{} + return &this +} + +// GetKind returns the Kind field value +func (o *MetricsList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *MetricsList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *MetricsList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *MetricsList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *MetricsList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *MetricsList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *MetricsList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *MetricsList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *MetricsList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *MetricsList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *MetricsList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *MetricsList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *MetricsList) GetItems() []Metric { + if o == nil { + var ret []Metric + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *MetricsList) GetItemsOk() (*[]Metric, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *MetricsList) SetItems(v []Metric) { + o.Items = v +} + +func (o MetricsList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsList struct { + value *MetricsList + isSet bool +} + +func (v NullableMetricsList) Get() *MetricsList { + return v.value +} + +func (v *NullableMetricsList) Set(val *MetricsList) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsList) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsList(val *MetricsList) *NullableMetricsList { + return &NullableMetricsList{value: val, isSet: true} +} + +func (v NullableMetricsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list_all_of.go new file mode 100644 index 00000000..bc824a16 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_metrics_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// MetricsListAllOf struct for MetricsListAllOf +type MetricsListAllOf struct { + Items *[]Metric `json:"items,omitempty"` +} + +// NewMetricsListAllOf instantiates a new MetricsListAllOf 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 NewMetricsListAllOf() *MetricsListAllOf { + this := MetricsListAllOf{} + return &this +} + +// NewMetricsListAllOfWithDefaults instantiates a new MetricsListAllOf 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 NewMetricsListAllOfWithDefaults() *MetricsListAllOf { + this := MetricsListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MetricsListAllOf) GetItems() []Metric { + if o == nil || o.Items == nil { + var ret []Metric + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsListAllOf) GetItemsOk() (*[]Metric, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MetricsListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Metric and assigns it to the Items field. +func (o *MetricsListAllOf) SetItems(v []Metric) { + o.Items = &v +} + +func (o MetricsListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsListAllOf struct { + value *MetricsListAllOf + isSet bool +} + +func (v NullableMetricsListAllOf) Get() *MetricsListAllOf { + return v.value +} + +func (v *NullableMetricsListAllOf) Set(val *MetricsListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsListAllOf(val *MetricsListAllOf) *NullableMetricsListAllOf { + return &NullableMetricsListAllOf{value: val, isSet: true} +} + +func (v NullableMetricsListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_contact_create_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_contact_create_request.go new file mode 100644 index 00000000..9e933405 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_contact_create_request.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// NotificationContactCreateRequest struct for NotificationContactCreateRequest +type NotificationContactCreateRequest struct { + AccountIdentifier *string `json:"account_identifier,omitempty"` +} + +// NewNotificationContactCreateRequest instantiates a new NotificationContactCreateRequest 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 NewNotificationContactCreateRequest() *NotificationContactCreateRequest { + this := NotificationContactCreateRequest{} + return &this +} + +// NewNotificationContactCreateRequestWithDefaults instantiates a new NotificationContactCreateRequest 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 NewNotificationContactCreateRequestWithDefaults() *NotificationContactCreateRequest { + this := NotificationContactCreateRequest{} + return &this +} + +// GetAccountIdentifier returns the AccountIdentifier field value if set, zero value otherwise. +func (o *NotificationContactCreateRequest) GetAccountIdentifier() string { + if o == nil || o.AccountIdentifier == nil { + var ret string + return ret + } + return *o.AccountIdentifier +} + +// GetAccountIdentifierOk returns a tuple with the AccountIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationContactCreateRequest) GetAccountIdentifierOk() (*string, bool) { + if o == nil || o.AccountIdentifier == nil { + return nil, false + } + return o.AccountIdentifier, true +} + +// HasAccountIdentifier returns a boolean if a field has been set. +func (o *NotificationContactCreateRequest) HasAccountIdentifier() bool { + if o != nil && o.AccountIdentifier != nil { + return true + } + + return false +} + +// SetAccountIdentifier gets a reference to the given string and assigns it to the AccountIdentifier field. +func (o *NotificationContactCreateRequest) SetAccountIdentifier(v string) { + o.AccountIdentifier = &v +} + +func (o NotificationContactCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountIdentifier != nil { + toSerialize["account_identifier"] = o.AccountIdentifier + } + return json.Marshal(toSerialize) +} + +type NullableNotificationContactCreateRequest struct { + value *NotificationContactCreateRequest + isSet bool +} + +func (v NullableNotificationContactCreateRequest) Get() *NotificationContactCreateRequest { + return v.value +} + +func (v *NullableNotificationContactCreateRequest) Set(val *NotificationContactCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationContactCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationContactCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationContactCreateRequest(val *NotificationContactCreateRequest) *NullableNotificationContactCreateRequest { + return &NullableNotificationContactCreateRequest{value: val, isSet: true} +} + +func (v NullableNotificationContactCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationContactCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_request.go new file mode 100644 index 00000000..37cbcea7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_notification_request.go @@ -0,0 +1,396 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// NotificationRequest struct for NotificationRequest +type NotificationRequest struct { + BccAddress *string `json:"bcc_address,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + IncludeRedHatAssociates *bool `json:"include_red_hat_associates,omitempty"` + InternalOnly *bool `json:"internal_only,omitempty"` + Subject *string `json:"subject,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + TemplateName string `json:"template_name"` + TemplateParameters *[]TemplateParameter `json:"template_parameters,omitempty"` +} + +// NewNotificationRequest instantiates a new NotificationRequest 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 NewNotificationRequest(templateName string) *NotificationRequest { + this := NotificationRequest{} + this.TemplateName = templateName + return &this +} + +// NewNotificationRequestWithDefaults instantiates a new NotificationRequest 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 NewNotificationRequestWithDefaults() *NotificationRequest { + this := NotificationRequest{} + return &this +} + +// GetBccAddress returns the BccAddress field value if set, zero value otherwise. +func (o *NotificationRequest) GetBccAddress() string { + if o == nil || o.BccAddress == nil { + var ret string + return ret + } + return *o.BccAddress +} + +// GetBccAddressOk returns a tuple with the BccAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetBccAddressOk() (*string, bool) { + if o == nil || o.BccAddress == nil { + return nil, false + } + return o.BccAddress, true +} + +// HasBccAddress returns a boolean if a field has been set. +func (o *NotificationRequest) HasBccAddress() bool { + if o != nil && o.BccAddress != nil { + return true + } + + return false +} + +// SetBccAddress gets a reference to the given string and assigns it to the BccAddress field. +func (o *NotificationRequest) SetBccAddress(v string) { + o.BccAddress = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *NotificationRequest) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *NotificationRequest) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *NotificationRequest) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *NotificationRequest) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *NotificationRequest) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *NotificationRequest) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetIncludeRedHatAssociates returns the IncludeRedHatAssociates field value if set, zero value otherwise. +func (o *NotificationRequest) GetIncludeRedHatAssociates() bool { + if o == nil || o.IncludeRedHatAssociates == nil { + var ret bool + return ret + } + return *o.IncludeRedHatAssociates +} + +// GetIncludeRedHatAssociatesOk returns a tuple with the IncludeRedHatAssociates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetIncludeRedHatAssociatesOk() (*bool, bool) { + if o == nil || o.IncludeRedHatAssociates == nil { + return nil, false + } + return o.IncludeRedHatAssociates, true +} + +// HasIncludeRedHatAssociates returns a boolean if a field has been set. +func (o *NotificationRequest) HasIncludeRedHatAssociates() bool { + if o != nil && o.IncludeRedHatAssociates != nil { + return true + } + + return false +} + +// SetIncludeRedHatAssociates gets a reference to the given bool and assigns it to the IncludeRedHatAssociates field. +func (o *NotificationRequest) SetIncludeRedHatAssociates(v bool) { + o.IncludeRedHatAssociates = &v +} + +// GetInternalOnly returns the InternalOnly field value if set, zero value otherwise. +func (o *NotificationRequest) GetInternalOnly() bool { + if o == nil || o.InternalOnly == nil { + var ret bool + return ret + } + return *o.InternalOnly +} + +// GetInternalOnlyOk returns a tuple with the InternalOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetInternalOnlyOk() (*bool, bool) { + if o == nil || o.InternalOnly == nil { + return nil, false + } + return o.InternalOnly, true +} + +// HasInternalOnly returns a boolean if a field has been set. +func (o *NotificationRequest) HasInternalOnly() bool { + if o != nil && o.InternalOnly != nil { + return true + } + + return false +} + +// SetInternalOnly gets a reference to the given bool and assigns it to the InternalOnly field. +func (o *NotificationRequest) SetInternalOnly(v bool) { + o.InternalOnly = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *NotificationRequest) GetSubject() string { + if o == nil || o.Subject == nil { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetSubjectOk() (*string, bool) { + if o == nil || o.Subject == nil { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *NotificationRequest) HasSubject() bool { + if o != nil && o.Subject != nil { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *NotificationRequest) SetSubject(v string) { + o.Subject = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *NotificationRequest) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *NotificationRequest) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *NotificationRequest) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetTemplateName returns the TemplateName field value +func (o *NotificationRequest) GetTemplateName() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateName +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetTemplateNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateName, true +} + +// SetTemplateName sets field value +func (o *NotificationRequest) SetTemplateName(v string) { + o.TemplateName = v +} + +// GetTemplateParameters returns the TemplateParameters field value if set, zero value otherwise. +func (o *NotificationRequest) GetTemplateParameters() []TemplateParameter { + if o == nil || o.TemplateParameters == nil { + var ret []TemplateParameter + return ret + } + return *o.TemplateParameters +} + +// GetTemplateParametersOk returns a tuple with the TemplateParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetTemplateParametersOk() (*[]TemplateParameter, bool) { + if o == nil || o.TemplateParameters == nil { + return nil, false + } + return o.TemplateParameters, true +} + +// HasTemplateParameters returns a boolean if a field has been set. +func (o *NotificationRequest) HasTemplateParameters() bool { + if o != nil && o.TemplateParameters != nil { + return true + } + + return false +} + +// SetTemplateParameters gets a reference to the given []TemplateParameter and assigns it to the TemplateParameters field. +func (o *NotificationRequest) SetTemplateParameters(v []TemplateParameter) { + o.TemplateParameters = &v +} + +func (o NotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BccAddress != nil { + toSerialize["bcc_address"] = o.BccAddress + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.IncludeRedHatAssociates != nil { + toSerialize["include_red_hat_associates"] = o.IncludeRedHatAssociates + } + if o.InternalOnly != nil { + toSerialize["internal_only"] = o.InternalOnly + } + if o.Subject != nil { + toSerialize["subject"] = o.Subject + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if true { + toSerialize["template_name"] = o.TemplateName + } + if o.TemplateParameters != nil { + toSerialize["template_parameters"] = o.TemplateParameters + } + return json.Marshal(toSerialize) +} + +type NullableNotificationRequest struct { + value *NotificationRequest + isSet bool +} + +func (v NullableNotificationRequest) Get() *NotificationRequest { + return v.value +} + +func (v *NullableNotificationRequest) Set(val *NotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationRequest(val *NotificationRequest) *NullableNotificationRequest { + return &NullableNotificationRequest{value: val, isSet: true} +} + +func (v NullableNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_object_reference.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_object_reference.go new file mode 100644 index 00000000..fb54eec6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_object_reference.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference() *ObjectReference { + this := ObjectReference{} + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ObjectReference) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ObjectReference) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ObjectReference) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ObjectReference) GetId() string { + if o == nil || o.Id == nil { + 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ObjectReference) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ObjectReference) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ObjectReference) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ObjectReference) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ObjectReference) SetKind(v string) { + o.Kind = &v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_one_metric.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_one_metric.go new file mode 100644 index 00000000..46c0b630 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_one_metric.go @@ -0,0 +1,891 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// OneMetric struct for OneMetric +type OneMetric struct { + Arch *string `json:"arch,omitempty"` + ChannelInfo *string `json:"channel_info,omitempty"` + CloudProvider string `json:"cloud_provider"` + ClusterType string `json:"cluster_type"` + ComputeNodesCpu ClusterResource `json:"compute_nodes_cpu"` + ComputeNodesMemory ClusterResource `json:"compute_nodes_memory"` + ComputeNodesSockets ClusterResource `json:"compute_nodes_sockets"` + ConsoleUrl string `json:"console_url"` + Cpu ClusterResource `json:"cpu"` + CriticalAlertsFiring float64 `json:"critical_alerts_firing"` + HealthState *string `json:"health_state,omitempty"` + Memory ClusterResource `json:"memory"` + Nodes ClusterMetricsNodes `json:"nodes"` + NonVirtNodes float64 `json:"non_virt_nodes"` + OpenshiftVersion string `json:"openshift_version"` + OperatingSystem string `json:"operating_system"` + OperatorsConditionFailing float64 `json:"operators_condition_failing"` + QueryTimestamp *time.Time `json:"query_timestamp,omitempty"` + Region string `json:"region"` + Sockets ClusterResource `json:"sockets"` + State string `json:"state"` + StateDescription string `json:"state_description"` + Storage ClusterResource `json:"storage"` + SubscriptionCpuTotal float64 `json:"subscription_cpu_total"` + SubscriptionObligationExists float64 `json:"subscription_obligation_exists"` + SubscriptionSocketTotal float64 `json:"subscription_socket_total"` + Upgrade ClusterUpgrade `json:"upgrade"` +} + +// NewOneMetric instantiates a new OneMetric 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 NewOneMetric(cloudProvider string, clusterType string, computeNodesCpu ClusterResource, computeNodesMemory ClusterResource, computeNodesSockets ClusterResource, consoleUrl string, cpu ClusterResource, criticalAlertsFiring float64, memory ClusterResource, nodes ClusterMetricsNodes, nonVirtNodes float64, openshiftVersion string, operatingSystem string, operatorsConditionFailing float64, region string, sockets ClusterResource, state string, stateDescription string, storage ClusterResource, subscriptionCpuTotal float64, subscriptionObligationExists float64, subscriptionSocketTotal float64, upgrade ClusterUpgrade) *OneMetric { + this := OneMetric{} + this.CloudProvider = cloudProvider + this.ClusterType = clusterType + this.ComputeNodesCpu = computeNodesCpu + this.ComputeNodesMemory = computeNodesMemory + this.ComputeNodesSockets = computeNodesSockets + this.ConsoleUrl = consoleUrl + this.Cpu = cpu + this.CriticalAlertsFiring = criticalAlertsFiring + this.Memory = memory + this.Nodes = nodes + this.NonVirtNodes = nonVirtNodes + this.OpenshiftVersion = openshiftVersion + this.OperatingSystem = operatingSystem + this.OperatorsConditionFailing = operatorsConditionFailing + this.Region = region + this.Sockets = sockets + this.State = state + this.StateDescription = stateDescription + this.Storage = storage + this.SubscriptionCpuTotal = subscriptionCpuTotal + this.SubscriptionObligationExists = subscriptionObligationExists + this.SubscriptionSocketTotal = subscriptionSocketTotal + this.Upgrade = upgrade + return &this +} + +// NewOneMetricWithDefaults instantiates a new OneMetric 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 NewOneMetricWithDefaults() *OneMetric { + this := OneMetric{} + return &this +} + +// GetArch returns the Arch field value if set, zero value otherwise. +func (o *OneMetric) GetArch() string { + if o == nil || o.Arch == nil { + var ret string + return ret + } + return *o.Arch +} + +// GetArchOk returns a tuple with the Arch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OneMetric) GetArchOk() (*string, bool) { + if o == nil || o.Arch == nil { + return nil, false + } + return o.Arch, true +} + +// HasArch returns a boolean if a field has been set. +func (o *OneMetric) HasArch() bool { + if o != nil && o.Arch != nil { + return true + } + + return false +} + +// SetArch gets a reference to the given string and assigns it to the Arch field. +func (o *OneMetric) SetArch(v string) { + o.Arch = &v +} + +// GetChannelInfo returns the ChannelInfo field value if set, zero value otherwise. +func (o *OneMetric) GetChannelInfo() string { + if o == nil || o.ChannelInfo == nil { + var ret string + return ret + } + return *o.ChannelInfo +} + +// GetChannelInfoOk returns a tuple with the ChannelInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OneMetric) GetChannelInfoOk() (*string, bool) { + if o == nil || o.ChannelInfo == nil { + return nil, false + } + return o.ChannelInfo, true +} + +// HasChannelInfo returns a boolean if a field has been set. +func (o *OneMetric) HasChannelInfo() bool { + if o != nil && o.ChannelInfo != nil { + return true + } + + return false +} + +// SetChannelInfo gets a reference to the given string and assigns it to the ChannelInfo field. +func (o *OneMetric) SetChannelInfo(v string) { + o.ChannelInfo = &v +} + +// GetCloudProvider returns the CloudProvider field value +func (o *OneMetric) GetCloudProvider() string { + if o == nil { + var ret string + return ret + } + + return o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetCloudProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudProvider, true +} + +// SetCloudProvider sets field value +func (o *OneMetric) SetCloudProvider(v string) { + o.CloudProvider = v +} + +// GetClusterType returns the ClusterType field value +func (o *OneMetric) GetClusterType() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterType +} + +// GetClusterTypeOk returns a tuple with the ClusterType field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetClusterTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterType, true +} + +// SetClusterType sets field value +func (o *OneMetric) SetClusterType(v string) { + o.ClusterType = v +} + +// GetComputeNodesCpu returns the ComputeNodesCpu field value +func (o *OneMetric) GetComputeNodesCpu() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.ComputeNodesCpu +} + +// GetComputeNodesCpuOk returns a tuple with the ComputeNodesCpu field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetComputeNodesCpuOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.ComputeNodesCpu, true +} + +// SetComputeNodesCpu sets field value +func (o *OneMetric) SetComputeNodesCpu(v ClusterResource) { + o.ComputeNodesCpu = v +} + +// GetComputeNodesMemory returns the ComputeNodesMemory field value +func (o *OneMetric) GetComputeNodesMemory() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.ComputeNodesMemory +} + +// GetComputeNodesMemoryOk returns a tuple with the ComputeNodesMemory field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetComputeNodesMemoryOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.ComputeNodesMemory, true +} + +// SetComputeNodesMemory sets field value +func (o *OneMetric) SetComputeNodesMemory(v ClusterResource) { + o.ComputeNodesMemory = v +} + +// GetComputeNodesSockets returns the ComputeNodesSockets field value +func (o *OneMetric) GetComputeNodesSockets() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.ComputeNodesSockets +} + +// GetComputeNodesSocketsOk returns a tuple with the ComputeNodesSockets field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetComputeNodesSocketsOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.ComputeNodesSockets, true +} + +// SetComputeNodesSockets sets field value +func (o *OneMetric) SetComputeNodesSockets(v ClusterResource) { + o.ComputeNodesSockets = v +} + +// GetConsoleUrl returns the ConsoleUrl field value +func (o *OneMetric) GetConsoleUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetConsoleUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleUrl, true +} + +// SetConsoleUrl sets field value +func (o *OneMetric) SetConsoleUrl(v string) { + o.ConsoleUrl = v +} + +// GetCpu returns the Cpu field value +func (o *OneMetric) GetCpu() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetCpuOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *OneMetric) SetCpu(v ClusterResource) { + o.Cpu = v +} + +// GetCriticalAlertsFiring returns the CriticalAlertsFiring field value +func (o *OneMetric) GetCriticalAlertsFiring() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.CriticalAlertsFiring +} + +// GetCriticalAlertsFiringOk returns a tuple with the CriticalAlertsFiring field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetCriticalAlertsFiringOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.CriticalAlertsFiring, true +} + +// SetCriticalAlertsFiring sets field value +func (o *OneMetric) SetCriticalAlertsFiring(v float64) { + o.CriticalAlertsFiring = v +} + +// GetHealthState returns the HealthState field value if set, zero value otherwise. +func (o *OneMetric) GetHealthState() string { + if o == nil || o.HealthState == nil { + var ret string + return ret + } + return *o.HealthState +} + +// GetHealthStateOk returns a tuple with the HealthState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OneMetric) GetHealthStateOk() (*string, bool) { + if o == nil || o.HealthState == nil { + return nil, false + } + return o.HealthState, true +} + +// HasHealthState returns a boolean if a field has been set. +func (o *OneMetric) HasHealthState() bool { + if o != nil && o.HealthState != nil { + return true + } + + return false +} + +// SetHealthState gets a reference to the given string and assigns it to the HealthState field. +func (o *OneMetric) SetHealthState(v string) { + o.HealthState = &v +} + +// GetMemory returns the Memory field value +func (o *OneMetric) GetMemory() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetMemoryOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.Memory, true +} + +// SetMemory sets field value +func (o *OneMetric) SetMemory(v ClusterResource) { + o.Memory = v +} + +// GetNodes returns the Nodes field value +func (o *OneMetric) GetNodes() ClusterMetricsNodes { + if o == nil { + var ret ClusterMetricsNodes + return ret + } + + return o.Nodes +} + +// GetNodesOk returns a tuple with the Nodes field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetNodesOk() (*ClusterMetricsNodes, bool) { + if o == nil { + return nil, false + } + return &o.Nodes, true +} + +// SetNodes sets field value +func (o *OneMetric) SetNodes(v ClusterMetricsNodes) { + o.Nodes = v +} + +// GetNonVirtNodes returns the NonVirtNodes field value +func (o *OneMetric) GetNonVirtNodes() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.NonVirtNodes +} + +// GetNonVirtNodesOk returns a tuple with the NonVirtNodes field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetNonVirtNodesOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.NonVirtNodes, true +} + +// SetNonVirtNodes sets field value +func (o *OneMetric) SetNonVirtNodes(v float64) { + o.NonVirtNodes = v +} + +// GetOpenshiftVersion returns the OpenshiftVersion field value +func (o *OneMetric) GetOpenshiftVersion() string { + if o == nil { + var ret string + return ret + } + + return o.OpenshiftVersion +} + +// GetOpenshiftVersionOk returns a tuple with the OpenshiftVersion field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetOpenshiftVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OpenshiftVersion, true +} + +// SetOpenshiftVersion sets field value +func (o *OneMetric) SetOpenshiftVersion(v string) { + o.OpenshiftVersion = v +} + +// GetOperatingSystem returns the OperatingSystem field value +func (o *OneMetric) GetOperatingSystem() string { + if o == nil { + var ret string + return ret + } + + return o.OperatingSystem +} + +// GetOperatingSystemOk returns a tuple with the OperatingSystem field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetOperatingSystemOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OperatingSystem, true +} + +// SetOperatingSystem sets field value +func (o *OneMetric) SetOperatingSystem(v string) { + o.OperatingSystem = v +} + +// GetOperatorsConditionFailing returns the OperatorsConditionFailing field value +func (o *OneMetric) GetOperatorsConditionFailing() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.OperatorsConditionFailing +} + +// GetOperatorsConditionFailingOk returns a tuple with the OperatorsConditionFailing field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetOperatorsConditionFailingOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.OperatorsConditionFailing, true +} + +// SetOperatorsConditionFailing sets field value +func (o *OneMetric) SetOperatorsConditionFailing(v float64) { + o.OperatorsConditionFailing = v +} + +// GetQueryTimestamp returns the QueryTimestamp field value if set, zero value otherwise. +func (o *OneMetric) GetQueryTimestamp() time.Time { + if o == nil || o.QueryTimestamp == nil { + var ret time.Time + return ret + } + return *o.QueryTimestamp +} + +// GetQueryTimestampOk returns a tuple with the QueryTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OneMetric) GetQueryTimestampOk() (*time.Time, bool) { + if o == nil || o.QueryTimestamp == nil { + return nil, false + } + return o.QueryTimestamp, true +} + +// HasQueryTimestamp returns a boolean if a field has been set. +func (o *OneMetric) HasQueryTimestamp() bool { + if o != nil && o.QueryTimestamp != nil { + return true + } + + return false +} + +// SetQueryTimestamp gets a reference to the given time.Time and assigns it to the QueryTimestamp field. +func (o *OneMetric) SetQueryTimestamp(v time.Time) { + o.QueryTimestamp = &v +} + +// GetRegion returns the Region field value +func (o *OneMetric) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *OneMetric) SetRegion(v string) { + o.Region = v +} + +// GetSockets returns the Sockets field value +func (o *OneMetric) GetSockets() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.Sockets +} + +// GetSocketsOk returns a tuple with the Sockets field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetSocketsOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.Sockets, true +} + +// SetSockets sets field value +func (o *OneMetric) SetSockets(v ClusterResource) { + o.Sockets = v +} + +// GetState returns the State field value +func (o *OneMetric) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *OneMetric) SetState(v string) { + o.State = v +} + +// GetStateDescription returns the StateDescription field value +func (o *OneMetric) GetStateDescription() string { + if o == nil { + var ret string + return ret + } + + return o.StateDescription +} + +// GetStateDescriptionOk returns a tuple with the StateDescription field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetStateDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StateDescription, true +} + +// SetStateDescription sets field value +func (o *OneMetric) SetStateDescription(v string) { + o.StateDescription = v +} + +// GetStorage returns the Storage field value +func (o *OneMetric) GetStorage() ClusterResource { + if o == nil { + var ret ClusterResource + return ret + } + + return o.Storage +} + +// GetStorageOk returns a tuple with the Storage field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetStorageOk() (*ClusterResource, bool) { + if o == nil { + return nil, false + } + return &o.Storage, true +} + +// SetStorage sets field value +func (o *OneMetric) SetStorage(v ClusterResource) { + o.Storage = v +} + +// GetSubscriptionCpuTotal returns the SubscriptionCpuTotal field value +func (o *OneMetric) GetSubscriptionCpuTotal() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.SubscriptionCpuTotal +} + +// GetSubscriptionCpuTotalOk returns a tuple with the SubscriptionCpuTotal field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetSubscriptionCpuTotalOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionCpuTotal, true +} + +// SetSubscriptionCpuTotal sets field value +func (o *OneMetric) SetSubscriptionCpuTotal(v float64) { + o.SubscriptionCpuTotal = v +} + +// GetSubscriptionObligationExists returns the SubscriptionObligationExists field value +func (o *OneMetric) GetSubscriptionObligationExists() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.SubscriptionObligationExists +} + +// GetSubscriptionObligationExistsOk returns a tuple with the SubscriptionObligationExists field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetSubscriptionObligationExistsOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionObligationExists, true +} + +// SetSubscriptionObligationExists sets field value +func (o *OneMetric) SetSubscriptionObligationExists(v float64) { + o.SubscriptionObligationExists = v +} + +// GetSubscriptionSocketTotal returns the SubscriptionSocketTotal field value +func (o *OneMetric) GetSubscriptionSocketTotal() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.SubscriptionSocketTotal +} + +// GetSubscriptionSocketTotalOk returns a tuple with the SubscriptionSocketTotal field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetSubscriptionSocketTotalOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionSocketTotal, true +} + +// SetSubscriptionSocketTotal sets field value +func (o *OneMetric) SetSubscriptionSocketTotal(v float64) { + o.SubscriptionSocketTotal = v +} + +// GetUpgrade returns the Upgrade field value +func (o *OneMetric) GetUpgrade() ClusterUpgrade { + if o == nil { + var ret ClusterUpgrade + return ret + } + + return o.Upgrade +} + +// GetUpgradeOk returns a tuple with the Upgrade field value +// and a boolean to check if the value has been set. +func (o *OneMetric) GetUpgradeOk() (*ClusterUpgrade, bool) { + if o == nil { + return nil, false + } + return &o.Upgrade, true +} + +// SetUpgrade sets field value +func (o *OneMetric) SetUpgrade(v ClusterUpgrade) { + o.Upgrade = v +} + +func (o OneMetric) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Arch != nil { + toSerialize["arch"] = o.Arch + } + if o.ChannelInfo != nil { + toSerialize["channel_info"] = o.ChannelInfo + } + if true { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["cluster_type"] = o.ClusterType + } + if true { + toSerialize["compute_nodes_cpu"] = o.ComputeNodesCpu + } + if true { + toSerialize["compute_nodes_memory"] = o.ComputeNodesMemory + } + if true { + toSerialize["compute_nodes_sockets"] = o.ComputeNodesSockets + } + if true { + toSerialize["console_url"] = o.ConsoleUrl + } + if true { + toSerialize["cpu"] = o.Cpu + } + if true { + toSerialize["critical_alerts_firing"] = o.CriticalAlertsFiring + } + if o.HealthState != nil { + toSerialize["health_state"] = o.HealthState + } + if true { + toSerialize["memory"] = o.Memory + } + if true { + toSerialize["nodes"] = o.Nodes + } + if true { + toSerialize["non_virt_nodes"] = o.NonVirtNodes + } + if true { + toSerialize["openshift_version"] = o.OpenshiftVersion + } + if true { + toSerialize["operating_system"] = o.OperatingSystem + } + if true { + toSerialize["operators_condition_failing"] = o.OperatorsConditionFailing + } + if o.QueryTimestamp != nil { + toSerialize["query_timestamp"] = o.QueryTimestamp + } + if true { + toSerialize["region"] = o.Region + } + if true { + toSerialize["sockets"] = o.Sockets + } + if true { + toSerialize["state"] = o.State + } + if true { + toSerialize["state_description"] = o.StateDescription + } + if true { + toSerialize["storage"] = o.Storage + } + if true { + toSerialize["subscription_cpu_total"] = o.SubscriptionCpuTotal + } + if true { + toSerialize["subscription_obligation_exists"] = o.SubscriptionObligationExists + } + if true { + toSerialize["subscription_socket_total"] = o.SubscriptionSocketTotal + } + if true { + toSerialize["upgrade"] = o.Upgrade + } + return json.Marshal(toSerialize) +} + +type NullableOneMetric struct { + value *OneMetric + isSet bool +} + +func (v NullableOneMetric) Get() *OneMetric { + return v.value +} + +func (v *NullableOneMetric) Set(val *OneMetric) { + v.value = val + v.isSet = true +} + +func (v NullableOneMetric) IsSet() bool { + return v.isSet +} + +func (v *NullableOneMetric) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOneMetric(val *OneMetric) *NullableOneMetric { + return &NullableOneMetric{value: val, isSet: true} +} + +func (v NullableOneMetric) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOneMetric) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_organization.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization.go new file mode 100644 index 00000000..8bbdf5a6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization.go @@ -0,0 +1,440 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Organization struct for Organization +type Organization struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + EbsAccountId *string `json:"ebs_account_id,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewOrganization instantiates a new Organization 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 NewOrganization() *Organization { + this := Organization{} + return &this +} + +// NewOrganizationWithDefaults instantiates a new Organization 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 NewOrganizationWithDefaults() *Organization { + this := Organization{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Organization) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Organization) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Organization) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Organization) GetId() string { + if o == nil || o.Id == nil { + 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 *Organization) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Organization) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Organization) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Organization) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Organization) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Organization) SetKind(v string) { + o.Kind = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *Organization) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *Organization) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *Organization) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Organization) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Organization) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Organization) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetEbsAccountId returns the EbsAccountId field value if set, zero value otherwise. +func (o *Organization) GetEbsAccountId() string { + if o == nil || o.EbsAccountId == nil { + var ret string + return ret + } + return *o.EbsAccountId +} + +// GetEbsAccountIdOk returns a tuple with the EbsAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetEbsAccountIdOk() (*string, bool) { + if o == nil || o.EbsAccountId == nil { + return nil, false + } + return o.EbsAccountId, true +} + +// HasEbsAccountId returns a boolean if a field has been set. +func (o *Organization) HasEbsAccountId() bool { + if o != nil && o.EbsAccountId != nil { + return true + } + + return false +} + +// SetEbsAccountId gets a reference to the given string and assigns it to the EbsAccountId field. +func (o *Organization) SetEbsAccountId(v string) { + o.EbsAccountId = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *Organization) GetExternalId() string { + if o == nil || o.ExternalId == nil { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetExternalIdOk() (*string, bool) { + if o == nil || o.ExternalId == nil { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *Organization) HasExternalId() bool { + if o != nil && o.ExternalId != nil { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *Organization) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *Organization) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *Organization) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *Organization) SetLabels(v []Label) { + o.Labels = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Organization) GetName() string { + if o == nil || o.Name == nil { + 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 *Organization) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Organization) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Organization) SetName(v string) { + o.Name = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Organization) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Organization) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Organization) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Organization) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Organization) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.EbsAccountId != nil { + toSerialize["ebs_account_id"] = o.EbsAccountId + } + if o.ExternalId != nil { + toSerialize["external_id"] = o.ExternalId + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableOrganization struct { + value *Organization + isSet bool +} + +func (v NullableOrganization) Get() *Organization { + return v.value +} + +func (v *NullableOrganization) Set(val *Organization) { + v.value = val + v.isSet = true +} + +func (v NullableOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganization(val *Organization) *NullableOrganization { + return &NullableOrganization{value: val, isSet: true} +} + +func (v NullableOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_all_of.go new file mode 100644 index 00000000..1ad9d43e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_all_of.go @@ -0,0 +1,332 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// OrganizationAllOf struct for OrganizationAllOf +type OrganizationAllOf struct { + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + EbsAccountId *string `json:"ebs_account_id,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + Name *string `json:"name,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewOrganizationAllOf instantiates a new OrganizationAllOf 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 NewOrganizationAllOf() *OrganizationAllOf { + this := OrganizationAllOf{} + return &this +} + +// NewOrganizationAllOfWithDefaults instantiates a new OrganizationAllOf 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 NewOrganizationAllOfWithDefaults() *OrganizationAllOf { + this := OrganizationAllOf{} + return &this +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *OrganizationAllOf) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *OrganizationAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetEbsAccountId returns the EbsAccountId field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetEbsAccountId() string { + if o == nil || o.EbsAccountId == nil { + var ret string + return ret + } + return *o.EbsAccountId +} + +// GetEbsAccountIdOk returns a tuple with the EbsAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetEbsAccountIdOk() (*string, bool) { + if o == nil || o.EbsAccountId == nil { + return nil, false + } + return o.EbsAccountId, true +} + +// HasEbsAccountId returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasEbsAccountId() bool { + if o != nil && o.EbsAccountId != nil { + return true + } + + return false +} + +// SetEbsAccountId gets a reference to the given string and assigns it to the EbsAccountId field. +func (o *OrganizationAllOf) SetEbsAccountId(v string) { + o.EbsAccountId = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetExternalId() string { + if o == nil || o.ExternalId == nil { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetExternalIdOk() (*string, bool) { + if o == nil || o.ExternalId == nil { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasExternalId() bool { + if o != nil && o.ExternalId != nil { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *OrganizationAllOf) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *OrganizationAllOf) SetLabels(v []Label) { + o.Labels = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *OrganizationAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OrganizationAllOf) SetName(v string) { + o.Name = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *OrganizationAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *OrganizationAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *OrganizationAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o OrganizationAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.EbsAccountId != nil { + toSerialize["ebs_account_id"] = o.EbsAccountId + } + if o.ExternalId != nil { + toSerialize["external_id"] = o.ExternalId + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableOrganizationAllOf struct { + value *OrganizationAllOf + isSet bool +} + +func (v NullableOrganizationAllOf) Get() *OrganizationAllOf { + return v.value +} + +func (v *NullableOrganizationAllOf) Set(val *OrganizationAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationAllOf(val *OrganizationAllOf) *NullableOrganizationAllOf { + return &NullableOrganizationAllOf{value: val, isSet: true} +} + +func (v NullableOrganizationAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list.go new file mode 100644 index 00000000..77b3a400 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// OrganizationList struct for OrganizationList +type OrganizationList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Organization `json:"items"` +} + +// NewOrganizationList instantiates a new OrganizationList 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 NewOrganizationList(kind string, page int32, size int32, total int32, items []Organization) *OrganizationList { + this := OrganizationList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewOrganizationListWithDefaults instantiates a new OrganizationList 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 NewOrganizationListWithDefaults() *OrganizationList { + this := OrganizationList{} + return &this +} + +// GetKind returns the Kind field value +func (o *OrganizationList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *OrganizationList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *OrganizationList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *OrganizationList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *OrganizationList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *OrganizationList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *OrganizationList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *OrganizationList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *OrganizationList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *OrganizationList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *OrganizationList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *OrganizationList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *OrganizationList) GetItems() []Organization { + if o == nil { + var ret []Organization + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *OrganizationList) GetItemsOk() (*[]Organization, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *OrganizationList) SetItems(v []Organization) { + o.Items = v +} + +func (o OrganizationList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableOrganizationList struct { + value *OrganizationList + isSet bool +} + +func (v NullableOrganizationList) Get() *OrganizationList { + return v.value +} + +func (v *NullableOrganizationList) Set(val *OrganizationList) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationList) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationList(val *OrganizationList) *NullableOrganizationList { + return &NullableOrganizationList{value: val, isSet: true} +} + +func (v NullableOrganizationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list_all_of.go new file mode 100644 index 00000000..527bbe44 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// OrganizationListAllOf struct for OrganizationListAllOf +type OrganizationListAllOf struct { + Items *[]Organization `json:"items,omitempty"` +} + +// NewOrganizationListAllOf instantiates a new OrganizationListAllOf 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 NewOrganizationListAllOf() *OrganizationListAllOf { + this := OrganizationListAllOf{} + return &this +} + +// NewOrganizationListAllOfWithDefaults instantiates a new OrganizationListAllOf 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 NewOrganizationListAllOfWithDefaults() *OrganizationListAllOf { + this := OrganizationListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *OrganizationListAllOf) GetItems() []Organization { + if o == nil || o.Items == nil { + var ret []Organization + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationListAllOf) GetItemsOk() (*[]Organization, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *OrganizationListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Organization and assigns it to the Items field. +func (o *OrganizationListAllOf) SetItems(v []Organization) { + o.Items = &v +} + +func (o OrganizationListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableOrganizationListAllOf struct { + value *OrganizationListAllOf + isSet bool +} + +func (v NullableOrganizationListAllOf) Get() *OrganizationListAllOf { + return v.value +} + +func (v *NullableOrganizationListAllOf) Set(val *OrganizationListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationListAllOf(val *OrganizationListAllOf) *NullableOrganizationListAllOf { + return &NullableOrganizationListAllOf{value: val, isSet: true} +} + +func (v NullableOrganizationListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_patch_request.go new file mode 100644 index 00000000..7dcd725c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_organization_patch_request.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// OrganizationPatchRequest struct for OrganizationPatchRequest +type OrganizationPatchRequest struct { + EbsAccountId *string `json:"ebs_account_id,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewOrganizationPatchRequest instantiates a new OrganizationPatchRequest 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 NewOrganizationPatchRequest() *OrganizationPatchRequest { + this := OrganizationPatchRequest{} + return &this +} + +// NewOrganizationPatchRequestWithDefaults instantiates a new OrganizationPatchRequest 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 NewOrganizationPatchRequestWithDefaults() *OrganizationPatchRequest { + this := OrganizationPatchRequest{} + return &this +} + +// GetEbsAccountId returns the EbsAccountId field value if set, zero value otherwise. +func (o *OrganizationPatchRequest) GetEbsAccountId() string { + if o == nil || o.EbsAccountId == nil { + var ret string + return ret + } + return *o.EbsAccountId +} + +// GetEbsAccountIdOk returns a tuple with the EbsAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationPatchRequest) GetEbsAccountIdOk() (*string, bool) { + if o == nil || o.EbsAccountId == nil { + return nil, false + } + return o.EbsAccountId, true +} + +// HasEbsAccountId returns a boolean if a field has been set. +func (o *OrganizationPatchRequest) HasEbsAccountId() bool { + if o != nil && o.EbsAccountId != nil { + return true + } + + return false +} + +// SetEbsAccountId gets a reference to the given string and assigns it to the EbsAccountId field. +func (o *OrganizationPatchRequest) SetEbsAccountId(v string) { + o.EbsAccountId = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *OrganizationPatchRequest) GetExternalId() string { + if o == nil || o.ExternalId == nil { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganizationPatchRequest) GetExternalIdOk() (*string, bool) { + if o == nil || o.ExternalId == nil { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *OrganizationPatchRequest) HasExternalId() bool { + if o != nil && o.ExternalId != nil { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *OrganizationPatchRequest) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganizationPatchRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *OrganizationPatchRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OrganizationPatchRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OrganizationPatchRequest) SetName(v string) { + o.Name = &v +} + +func (o OrganizationPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.EbsAccountId != nil { + toSerialize["ebs_account_id"] = o.EbsAccountId + } + if o.ExternalId != nil { + toSerialize["external_id"] = o.ExternalId + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableOrganizationPatchRequest struct { + value *OrganizationPatchRequest + isSet bool +} + +func (v NullableOrganizationPatchRequest) Get() *OrganizationPatchRequest { + return v.value +} + +func (v *NullableOrganizationPatchRequest) Set(val *OrganizationPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOrganizationPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganizationPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganizationPatchRequest(val *OrganizationPatchRequest) *NullableOrganizationPatchRequest { + return &NullableOrganizationPatchRequest{value: val, isSet: true} +} + +func (v NullableOrganizationPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganizationPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_permission.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission.go new file mode 100644 index 00000000..90d2aeef --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Permission struct for Permission +type Permission struct { + Action *string `json:"action,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// NewPermission instantiates a new Permission 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 NewPermission() *Permission { + this := Permission{} + return &this +} + +// NewPermissionWithDefaults instantiates a new Permission 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 NewPermissionWithDefaults() *Permission { + this := Permission{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *Permission) GetAction() string { + if o == nil || o.Action == nil { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetActionOk() (*string, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *Permission) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *Permission) SetAction(v string) { + o.Action = &v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *Permission) GetResource() string { + if o == nil || o.Resource == nil { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Permission) GetResourceOk() (*string, bool) { + if o == nil || o.Resource == nil { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *Permission) HasResource() bool { + if o != nil && o.Resource != nil { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *Permission) SetResource(v string) { + o.Resource = &v +} + +func (o Permission) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.Resource != nil { + toSerialize["resource"] = o.Resource + } + return json.Marshal(toSerialize) +} + +type NullablePermission struct { + value *Permission + isSet bool +} + +func (v NullablePermission) Get() *Permission { + return v.value +} + +func (v *NullablePermission) Set(val *Permission) { + v.value = val + v.isSet = true +} + +func (v NullablePermission) IsSet() bool { + return v.isSet +} + +func (v *NullablePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermission(val *Permission) *NullablePermission { + return &NullablePermission{value: val, isSet: true} +} + +func (v NullablePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_all_of.go new file mode 100644 index 00000000..359acf01 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_all_of.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PermissionAllOf struct for PermissionAllOf +type PermissionAllOf struct { + Action *string `json:"action,omitempty"` + Resource *string `json:"resource,omitempty"` +} + +// NewPermissionAllOf instantiates a new PermissionAllOf 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 NewPermissionAllOf() *PermissionAllOf { + this := PermissionAllOf{} + return &this +} + +// NewPermissionAllOfWithDefaults instantiates a new PermissionAllOf 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 NewPermissionAllOfWithDefaults() *PermissionAllOf { + this := PermissionAllOf{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *PermissionAllOf) GetAction() string { + if o == nil || o.Action == nil { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionAllOf) GetActionOk() (*string, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *PermissionAllOf) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *PermissionAllOf) SetAction(v string) { + o.Action = &v +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *PermissionAllOf) GetResource() string { + if o == nil || o.Resource == nil { + var ret string + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionAllOf) GetResourceOk() (*string, bool) { + if o == nil || o.Resource == nil { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *PermissionAllOf) HasResource() bool { + if o != nil && o.Resource != nil { + return true + } + + return false +} + +// SetResource gets a reference to the given string and assigns it to the Resource field. +func (o *PermissionAllOf) SetResource(v string) { + o.Resource = &v +} + +func (o PermissionAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.Resource != nil { + toSerialize["resource"] = o.Resource + } + return json.Marshal(toSerialize) +} + +type NullablePermissionAllOf struct { + value *PermissionAllOf + isSet bool +} + +func (v NullablePermissionAllOf) Get() *PermissionAllOf { + return v.value +} + +func (v *NullablePermissionAllOf) Set(val *PermissionAllOf) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionAllOf(val *PermissionAllOf) *NullablePermissionAllOf { + return &NullablePermissionAllOf{value: val, isSet: true} +} + +func (v NullablePermissionAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list.go new file mode 100644 index 00000000..7770ab25 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PermissionList struct for PermissionList +type PermissionList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Permission `json:"items"` +} + +// NewPermissionList instantiates a new PermissionList 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 NewPermissionList(kind string, page int32, size int32, total int32, items []Permission) *PermissionList { + this := PermissionList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewPermissionListWithDefaults instantiates a new PermissionList 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 NewPermissionListWithDefaults() *PermissionList { + this := PermissionList{} + return &this +} + +// GetKind returns the Kind field value +func (o *PermissionList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *PermissionList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *PermissionList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *PermissionList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *PermissionList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *PermissionList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *PermissionList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *PermissionList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *PermissionList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *PermissionList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *PermissionList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *PermissionList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *PermissionList) GetItems() []Permission { + if o == nil { + var ret []Permission + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *PermissionList) GetItemsOk() (*[]Permission, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *PermissionList) SetItems(v []Permission) { + o.Items = v +} + +func (o PermissionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullablePermissionList struct { + value *PermissionList + isSet bool +} + +func (v NullablePermissionList) Get() *PermissionList { + return v.value +} + +func (v *NullablePermissionList) Set(val *PermissionList) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionList) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionList(val *PermissionList) *NullablePermissionList { + return &NullablePermissionList{value: val, isSet: true} +} + +func (v NullablePermissionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list_all_of.go new file mode 100644 index 00000000..83d19553 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_permission_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PermissionListAllOf struct for PermissionListAllOf +type PermissionListAllOf struct { + Items *[]Permission `json:"items,omitempty"` +} + +// NewPermissionListAllOf instantiates a new PermissionListAllOf 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 NewPermissionListAllOf() *PermissionListAllOf { + this := PermissionListAllOf{} + return &this +} + +// NewPermissionListAllOfWithDefaults instantiates a new PermissionListAllOf 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 NewPermissionListAllOfWithDefaults() *PermissionListAllOf { + this := PermissionListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *PermissionListAllOf) GetItems() []Permission { + if o == nil || o.Items == nil { + var ret []Permission + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionListAllOf) GetItemsOk() (*[]Permission, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *PermissionListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Permission and assigns it to the Items field. +func (o *PermissionListAllOf) SetItems(v []Permission) { + o.Items = &v +} + +func (o PermissionListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullablePermissionListAllOf struct { + value *PermissionListAllOf + isSet bool +} + +func (v NullablePermissionListAllOf) Get() *PermissionListAllOf { + return v.value +} + +func (v *NullablePermissionListAllOf) Set(val *PermissionListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionListAllOf(val *PermissionListAllOf) *NullablePermissionListAllOf { + return &NullablePermissionListAllOf{value: val, isSet: true} +} + +func (v NullablePermissionListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_plan.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan.go new file mode 100644 index 00000000..e671f2c3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Plan struct for Plan +type Plan struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Category *string `json:"category,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewPlan instantiates a new Plan 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 NewPlan() *Plan { + this := Plan{} + return &this +} + +// NewPlanWithDefaults instantiates a new Plan 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 NewPlanWithDefaults() *Plan { + this := Plan{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Plan) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Plan) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Plan) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Plan) GetId() string { + if o == nil || o.Id == nil { + 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 *Plan) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Plan) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Plan) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Plan) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Plan) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Plan) SetKind(v string) { + o.Kind = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *Plan) GetCategory() string { + if o == nil || o.Category == nil { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Plan) GetCategoryOk() (*string, bool) { + if o == nil || o.Category == nil { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *Plan) HasCategory() bool { + if o != nil && o.Category != nil { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *Plan) SetCategory(v string) { + o.Category = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Plan) GetName() string { + if o == nil || o.Name == nil { + 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 *Plan) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Plan) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Plan) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Plan) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *Plan) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Plan) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Plan) SetType(v string) { + o.Type = &v +} + +func (o Plan) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Category != nil { + toSerialize["category"] = o.Category + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullablePlan struct { + value *Plan + isSet bool +} + +func (v NullablePlan) Get() *Plan { + return v.value +} + +func (v *NullablePlan) Set(val *Plan) { + v.value = val + v.isSet = true +} + +func (v NullablePlan) IsSet() bool { + return v.isSet +} + +func (v *NullablePlan) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlan(val *Plan) *NullablePlan { + return &NullablePlan{value: val, isSet: true} +} + +func (v NullablePlan) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlan) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_all_of.go new file mode 100644 index 00000000..f0fab146 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_all_of.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PlanAllOf struct for PlanAllOf +type PlanAllOf struct { + Category *string `json:"category,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewPlanAllOf instantiates a new PlanAllOf 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 NewPlanAllOf() *PlanAllOf { + this := PlanAllOf{} + return &this +} + +// NewPlanAllOfWithDefaults instantiates a new PlanAllOf 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 NewPlanAllOfWithDefaults() *PlanAllOf { + this := PlanAllOf{} + return &this +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *PlanAllOf) GetCategory() string { + if o == nil || o.Category == nil { + var ret string + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanAllOf) GetCategoryOk() (*string, bool) { + if o == nil || o.Category == nil { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *PlanAllOf) HasCategory() bool { + if o != nil && o.Category != nil { + return true + } + + return false +} + +// SetCategory gets a reference to the given string and assigns it to the Category field. +func (o *PlanAllOf) SetCategory(v string) { + o.Category = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PlanAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *PlanAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PlanAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PlanAllOf) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PlanAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *PlanAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PlanAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PlanAllOf) SetType(v string) { + o.Type = &v +} + +func (o PlanAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Category != nil { + toSerialize["category"] = o.Category + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullablePlanAllOf struct { + value *PlanAllOf + isSet bool +} + +func (v NullablePlanAllOf) Get() *PlanAllOf { + return v.value +} + +func (v *NullablePlanAllOf) Set(val *PlanAllOf) { + v.value = val + v.isSet = true +} + +func (v NullablePlanAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanAllOf(val *PlanAllOf) *NullablePlanAllOf { + return &NullablePlanAllOf{value: val, isSet: true} +} + +func (v NullablePlanAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list.go new file mode 100644 index 00000000..24e32819 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PlanList struct for PlanList +type PlanList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Plan `json:"items"` +} + +// NewPlanList instantiates a new PlanList 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 NewPlanList(kind string, page int32, size int32, total int32, items []Plan) *PlanList { + this := PlanList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewPlanListWithDefaults instantiates a new PlanList 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 NewPlanListWithDefaults() *PlanList { + this := PlanList{} + return &this +} + +// GetKind returns the Kind field value +func (o *PlanList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *PlanList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *PlanList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *PlanList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *PlanList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *PlanList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *PlanList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *PlanList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *PlanList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *PlanList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *PlanList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *PlanList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *PlanList) GetItems() []Plan { + if o == nil { + var ret []Plan + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *PlanList) GetItemsOk() (*[]Plan, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *PlanList) SetItems(v []Plan) { + o.Items = v +} + +func (o PlanList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullablePlanList struct { + value *PlanList + isSet bool +} + +func (v NullablePlanList) Get() *PlanList { + return v.value +} + +func (v *NullablePlanList) Set(val *PlanList) { + v.value = val + v.isSet = true +} + +func (v NullablePlanList) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanList(val *PlanList) *NullablePlanList { + return &NullablePlanList{value: val, isSet: true} +} + +func (v NullablePlanList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list_all_of.go new file mode 100644 index 00000000..f9baa9f1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_plan_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PlanListAllOf struct for PlanListAllOf +type PlanListAllOf struct { + Items *[]Plan `json:"items,omitempty"` +} + +// NewPlanListAllOf instantiates a new PlanListAllOf 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 NewPlanListAllOf() *PlanListAllOf { + this := PlanListAllOf{} + return &this +} + +// NewPlanListAllOfWithDefaults instantiates a new PlanListAllOf 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 NewPlanListAllOfWithDefaults() *PlanListAllOf { + this := PlanListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *PlanListAllOf) GetItems() []Plan { + if o == nil || o.Items == nil { + var ret []Plan + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanListAllOf) GetItemsOk() (*[]Plan, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *PlanListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Plan and assigns it to the Items field. +func (o *PlanListAllOf) SetItems(v []Plan) { + o.Items = &v +} + +func (o PlanListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullablePlanListAllOf struct { + value *PlanListAllOf + isSet bool +} + +func (v NullablePlanListAllOf) Get() *PlanListAllOf { + return v.value +} + +func (v *NullablePlanListAllOf) Set(val *PlanListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullablePlanListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanListAllOf(val *PlanListAllOf) *NullablePlanListAllOf { + return &NullablePlanListAllOf{value: val, isSet: true} +} + +func (v NullablePlanListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_pull_secret_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_pull_secret_request.go new file mode 100644 index 00000000..ed891d35 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_pull_secret_request.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// PullSecretRequest struct for PullSecretRequest +type PullSecretRequest struct { + ExternalResourceId string `json:"external_resource_id"` +} + +// NewPullSecretRequest instantiates a new PullSecretRequest 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 NewPullSecretRequest(externalResourceId string) *PullSecretRequest { + this := PullSecretRequest{} + this.ExternalResourceId = externalResourceId + return &this +} + +// NewPullSecretRequestWithDefaults instantiates a new PullSecretRequest 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 NewPullSecretRequestWithDefaults() *PullSecretRequest { + this := PullSecretRequest{} + return &this +} + +// GetExternalResourceId returns the ExternalResourceId field value +func (o *PullSecretRequest) GetExternalResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ExternalResourceId +} + +// GetExternalResourceIdOk returns a tuple with the ExternalResourceId field value +// and a boolean to check if the value has been set. +func (o *PullSecretRequest) GetExternalResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExternalResourceId, true +} + +// SetExternalResourceId sets field value +func (o *PullSecretRequest) SetExternalResourceId(v string) { + o.ExternalResourceId = v +} + +func (o PullSecretRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["external_resource_id"] = o.ExternalResourceId + } + return json.Marshal(toSerialize) +} + +type NullablePullSecretRequest struct { + value *PullSecretRequest + isSet bool +} + +func (v NullablePullSecretRequest) Get() *PullSecretRequest { + return v.value +} + +func (v *NullablePullSecretRequest) Set(val *PullSecretRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePullSecretRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePullSecretRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePullSecretRequest(val *PullSecretRequest) *NullablePullSecretRequest { + return &NullablePullSecretRequest{value: val, isSet: true} +} + +func (v NullablePullSecretRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePullSecretRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota.go new file mode 100644 index 00000000..cb58b79e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota.go @@ -0,0 +1,332 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Quota struct for Quota +type Quota struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewQuota instantiates a new Quota 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 NewQuota() *Quota { + this := Quota{} + return &this +} + +// NewQuotaWithDefaults instantiates a new Quota 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 NewQuotaWithDefaults() *Quota { + this := Quota{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Quota) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Quota) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Quota) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Quota) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Quota) GetId() string { + if o == nil || o.Id == nil { + 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 *Quota) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Quota) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Quota) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Quota) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Quota) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Quota) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Quota) SetKind(v string) { + o.Kind = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Quota) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Quota) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Quota) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Quota) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Quota) GetDescription() string { + if o == nil || o.Description == nil { + 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 *Quota) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Quota) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Quota) SetDescription(v string) { + o.Description = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *Quota) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Quota) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *Quota) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *Quota) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Quota) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Quota) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Quota) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Quota) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Quota) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableQuota struct { + value *Quota + isSet bool +} + +func (v NullableQuota) Get() *Quota { + return v.value +} + +func (v *NullableQuota) Set(val *Quota) { + v.value = val + v.isSet = true +} + +func (v NullableQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuota(val *Quota) *NullableQuota { + return &NullableQuota{value: val, isSet: true} +} + +func (v NullableQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_all_of.go new file mode 100644 index 00000000..6b30a6ff --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_all_of.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// QuotaAllOf struct for QuotaAllOf +type QuotaAllOf struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewQuotaAllOf instantiates a new QuotaAllOf 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 NewQuotaAllOf() *QuotaAllOf { + this := QuotaAllOf{} + return &this +} + +// NewQuotaAllOfWithDefaults instantiates a new QuotaAllOf 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 NewQuotaAllOfWithDefaults() *QuotaAllOf { + this := QuotaAllOf{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *QuotaAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *QuotaAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *QuotaAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *QuotaAllOf) GetDescription() string { + if o == nil || o.Description == nil { + 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 *QuotaAllOf) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *QuotaAllOf) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *QuotaAllOf) SetDescription(v string) { + o.Description = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *QuotaAllOf) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *QuotaAllOf) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *QuotaAllOf) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *QuotaAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *QuotaAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *QuotaAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o QuotaAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableQuotaAllOf struct { + value *QuotaAllOf + isSet bool +} + +func (v NullableQuotaAllOf) Get() *QuotaAllOf { + return v.value +} + +func (v *NullableQuotaAllOf) Set(val *QuotaAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaAllOf(val *QuotaAllOf) *NullableQuotaAllOf { + return &NullableQuotaAllOf{value: val, isSet: true} +} + +func (v NullableQuotaAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost.go new file mode 100644 index 00000000..00be5489 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost.go @@ -0,0 +1,418 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaCost struct for QuotaCost +type QuotaCost struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed int32 `json:"allowed"` + CloudAccounts *[]CloudAccount `json:"cloud_accounts,omitempty"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` + RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewQuotaCost instantiates a new QuotaCost 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 NewQuotaCost(allowed int32, consumed int32, quotaId string) *QuotaCost { + this := QuotaCost{} + this.Allowed = allowed + this.Consumed = consumed + this.QuotaId = quotaId + return &this +} + +// NewQuotaCostWithDefaults instantiates a new QuotaCost 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 NewQuotaCostWithDefaults() *QuotaCost { + this := QuotaCost{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *QuotaCost) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *QuotaCost) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *QuotaCost) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *QuotaCost) GetId() string { + if o == nil || o.Id == nil { + 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 *QuotaCost) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *QuotaCost) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *QuotaCost) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *QuotaCost) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *QuotaCost) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *QuotaCost) SetKind(v string) { + o.Kind = &v +} + +// GetAllowed returns the Allowed field value +func (o *QuotaCost) GetAllowed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetAllowedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *QuotaCost) SetAllowed(v int32) { + o.Allowed = v +} + +// GetCloudAccounts returns the CloudAccounts field value if set, zero value otherwise. +func (o *QuotaCost) GetCloudAccounts() []CloudAccount { + if o == nil || o.CloudAccounts == nil { + var ret []CloudAccount + return ret + } + return *o.CloudAccounts +} + +// GetCloudAccountsOk returns a tuple with the CloudAccounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetCloudAccountsOk() (*[]CloudAccount, bool) { + if o == nil || o.CloudAccounts == nil { + return nil, false + } + return o.CloudAccounts, true +} + +// HasCloudAccounts returns a boolean if a field has been set. +func (o *QuotaCost) HasCloudAccounts() bool { + if o != nil && o.CloudAccounts != nil { + return true + } + + return false +} + +// SetCloudAccounts gets a reference to the given []CloudAccount and assigns it to the CloudAccounts field. +func (o *QuotaCost) SetCloudAccounts(v []CloudAccount) { + o.CloudAccounts = &v +} + +// GetConsumed returns the Consumed field value +func (o *QuotaCost) GetConsumed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Consumed +} + +// GetConsumedOk returns a tuple with the Consumed field value +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetConsumedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Consumed, true +} + +// SetConsumed sets field value +func (o *QuotaCost) SetConsumed(v int32) { + o.Consumed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *QuotaCost) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *QuotaCost) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *QuotaCost) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetQuotaId returns the QuotaId field value +func (o *QuotaCost) GetQuotaId() string { + if o == nil { + var ret string + return ret + } + + return o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetQuotaIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.QuotaId, true +} + +// SetQuotaId sets field value +func (o *QuotaCost) SetQuotaId(v string) { + o.QuotaId = v +} + +// GetRelatedResources returns the RelatedResources field value if set, zero value otherwise. +func (o *QuotaCost) GetRelatedResources() []RelatedResource { + if o == nil || o.RelatedResources == nil { + var ret []RelatedResource + return ret + } + return *o.RelatedResources +} + +// GetRelatedResourcesOk returns a tuple with the RelatedResources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetRelatedResourcesOk() (*[]RelatedResource, bool) { + if o == nil || o.RelatedResources == nil { + return nil, false + } + return o.RelatedResources, true +} + +// HasRelatedResources returns a boolean if a field has been set. +func (o *QuotaCost) HasRelatedResources() bool { + if o != nil && o.RelatedResources != nil { + return true + } + + return false +} + +// SetRelatedResources gets a reference to the given []RelatedResource and assigns it to the RelatedResources field. +func (o *QuotaCost) SetRelatedResources(v []RelatedResource) { + o.RelatedResources = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *QuotaCost) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCost) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *QuotaCost) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *QuotaCost) SetVersion(v string) { + o.Version = &v +} + +func (o QuotaCost) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["allowed"] = o.Allowed + } + if o.CloudAccounts != nil { + toSerialize["cloud_accounts"] = o.CloudAccounts + } + if true { + toSerialize["consumed"] = o.Consumed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["quota_id"] = o.QuotaId + } + if o.RelatedResources != nil { + toSerialize["related_resources"] = o.RelatedResources + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableQuotaCost struct { + value *QuotaCost + isSet bool +} + +func (v NullableQuotaCost) Get() *QuotaCost { + return v.value +} + +func (v *NullableQuotaCost) Set(val *QuotaCost) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaCost) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaCost) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaCost(val *QuotaCost) *NullableQuotaCost { + return &NullableQuotaCost{value: val, isSet: true} +} + +func (v NullableQuotaCost) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaCost) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_all_of.go new file mode 100644 index 00000000..fb8184d7 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_all_of.go @@ -0,0 +1,310 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaCostAllOf struct for QuotaCostAllOf +type QuotaCostAllOf struct { + Allowed int32 `json:"allowed"` + CloudAccounts *[]CloudAccount `json:"cloud_accounts,omitempty"` + Consumed int32 `json:"consumed"` + OrganizationId *string `json:"organization_id,omitempty"` + QuotaId string `json:"quota_id"` + RelatedResources *[]RelatedResource `json:"related_resources,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewQuotaCostAllOf instantiates a new QuotaCostAllOf 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 NewQuotaCostAllOf(allowed int32, consumed int32, quotaId string) *QuotaCostAllOf { + this := QuotaCostAllOf{} + this.Allowed = allowed + this.Consumed = consumed + this.QuotaId = quotaId + return &this +} + +// NewQuotaCostAllOfWithDefaults instantiates a new QuotaCostAllOf 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 NewQuotaCostAllOfWithDefaults() *QuotaCostAllOf { + this := QuotaCostAllOf{} + return &this +} + +// GetAllowed returns the Allowed field value +func (o *QuotaCostAllOf) GetAllowed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetAllowedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Allowed, true +} + +// SetAllowed sets field value +func (o *QuotaCostAllOf) SetAllowed(v int32) { + o.Allowed = v +} + +// GetCloudAccounts returns the CloudAccounts field value if set, zero value otherwise. +func (o *QuotaCostAllOf) GetCloudAccounts() []CloudAccount { + if o == nil || o.CloudAccounts == nil { + var ret []CloudAccount + return ret + } + return *o.CloudAccounts +} + +// GetCloudAccountsOk returns a tuple with the CloudAccounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetCloudAccountsOk() (*[]CloudAccount, bool) { + if o == nil || o.CloudAccounts == nil { + return nil, false + } + return o.CloudAccounts, true +} + +// HasCloudAccounts returns a boolean if a field has been set. +func (o *QuotaCostAllOf) HasCloudAccounts() bool { + if o != nil && o.CloudAccounts != nil { + return true + } + + return false +} + +// SetCloudAccounts gets a reference to the given []CloudAccount and assigns it to the CloudAccounts field. +func (o *QuotaCostAllOf) SetCloudAccounts(v []CloudAccount) { + o.CloudAccounts = &v +} + +// GetConsumed returns the Consumed field value +func (o *QuotaCostAllOf) GetConsumed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Consumed +} + +// GetConsumedOk returns a tuple with the Consumed field value +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetConsumedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Consumed, true +} + +// SetConsumed sets field value +func (o *QuotaCostAllOf) SetConsumed(v int32) { + o.Consumed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *QuotaCostAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *QuotaCostAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *QuotaCostAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetQuotaId returns the QuotaId field value +func (o *QuotaCostAllOf) GetQuotaId() string { + if o == nil { + var ret string + return ret + } + + return o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetQuotaIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.QuotaId, true +} + +// SetQuotaId sets field value +func (o *QuotaCostAllOf) SetQuotaId(v string) { + o.QuotaId = v +} + +// GetRelatedResources returns the RelatedResources field value if set, zero value otherwise. +func (o *QuotaCostAllOf) GetRelatedResources() []RelatedResource { + if o == nil || o.RelatedResources == nil { + var ret []RelatedResource + return ret + } + return *o.RelatedResources +} + +// GetRelatedResourcesOk returns a tuple with the RelatedResources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetRelatedResourcesOk() (*[]RelatedResource, bool) { + if o == nil || o.RelatedResources == nil { + return nil, false + } + return o.RelatedResources, true +} + +// HasRelatedResources returns a boolean if a field has been set. +func (o *QuotaCostAllOf) HasRelatedResources() bool { + if o != nil && o.RelatedResources != nil { + return true + } + + return false +} + +// SetRelatedResources gets a reference to the given []RelatedResource and assigns it to the RelatedResources field. +func (o *QuotaCostAllOf) SetRelatedResources(v []RelatedResource) { + o.RelatedResources = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *QuotaCostAllOf) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCostAllOf) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *QuotaCostAllOf) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *QuotaCostAllOf) SetVersion(v string) { + o.Version = &v +} + +func (o QuotaCostAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["allowed"] = o.Allowed + } + if o.CloudAccounts != nil { + toSerialize["cloud_accounts"] = o.CloudAccounts + } + if true { + toSerialize["consumed"] = o.Consumed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["quota_id"] = o.QuotaId + } + if o.RelatedResources != nil { + toSerialize["related_resources"] = o.RelatedResources + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableQuotaCostAllOf struct { + value *QuotaCostAllOf + isSet bool +} + +func (v NullableQuotaCostAllOf) Get() *QuotaCostAllOf { + return v.value +} + +func (v *NullableQuotaCostAllOf) Set(val *QuotaCostAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaCostAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaCostAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaCostAllOf(val *QuotaCostAllOf) *NullableQuotaCostAllOf { + return &NullableQuotaCostAllOf{value: val, isSet: true} +} + +func (v NullableQuotaCostAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaCostAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list.go new file mode 100644 index 00000000..4ba3f5f9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaCostList struct for QuotaCostList +type QuotaCostList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []QuotaCost `json:"items"` +} + +// NewQuotaCostList instantiates a new QuotaCostList 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 NewQuotaCostList(kind string, page int32, size int32, total int32, items []QuotaCost) *QuotaCostList { + this := QuotaCostList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewQuotaCostListWithDefaults instantiates a new QuotaCostList 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 NewQuotaCostListWithDefaults() *QuotaCostList { + this := QuotaCostList{} + return &this +} + +// GetKind returns the Kind field value +func (o *QuotaCostList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *QuotaCostList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *QuotaCostList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *QuotaCostList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *QuotaCostList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *QuotaCostList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *QuotaCostList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *QuotaCostList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *QuotaCostList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *QuotaCostList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *QuotaCostList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *QuotaCostList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *QuotaCostList) GetItems() []QuotaCost { + if o == nil { + var ret []QuotaCost + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *QuotaCostList) GetItemsOk() (*[]QuotaCost, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *QuotaCostList) SetItems(v []QuotaCost) { + o.Items = v +} + +func (o QuotaCostList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaCostList struct { + value *QuotaCostList + isSet bool +} + +func (v NullableQuotaCostList) Get() *QuotaCostList { + return v.value +} + +func (v *NullableQuotaCostList) Set(val *QuotaCostList) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaCostList) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaCostList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaCostList(val *QuotaCostList) *NullableQuotaCostList { + return &NullableQuotaCostList{value: val, isSet: true} +} + +func (v NullableQuotaCostList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaCostList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list_all_of.go new file mode 100644 index 00000000..b87bf91d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_cost_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaCostListAllOf struct for QuotaCostListAllOf +type QuotaCostListAllOf struct { + Items *[]QuotaCost `json:"items,omitempty"` +} + +// NewQuotaCostListAllOf instantiates a new QuotaCostListAllOf 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 NewQuotaCostListAllOf() *QuotaCostListAllOf { + this := QuotaCostListAllOf{} + return &this +} + +// NewQuotaCostListAllOfWithDefaults instantiates a new QuotaCostListAllOf 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 NewQuotaCostListAllOfWithDefaults() *QuotaCostListAllOf { + this := QuotaCostListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *QuotaCostListAllOf) GetItems() []QuotaCost { + if o == nil || o.Items == nil { + var ret []QuotaCost + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaCostListAllOf) GetItemsOk() (*[]QuotaCost, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *QuotaCostListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []QuotaCost and assigns it to the Items field. +func (o *QuotaCostListAllOf) SetItems(v []QuotaCost) { + o.Items = &v +} + +func (o QuotaCostListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaCostListAllOf struct { + value *QuotaCostListAllOf + isSet bool +} + +func (v NullableQuotaCostListAllOf) Get() *QuotaCostListAllOf { + return v.value +} + +func (v *NullableQuotaCostListAllOf) Set(val *QuotaCostListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaCostListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaCostListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaCostListAllOf(val *QuotaCostListAllOf) *NullableQuotaCostListAllOf { + return &NullableQuotaCostListAllOf{value: val, isSet: true} +} + +func (v NullableQuotaCostListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaCostListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list.go new file mode 100644 index 00000000..ad622d31 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaList struct for QuotaList +type QuotaList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Quota `json:"items"` +} + +// NewQuotaList instantiates a new QuotaList 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 NewQuotaList(kind string, page int32, size int32, total int32, items []Quota) *QuotaList { + this := QuotaList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewQuotaListWithDefaults instantiates a new QuotaList 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 NewQuotaListWithDefaults() *QuotaList { + this := QuotaList{} + return &this +} + +// GetKind returns the Kind field value +func (o *QuotaList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *QuotaList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *QuotaList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *QuotaList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *QuotaList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *QuotaList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *QuotaList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *QuotaList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *QuotaList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *QuotaList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *QuotaList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *QuotaList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *QuotaList) GetItems() []Quota { + if o == nil { + var ret []Quota + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *QuotaList) GetItemsOk() (*[]Quota, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *QuotaList) SetItems(v []Quota) { + o.Items = v +} + +func (o QuotaList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaList struct { + value *QuotaList + isSet bool +} + +func (v NullableQuotaList) Get() *QuotaList { + return v.value +} + +func (v *NullableQuotaList) Set(val *QuotaList) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaList) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaList(val *QuotaList) *NullableQuotaList { + return &NullableQuotaList{value: val, isSet: true} +} + +func (v NullableQuotaList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list_all_of.go new file mode 100644 index 00000000..4074816d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaListAllOf struct for QuotaListAllOf +type QuotaListAllOf struct { + Items *[]Quota `json:"items,omitempty"` +} + +// NewQuotaListAllOf instantiates a new QuotaListAllOf 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 NewQuotaListAllOf() *QuotaListAllOf { + this := QuotaListAllOf{} + return &this +} + +// NewQuotaListAllOfWithDefaults instantiates a new QuotaListAllOf 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 NewQuotaListAllOfWithDefaults() *QuotaListAllOf { + this := QuotaListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *QuotaListAllOf) GetItems() []Quota { + if o == nil || o.Items == nil { + var ret []Quota + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaListAllOf) GetItemsOk() (*[]Quota, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *QuotaListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Quota and assigns it to the Items field. +func (o *QuotaListAllOf) SetItems(v []Quota) { + o.Items = &v +} + +func (o QuotaListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaListAllOf struct { + value *QuotaListAllOf + isSet bool +} + +func (v NullableQuotaListAllOf) Get() *QuotaListAllOf { + return v.value +} + +func (v *NullableQuotaListAllOf) Set(val *QuotaListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaListAllOf(val *QuotaListAllOf) *NullableQuotaListAllOf { + return &NullableQuotaListAllOf{value: val, isSet: true} +} + +func (v NullableQuotaListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules.go new file mode 100644 index 00000000..04e01474 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules.go @@ -0,0 +1,504 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaRules struct for QuotaRules +type QuotaRules struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZone *string `json:"availability_zone,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc *string `json:"byoc,omitempty"` + Cloud *string `json:"cloud,omitempty"` + Cost int32 `json:"cost"` + Name *string `json:"name,omitempty"` + Product *string `json:"product,omitempty"` + QuotaId *string `json:"quota_id,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewQuotaRules instantiates a new QuotaRules 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 NewQuotaRules(cost int32) *QuotaRules { + this := QuotaRules{} + this.Cost = cost + return &this +} + +// NewQuotaRulesWithDefaults instantiates a new QuotaRules 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 NewQuotaRulesWithDefaults() *QuotaRules { + this := QuotaRules{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *QuotaRules) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *QuotaRules) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *QuotaRules) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *QuotaRules) GetId() string { + if o == nil || o.Id == nil { + 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 *QuotaRules) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *QuotaRules) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *QuotaRules) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *QuotaRules) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *QuotaRules) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *QuotaRules) SetKind(v string) { + o.Kind = &v +} + +// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. +func (o *QuotaRules) GetAvailabilityZone() string { + if o == nil || o.AvailabilityZone == nil { + var ret string + return ret + } + return *o.AvailabilityZone +} + +// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetAvailabilityZoneOk() (*string, bool) { + if o == nil || o.AvailabilityZone == nil { + return nil, false + } + return o.AvailabilityZone, true +} + +// HasAvailabilityZone returns a boolean if a field has been set. +func (o *QuotaRules) HasAvailabilityZone() bool { + if o != nil && o.AvailabilityZone != nil { + return true + } + + return false +} + +// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field. +func (o *QuotaRules) SetAvailabilityZone(v string) { + o.AvailabilityZone = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *QuotaRules) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *QuotaRules) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *QuotaRules) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value if set, zero value otherwise. +func (o *QuotaRules) GetByoc() string { + if o == nil || o.Byoc == nil { + var ret string + return ret + } + return *o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetByocOk() (*string, bool) { + if o == nil || o.Byoc == nil { + return nil, false + } + return o.Byoc, true +} + +// HasByoc returns a boolean if a field has been set. +func (o *QuotaRules) HasByoc() bool { + if o != nil && o.Byoc != nil { + return true + } + + return false +} + +// SetByoc gets a reference to the given string and assigns it to the Byoc field. +func (o *QuotaRules) SetByoc(v string) { + o.Byoc = &v +} + +// GetCloud returns the Cloud field value if set, zero value otherwise. +func (o *QuotaRules) GetCloud() string { + if o == nil || o.Cloud == nil { + var ret string + return ret + } + return *o.Cloud +} + +// GetCloudOk returns a tuple with the Cloud field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetCloudOk() (*string, bool) { + if o == nil || o.Cloud == nil { + return nil, false + } + return o.Cloud, true +} + +// HasCloud returns a boolean if a field has been set. +func (o *QuotaRules) HasCloud() bool { + if o != nil && o.Cloud != nil { + return true + } + + return false +} + +// SetCloud gets a reference to the given string and assigns it to the Cloud field. +func (o *QuotaRules) SetCloud(v string) { + o.Cloud = &v +} + +// GetCost returns the Cost field value +func (o *QuotaRules) GetCost() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Cost +} + +// GetCostOk returns a tuple with the Cost field value +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetCostOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Cost, true +} + +// SetCost sets field value +func (o *QuotaRules) SetCost(v int32) { + o.Cost = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *QuotaRules) GetName() string { + if o == nil || o.Name == nil { + 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 *QuotaRules) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *QuotaRules) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *QuotaRules) SetName(v string) { + o.Name = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *QuotaRules) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *QuotaRules) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *QuotaRules) SetProduct(v string) { + o.Product = &v +} + +// GetQuotaId returns the QuotaId field value if set, zero value otherwise. +func (o *QuotaRules) GetQuotaId() string { + if o == nil || o.QuotaId == nil { + var ret string + return ret + } + return *o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRules) GetQuotaIdOk() (*string, bool) { + if o == nil || o.QuotaId == nil { + return nil, false + } + return o.QuotaId, true +} + +// HasQuotaId returns a boolean if a field has been set. +func (o *QuotaRules) HasQuotaId() bool { + if o != nil && o.QuotaId != nil { + return true + } + + return false +} + +// SetQuotaId gets a reference to the given string and assigns it to the QuotaId field. +func (o *QuotaRules) SetQuotaId(v string) { + o.QuotaId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *QuotaRules) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *QuotaRules) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *QuotaRules) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *QuotaRules) SetType(v string) { + o.Type = &v +} + +func (o QuotaRules) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.AvailabilityZone != nil { + toSerialize["availability_zone"] = o.AvailabilityZone + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if o.Byoc != nil { + toSerialize["byoc"] = o.Byoc + } + if o.Cloud != nil { + toSerialize["cloud"] = o.Cloud + } + if true { + toSerialize["cost"] = o.Cost + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.QuotaId != nil { + toSerialize["quota_id"] = o.QuotaId + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableQuotaRules struct { + value *QuotaRules + isSet bool +} + +func (v NullableQuotaRules) Get() *QuotaRules { + return v.value +} + +func (v *NullableQuotaRules) Set(val *QuotaRules) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaRules) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaRules(val *QuotaRules) *NullableQuotaRules { + return &NullableQuotaRules{value: val, isSet: true} +} + +func (v NullableQuotaRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_all_of.go new file mode 100644 index 00000000..37406a6d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_all_of.go @@ -0,0 +1,396 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaRulesAllOf struct for QuotaRulesAllOf +type QuotaRulesAllOf struct { + AvailabilityZone *string `json:"availability_zone,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc *string `json:"byoc,omitempty"` + Cloud *string `json:"cloud,omitempty"` + Cost int32 `json:"cost"` + Name *string `json:"name,omitempty"` + Product *string `json:"product,omitempty"` + QuotaId *string `json:"quota_id,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewQuotaRulesAllOf instantiates a new QuotaRulesAllOf 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 NewQuotaRulesAllOf(cost int32) *QuotaRulesAllOf { + this := QuotaRulesAllOf{} + this.Cost = cost + return &this +} + +// NewQuotaRulesAllOfWithDefaults instantiates a new QuotaRulesAllOf 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 NewQuotaRulesAllOfWithDefaults() *QuotaRulesAllOf { + this := QuotaRulesAllOf{} + return &this +} + +// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetAvailabilityZone() string { + if o == nil || o.AvailabilityZone == nil { + var ret string + return ret + } + return *o.AvailabilityZone +} + +// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetAvailabilityZoneOk() (*string, bool) { + if o == nil || o.AvailabilityZone == nil { + return nil, false + } + return o.AvailabilityZone, true +} + +// HasAvailabilityZone returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasAvailabilityZone() bool { + if o != nil && o.AvailabilityZone != nil { + return true + } + + return false +} + +// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field. +func (o *QuotaRulesAllOf) SetAvailabilityZone(v string) { + o.AvailabilityZone = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *QuotaRulesAllOf) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetByoc() string { + if o == nil || o.Byoc == nil { + var ret string + return ret + } + return *o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetByocOk() (*string, bool) { + if o == nil || o.Byoc == nil { + return nil, false + } + return o.Byoc, true +} + +// HasByoc returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasByoc() bool { + if o != nil && o.Byoc != nil { + return true + } + + return false +} + +// SetByoc gets a reference to the given string and assigns it to the Byoc field. +func (o *QuotaRulesAllOf) SetByoc(v string) { + o.Byoc = &v +} + +// GetCloud returns the Cloud field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetCloud() string { + if o == nil || o.Cloud == nil { + var ret string + return ret + } + return *o.Cloud +} + +// GetCloudOk returns a tuple with the Cloud field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetCloudOk() (*string, bool) { + if o == nil || o.Cloud == nil { + return nil, false + } + return o.Cloud, true +} + +// HasCloud returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasCloud() bool { + if o != nil && o.Cloud != nil { + return true + } + + return false +} + +// SetCloud gets a reference to the given string and assigns it to the Cloud field. +func (o *QuotaRulesAllOf) SetCloud(v string) { + o.Cloud = &v +} + +// GetCost returns the Cost field value +func (o *QuotaRulesAllOf) GetCost() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Cost +} + +// GetCostOk returns a tuple with the Cost field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetCostOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Cost, true +} + +// SetCost sets field value +func (o *QuotaRulesAllOf) SetCost(v int32) { + o.Cost = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *QuotaRulesAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *QuotaRulesAllOf) SetName(v string) { + o.Name = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *QuotaRulesAllOf) SetProduct(v string) { + o.Product = &v +} + +// GetQuotaId returns the QuotaId field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetQuotaId() string { + if o == nil || o.QuotaId == nil { + var ret string + return ret + } + return *o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesAllOf) GetQuotaIdOk() (*string, bool) { + if o == nil || o.QuotaId == nil { + return nil, false + } + return o.QuotaId, true +} + +// HasQuotaId returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasQuotaId() bool { + if o != nil && o.QuotaId != nil { + return true + } + + return false +} + +// SetQuotaId gets a reference to the given string and assigns it to the QuotaId field. +func (o *QuotaRulesAllOf) SetQuotaId(v string) { + o.QuotaId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *QuotaRulesAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *QuotaRulesAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *QuotaRulesAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *QuotaRulesAllOf) SetType(v string) { + o.Type = &v +} + +func (o QuotaRulesAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityZone != nil { + toSerialize["availability_zone"] = o.AvailabilityZone + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if o.Byoc != nil { + toSerialize["byoc"] = o.Byoc + } + if o.Cloud != nil { + toSerialize["cloud"] = o.Cloud + } + if true { + toSerialize["cost"] = o.Cost + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.QuotaId != nil { + toSerialize["quota_id"] = o.QuotaId + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableQuotaRulesAllOf struct { + value *QuotaRulesAllOf + isSet bool +} + +func (v NullableQuotaRulesAllOf) Get() *QuotaRulesAllOf { + return v.value +} + +func (v *NullableQuotaRulesAllOf) Set(val *QuotaRulesAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaRulesAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaRulesAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaRulesAllOf(val *QuotaRulesAllOf) *NullableQuotaRulesAllOf { + return &NullableQuotaRulesAllOf{value: val, isSet: true} +} + +func (v NullableQuotaRulesAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaRulesAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list.go new file mode 100644 index 00000000..27b576ff --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaRulesList struct for QuotaRulesList +type QuotaRulesList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []QuotaRules `json:"items"` +} + +// NewQuotaRulesList instantiates a new QuotaRulesList 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 NewQuotaRulesList(kind string, page int32, size int32, total int32, items []QuotaRules) *QuotaRulesList { + this := QuotaRulesList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewQuotaRulesListWithDefaults instantiates a new QuotaRulesList 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 NewQuotaRulesListWithDefaults() *QuotaRulesList { + this := QuotaRulesList{} + return &this +} + +// GetKind returns the Kind field value +func (o *QuotaRulesList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *QuotaRulesList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *QuotaRulesList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *QuotaRulesList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *QuotaRulesList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *QuotaRulesList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *QuotaRulesList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *QuotaRulesList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *QuotaRulesList) GetItems() []QuotaRules { + if o == nil { + var ret []QuotaRules + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *QuotaRulesList) GetItemsOk() (*[]QuotaRules, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *QuotaRulesList) SetItems(v []QuotaRules) { + o.Items = v +} + +func (o QuotaRulesList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaRulesList struct { + value *QuotaRulesList + isSet bool +} + +func (v NullableQuotaRulesList) Get() *QuotaRulesList { + return v.value +} + +func (v *NullableQuotaRulesList) Set(val *QuotaRulesList) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaRulesList) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaRulesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaRulesList(val *QuotaRulesList) *NullableQuotaRulesList { + return &NullableQuotaRulesList{value: val, isSet: true} +} + +func (v NullableQuotaRulesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaRulesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list_all_of.go new file mode 100644 index 00000000..313e3dd8 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_quota_rules_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// QuotaRulesListAllOf struct for QuotaRulesListAllOf +type QuotaRulesListAllOf struct { + Items *[]QuotaRules `json:"items,omitempty"` +} + +// NewQuotaRulesListAllOf instantiates a new QuotaRulesListAllOf 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 NewQuotaRulesListAllOf() *QuotaRulesListAllOf { + this := QuotaRulesListAllOf{} + return &this +} + +// NewQuotaRulesListAllOfWithDefaults instantiates a new QuotaRulesListAllOf 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 NewQuotaRulesListAllOfWithDefaults() *QuotaRulesListAllOf { + this := QuotaRulesListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *QuotaRulesListAllOf) GetItems() []QuotaRules { + if o == nil || o.Items == nil { + var ret []QuotaRules + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QuotaRulesListAllOf) GetItemsOk() (*[]QuotaRules, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *QuotaRulesListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []QuotaRules and assigns it to the Items field. +func (o *QuotaRulesListAllOf) SetItems(v []QuotaRules) { + o.Items = &v +} + +func (o QuotaRulesListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableQuotaRulesListAllOf struct { + value *QuotaRulesListAllOf + isSet bool +} + +func (v NullableQuotaRulesListAllOf) Get() *QuotaRulesListAllOf { + return v.value +} + +func (v *NullableQuotaRulesListAllOf) Set(val *QuotaRulesListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableQuotaRulesListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableQuotaRulesListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQuotaRulesListAllOf(val *QuotaRulesListAllOf) *NullableQuotaRulesListAllOf { + return &NullableQuotaRulesListAllOf{value: val, isSet: true} +} + +func (v NullableQuotaRulesListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQuotaRulesListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry.go new file mode 100644 index 00000000..53cd0bf9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry.go @@ -0,0 +1,476 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Registry struct for Registry +type Registry struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + CloudAlias *bool `json:"cloudAlias,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Name *string `json:"name,omitempty"` + OrgName *string `json:"org_name,omitempty"` + TeamName *string `json:"team_name,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewRegistry instantiates a new Registry 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 NewRegistry() *Registry { + this := Registry{} + return &this +} + +// NewRegistryWithDefaults instantiates a new Registry 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 NewRegistryWithDefaults() *Registry { + this := Registry{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Registry) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Registry) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Registry) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Registry) GetId() string { + if o == nil || o.Id == nil { + 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 *Registry) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Registry) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Registry) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Registry) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Registry) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Registry) SetKind(v string) { + o.Kind = &v +} + +// GetCloudAlias returns the CloudAlias field value if set, zero value otherwise. +func (o *Registry) GetCloudAlias() bool { + if o == nil || o.CloudAlias == nil { + var ret bool + return ret + } + return *o.CloudAlias +} + +// GetCloudAliasOk returns a tuple with the CloudAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetCloudAliasOk() (*bool, bool) { + if o == nil || o.CloudAlias == nil { + return nil, false + } + return o.CloudAlias, true +} + +// HasCloudAlias returns a boolean if a field has been set. +func (o *Registry) HasCloudAlias() bool { + if o != nil && o.CloudAlias != nil { + return true + } + + return false +} + +// SetCloudAlias gets a reference to the given bool and assigns it to the CloudAlias field. +func (o *Registry) SetCloudAlias(v bool) { + o.CloudAlias = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Registry) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Registry) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Registry) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Registry) GetName() string { + if o == nil || o.Name == nil { + 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 *Registry) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Registry) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Registry) SetName(v string) { + o.Name = &v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *Registry) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *Registry) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *Registry) SetOrgName(v string) { + o.OrgName = &v +} + +// GetTeamName returns the TeamName field value if set, zero value otherwise. +func (o *Registry) GetTeamName() string { + if o == nil || o.TeamName == nil { + var ret string + return ret + } + return *o.TeamName +} + +// GetTeamNameOk returns a tuple with the TeamName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetTeamNameOk() (*string, bool) { + if o == nil || o.TeamName == nil { + return nil, false + } + return o.TeamName, true +} + +// HasTeamName returns a boolean if a field has been set. +func (o *Registry) HasTeamName() bool { + if o != nil && o.TeamName != nil { + return true + } + + return false +} + +// SetTeamName gets a reference to the given string and assigns it to the TeamName field. +func (o *Registry) SetTeamName(v string) { + o.TeamName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Registry) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *Registry) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Registry) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Registry) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Registry) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Registry) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Registry) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *Registry) GetUrl() string { + if o == nil || o.Url == nil { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetUrlOk() (*string, bool) { + if o == nil || o.Url == nil { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *Registry) HasUrl() bool { + if o != nil && o.Url != nil { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *Registry) SetUrl(v string) { + o.Url = &v +} + +func (o Registry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.CloudAlias != nil { + toSerialize["cloudAlias"] = o.CloudAlias + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.TeamName != nil { + toSerialize["team_name"] = o.TeamName + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableRegistry struct { + value *Registry + isSet bool +} + +func (v NullableRegistry) Get() *Registry { + return v.value +} + +func (v *NullableRegistry) Set(val *Registry) { + v.value = val + v.isSet = true +} + +func (v NullableRegistry) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistry(val *Registry) *NullableRegistry { + return &NullableRegistry{value: val, isSet: true} +} + +func (v NullableRegistry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_all_of.go new file mode 100644 index 00000000..21e80487 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_all_of.go @@ -0,0 +1,368 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// RegistryAllOf struct for RegistryAllOf +type RegistryAllOf struct { + CloudAlias *bool `json:"cloudAlias,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Name *string `json:"name,omitempty"` + OrgName *string `json:"org_name,omitempty"` + TeamName *string `json:"team_name,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewRegistryAllOf instantiates a new RegistryAllOf 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 NewRegistryAllOf() *RegistryAllOf { + this := RegistryAllOf{} + return &this +} + +// NewRegistryAllOfWithDefaults instantiates a new RegistryAllOf 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 NewRegistryAllOfWithDefaults() *RegistryAllOf { + this := RegistryAllOf{} + return &this +} + +// GetCloudAlias returns the CloudAlias field value if set, zero value otherwise. +func (o *RegistryAllOf) GetCloudAlias() bool { + if o == nil || o.CloudAlias == nil { + var ret bool + return ret + } + return *o.CloudAlias +} + +// GetCloudAliasOk returns a tuple with the CloudAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetCloudAliasOk() (*bool, bool) { + if o == nil || o.CloudAlias == nil { + return nil, false + } + return o.CloudAlias, true +} + +// HasCloudAlias returns a boolean if a field has been set. +func (o *RegistryAllOf) HasCloudAlias() bool { + if o != nil && o.CloudAlias != nil { + return true + } + + return false +} + +// SetCloudAlias gets a reference to the given bool and assigns it to the CloudAlias field. +func (o *RegistryAllOf) SetCloudAlias(v bool) { + o.CloudAlias = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *RegistryAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *RegistryAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *RegistryAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RegistryAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *RegistryAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RegistryAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RegistryAllOf) SetName(v string) { + o.Name = &v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *RegistryAllOf) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *RegistryAllOf) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *RegistryAllOf) SetOrgName(v string) { + o.OrgName = &v +} + +// GetTeamName returns the TeamName field value if set, zero value otherwise. +func (o *RegistryAllOf) GetTeamName() string { + if o == nil || o.TeamName == nil { + var ret string + return ret + } + return *o.TeamName +} + +// GetTeamNameOk returns a tuple with the TeamName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetTeamNameOk() (*string, bool) { + if o == nil || o.TeamName == nil { + return nil, false + } + return o.TeamName, true +} + +// HasTeamName returns a boolean if a field has been set. +func (o *RegistryAllOf) HasTeamName() bool { + if o != nil && o.TeamName != nil { + return true + } + + return false +} + +// SetTeamName gets a reference to the given string and assigns it to the TeamName field. +func (o *RegistryAllOf) SetTeamName(v string) { + o.TeamName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RegistryAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *RegistryAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RegistryAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RegistryAllOf) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *RegistryAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *RegistryAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *RegistryAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *RegistryAllOf) GetUrl() string { + if o == nil || o.Url == nil { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryAllOf) GetUrlOk() (*string, bool) { + if o == nil || o.Url == nil { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *RegistryAllOf) HasUrl() bool { + if o != nil && o.Url != nil { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *RegistryAllOf) SetUrl(v string) { + o.Url = &v +} + +func (o RegistryAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudAlias != nil { + toSerialize["cloudAlias"] = o.CloudAlias + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.TeamName != nil { + toSerialize["team_name"] = o.TeamName + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableRegistryAllOf struct { + value *RegistryAllOf + isSet bool +} + +func (v NullableRegistryAllOf) Get() *RegistryAllOf { + return v.value +} + +func (v *NullableRegistryAllOf) Set(val *RegistryAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryAllOf(val *RegistryAllOf) *NullableRegistryAllOf { + return &NullableRegistryAllOf{value: val, isSet: true} +} + +func (v NullableRegistryAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_create_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_create_request.go new file mode 100644 index 00000000..f0b8bfdb --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_create_request.go @@ -0,0 +1,274 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryCreateRequest struct for RegistryCreateRequest +type RegistryCreateRequest struct { + CloudAlias *bool `json:"cloudAlias,omitempty"` + Name string `json:"name"` + OrgName *string `json:"org_name,omitempty"` + TeamName *string `json:"team_name,omitempty"` + Type string `json:"type"` + Url string `json:"url"` +} + +// NewRegistryCreateRequest instantiates a new RegistryCreateRequest 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 NewRegistryCreateRequest(name string, type_ string, url string) *RegistryCreateRequest { + this := RegistryCreateRequest{} + this.Name = name + this.Type = type_ + this.Url = url + return &this +} + +// NewRegistryCreateRequestWithDefaults instantiates a new RegistryCreateRequest 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 NewRegistryCreateRequestWithDefaults() *RegistryCreateRequest { + this := RegistryCreateRequest{} + return &this +} + +// GetCloudAlias returns the CloudAlias field value if set, zero value otherwise. +func (o *RegistryCreateRequest) GetCloudAlias() bool { + if o == nil || o.CloudAlias == nil { + var ret bool + return ret + } + return *o.CloudAlias +} + +// GetCloudAliasOk returns a tuple with the CloudAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCreateRequest) GetCloudAliasOk() (*bool, bool) { + if o == nil || o.CloudAlias == nil { + return nil, false + } + return o.CloudAlias, true +} + +// HasCloudAlias returns a boolean if a field has been set. +func (o *RegistryCreateRequest) HasCloudAlias() bool { + if o != nil && o.CloudAlias != nil { + return true + } + + return false +} + +// SetCloudAlias gets a reference to the given bool and assigns it to the CloudAlias field. +func (o *RegistryCreateRequest) SetCloudAlias(v bool) { + o.CloudAlias = &v +} + +// GetName returns the Name field value +func (o *RegistryCreateRequest) 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 *RegistryCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RegistryCreateRequest) SetName(v string) { + o.Name = v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *RegistryCreateRequest) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCreateRequest) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *RegistryCreateRequest) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *RegistryCreateRequest) SetOrgName(v string) { + o.OrgName = &v +} + +// GetTeamName returns the TeamName field value if set, zero value otherwise. +func (o *RegistryCreateRequest) GetTeamName() string { + if o == nil || o.TeamName == nil { + var ret string + return ret + } + return *o.TeamName +} + +// GetTeamNameOk returns a tuple with the TeamName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCreateRequest) GetTeamNameOk() (*string, bool) { + if o == nil || o.TeamName == nil { + return nil, false + } + return o.TeamName, true +} + +// HasTeamName returns a boolean if a field has been set. +func (o *RegistryCreateRequest) HasTeamName() bool { + if o != nil && o.TeamName != nil { + return true + } + + return false +} + +// SetTeamName gets a reference to the given string and assigns it to the TeamName field. +func (o *RegistryCreateRequest) SetTeamName(v string) { + o.TeamName = &v +} + +// GetType returns the Type field value +func (o *RegistryCreateRequest) GetType() string { + if o == nil { + var ret string + 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 *RegistryCreateRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RegistryCreateRequest) SetType(v string) { + o.Type = v +} + +// GetUrl returns the Url field value +func (o *RegistryCreateRequest) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *RegistryCreateRequest) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *RegistryCreateRequest) SetUrl(v string) { + o.Url = v +} + +func (o RegistryCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudAlias != nil { + toSerialize["cloudAlias"] = o.CloudAlias + } + if true { + toSerialize["name"] = o.Name + } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.TeamName != nil { + toSerialize["team_name"] = o.TeamName + } + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCreateRequest struct { + value *RegistryCreateRequest + isSet bool +} + +func (v NullableRegistryCreateRequest) Get() *RegistryCreateRequest { + return v.value +} + +func (v *NullableRegistryCreateRequest) Set(val *RegistryCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCreateRequest(val *RegistryCreateRequest) *NullableRegistryCreateRequest { + return &NullableRegistryCreateRequest{value: val, isSet: true} +} + +func (v NullableRegistryCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential.go new file mode 100644 index 00000000..cb97b305 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential.go @@ -0,0 +1,440 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// RegistryCredential struct for RegistryCredential +type RegistryCredential struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Account *ObjectReference `json:"account,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExternalResourceId *string `json:"external_resource_id,omitempty"` + Registry *ObjectReference `json:"registry,omitempty"` + Token *string `json:"token,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewRegistryCredential instantiates a new RegistryCredential 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 NewRegistryCredential() *RegistryCredential { + this := RegistryCredential{} + return &this +} + +// NewRegistryCredentialWithDefaults instantiates a new RegistryCredential 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 NewRegistryCredentialWithDefaults() *RegistryCredential { + this := RegistryCredential{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *RegistryCredential) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *RegistryCredential) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *RegistryCredential) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RegistryCredential) GetId() string { + if o == nil || o.Id == nil { + 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 *RegistryCredential) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *RegistryCredential) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *RegistryCredential) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *RegistryCredential) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *RegistryCredential) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *RegistryCredential) SetKind(v string) { + o.Kind = &v +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *RegistryCredential) GetAccount() ObjectReference { + if o == nil || o.Account == nil { + var ret ObjectReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetAccountOk() (*ObjectReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *RegistryCredential) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given ObjectReference and assigns it to the Account field. +func (o *RegistryCredential) SetAccount(v ObjectReference) { + o.Account = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *RegistryCredential) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *RegistryCredential) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *RegistryCredential) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExternalResourceId returns the ExternalResourceId field value if set, zero value otherwise. +func (o *RegistryCredential) GetExternalResourceId() string { + if o == nil || o.ExternalResourceId == nil { + var ret string + return ret + } + return *o.ExternalResourceId +} + +// GetExternalResourceIdOk returns a tuple with the ExternalResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetExternalResourceIdOk() (*string, bool) { + if o == nil || o.ExternalResourceId == nil { + return nil, false + } + return o.ExternalResourceId, true +} + +// HasExternalResourceId returns a boolean if a field has been set. +func (o *RegistryCredential) HasExternalResourceId() bool { + if o != nil && o.ExternalResourceId != nil { + return true + } + + return false +} + +// SetExternalResourceId gets a reference to the given string and assigns it to the ExternalResourceId field. +func (o *RegistryCredential) SetExternalResourceId(v string) { + o.ExternalResourceId = &v +} + +// GetRegistry returns the Registry field value if set, zero value otherwise. +func (o *RegistryCredential) GetRegistry() ObjectReference { + if o == nil || o.Registry == nil { + var ret ObjectReference + return ret + } + return *o.Registry +} + +// GetRegistryOk returns a tuple with the Registry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetRegistryOk() (*ObjectReference, bool) { + if o == nil || o.Registry == nil { + return nil, false + } + return o.Registry, true +} + +// HasRegistry returns a boolean if a field has been set. +func (o *RegistryCredential) HasRegistry() bool { + if o != nil && o.Registry != nil { + return true + } + + return false +} + +// SetRegistry gets a reference to the given ObjectReference and assigns it to the Registry field. +func (o *RegistryCredential) SetRegistry(v ObjectReference) { + o.Registry = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *RegistryCredential) GetToken() string { + if o == nil || o.Token == nil { + 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 *RegistryCredential) GetTokenOk() (*string, bool) { + if o == nil || o.Token == nil { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *RegistryCredential) HasToken() bool { + if o != nil && o.Token != nil { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *RegistryCredential) SetToken(v string) { + o.Token = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *RegistryCredential) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredential) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *RegistryCredential) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *RegistryCredential) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RegistryCredential) GetUsername() string { + if o == nil || o.Username == nil { + 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 *RegistryCredential) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RegistryCredential) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RegistryCredential) SetUsername(v string) { + o.Username = &v +} + +func (o RegistryCredential) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExternalResourceId != nil { + toSerialize["external_resource_id"] = o.ExternalResourceId + } + if o.Registry != nil { + toSerialize["registry"] = o.Registry + } + if o.Token != nil { + toSerialize["token"] = o.Token + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCredential struct { + value *RegistryCredential + isSet bool +} + +func (v NullableRegistryCredential) Get() *RegistryCredential { + return v.value +} + +func (v *NullableRegistryCredential) Set(val *RegistryCredential) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCredential(val *RegistryCredential) *NullableRegistryCredential { + return &NullableRegistryCredential{value: val, isSet: true} +} + +func (v NullableRegistryCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_all_of.go new file mode 100644 index 00000000..1db78920 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_all_of.go @@ -0,0 +1,332 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// RegistryCredentialAllOf struct for RegistryCredentialAllOf +type RegistryCredentialAllOf struct { + Account *ObjectReference `json:"account,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExternalResourceId *string `json:"external_resource_id,omitempty"` + Registry *ObjectReference `json:"registry,omitempty"` + Token *string `json:"token,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewRegistryCredentialAllOf instantiates a new RegistryCredentialAllOf 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 NewRegistryCredentialAllOf() *RegistryCredentialAllOf { + this := RegistryCredentialAllOf{} + return &this +} + +// NewRegistryCredentialAllOfWithDefaults instantiates a new RegistryCredentialAllOf 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 NewRegistryCredentialAllOfWithDefaults() *RegistryCredentialAllOf { + this := RegistryCredentialAllOf{} + return &this +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetAccount() ObjectReference { + if o == nil || o.Account == nil { + var ret ObjectReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialAllOf) GetAccountOk() (*ObjectReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given ObjectReference and assigns it to the Account field. +func (o *RegistryCredentialAllOf) SetAccount(v ObjectReference) { + o.Account = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *RegistryCredentialAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExternalResourceId returns the ExternalResourceId field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetExternalResourceId() string { + if o == nil || o.ExternalResourceId == nil { + var ret string + return ret + } + return *o.ExternalResourceId +} + +// GetExternalResourceIdOk returns a tuple with the ExternalResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialAllOf) GetExternalResourceIdOk() (*string, bool) { + if o == nil || o.ExternalResourceId == nil { + return nil, false + } + return o.ExternalResourceId, true +} + +// HasExternalResourceId returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasExternalResourceId() bool { + if o != nil && o.ExternalResourceId != nil { + return true + } + + return false +} + +// SetExternalResourceId gets a reference to the given string and assigns it to the ExternalResourceId field. +func (o *RegistryCredentialAllOf) SetExternalResourceId(v string) { + o.ExternalResourceId = &v +} + +// GetRegistry returns the Registry field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetRegistry() ObjectReference { + if o == nil || o.Registry == nil { + var ret ObjectReference + return ret + } + return *o.Registry +} + +// GetRegistryOk returns a tuple with the Registry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialAllOf) GetRegistryOk() (*ObjectReference, bool) { + if o == nil || o.Registry == nil { + return nil, false + } + return o.Registry, true +} + +// HasRegistry returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasRegistry() bool { + if o != nil && o.Registry != nil { + return true + } + + return false +} + +// SetRegistry gets a reference to the given ObjectReference and assigns it to the Registry field. +func (o *RegistryCredentialAllOf) SetRegistry(v ObjectReference) { + o.Registry = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetToken() string { + if o == nil || o.Token == nil { + 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 *RegistryCredentialAllOf) GetTokenOk() (*string, bool) { + if o == nil || o.Token == nil { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasToken() bool { + if o != nil && o.Token != nil { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *RegistryCredentialAllOf) SetToken(v string) { + o.Token = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *RegistryCredentialAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RegistryCredentialAllOf) GetUsername() string { + if o == nil || o.Username == nil { + 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 *RegistryCredentialAllOf) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RegistryCredentialAllOf) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RegistryCredentialAllOf) SetUsername(v string) { + o.Username = &v +} + +func (o RegistryCredentialAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExternalResourceId != nil { + toSerialize["external_resource_id"] = o.ExternalResourceId + } + if o.Registry != nil { + toSerialize["registry"] = o.Registry + } + if o.Token != nil { + toSerialize["token"] = o.Token + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCredentialAllOf struct { + value *RegistryCredentialAllOf + isSet bool +} + +func (v NullableRegistryCredentialAllOf) Get() *RegistryCredentialAllOf { + return v.value +} + +func (v *NullableRegistryCredentialAllOf) Set(val *RegistryCredentialAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCredentialAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCredentialAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCredentialAllOf(val *RegistryCredentialAllOf) *NullableRegistryCredentialAllOf { + return &NullableRegistryCredentialAllOf{value: val, isSet: true} +} + +func (v NullableRegistryCredentialAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCredentialAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list.go new file mode 100644 index 00000000..443e0c56 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryCredentialList struct for RegistryCredentialList +type RegistryCredentialList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []RegistryCredential `json:"items"` +} + +// NewRegistryCredentialList instantiates a new RegistryCredentialList 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 NewRegistryCredentialList(kind string, page int32, size int32, total int32, items []RegistryCredential) *RegistryCredentialList { + this := RegistryCredentialList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewRegistryCredentialListWithDefaults instantiates a new RegistryCredentialList 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 NewRegistryCredentialListWithDefaults() *RegistryCredentialList { + this := RegistryCredentialList{} + return &this +} + +// GetKind returns the Kind field value +func (o *RegistryCredentialList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *RegistryCredentialList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *RegistryCredentialList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *RegistryCredentialList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *RegistryCredentialList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *RegistryCredentialList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *RegistryCredentialList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *RegistryCredentialList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *RegistryCredentialList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *RegistryCredentialList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RegistryCredentialList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RegistryCredentialList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *RegistryCredentialList) GetItems() []RegistryCredential { + if o == nil { + var ret []RegistryCredential + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RegistryCredentialList) GetItemsOk() (*[]RegistryCredential, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RegistryCredentialList) SetItems(v []RegistryCredential) { + o.Items = v +} + +func (o RegistryCredentialList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCredentialList struct { + value *RegistryCredentialList + isSet bool +} + +func (v NullableRegistryCredentialList) Get() *RegistryCredentialList { + return v.value +} + +func (v *NullableRegistryCredentialList) Set(val *RegistryCredentialList) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCredentialList) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCredentialList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCredentialList(val *RegistryCredentialList) *NullableRegistryCredentialList { + return &NullableRegistryCredentialList{value: val, isSet: true} +} + +func (v NullableRegistryCredentialList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCredentialList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list_all_of.go new file mode 100644 index 00000000..59dff1fc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryCredentialListAllOf struct for RegistryCredentialListAllOf +type RegistryCredentialListAllOf struct { + Items *[]RegistryCredential `json:"items,omitempty"` +} + +// NewRegistryCredentialListAllOf instantiates a new RegistryCredentialListAllOf 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 NewRegistryCredentialListAllOf() *RegistryCredentialListAllOf { + this := RegistryCredentialListAllOf{} + return &this +} + +// NewRegistryCredentialListAllOfWithDefaults instantiates a new RegistryCredentialListAllOf 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 NewRegistryCredentialListAllOfWithDefaults() *RegistryCredentialListAllOf { + this := RegistryCredentialListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *RegistryCredentialListAllOf) GetItems() []RegistryCredential { + if o == nil || o.Items == nil { + var ret []RegistryCredential + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialListAllOf) GetItemsOk() (*[]RegistryCredential, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *RegistryCredentialListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []RegistryCredential and assigns it to the Items field. +func (o *RegistryCredentialListAllOf) SetItems(v []RegistryCredential) { + o.Items = &v +} + +func (o RegistryCredentialListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCredentialListAllOf struct { + value *RegistryCredentialListAllOf + isSet bool +} + +func (v NullableRegistryCredentialListAllOf) Get() *RegistryCredentialListAllOf { + return v.value +} + +func (v *NullableRegistryCredentialListAllOf) Set(val *RegistryCredentialListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCredentialListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCredentialListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCredentialListAllOf(val *RegistryCredentialListAllOf) *NullableRegistryCredentialListAllOf { + return &NullableRegistryCredentialListAllOf{value: val, isSet: true} +} + +func (v NullableRegistryCredentialListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCredentialListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_patch_request.go new file mode 100644 index 00000000..a0909041 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_credential_patch_request.go @@ -0,0 +1,259 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryCredentialPatchRequest struct for RegistryCredentialPatchRequest +type RegistryCredentialPatchRequest struct { + AccountId *string `json:"account_id,omitempty"` + ExternalResourceId *string `json:"external_resource_id,omitempty"` + RegistryId *string `json:"registry_id,omitempty"` + Token *string `json:"token,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewRegistryCredentialPatchRequest instantiates a new RegistryCredentialPatchRequest 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 NewRegistryCredentialPatchRequest() *RegistryCredentialPatchRequest { + this := RegistryCredentialPatchRequest{} + return &this +} + +// NewRegistryCredentialPatchRequestWithDefaults instantiates a new RegistryCredentialPatchRequest 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 NewRegistryCredentialPatchRequestWithDefaults() *RegistryCredentialPatchRequest { + this := RegistryCredentialPatchRequest{} + return &this +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *RegistryCredentialPatchRequest) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialPatchRequest) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *RegistryCredentialPatchRequest) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *RegistryCredentialPatchRequest) SetAccountId(v string) { + o.AccountId = &v +} + +// GetExternalResourceId returns the ExternalResourceId field value if set, zero value otherwise. +func (o *RegistryCredentialPatchRequest) GetExternalResourceId() string { + if o == nil || o.ExternalResourceId == nil { + var ret string + return ret + } + return *o.ExternalResourceId +} + +// GetExternalResourceIdOk returns a tuple with the ExternalResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialPatchRequest) GetExternalResourceIdOk() (*string, bool) { + if o == nil || o.ExternalResourceId == nil { + return nil, false + } + return o.ExternalResourceId, true +} + +// HasExternalResourceId returns a boolean if a field has been set. +func (o *RegistryCredentialPatchRequest) HasExternalResourceId() bool { + if o != nil && o.ExternalResourceId != nil { + return true + } + + return false +} + +// SetExternalResourceId gets a reference to the given string and assigns it to the ExternalResourceId field. +func (o *RegistryCredentialPatchRequest) SetExternalResourceId(v string) { + o.ExternalResourceId = &v +} + +// GetRegistryId returns the RegistryId field value if set, zero value otherwise. +func (o *RegistryCredentialPatchRequest) GetRegistryId() string { + if o == nil || o.RegistryId == nil { + var ret string + return ret + } + return *o.RegistryId +} + +// GetRegistryIdOk returns a tuple with the RegistryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryCredentialPatchRequest) GetRegistryIdOk() (*string, bool) { + if o == nil || o.RegistryId == nil { + return nil, false + } + return o.RegistryId, true +} + +// HasRegistryId returns a boolean if a field has been set. +func (o *RegistryCredentialPatchRequest) HasRegistryId() bool { + if o != nil && o.RegistryId != nil { + return true + } + + return false +} + +// SetRegistryId gets a reference to the given string and assigns it to the RegistryId field. +func (o *RegistryCredentialPatchRequest) SetRegistryId(v string) { + o.RegistryId = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *RegistryCredentialPatchRequest) GetToken() string { + if o == nil || o.Token == nil { + 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 *RegistryCredentialPatchRequest) GetTokenOk() (*string, bool) { + if o == nil || o.Token == nil { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *RegistryCredentialPatchRequest) HasToken() bool { + if o != nil && o.Token != nil { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *RegistryCredentialPatchRequest) SetToken(v string) { + o.Token = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *RegistryCredentialPatchRequest) GetUsername() string { + if o == nil || o.Username == nil { + 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 *RegistryCredentialPatchRequest) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *RegistryCredentialPatchRequest) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *RegistryCredentialPatchRequest) SetUsername(v string) { + o.Username = &v +} + +func (o RegistryCredentialPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.ExternalResourceId != nil { + toSerialize["external_resource_id"] = o.ExternalResourceId + } + if o.RegistryId != nil { + toSerialize["registry_id"] = o.RegistryId + } + if o.Token != nil { + toSerialize["token"] = o.Token + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCredentialPatchRequest struct { + value *RegistryCredentialPatchRequest + isSet bool +} + +func (v NullableRegistryCredentialPatchRequest) Get() *RegistryCredentialPatchRequest { + return v.value +} + +func (v *NullableRegistryCredentialPatchRequest) Set(val *RegistryCredentialPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCredentialPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCredentialPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCredentialPatchRequest(val *RegistryCredentialPatchRequest) *NullableRegistryCredentialPatchRequest { + return &NullableRegistryCredentialPatchRequest{value: val, isSet: true} +} + +func (v NullableRegistryCredentialPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCredentialPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list.go new file mode 100644 index 00000000..a9777792 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryList struct for RegistryList +type RegistryList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Registry `json:"items"` +} + +// NewRegistryList instantiates a new RegistryList 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 NewRegistryList(kind string, page int32, size int32, total int32, items []Registry) *RegistryList { + this := RegistryList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewRegistryListWithDefaults instantiates a new RegistryList 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 NewRegistryListWithDefaults() *RegistryList { + this := RegistryList{} + return &this +} + +// GetKind returns the Kind field value +func (o *RegistryList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *RegistryList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *RegistryList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *RegistryList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *RegistryList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *RegistryList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *RegistryList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RegistryList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *RegistryList) GetItems() []Registry { + if o == nil { + var ret []Registry + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetItemsOk() (*[]Registry, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RegistryList) SetItems(v []Registry) { + o.Items = v +} + +func (o RegistryList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryList struct { + value *RegistryList + isSet bool +} + +func (v NullableRegistryList) Get() *RegistryList { + return v.value +} + +func (v *NullableRegistryList) Set(val *RegistryList) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryList) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryList(val *RegistryList) *NullableRegistryList { + return &NullableRegistryList{value: val, isSet: true} +} + +func (v NullableRegistryList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list_all_of.go new file mode 100644 index 00000000..9f81e1cc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryListAllOf struct for RegistryListAllOf +type RegistryListAllOf struct { + Items *[]Registry `json:"items,omitempty"` +} + +// NewRegistryListAllOf instantiates a new RegistryListAllOf 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 NewRegistryListAllOf() *RegistryListAllOf { + this := RegistryListAllOf{} + return &this +} + +// NewRegistryListAllOfWithDefaults instantiates a new RegistryListAllOf 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 NewRegistryListAllOfWithDefaults() *RegistryListAllOf { + this := RegistryListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *RegistryListAllOf) GetItems() []Registry { + if o == nil || o.Items == nil { + var ret []Registry + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryListAllOf) GetItemsOk() (*[]Registry, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *RegistryListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Registry and assigns it to the Items field. +func (o *RegistryListAllOf) SetItems(v []Registry) { + o.Items = &v +} + +func (o RegistryListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryListAllOf struct { + value *RegistryListAllOf + isSet bool +} + +func (v NullableRegistryListAllOf) Get() *RegistryListAllOf { + return v.value +} + +func (v *NullableRegistryListAllOf) Set(val *RegistryListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryListAllOf(val *RegistryListAllOf) *NullableRegistryListAllOf { + return &NullableRegistryListAllOf{value: val, isSet: true} +} + +func (v NullableRegistryListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_request.go new file mode 100644 index 00000000..aa5a8f4b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_registry_request.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RegistryRequest struct for RegistryRequest +type RegistryRequest struct { + CloudAlias *bool `json:"cloudAlias,omitempty"` + Name *string `json:"name,omitempty"` + OrgName *string `json:"org_name,omitempty"` + TeamName *string `json:"team_name,omitempty"` + Type *string `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewRegistryRequest instantiates a new RegistryRequest 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 NewRegistryRequest() *RegistryRequest { + this := RegistryRequest{} + return &this +} + +// NewRegistryRequestWithDefaults instantiates a new RegistryRequest 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 NewRegistryRequestWithDefaults() *RegistryRequest { + this := RegistryRequest{} + return &this +} + +// GetCloudAlias returns the CloudAlias field value if set, zero value otherwise. +func (o *RegistryRequest) GetCloudAlias() bool { + if o == nil || o.CloudAlias == nil { + var ret bool + return ret + } + return *o.CloudAlias +} + +// GetCloudAliasOk returns a tuple with the CloudAlias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryRequest) GetCloudAliasOk() (*bool, bool) { + if o == nil || o.CloudAlias == nil { + return nil, false + } + return o.CloudAlias, true +} + +// HasCloudAlias returns a boolean if a field has been set. +func (o *RegistryRequest) HasCloudAlias() bool { + if o != nil && o.CloudAlias != nil { + return true + } + + return false +} + +// SetCloudAlias gets a reference to the given bool and assigns it to the CloudAlias field. +func (o *RegistryRequest) SetCloudAlias(v bool) { + o.CloudAlias = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RegistryRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *RegistryRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RegistryRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RegistryRequest) SetName(v string) { + o.Name = &v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *RegistryRequest) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryRequest) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *RegistryRequest) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *RegistryRequest) SetOrgName(v string) { + o.OrgName = &v +} + +// GetTeamName returns the TeamName field value if set, zero value otherwise. +func (o *RegistryRequest) GetTeamName() string { + if o == nil || o.TeamName == nil { + var ret string + return ret + } + return *o.TeamName +} + +// GetTeamNameOk returns a tuple with the TeamName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryRequest) GetTeamNameOk() (*string, bool) { + if o == nil || o.TeamName == nil { + return nil, false + } + return o.TeamName, true +} + +// HasTeamName returns a boolean if a field has been set. +func (o *RegistryRequest) HasTeamName() bool { + if o != nil && o.TeamName != nil { + return true + } + + return false +} + +// SetTeamName gets a reference to the given string and assigns it to the TeamName field. +func (o *RegistryRequest) SetTeamName(v string) { + o.TeamName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RegistryRequest) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *RegistryRequest) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RegistryRequest) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RegistryRequest) SetType(v string) { + o.Type = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *RegistryRequest) GetUrl() string { + if o == nil || o.Url == nil { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RegistryRequest) GetUrlOk() (*string, bool) { + if o == nil || o.Url == nil { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *RegistryRequest) HasUrl() bool { + if o != nil && o.Url != nil { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *RegistryRequest) SetUrl(v string) { + o.Url = &v +} + +func (o RegistryRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudAlias != nil { + toSerialize["cloudAlias"] = o.CloudAlias + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.TeamName != nil { + toSerialize["team_name"] = o.TeamName + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableRegistryRequest struct { + value *RegistryRequest + isSet bool +} + +func (v NullableRegistryRequest) Get() *RegistryRequest { + return v.value +} + +func (v *NullableRegistryRequest) Set(val *RegistryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryRequest(val *RegistryRequest) *NullableRegistryRequest { + return &NullableRegistryRequest{value: val, isSet: true} +} + +func (v NullableRegistryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource.go new file mode 100644 index 00000000..033b646e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource.go @@ -0,0 +1,462 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RelatedResource struct for RelatedResource +type RelatedResource struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType string `json:"availability_zone_type"` + BillingModel string `json:"billing_model"` + Byoc string `json:"byoc"` + CloudProvider string `json:"cloud_provider"` + Cost int32 `json:"cost"` + Product string `json:"product"` + ProductId *string `json:"product_id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType string `json:"resource_type"` +} + +// NewRelatedResource instantiates a new RelatedResource 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 NewRelatedResource(availabilityZoneType string, billingModel string, byoc string, cloudProvider string, cost int32, product string, resourceType string) *RelatedResource { + this := RelatedResource{} + this.AvailabilityZoneType = availabilityZoneType + this.BillingModel = billingModel + this.Byoc = byoc + this.CloudProvider = cloudProvider + this.Cost = cost + this.Product = product + this.ResourceType = resourceType + return &this +} + +// NewRelatedResourceWithDefaults instantiates a new RelatedResource 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 NewRelatedResourceWithDefaults() *RelatedResource { + this := RelatedResource{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *RelatedResource) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *RelatedResource) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *RelatedResource) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RelatedResource) GetId() string { + if o == nil || o.Id == nil { + 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 *RelatedResource) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *RelatedResource) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *RelatedResource) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *RelatedResource) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *RelatedResource) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *RelatedResource) SetKind(v string) { + o.Kind = &v +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value +func (o *RelatedResource) GetAvailabilityZoneType() string { + if o == nil { + var ret string + return ret + } + + return o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AvailabilityZoneType, true +} + +// SetAvailabilityZoneType sets field value +func (o *RelatedResource) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = v +} + +// GetBillingModel returns the BillingModel field value +func (o *RelatedResource) GetBillingModel() string { + if o == nil { + var ret string + return ret + } + + return o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetBillingModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BillingModel, true +} + +// SetBillingModel sets field value +func (o *RelatedResource) SetBillingModel(v string) { + o.BillingModel = v +} + +// GetByoc returns the Byoc field value +func (o *RelatedResource) GetByoc() string { + if o == nil { + var ret string + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetByocOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *RelatedResource) SetByoc(v string) { + o.Byoc = v +} + +// GetCloudProvider returns the CloudProvider field value +func (o *RelatedResource) GetCloudProvider() string { + if o == nil { + var ret string + return ret + } + + return o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetCloudProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudProvider, true +} + +// SetCloudProvider sets field value +func (o *RelatedResource) SetCloudProvider(v string) { + o.CloudProvider = v +} + +// GetCost returns the Cost field value +func (o *RelatedResource) GetCost() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Cost +} + +// GetCostOk returns a tuple with the Cost field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetCostOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Cost, true +} + +// SetCost sets field value +func (o *RelatedResource) SetCost(v int32) { + o.Cost = v +} + +// GetProduct returns the Product field value +func (o *RelatedResource) GetProduct() string { + if o == nil { + var ret string + return ret + } + + return o.Product +} + +// GetProductOk returns a tuple with the Product field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetProductOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Product, true +} + +// SetProduct sets field value +func (o *RelatedResource) SetProduct(v string) { + o.Product = v +} + +// GetProductId returns the ProductId field value if set, zero value otherwise. +func (o *RelatedResource) GetProductId() string { + if o == nil || o.ProductId == nil { + var ret string + return ret + } + return *o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetProductIdOk() (*string, bool) { + if o == nil || o.ProductId == nil { + return nil, false + } + return o.ProductId, true +} + +// HasProductId returns a boolean if a field has been set. +func (o *RelatedResource) HasProductId() bool { + if o != nil && o.ProductId != nil { + return true + } + + return false +} + +// SetProductId gets a reference to the given string and assigns it to the ProductId field. +func (o *RelatedResource) SetProductId(v string) { + o.ProductId = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *RelatedResource) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *RelatedResource) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *RelatedResource) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value +func (o *RelatedResource) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *RelatedResource) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *RelatedResource) SetResourceType(v string) { + o.ResourceType = v +} + +func (o RelatedResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if true { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if true { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["cost"] = o.Cost + } + if true { + toSerialize["product"] = o.Product + } + if o.ProductId != nil { + toSerialize["product_id"] = o.ProductId + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableRelatedResource struct { + value *RelatedResource + isSet bool +} + +func (v NullableRelatedResource) Get() *RelatedResource { + return v.value +} + +func (v *NullableRelatedResource) Set(val *RelatedResource) { + v.value = val + v.isSet = true +} + +func (v NullableRelatedResource) IsSet() bool { + return v.isSet +} + +func (v *NullableRelatedResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelatedResource(val *RelatedResource) *NullableRelatedResource { + return &NullableRelatedResource{value: val, isSet: true} +} + +func (v NullableRelatedResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelatedResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource_all_of.go new file mode 100644 index 00000000..06b65cc2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_related_resource_all_of.go @@ -0,0 +1,354 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RelatedResourceAllOf struct for RelatedResourceAllOf +type RelatedResourceAllOf struct { + AvailabilityZoneType string `json:"availability_zone_type"` + BillingModel string `json:"billing_model"` + Byoc string `json:"byoc"` + CloudProvider string `json:"cloud_provider"` + Cost int32 `json:"cost"` + Product string `json:"product"` + ProductId *string `json:"product_id,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType string `json:"resource_type"` +} + +// NewRelatedResourceAllOf instantiates a new RelatedResourceAllOf 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 NewRelatedResourceAllOf(availabilityZoneType string, billingModel string, byoc string, cloudProvider string, cost int32, product string, resourceType string) *RelatedResourceAllOf { + this := RelatedResourceAllOf{} + this.AvailabilityZoneType = availabilityZoneType + this.BillingModel = billingModel + this.Byoc = byoc + this.CloudProvider = cloudProvider + this.Cost = cost + this.Product = product + this.ResourceType = resourceType + return &this +} + +// NewRelatedResourceAllOfWithDefaults instantiates a new RelatedResourceAllOf 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 NewRelatedResourceAllOfWithDefaults() *RelatedResourceAllOf { + this := RelatedResourceAllOf{} + return &this +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value +func (o *RelatedResourceAllOf) GetAvailabilityZoneType() string { + if o == nil { + var ret string + return ret + } + + return o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AvailabilityZoneType, true +} + +// SetAvailabilityZoneType sets field value +func (o *RelatedResourceAllOf) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = v +} + +// GetBillingModel returns the BillingModel field value +func (o *RelatedResourceAllOf) GetBillingModel() string { + if o == nil { + var ret string + return ret + } + + return o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetBillingModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BillingModel, true +} + +// SetBillingModel sets field value +func (o *RelatedResourceAllOf) SetBillingModel(v string) { + o.BillingModel = v +} + +// GetByoc returns the Byoc field value +func (o *RelatedResourceAllOf) GetByoc() string { + if o == nil { + var ret string + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetByocOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *RelatedResourceAllOf) SetByoc(v string) { + o.Byoc = v +} + +// GetCloudProvider returns the CloudProvider field value +func (o *RelatedResourceAllOf) GetCloudProvider() string { + if o == nil { + var ret string + return ret + } + + return o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetCloudProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudProvider, true +} + +// SetCloudProvider sets field value +func (o *RelatedResourceAllOf) SetCloudProvider(v string) { + o.CloudProvider = v +} + +// GetCost returns the Cost field value +func (o *RelatedResourceAllOf) GetCost() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Cost +} + +// GetCostOk returns a tuple with the Cost field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetCostOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Cost, true +} + +// SetCost sets field value +func (o *RelatedResourceAllOf) SetCost(v int32) { + o.Cost = v +} + +// GetProduct returns the Product field value +func (o *RelatedResourceAllOf) GetProduct() string { + if o == nil { + var ret string + return ret + } + + return o.Product +} + +// GetProductOk returns a tuple with the Product field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetProductOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Product, true +} + +// SetProduct sets field value +func (o *RelatedResourceAllOf) SetProduct(v string) { + o.Product = v +} + +// GetProductId returns the ProductId field value if set, zero value otherwise. +func (o *RelatedResourceAllOf) GetProductId() string { + if o == nil || o.ProductId == nil { + var ret string + return ret + } + return *o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetProductIdOk() (*string, bool) { + if o == nil || o.ProductId == nil { + return nil, false + } + return o.ProductId, true +} + +// HasProductId returns a boolean if a field has been set. +func (o *RelatedResourceAllOf) HasProductId() bool { + if o != nil && o.ProductId != nil { + return true + } + + return false +} + +// SetProductId gets a reference to the given string and assigns it to the ProductId field. +func (o *RelatedResourceAllOf) SetProductId(v string) { + o.ProductId = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *RelatedResourceAllOf) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *RelatedResourceAllOf) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *RelatedResourceAllOf) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value +func (o *RelatedResourceAllOf) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *RelatedResourceAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *RelatedResourceAllOf) SetResourceType(v string) { + o.ResourceType = v +} + +func (o RelatedResourceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if true { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if true { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["cost"] = o.Cost + } + if true { + toSerialize["product"] = o.Product + } + if o.ProductId != nil { + toSerialize["product_id"] = o.ProductId + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableRelatedResourceAllOf struct { + value *RelatedResourceAllOf + isSet bool +} + +func (v NullableRelatedResourceAllOf) Get() *RelatedResourceAllOf { + return v.value +} + +func (v *NullableRelatedResourceAllOf) Set(val *RelatedResourceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRelatedResourceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRelatedResourceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRelatedResourceAllOf(val *RelatedResourceAllOf) *NullableRelatedResourceAllOf { + return &NullableRelatedResourceAllOf{value: val, isSet: true} +} + +func (v NullableRelatedResourceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRelatedResourceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource.go new file mode 100644 index 00000000..cf95ba63 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource.go @@ -0,0 +1,577 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ReservedResource struct for ReservedResource +type ReservedResource struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + Cluster *bool `json:"cluster,omitempty"` + Count *int32 `json:"count,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewReservedResource instantiates a new ReservedResource 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 NewReservedResource(byoc bool) *ReservedResource { + this := ReservedResource{} + this.Byoc = byoc + return &this +} + +// NewReservedResourceWithDefaults instantiates a new ReservedResource 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 NewReservedResourceWithDefaults() *ReservedResource { + this := ReservedResource{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ReservedResource) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ReservedResource) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ReservedResource) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ReservedResource) GetId() string { + if o == nil || o.Id == nil { + 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 *ReservedResource) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ReservedResource) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ReservedResource) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ReservedResource) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ReservedResource) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ReservedResource) SetKind(v string) { + o.Kind = &v +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ReservedResource) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ReservedResource) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ReservedResource) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *ReservedResource) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *ReservedResource) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *ReservedResource) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ReservedResource) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ReservedResource) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ReservedResource) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ReservedResource) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ReservedResource) SetByoc(v bool) { + o.Byoc = v +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *ReservedResource) GetCluster() bool { + if o == nil || o.Cluster == nil { + var ret bool + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetClusterOk() (*bool, bool) { + if o == nil || o.Cluster == nil { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *ReservedResource) HasCluster() bool { + if o != nil && o.Cluster != nil { + return true + } + + return false +} + +// SetCluster gets a reference to the given bool and assigns it to the Cluster field. +func (o *ReservedResource) SetCluster(v bool) { + o.Cluster = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ReservedResource) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ReservedResource) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ReservedResource) SetCount(v int32) { + o.Count = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ReservedResource) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ReservedResource) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ReservedResource) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ReservedResource) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ReservedResource) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ReservedResource) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ReservedResource) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ReservedResource) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ReservedResource) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *ReservedResource) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *ReservedResource) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *ReservedResource) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ReservedResource) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResource) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ReservedResource) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ReservedResource) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ReservedResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.Cluster != nil { + toSerialize["cluster"] = o.Cluster + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableReservedResource struct { + value *ReservedResource + isSet bool +} + +func (v NullableReservedResource) Get() *ReservedResource { + return v.value +} + +func (v *NullableReservedResource) Set(val *ReservedResource) { + v.value = val + v.isSet = true +} + +func (v NullableReservedResource) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedResource(val *ReservedResource) *NullableReservedResource { + return &NullableReservedResource{value: val, isSet: true} +} + +func (v NullableReservedResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_all_of.go new file mode 100644 index 00000000..aa96ecd8 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_all_of.go @@ -0,0 +1,469 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ReservedResourceAllOf struct for ReservedResourceAllOf +type ReservedResourceAllOf struct { + AvailabilityZoneType *string `json:"availability_zone_type,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` + Byoc bool `json:"byoc"` + Cluster *bool `json:"cluster,omitempty"` + Count *int32 `json:"count,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ResourceName *string `json:"resource_name,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewReservedResourceAllOf instantiates a new ReservedResourceAllOf 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 NewReservedResourceAllOf(byoc bool) *ReservedResourceAllOf { + this := ReservedResourceAllOf{} + this.Byoc = byoc + return &this +} + +// NewReservedResourceAllOfWithDefaults instantiates a new ReservedResourceAllOf 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 NewReservedResourceAllOfWithDefaults() *ReservedResourceAllOf { + this := ReservedResourceAllOf{} + return &this +} + +// GetAvailabilityZoneType returns the AvailabilityZoneType field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetAvailabilityZoneType() string { + if o == nil || o.AvailabilityZoneType == nil { + var ret string + return ret + } + return *o.AvailabilityZoneType +} + +// GetAvailabilityZoneTypeOk returns a tuple with the AvailabilityZoneType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetAvailabilityZoneTypeOk() (*string, bool) { + if o == nil || o.AvailabilityZoneType == nil { + return nil, false + } + return o.AvailabilityZoneType, true +} + +// HasAvailabilityZoneType returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasAvailabilityZoneType() bool { + if o != nil && o.AvailabilityZoneType != nil { + return true + } + + return false +} + +// SetAvailabilityZoneType gets a reference to the given string and assigns it to the AvailabilityZoneType field. +func (o *ReservedResourceAllOf) SetAvailabilityZoneType(v string) { + o.AvailabilityZoneType = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *ReservedResourceAllOf) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ReservedResourceAllOf) SetBillingModel(v string) { + o.BillingModel = &v +} + +// GetByoc returns the Byoc field value +func (o *ReservedResourceAllOf) GetByoc() bool { + if o == nil { + var ret bool + return ret + } + + return o.Byoc +} + +// GetByocOk returns a tuple with the Byoc field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetByocOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Byoc, true +} + +// SetByoc sets field value +func (o *ReservedResourceAllOf) SetByoc(v bool) { + o.Byoc = v +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetCluster() bool { + if o == nil || o.Cluster == nil { + var ret bool + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetClusterOk() (*bool, bool) { + if o == nil || o.Cluster == nil { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasCluster() bool { + if o != nil && o.Cluster != nil { + return true + } + + return false +} + +// SetCluster gets a reference to the given bool and assigns it to the Cluster field. +func (o *ReservedResourceAllOf) SetCluster(v bool) { + o.Cluster = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ReservedResourceAllOf) SetCount(v int32) { + o.Count = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ReservedResourceAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetResourceName() string { + if o == nil || o.ResourceName == nil { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetResourceNameOk() (*string, bool) { + if o == nil || o.ResourceName == nil { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasResourceName() bool { + if o != nil && o.ResourceName != nil { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ReservedResourceAllOf) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ReservedResourceAllOf) SetResourceType(v string) { + o.ResourceType = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *ReservedResourceAllOf) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ReservedResourceAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ReservedResourceAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ReservedResourceAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ReservedResourceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityZoneType != nil { + toSerialize["availability_zone_type"] = o.AvailabilityZoneType + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + if true { + toSerialize["byoc"] = o.Byoc + } + if o.Cluster != nil { + toSerialize["cluster"] = o.Cluster + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ResourceName != nil { + toSerialize["resource_name"] = o.ResourceName + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableReservedResourceAllOf struct { + value *ReservedResourceAllOf + isSet bool +} + +func (v NullableReservedResourceAllOf) Get() *ReservedResourceAllOf { + return v.value +} + +func (v *NullableReservedResourceAllOf) Set(val *ReservedResourceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableReservedResourceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedResourceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedResourceAllOf(val *ReservedResourceAllOf) *NullableReservedResourceAllOf { + return &NullableReservedResourceAllOf{value: val, isSet: true} +} + +func (v NullableReservedResourceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedResourceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list.go new file mode 100644 index 00000000..b45b1f02 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ReservedResourceList struct for ReservedResourceList +type ReservedResourceList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ReservedResource `json:"items"` +} + +// NewReservedResourceList instantiates a new ReservedResourceList 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 NewReservedResourceList(kind string, page int32, size int32, total int32, items []ReservedResource) *ReservedResourceList { + this := ReservedResourceList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewReservedResourceListWithDefaults instantiates a new ReservedResourceList 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 NewReservedResourceListWithDefaults() *ReservedResourceList { + this := ReservedResourceList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ReservedResourceList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ReservedResourceList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ReservedResourceList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ReservedResourceList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ReservedResourceList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ReservedResourceList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ReservedResourceList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ReservedResourceList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ReservedResourceList) GetItems() []ReservedResource { + if o == nil { + var ret []ReservedResource + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ReservedResourceList) GetItemsOk() (*[]ReservedResource, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ReservedResourceList) SetItems(v []ReservedResource) { + o.Items = v +} + +func (o ReservedResourceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableReservedResourceList struct { + value *ReservedResourceList + isSet bool +} + +func (v NullableReservedResourceList) Get() *ReservedResourceList { + return v.value +} + +func (v *NullableReservedResourceList) Set(val *ReservedResourceList) { + v.value = val + v.isSet = true +} + +func (v NullableReservedResourceList) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedResourceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedResourceList(val *ReservedResourceList) *NullableReservedResourceList { + return &NullableReservedResourceList{value: val, isSet: true} +} + +func (v NullableReservedResourceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedResourceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list_all_of.go new file mode 100644 index 00000000..d10b3a37 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ReservedResourceListAllOf struct for ReservedResourceListAllOf +type ReservedResourceListAllOf struct { + Items *[]ReservedResource `json:"items,omitempty"` +} + +// NewReservedResourceListAllOf instantiates a new ReservedResourceListAllOf 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 NewReservedResourceListAllOf() *ReservedResourceListAllOf { + this := ReservedResourceListAllOf{} + return &this +} + +// NewReservedResourceListAllOfWithDefaults instantiates a new ReservedResourceListAllOf 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 NewReservedResourceListAllOfWithDefaults() *ReservedResourceListAllOf { + this := ReservedResourceListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ReservedResourceListAllOf) GetItems() []ReservedResource { + if o == nil || o.Items == nil { + var ret []ReservedResource + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourceListAllOf) GetItemsOk() (*[]ReservedResource, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ReservedResourceListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ReservedResource and assigns it to the Items field. +func (o *ReservedResourceListAllOf) SetItems(v []ReservedResource) { + o.Items = &v +} + +func (o ReservedResourceListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableReservedResourceListAllOf struct { + value *ReservedResourceListAllOf + isSet bool +} + +func (v NullableReservedResourceListAllOf) Get() *ReservedResourceListAllOf { + return v.value +} + +func (v *NullableReservedResourceListAllOf) Set(val *ReservedResourceListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableReservedResourceListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedResourceListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedResourceListAllOf(val *ReservedResourceListAllOf) *NullableReservedResourceListAllOf { + return &NullableReservedResourceListAllOf{value: val, isSet: true} +} + +func (v NullableReservedResourceListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedResourceListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_patch_request.go new file mode 100644 index 00000000..dd7be466 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_reserved_resource_patch_request.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ReservedResourcePatchRequest struct for ReservedResourcePatchRequest +type ReservedResourcePatchRequest struct { + BillingModel *string `json:"billing_model,omitempty"` +} + +// NewReservedResourcePatchRequest instantiates a new ReservedResourcePatchRequest 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 NewReservedResourcePatchRequest() *ReservedResourcePatchRequest { + this := ReservedResourcePatchRequest{} + return &this +} + +// NewReservedResourcePatchRequestWithDefaults instantiates a new ReservedResourcePatchRequest 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 NewReservedResourcePatchRequestWithDefaults() *ReservedResourcePatchRequest { + this := ReservedResourcePatchRequest{} + return &this +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *ReservedResourcePatchRequest) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedResourcePatchRequest) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *ReservedResourcePatchRequest) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *ReservedResourcePatchRequest) SetBillingModel(v string) { + o.BillingModel = &v +} + +func (o ReservedResourcePatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + return json.Marshal(toSerialize) +} + +type NullableReservedResourcePatchRequest struct { + value *ReservedResourcePatchRequest + isSet bool +} + +func (v NullableReservedResourcePatchRequest) Get() *ReservedResourcePatchRequest { + return v.value +} + +func (v *NullableReservedResourcePatchRequest) Set(val *ReservedResourcePatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReservedResourcePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedResourcePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedResourcePatchRequest(val *ReservedResourcePatchRequest) *NullableReservedResourcePatchRequest { + return &NullableReservedResourcePatchRequest{value: val, isSet: true} +} + +func (v NullableReservedResourcePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedResourcePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota.go new file mode 100644 index 00000000..9bf3bb3e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota.go @@ -0,0 +1,397 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ResourceQuota struct for ResourceQuota +type ResourceQuota struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Sku *string `json:"sku,omitempty"` + SkuCount int32 `json:"sku_count"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewResourceQuota instantiates a new ResourceQuota 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 NewResourceQuota(skuCount int32) *ResourceQuota { + this := ResourceQuota{} + this.SkuCount = skuCount + return &this +} + +// NewResourceQuotaWithDefaults instantiates a new ResourceQuota 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 NewResourceQuotaWithDefaults() *ResourceQuota { + this := ResourceQuota{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ResourceQuota) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ResourceQuota) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ResourceQuota) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ResourceQuota) GetId() string { + if o == nil || o.Id == nil { + 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 *ResourceQuota) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ResourceQuota) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ResourceQuota) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ResourceQuota) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ResourceQuota) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ResourceQuota) SetKind(v string) { + o.Kind = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ResourceQuota) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ResourceQuota) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ResourceQuota) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ResourceQuota) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ResourceQuota) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ResourceQuota) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *ResourceQuota) GetSku() string { + if o == nil || o.Sku == nil { + var ret string + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetSkuOk() (*string, bool) { + if o == nil || o.Sku == nil { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *ResourceQuota) HasSku() bool { + if o != nil && o.Sku != nil { + return true + } + + return false +} + +// SetSku gets a reference to the given string and assigns it to the Sku field. +func (o *ResourceQuota) SetSku(v string) { + o.Sku = &v +} + +// GetSkuCount returns the SkuCount field value +func (o *ResourceQuota) GetSkuCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SkuCount +} + +// GetSkuCountOk returns a tuple with the SkuCount field value +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetSkuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SkuCount, true +} + +// SetSkuCount sets field value +func (o *ResourceQuota) SetSkuCount(v int32) { + o.SkuCount = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ResourceQuota) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *ResourceQuota) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ResourceQuota) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ResourceQuota) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ResourceQuota) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuota) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ResourceQuota) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ResourceQuota) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ResourceQuota) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.Sku != nil { + toSerialize["sku"] = o.Sku + } + if true { + toSerialize["sku_count"] = o.SkuCount + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableResourceQuota struct { + value *ResourceQuota + isSet bool +} + +func (v NullableResourceQuota) Get() *ResourceQuota { + return v.value +} + +func (v *NullableResourceQuota) Set(val *ResourceQuota) { + v.value = val + v.isSet = true +} + +func (v NullableResourceQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceQuota(val *ResourceQuota) *NullableResourceQuota { + return &NullableResourceQuota{value: val, isSet: true} +} + +func (v NullableResourceQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_all_of.go new file mode 100644 index 00000000..89502a22 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_all_of.go @@ -0,0 +1,289 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// ResourceQuotaAllOf struct for ResourceQuotaAllOf +type ResourceQuotaAllOf struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + Sku *string `json:"sku,omitempty"` + SkuCount int32 `json:"sku_count"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewResourceQuotaAllOf instantiates a new ResourceQuotaAllOf 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 NewResourceQuotaAllOf(skuCount int32) *ResourceQuotaAllOf { + this := ResourceQuotaAllOf{} + this.SkuCount = skuCount + return &this +} + +// NewResourceQuotaAllOfWithDefaults instantiates a new ResourceQuotaAllOf 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 NewResourceQuotaAllOfWithDefaults() *ResourceQuotaAllOf { + this := ResourceQuotaAllOf{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ResourceQuotaAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuotaAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ResourceQuotaAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ResourceQuotaAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *ResourceQuotaAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuotaAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *ResourceQuotaAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *ResourceQuotaAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *ResourceQuotaAllOf) GetSku() string { + if o == nil || o.Sku == nil { + var ret string + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuotaAllOf) GetSkuOk() (*string, bool) { + if o == nil || o.Sku == nil { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *ResourceQuotaAllOf) HasSku() bool { + if o != nil && o.Sku != nil { + return true + } + + return false +} + +// SetSku gets a reference to the given string and assigns it to the Sku field. +func (o *ResourceQuotaAllOf) SetSku(v string) { + o.Sku = &v +} + +// GetSkuCount returns the SkuCount field value +func (o *ResourceQuotaAllOf) GetSkuCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SkuCount +} + +// GetSkuCountOk returns a tuple with the SkuCount field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaAllOf) GetSkuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SkuCount, true +} + +// SetSkuCount sets field value +func (o *ResourceQuotaAllOf) SetSkuCount(v int32) { + o.SkuCount = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ResourceQuotaAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *ResourceQuotaAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ResourceQuotaAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ResourceQuotaAllOf) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ResourceQuotaAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuotaAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ResourceQuotaAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *ResourceQuotaAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o ResourceQuotaAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.Sku != nil { + toSerialize["sku"] = o.Sku + } + if true { + toSerialize["sku_count"] = o.SkuCount + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableResourceQuotaAllOf struct { + value *ResourceQuotaAllOf + isSet bool +} + +func (v NullableResourceQuotaAllOf) Get() *ResourceQuotaAllOf { + return v.value +} + +func (v *NullableResourceQuotaAllOf) Set(val *ResourceQuotaAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableResourceQuotaAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceQuotaAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceQuotaAllOf(val *ResourceQuotaAllOf) *NullableResourceQuotaAllOf { + return &NullableResourceQuotaAllOf{value: val, isSet: true} +} + +func (v NullableResourceQuotaAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceQuotaAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list.go new file mode 100644 index 00000000..327e677c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ResourceQuotaList struct for ResourceQuotaList +type ResourceQuotaList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ResourceQuota `json:"items"` +} + +// NewResourceQuotaList instantiates a new ResourceQuotaList 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 NewResourceQuotaList(kind string, page int32, size int32, total int32, items []ResourceQuota) *ResourceQuotaList { + this := ResourceQuotaList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewResourceQuotaListWithDefaults instantiates a new ResourceQuotaList 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 NewResourceQuotaListWithDefaults() *ResourceQuotaList { + this := ResourceQuotaList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ResourceQuotaList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ResourceQuotaList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ResourceQuotaList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ResourceQuotaList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ResourceQuotaList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ResourceQuotaList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ResourceQuotaList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ResourceQuotaList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ResourceQuotaList) GetItems() []ResourceQuota { + if o == nil { + var ret []ResourceQuota + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaList) GetItemsOk() (*[]ResourceQuota, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ResourceQuotaList) SetItems(v []ResourceQuota) { + o.Items = v +} + +func (o ResourceQuotaList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableResourceQuotaList struct { + value *ResourceQuotaList + isSet bool +} + +func (v NullableResourceQuotaList) Get() *ResourceQuotaList { + return v.value +} + +func (v *NullableResourceQuotaList) Set(val *ResourceQuotaList) { + v.value = val + v.isSet = true +} + +func (v NullableResourceQuotaList) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceQuotaList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceQuotaList(val *ResourceQuotaList) *NullableResourceQuotaList { + return &NullableResourceQuotaList{value: val, isSet: true} +} + +func (v NullableResourceQuotaList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceQuotaList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list_all_of.go new file mode 100644 index 00000000..9f91aa5d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ResourceQuotaListAllOf struct for ResourceQuotaListAllOf +type ResourceQuotaListAllOf struct { + Items *[]ResourceQuota `json:"items,omitempty"` +} + +// NewResourceQuotaListAllOf instantiates a new ResourceQuotaListAllOf 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 NewResourceQuotaListAllOf() *ResourceQuotaListAllOf { + this := ResourceQuotaListAllOf{} + return &this +} + +// NewResourceQuotaListAllOfWithDefaults instantiates a new ResourceQuotaListAllOf 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 NewResourceQuotaListAllOfWithDefaults() *ResourceQuotaListAllOf { + this := ResourceQuotaListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ResourceQuotaListAllOf) GetItems() []ResourceQuota { + if o == nil || o.Items == nil { + var ret []ResourceQuota + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceQuotaListAllOf) GetItemsOk() (*[]ResourceQuota, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ResourceQuotaListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ResourceQuota and assigns it to the Items field. +func (o *ResourceQuotaListAllOf) SetItems(v []ResourceQuota) { + o.Items = &v +} + +func (o ResourceQuotaListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableResourceQuotaListAllOf struct { + value *ResourceQuotaListAllOf + isSet bool +} + +func (v NullableResourceQuotaListAllOf) Get() *ResourceQuotaListAllOf { + return v.value +} + +func (v *NullableResourceQuotaListAllOf) Set(val *ResourceQuotaListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableResourceQuotaListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceQuotaListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceQuotaListAllOf(val *ResourceQuotaListAllOf) *NullableResourceQuotaListAllOf { + return &NullableResourceQuotaListAllOf{value: val, isSet: true} +} + +func (v NullableResourceQuotaListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceQuotaListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_request.go new file mode 100644 index 00000000..df954494 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_quota_request.go @@ -0,0 +1,173 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ResourceQuotaRequest struct for ResourceQuotaRequest +type ResourceQuotaRequest struct { + Sku string `json:"sku"` + SkuCount int32 `json:"sku_count"` + Type *string `json:"type,omitempty"` +} + +// NewResourceQuotaRequest instantiates a new ResourceQuotaRequest 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 NewResourceQuotaRequest(sku string, skuCount int32) *ResourceQuotaRequest { + this := ResourceQuotaRequest{} + this.Sku = sku + this.SkuCount = skuCount + return &this +} + +// NewResourceQuotaRequestWithDefaults instantiates a new ResourceQuotaRequest 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 NewResourceQuotaRequestWithDefaults() *ResourceQuotaRequest { + this := ResourceQuotaRequest{} + return &this +} + +// GetSku returns the Sku field value +func (o *ResourceQuotaRequest) GetSku() string { + if o == nil { + var ret string + return ret + } + + return o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaRequest) GetSkuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sku, true +} + +// SetSku sets field value +func (o *ResourceQuotaRequest) SetSku(v string) { + o.Sku = v +} + +// GetSkuCount returns the SkuCount field value +func (o *ResourceQuotaRequest) GetSkuCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SkuCount +} + +// GetSkuCountOk returns a tuple with the SkuCount field value +// and a boolean to check if the value has been set. +func (o *ResourceQuotaRequest) GetSkuCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SkuCount, true +} + +// SetSkuCount sets field value +func (o *ResourceQuotaRequest) SetSkuCount(v int32) { + o.SkuCount = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ResourceQuotaRequest) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *ResourceQuotaRequest) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ResourceQuotaRequest) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ResourceQuotaRequest) SetType(v string) { + o.Type = &v +} + +func (o ResourceQuotaRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["sku"] = o.Sku + } + if true { + toSerialize["sku_count"] = o.SkuCount + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableResourceQuotaRequest struct { + value *ResourceQuotaRequest + isSet bool +} + +func (v NullableResourceQuotaRequest) Get() *ResourceQuotaRequest { + return v.value +} + +func (v *NullableResourceQuotaRequest) Set(val *ResourceQuotaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourceQuotaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceQuotaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceQuotaRequest(val *ResourceQuotaRequest) *NullableResourceQuotaRequest { + return &NullableResourceQuotaRequest{value: val, isSet: true} +} + +func (v NullableResourceQuotaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceQuotaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review.go new file mode 100644 index 00000000..01201c66 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review.go @@ -0,0 +1,282 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ResourceReview struct for ResourceReview +type ResourceReview struct { + AccountUsername string `json:"account_username"` + Action string `json:"action"` + ClusterIds []string `json:"cluster_ids"` + ClusterUuids []string `json:"cluster_uuids"` + OrganizationIds []string `json:"organization_ids"` + ResourceType string `json:"resource_type"` + SubscriptionIds []string `json:"subscription_ids"` +} + +// NewResourceReview instantiates a new ResourceReview 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 NewResourceReview(accountUsername string, action string, clusterIds []string, clusterUuids []string, organizationIds []string, resourceType string, subscriptionIds []string) *ResourceReview { + this := ResourceReview{} + this.AccountUsername = accountUsername + this.Action = action + this.ClusterIds = clusterIds + this.ClusterUuids = clusterUuids + this.OrganizationIds = organizationIds + this.ResourceType = resourceType + this.SubscriptionIds = subscriptionIds + return &this +} + +// NewResourceReviewWithDefaults instantiates a new ResourceReview 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 NewResourceReviewWithDefaults() *ResourceReview { + this := ResourceReview{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *ResourceReview) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *ResourceReview) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetAction returns the Action field value +func (o *ResourceReview) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *ResourceReview) SetAction(v string) { + o.Action = v +} + +// GetClusterIds returns the ClusterIds field value +func (o *ResourceReview) GetClusterIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.ClusterIds +} + +// GetClusterIdsOk returns a tuple with the ClusterIds field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetClusterIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterIds, true +} + +// SetClusterIds sets field value +func (o *ResourceReview) SetClusterIds(v []string) { + o.ClusterIds = v +} + +// GetClusterUuids returns the ClusterUuids field value +func (o *ResourceReview) GetClusterUuids() []string { + if o == nil { + var ret []string + return ret + } + + return o.ClusterUuids +} + +// GetClusterUuidsOk returns a tuple with the ClusterUuids field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetClusterUuidsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterUuids, true +} + +// SetClusterUuids sets field value +func (o *ResourceReview) SetClusterUuids(v []string) { + o.ClusterUuids = v +} + +// GetOrganizationIds returns the OrganizationIds field value +func (o *ResourceReview) GetOrganizationIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationIds +} + +// GetOrganizationIdsOk returns a tuple with the OrganizationIds field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetOrganizationIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationIds, true +} + +// SetOrganizationIds sets field value +func (o *ResourceReview) SetOrganizationIds(v []string) { + o.OrganizationIds = v +} + +// GetResourceType returns the ResourceType field value +func (o *ResourceReview) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *ResourceReview) SetResourceType(v string) { + o.ResourceType = v +} + +// GetSubscriptionIds returns the SubscriptionIds field value +func (o *ResourceReview) GetSubscriptionIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.SubscriptionIds +} + +// GetSubscriptionIdsOk returns a tuple with the SubscriptionIds field value +// and a boolean to check if the value has been set. +func (o *ResourceReview) GetSubscriptionIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionIds, true +} + +// SetSubscriptionIds sets field value +func (o *ResourceReview) SetSubscriptionIds(v []string) { + o.SubscriptionIds = v +} + +func (o ResourceReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if true { + toSerialize["action"] = o.Action + } + if true { + toSerialize["cluster_ids"] = o.ClusterIds + } + if true { + toSerialize["cluster_uuids"] = o.ClusterUuids + } + if true { + toSerialize["organization_ids"] = o.OrganizationIds + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + if true { + toSerialize["subscription_ids"] = o.SubscriptionIds + } + return json.Marshal(toSerialize) +} + +type NullableResourceReview struct { + value *ResourceReview + isSet bool +} + +func (v NullableResourceReview) Get() *ResourceReview { + return v.value +} + +func (v *NullableResourceReview) Set(val *ResourceReview) { + v.value = val + v.isSet = true +} + +func (v NullableResourceReview) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceReview(val *ResourceReview) *NullableResourceReview { + return &NullableResourceReview{value: val, isSet: true} +} + +func (v NullableResourceReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review_request.go new file mode 100644 index 00000000..bf14300f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_resource_review_request.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// ResourceReviewRequest struct for ResourceReviewRequest +type ResourceReviewRequest struct { + AccountUsername *string `json:"account_username,omitempty"` + Action *string `json:"action,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` +} + +// NewResourceReviewRequest instantiates a new ResourceReviewRequest 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 NewResourceReviewRequest() *ResourceReviewRequest { + this := ResourceReviewRequest{} + return &this +} + +// NewResourceReviewRequestWithDefaults instantiates a new ResourceReviewRequest 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 NewResourceReviewRequestWithDefaults() *ResourceReviewRequest { + this := ResourceReviewRequest{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value if set, zero value otherwise. +func (o *ResourceReviewRequest) GetAccountUsername() string { + if o == nil || o.AccountUsername == nil { + var ret string + return ret + } + return *o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceReviewRequest) GetAccountUsernameOk() (*string, bool) { + if o == nil || o.AccountUsername == nil { + return nil, false + } + return o.AccountUsername, true +} + +// HasAccountUsername returns a boolean if a field has been set. +func (o *ResourceReviewRequest) HasAccountUsername() bool { + if o != nil && o.AccountUsername != nil { + return true + } + + return false +} + +// SetAccountUsername gets a reference to the given string and assigns it to the AccountUsername field. +func (o *ResourceReviewRequest) SetAccountUsername(v string) { + o.AccountUsername = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *ResourceReviewRequest) GetAction() string { + if o == nil || o.Action == nil { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceReviewRequest) GetActionOk() (*string, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *ResourceReviewRequest) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *ResourceReviewRequest) SetAction(v string) { + o.Action = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *ResourceReviewRequest) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceReviewRequest) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *ResourceReviewRequest) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *ResourceReviewRequest) SetResourceType(v string) { + o.ResourceType = &v +} + +func (o ResourceReviewRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountUsername != nil { + toSerialize["account_username"] = o.AccountUsername + } + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableResourceReviewRequest struct { + value *ResourceReviewRequest + isSet bool +} + +func (v NullableResourceReviewRequest) Get() *ResourceReviewRequest { + return v.value +} + +func (v *NullableResourceReviewRequest) Set(val *ResourceReviewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableResourceReviewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceReviewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceReviewRequest(val *ResourceReviewRequest) *NullableResourceReviewRequest { + return &NullableResourceReviewRequest{value: val, isSet: true} +} + +func (v NullableResourceReviewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceReviewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role.go new file mode 100644 index 00000000..119d1a03 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role.go @@ -0,0 +1,259 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Role struct for Role +type Role struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + Permissions *[]Permission `json:"permissions,omitempty"` +} + +// NewRole instantiates a new Role 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 NewRole() *Role { + this := Role{} + return &this +} + +// NewRoleWithDefaults instantiates a new Role 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 NewRoleWithDefaults() *Role { + this := Role{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Role) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Role) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Role) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Role) GetId() string { + if o == nil || o.Id == nil { + 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 *Role) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Role) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Role) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Role) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Role) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Role) SetKind(v string) { + o.Kind = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Role) GetName() string { + if o == nil || o.Name == nil { + 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 *Role) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Role) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Role) SetName(v string) { + o.Name = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *Role) GetPermissions() []Permission { + if o == nil || o.Permissions == nil { + var ret []Permission + return ret + } + return *o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetPermissionsOk() (*[]Permission, bool) { + if o == nil || o.Permissions == nil { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *Role) HasPermissions() bool { + if o != nil && o.Permissions != nil { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []Permission and assigns it to the Permissions field. +func (o *Role) SetPermissions(v []Permission) { + o.Permissions = &v +} + +func (o Role) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } + return json.Marshal(toSerialize) +} + +type NullableRole struct { + value *Role + isSet bool +} + +func (v NullableRole) Get() *Role { + return v.value +} + +func (v *NullableRole) Set(val *Role) { + v.value = val + v.isSet = true +} + +func (v NullableRole) IsSet() bool { + return v.isSet +} + +func (v *NullableRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRole(val *Role) *NullableRole { + return &NullableRole{value: val, isSet: true} +} + +func (v NullableRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_all_of.go new file mode 100644 index 00000000..cc27b709 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_all_of.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleAllOf struct for RoleAllOf +type RoleAllOf struct { + Name *string `json:"name,omitempty"` + Permissions *[]Permission `json:"permissions,omitempty"` +} + +// NewRoleAllOf instantiates a new RoleAllOf 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 NewRoleAllOf() *RoleAllOf { + this := RoleAllOf{} + return &this +} + +// NewRoleAllOfWithDefaults instantiates a new RoleAllOf 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 NewRoleAllOfWithDefaults() *RoleAllOf { + this := RoleAllOf{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RoleAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *RoleAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RoleAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RoleAllOf) SetName(v string) { + o.Name = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *RoleAllOf) GetPermissions() []Permission { + if o == nil || o.Permissions == nil { + var ret []Permission + return ret + } + return *o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleAllOf) GetPermissionsOk() (*[]Permission, bool) { + if o == nil || o.Permissions == nil { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *RoleAllOf) HasPermissions() bool { + if o != nil && o.Permissions != nil { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []Permission and assigns it to the Permissions field. +func (o *RoleAllOf) SetPermissions(v []Permission) { + o.Permissions = &v +} + +func (o RoleAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } + return json.Marshal(toSerialize) +} + +type NullableRoleAllOf struct { + value *RoleAllOf + isSet bool +} + +func (v NullableRoleAllOf) Get() *RoleAllOf { + return v.value +} + +func (v *NullableRoleAllOf) Set(val *RoleAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRoleAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleAllOf(val *RoleAllOf) *NullableRoleAllOf { + return &NullableRoleAllOf{value: val, isSet: true} +} + +func (v NullableRoleAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding.go new file mode 100644 index 00000000..cf11766c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding.go @@ -0,0 +1,548 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// RoleBinding struct for RoleBinding +type RoleBinding struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Account *ObjectReference `json:"account,omitempty"` + AccountGroup *ObjectReference `json:"account_group,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ManagedBy *string `json:"managed_by,omitempty"` + Organization *ObjectReference `json:"organization,omitempty"` + Role *ObjectReference `json:"role,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewRoleBinding instantiates a new RoleBinding 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 NewRoleBinding() *RoleBinding { + this := RoleBinding{} + return &this +} + +// NewRoleBindingWithDefaults instantiates a new RoleBinding 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 NewRoleBindingWithDefaults() *RoleBinding { + this := RoleBinding{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *RoleBinding) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *RoleBinding) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *RoleBinding) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *RoleBinding) GetId() string { + if o == nil || o.Id == nil { + 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 *RoleBinding) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *RoleBinding) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *RoleBinding) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *RoleBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *RoleBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *RoleBinding) SetKind(v string) { + o.Kind = &v +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *RoleBinding) GetAccount() ObjectReference { + if o == nil || o.Account == nil { + var ret ObjectReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetAccountOk() (*ObjectReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *RoleBinding) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given ObjectReference and assigns it to the Account field. +func (o *RoleBinding) SetAccount(v ObjectReference) { + o.Account = &v +} + +// GetAccountGroup returns the AccountGroup field value if set, zero value otherwise. +func (o *RoleBinding) GetAccountGroup() ObjectReference { + if o == nil || o.AccountGroup == nil { + var ret ObjectReference + return ret + } + return *o.AccountGroup +} + +// GetAccountGroupOk returns a tuple with the AccountGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetAccountGroupOk() (*ObjectReference, bool) { + if o == nil || o.AccountGroup == nil { + return nil, false + } + return o.AccountGroup, true +} + +// HasAccountGroup returns a boolean if a field has been set. +func (o *RoleBinding) HasAccountGroup() bool { + if o != nil && o.AccountGroup != nil { + return true + } + + return false +} + +// SetAccountGroup gets a reference to the given ObjectReference and assigns it to the AccountGroup field. +func (o *RoleBinding) SetAccountGroup(v ObjectReference) { + o.AccountGroup = &v +} + +// GetConfigManaged returns the ConfigManaged field value if set, zero value otherwise. +func (o *RoleBinding) GetConfigManaged() bool { + if o == nil || o.ConfigManaged == nil { + var ret bool + return ret + } + return *o.ConfigManaged +} + +// GetConfigManagedOk returns a tuple with the ConfigManaged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetConfigManagedOk() (*bool, bool) { + if o == nil || o.ConfigManaged == nil { + return nil, false + } + return o.ConfigManaged, true +} + +// HasConfigManaged returns a boolean if a field has been set. +func (o *RoleBinding) HasConfigManaged() bool { + if o != nil && o.ConfigManaged != nil { + return true + } + + return false +} + +// SetConfigManaged gets a reference to the given bool and assigns it to the ConfigManaged field. +func (o *RoleBinding) SetConfigManaged(v bool) { + o.ConfigManaged = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *RoleBinding) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *RoleBinding) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *RoleBinding) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetManagedBy returns the ManagedBy field value if set, zero value otherwise. +func (o *RoleBinding) GetManagedBy() string { + if o == nil || o.ManagedBy == nil { + var ret string + return ret + } + return *o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetManagedByOk() (*string, bool) { + if o == nil || o.ManagedBy == nil { + return nil, false + } + return o.ManagedBy, true +} + +// HasManagedBy returns a boolean if a field has been set. +func (o *RoleBinding) HasManagedBy() bool { + if o != nil && o.ManagedBy != nil { + return true + } + + return false +} + +// SetManagedBy gets a reference to the given string and assigns it to the ManagedBy field. +func (o *RoleBinding) SetManagedBy(v string) { + o.ManagedBy = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *RoleBinding) GetOrganization() ObjectReference { + if o == nil || o.Organization == nil { + var ret ObjectReference + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetOrganizationOk() (*ObjectReference, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *RoleBinding) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given ObjectReference and assigns it to the Organization field. +func (o *RoleBinding) SetOrganization(v ObjectReference) { + o.Organization = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *RoleBinding) GetRole() ObjectReference { + if o == nil || o.Role == nil { + var ret ObjectReference + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetRoleOk() (*ObjectReference, bool) { + if o == nil || o.Role == nil { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *RoleBinding) HasRole() bool { + if o != nil && o.Role != nil { + return true + } + + return false +} + +// SetRole gets a reference to the given ObjectReference and assigns it to the Role field. +func (o *RoleBinding) SetRole(v ObjectReference) { + o.Role = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *RoleBinding) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *RoleBinding) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *RoleBinding) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RoleBinding) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *RoleBinding) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RoleBinding) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RoleBinding) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *RoleBinding) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBinding) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *RoleBinding) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *RoleBinding) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o RoleBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.AccountGroup != nil { + toSerialize["account_group"] = o.AccountGroup + } + if o.ConfigManaged != nil { + toSerialize["config_managed"] = o.ConfigManaged + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ManagedBy != nil { + toSerialize["managed_by"] = o.ManagedBy + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.Role != nil { + toSerialize["role"] = o.Role + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableRoleBinding struct { + value *RoleBinding + isSet bool +} + +func (v NullableRoleBinding) Get() *RoleBinding { + return v.value +} + +func (v *NullableRoleBinding) Set(val *RoleBinding) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBinding(val *RoleBinding) *NullableRoleBinding { + return &NullableRoleBinding{value: val, isSet: true} +} + +func (v NullableRoleBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_all_of.go new file mode 100644 index 00000000..8f418517 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_all_of.go @@ -0,0 +1,440 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// RoleBindingAllOf struct for RoleBindingAllOf +type RoleBindingAllOf struct { + Account *ObjectReference `json:"account,omitempty"` + AccountGroup *ObjectReference `json:"account_group,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ManagedBy *string `json:"managed_by,omitempty"` + Organization *ObjectReference `json:"organization,omitempty"` + Role *ObjectReference `json:"role,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewRoleBindingAllOf instantiates a new RoleBindingAllOf 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 NewRoleBindingAllOf() *RoleBindingAllOf { + this := RoleBindingAllOf{} + return &this +} + +// NewRoleBindingAllOfWithDefaults instantiates a new RoleBindingAllOf 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 NewRoleBindingAllOfWithDefaults() *RoleBindingAllOf { + this := RoleBindingAllOf{} + return &this +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetAccount() ObjectReference { + if o == nil || o.Account == nil { + var ret ObjectReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetAccountOk() (*ObjectReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given ObjectReference and assigns it to the Account field. +func (o *RoleBindingAllOf) SetAccount(v ObjectReference) { + o.Account = &v +} + +// GetAccountGroup returns the AccountGroup field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetAccountGroup() ObjectReference { + if o == nil || o.AccountGroup == nil { + var ret ObjectReference + return ret + } + return *o.AccountGroup +} + +// GetAccountGroupOk returns a tuple with the AccountGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetAccountGroupOk() (*ObjectReference, bool) { + if o == nil || o.AccountGroup == nil { + return nil, false + } + return o.AccountGroup, true +} + +// HasAccountGroup returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasAccountGroup() bool { + if o != nil && o.AccountGroup != nil { + return true + } + + return false +} + +// SetAccountGroup gets a reference to the given ObjectReference and assigns it to the AccountGroup field. +func (o *RoleBindingAllOf) SetAccountGroup(v ObjectReference) { + o.AccountGroup = &v +} + +// GetConfigManaged returns the ConfigManaged field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetConfigManaged() bool { + if o == nil || o.ConfigManaged == nil { + var ret bool + return ret + } + return *o.ConfigManaged +} + +// GetConfigManagedOk returns a tuple with the ConfigManaged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetConfigManagedOk() (*bool, bool) { + if o == nil || o.ConfigManaged == nil { + return nil, false + } + return o.ConfigManaged, true +} + +// HasConfigManaged returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasConfigManaged() bool { + if o != nil && o.ConfigManaged != nil { + return true + } + + return false +} + +// SetConfigManaged gets a reference to the given bool and assigns it to the ConfigManaged field. +func (o *RoleBindingAllOf) SetConfigManaged(v bool) { + o.ConfigManaged = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *RoleBindingAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetManagedBy returns the ManagedBy field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetManagedBy() string { + if o == nil || o.ManagedBy == nil { + var ret string + return ret + } + return *o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetManagedByOk() (*string, bool) { + if o == nil || o.ManagedBy == nil { + return nil, false + } + return o.ManagedBy, true +} + +// HasManagedBy returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasManagedBy() bool { + if o != nil && o.ManagedBy != nil { + return true + } + + return false +} + +// SetManagedBy gets a reference to the given string and assigns it to the ManagedBy field. +func (o *RoleBindingAllOf) SetManagedBy(v string) { + o.ManagedBy = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetOrganization() ObjectReference { + if o == nil || o.Organization == nil { + var ret ObjectReference + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetOrganizationOk() (*ObjectReference, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given ObjectReference and assigns it to the Organization field. +func (o *RoleBindingAllOf) SetOrganization(v ObjectReference) { + o.Organization = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetRole() ObjectReference { + if o == nil || o.Role == nil { + var ret ObjectReference + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetRoleOk() (*ObjectReference, bool) { + if o == nil || o.Role == nil { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasRole() bool { + if o != nil && o.Role != nil { + return true + } + + return false +} + +// SetRole gets a reference to the given ObjectReference and assigns it to the Role field. +func (o *RoleBindingAllOf) SetRole(v ObjectReference) { + o.Role = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *RoleBindingAllOf) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *RoleBindingAllOf) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RoleBindingAllOf) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *RoleBindingAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *RoleBindingAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *RoleBindingAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o RoleBindingAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.AccountGroup != nil { + toSerialize["account_group"] = o.AccountGroup + } + if o.ConfigManaged != nil { + toSerialize["config_managed"] = o.ConfigManaged + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ManagedBy != nil { + toSerialize["managed_by"] = o.ManagedBy + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.Role != nil { + toSerialize["role"] = o.Role + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableRoleBindingAllOf struct { + value *RoleBindingAllOf + isSet bool +} + +func (v NullableRoleBindingAllOf) Get() *RoleBindingAllOf { + return v.value +} + +func (v *NullableRoleBindingAllOf) Set(val *RoleBindingAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBindingAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBindingAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBindingAllOf(val *RoleBindingAllOf) *NullableRoleBindingAllOf { + return &NullableRoleBindingAllOf{value: val, isSet: true} +} + +func (v NullableRoleBindingAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBindingAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_create_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_create_request.go new file mode 100644 index 00000000..b527a009 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_create_request.go @@ -0,0 +1,353 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleBindingCreateRequest struct for RoleBindingCreateRequest +type RoleBindingCreateRequest struct { + AccountGroupId *string `json:"account_group_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + ManagedBy *string `json:"managed_by,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + RoleId string `json:"role_id"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Type string `json:"type"` +} + +// NewRoleBindingCreateRequest instantiates a new RoleBindingCreateRequest 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 NewRoleBindingCreateRequest(roleId string, type_ string) *RoleBindingCreateRequest { + this := RoleBindingCreateRequest{} + this.RoleId = roleId + this.Type = type_ + return &this +} + +// NewRoleBindingCreateRequestWithDefaults instantiates a new RoleBindingCreateRequest 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 NewRoleBindingCreateRequestWithDefaults() *RoleBindingCreateRequest { + this := RoleBindingCreateRequest{} + return &this +} + +// GetAccountGroupId returns the AccountGroupId field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetAccountGroupId() string { + if o == nil || o.AccountGroupId == nil { + var ret string + return ret + } + return *o.AccountGroupId +} + +// GetAccountGroupIdOk returns a tuple with the AccountGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetAccountGroupIdOk() (*string, bool) { + if o == nil || o.AccountGroupId == nil { + return nil, false + } + return o.AccountGroupId, true +} + +// HasAccountGroupId returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasAccountGroupId() bool { + if o != nil && o.AccountGroupId != nil { + return true + } + + return false +} + +// SetAccountGroupId gets a reference to the given string and assigns it to the AccountGroupId field. +func (o *RoleBindingCreateRequest) SetAccountGroupId(v string) { + o.AccountGroupId = &v +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *RoleBindingCreateRequest) SetAccountId(v string) { + o.AccountId = &v +} + +// GetConfigManaged returns the ConfigManaged field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetConfigManaged() bool { + if o == nil || o.ConfigManaged == nil { + var ret bool + return ret + } + return *o.ConfigManaged +} + +// GetConfigManagedOk returns a tuple with the ConfigManaged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetConfigManagedOk() (*bool, bool) { + if o == nil || o.ConfigManaged == nil { + return nil, false + } + return o.ConfigManaged, true +} + +// HasConfigManaged returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasConfigManaged() bool { + if o != nil && o.ConfigManaged != nil { + return true + } + + return false +} + +// SetConfigManaged gets a reference to the given bool and assigns it to the ConfigManaged field. +func (o *RoleBindingCreateRequest) SetConfigManaged(v bool) { + o.ConfigManaged = &v +} + +// GetManagedBy returns the ManagedBy field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetManagedBy() string { + if o == nil || o.ManagedBy == nil { + var ret string + return ret + } + return *o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetManagedByOk() (*string, bool) { + if o == nil || o.ManagedBy == nil { + return nil, false + } + return o.ManagedBy, true +} + +// HasManagedBy returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasManagedBy() bool { + if o != nil && o.ManagedBy != nil { + return true + } + + return false +} + +// SetManagedBy gets a reference to the given string and assigns it to the ManagedBy field. +func (o *RoleBindingCreateRequest) SetManagedBy(v string) { + o.ManagedBy = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *RoleBindingCreateRequest) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetRoleId returns the RoleId field value +func (o *RoleBindingCreateRequest) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *RoleBindingCreateRequest) SetRoleId(v string) { + o.RoleId = v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *RoleBindingCreateRequest) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingCreateRequest) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *RoleBindingCreateRequest) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *RoleBindingCreateRequest) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetType returns the Type field value +func (o *RoleBindingCreateRequest) GetType() string { + if o == nil { + var ret string + 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 *RoleBindingCreateRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RoleBindingCreateRequest) SetType(v string) { + o.Type = v +} + +func (o RoleBindingCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountGroupId != nil { + toSerialize["account_group_id"] = o.AccountGroupId + } + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.ConfigManaged != nil { + toSerialize["config_managed"] = o.ConfigManaged + } + if o.ManagedBy != nil { + toSerialize["managed_by"] = o.ManagedBy + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["role_id"] = o.RoleId + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableRoleBindingCreateRequest struct { + value *RoleBindingCreateRequest + isSet bool +} + +func (v NullableRoleBindingCreateRequest) Get() *RoleBindingCreateRequest { + return v.value +} + +func (v *NullableRoleBindingCreateRequest) Set(val *RoleBindingCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBindingCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBindingCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBindingCreateRequest(val *RoleBindingCreateRequest) *NullableRoleBindingCreateRequest { + return &NullableRoleBindingCreateRequest{value: val, isSet: true} +} + +func (v NullableRoleBindingCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBindingCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list.go new file mode 100644 index 00000000..d9a16953 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleBindingList struct for RoleBindingList +type RoleBindingList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []RoleBinding `json:"items"` +} + +// NewRoleBindingList instantiates a new RoleBindingList 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 NewRoleBindingList(kind string, page int32, size int32, total int32, items []RoleBinding) *RoleBindingList { + this := RoleBindingList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewRoleBindingListWithDefaults instantiates a new RoleBindingList 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 NewRoleBindingListWithDefaults() *RoleBindingList { + this := RoleBindingList{} + return &this +} + +// GetKind returns the Kind field value +func (o *RoleBindingList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *RoleBindingList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *RoleBindingList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *RoleBindingList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *RoleBindingList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *RoleBindingList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *RoleBindingList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *RoleBindingList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *RoleBindingList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *RoleBindingList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RoleBindingList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RoleBindingList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *RoleBindingList) GetItems() []RoleBinding { + if o == nil { + var ret []RoleBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RoleBindingList) GetItemsOk() (*[]RoleBinding, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RoleBindingList) SetItems(v []RoleBinding) { + o.Items = v +} + +func (o RoleBindingList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRoleBindingList struct { + value *RoleBindingList + isSet bool +} + +func (v NullableRoleBindingList) Get() *RoleBindingList { + return v.value +} + +func (v *NullableRoleBindingList) Set(val *RoleBindingList) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBindingList) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBindingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBindingList(val *RoleBindingList) *NullableRoleBindingList { + return &NullableRoleBindingList{value: val, isSet: true} +} + +func (v NullableRoleBindingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBindingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list_all_of.go new file mode 100644 index 00000000..dbdd28af --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleBindingListAllOf struct for RoleBindingListAllOf +type RoleBindingListAllOf struct { + Items *[]RoleBinding `json:"items,omitempty"` +} + +// NewRoleBindingListAllOf instantiates a new RoleBindingListAllOf 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 NewRoleBindingListAllOf() *RoleBindingListAllOf { + this := RoleBindingListAllOf{} + return &this +} + +// NewRoleBindingListAllOfWithDefaults instantiates a new RoleBindingListAllOf 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 NewRoleBindingListAllOfWithDefaults() *RoleBindingListAllOf { + this := RoleBindingListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *RoleBindingListAllOf) GetItems() []RoleBinding { + if o == nil || o.Items == nil { + var ret []RoleBinding + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingListAllOf) GetItemsOk() (*[]RoleBinding, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *RoleBindingListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []RoleBinding and assigns it to the Items field. +func (o *RoleBindingListAllOf) SetItems(v []RoleBinding) { + o.Items = &v +} + +func (o RoleBindingListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRoleBindingListAllOf struct { + value *RoleBindingListAllOf + isSet bool +} + +func (v NullableRoleBindingListAllOf) Get() *RoleBindingListAllOf { + return v.value +} + +func (v *NullableRoleBindingListAllOf) Set(val *RoleBindingListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBindingListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBindingListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBindingListAllOf(val *RoleBindingListAllOf) *NullableRoleBindingListAllOf { + return &NullableRoleBindingListAllOf{value: val, isSet: true} +} + +func (v NullableRoleBindingListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBindingListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_request.go new file mode 100644 index 00000000..a72ef66c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_binding_request.go @@ -0,0 +1,367 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleBindingRequest struct for RoleBindingRequest +type RoleBindingRequest struct { + AccountGroupId *string `json:"account_group_id,omitempty"` + AccountId *string `json:"account_id,omitempty"` + ConfigManaged *bool `json:"config_managed,omitempty"` + ManagedBy *string `json:"managed_by,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + RoleId *string `json:"role_id,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewRoleBindingRequest instantiates a new RoleBindingRequest 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 NewRoleBindingRequest() *RoleBindingRequest { + this := RoleBindingRequest{} + return &this +} + +// NewRoleBindingRequestWithDefaults instantiates a new RoleBindingRequest 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 NewRoleBindingRequestWithDefaults() *RoleBindingRequest { + this := RoleBindingRequest{} + return &this +} + +// GetAccountGroupId returns the AccountGroupId field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetAccountGroupId() string { + if o == nil || o.AccountGroupId == nil { + var ret string + return ret + } + return *o.AccountGroupId +} + +// GetAccountGroupIdOk returns a tuple with the AccountGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetAccountGroupIdOk() (*string, bool) { + if o == nil || o.AccountGroupId == nil { + return nil, false + } + return o.AccountGroupId, true +} + +// HasAccountGroupId returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasAccountGroupId() bool { + if o != nil && o.AccountGroupId != nil { + return true + } + + return false +} + +// SetAccountGroupId gets a reference to the given string and assigns it to the AccountGroupId field. +func (o *RoleBindingRequest) SetAccountGroupId(v string) { + o.AccountGroupId = &v +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetAccountId() string { + if o == nil || o.AccountId == nil { + var ret string + return ret + } + return *o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetAccountIdOk() (*string, bool) { + if o == nil || o.AccountId == nil { + return nil, false + } + return o.AccountId, true +} + +// HasAccountId returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasAccountId() bool { + if o != nil && o.AccountId != nil { + return true + } + + return false +} + +// SetAccountId gets a reference to the given string and assigns it to the AccountId field. +func (o *RoleBindingRequest) SetAccountId(v string) { + o.AccountId = &v +} + +// GetConfigManaged returns the ConfigManaged field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetConfigManaged() bool { + if o == nil || o.ConfigManaged == nil { + var ret bool + return ret + } + return *o.ConfigManaged +} + +// GetConfigManagedOk returns a tuple with the ConfigManaged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetConfigManagedOk() (*bool, bool) { + if o == nil || o.ConfigManaged == nil { + return nil, false + } + return o.ConfigManaged, true +} + +// HasConfigManaged returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasConfigManaged() bool { + if o != nil && o.ConfigManaged != nil { + return true + } + + return false +} + +// SetConfigManaged gets a reference to the given bool and assigns it to the ConfigManaged field. +func (o *RoleBindingRequest) SetConfigManaged(v bool) { + o.ConfigManaged = &v +} + +// GetManagedBy returns the ManagedBy field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetManagedBy() string { + if o == nil || o.ManagedBy == nil { + var ret string + return ret + } + return *o.ManagedBy +} + +// GetManagedByOk returns a tuple with the ManagedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetManagedByOk() (*string, bool) { + if o == nil || o.ManagedBy == nil { + return nil, false + } + return o.ManagedBy, true +} + +// HasManagedBy returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasManagedBy() bool { + if o != nil && o.ManagedBy != nil { + return true + } + + return false +} + +// SetManagedBy gets a reference to the given string and assigns it to the ManagedBy field. +func (o *RoleBindingRequest) SetManagedBy(v string) { + o.ManagedBy = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *RoleBindingRequest) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetRoleId() string { + if o == nil || o.RoleId == nil { + var ret string + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetRoleIdOk() (*string, bool) { + if o == nil || o.RoleId == nil { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasRoleId() bool { + if o != nil && o.RoleId != nil { + return true + } + + return false +} + +// SetRoleId gets a reference to the given string and assigns it to the RoleId field. +func (o *RoleBindingRequest) SetRoleId(v string) { + o.RoleId = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleBindingRequest) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *RoleBindingRequest) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *RoleBindingRequest) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *RoleBindingRequest) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *RoleBindingRequest) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *RoleBindingRequest) SetType(v string) { + o.Type = &v +} + +func (o RoleBindingRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountGroupId != nil { + toSerialize["account_group_id"] = o.AccountGroupId + } + if o.AccountId != nil { + toSerialize["account_id"] = o.AccountId + } + if o.ConfigManaged != nil { + toSerialize["config_managed"] = o.ConfigManaged + } + if o.ManagedBy != nil { + toSerialize["managed_by"] = o.ManagedBy + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.RoleId != nil { + toSerialize["role_id"] = o.RoleId + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableRoleBindingRequest struct { + value *RoleBindingRequest + isSet bool +} + +func (v NullableRoleBindingRequest) Get() *RoleBindingRequest { + return v.value +} + +func (v *NullableRoleBindingRequest) Set(val *RoleBindingRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRoleBindingRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleBindingRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleBindingRequest(val *RoleBindingRequest) *NullableRoleBindingRequest { + return &NullableRoleBindingRequest{value: val, isSet: true} +} + +func (v NullableRoleBindingRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleBindingRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list.go new file mode 100644 index 00000000..cfd9ccd5 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleList struct for RoleList +type RoleList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Role `json:"items"` +} + +// NewRoleList instantiates a new RoleList 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 NewRoleList(kind string, page int32, size int32, total int32, items []Role) *RoleList { + this := RoleList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewRoleListWithDefaults instantiates a new RoleList 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 NewRoleListWithDefaults() *RoleList { + this := RoleList{} + return &this +} + +// GetKind returns the Kind field value +func (o *RoleList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *RoleList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *RoleList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *RoleList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *RoleList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *RoleList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *RoleList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *RoleList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *RoleList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *RoleList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RoleList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RoleList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *RoleList) GetItems() []Role { + if o == nil { + var ret []Role + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RoleList) GetItemsOk() (*[]Role, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RoleList) SetItems(v []Role) { + o.Items = v +} + +func (o RoleList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRoleList struct { + value *RoleList + isSet bool +} + +func (v NullableRoleList) Get() *RoleList { + return v.value +} + +func (v *NullableRoleList) Set(val *RoleList) { + v.value = val + v.isSet = true +} + +func (v NullableRoleList) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleList(val *RoleList) *NullableRoleList { + return &NullableRoleList{value: val, isSet: true} +} + +func (v NullableRoleList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list_all_of.go new file mode 100644 index 00000000..12902cf4 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_role_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// RoleListAllOf struct for RoleListAllOf +type RoleListAllOf struct { + Items *[]Role `json:"items,omitempty"` +} + +// NewRoleListAllOf instantiates a new RoleListAllOf 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 NewRoleListAllOf() *RoleListAllOf { + this := RoleListAllOf{} + return &this +} + +// NewRoleListAllOfWithDefaults instantiates a new RoleListAllOf 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 NewRoleListAllOfWithDefaults() *RoleListAllOf { + this := RoleListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *RoleListAllOf) GetItems() []Role { + if o == nil || o.Items == nil { + var ret []Role + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleListAllOf) GetItemsOk() (*[]Role, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *RoleListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Role and assigns it to the Items field. +func (o *RoleListAllOf) SetItems(v []Role) { + o.Items = &v +} + +func (o RoleListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRoleListAllOf struct { + value *RoleListAllOf + isSet bool +} + +func (v NullableRoleListAllOf) Get() *RoleListAllOf { + return v.value +} + +func (v *NullableRoleListAllOf) Set(val *RoleListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRoleListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleListAllOf(val *RoleListAllOf) *NullableRoleListAllOf { + return &NullableRoleListAllOf{value: val, isSet: true} +} + +func (v NullableRoleListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_access_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_access_review.go new file mode 100644 index 00000000..93d5fad2 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_access_review.go @@ -0,0 +1,281 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfAccessReview struct for SelfAccessReview +type SelfAccessReview struct { + Action string `json:"action"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + ResourceType string `json:"resource_type"` + SubscriptionId *string `json:"subscription_id,omitempty"` +} + +// NewSelfAccessReview instantiates a new SelfAccessReview 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 NewSelfAccessReview(action string, resourceType string) *SelfAccessReview { + this := SelfAccessReview{} + this.Action = action + this.ResourceType = resourceType + return &this +} + +// NewSelfAccessReviewWithDefaults instantiates a new SelfAccessReview 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 NewSelfAccessReviewWithDefaults() *SelfAccessReview { + this := SelfAccessReview{} + return &this +} + +// GetAction returns the Action field value +func (o *SelfAccessReview) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *SelfAccessReview) SetAction(v string) { + o.Action = v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SelfAccessReview) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SelfAccessReview) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SelfAccessReview) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *SelfAccessReview) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *SelfAccessReview) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *SelfAccessReview) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *SelfAccessReview) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *SelfAccessReview) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *SelfAccessReview) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetResourceType returns the ResourceType field value +func (o *SelfAccessReview) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *SelfAccessReview) SetResourceType(v string) { + o.ResourceType = v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *SelfAccessReview) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfAccessReview) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *SelfAccessReview) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *SelfAccessReview) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +func (o SelfAccessReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["action"] = o.Action + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + return json.Marshal(toSerialize) +} + +type NullableSelfAccessReview struct { + value *SelfAccessReview + isSet bool +} + +func (v NullableSelfAccessReview) Get() *SelfAccessReview { + return v.value +} + +func (v *NullableSelfAccessReview) Set(val *SelfAccessReview) { + v.value = val + v.isSet = true +} + +func (v NullableSelfAccessReview) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfAccessReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfAccessReview(val *SelfAccessReview) *NullableSelfAccessReview { + return &NullableSelfAccessReview{value: val, isSet: true} +} + +func (v NullableSelfAccessReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfAccessReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_entitlement_status.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_entitlement_status.go new file mode 100644 index 00000000..d99e0592 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_entitlement_status.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfEntitlementStatus struct for SelfEntitlementStatus +type SelfEntitlementStatus struct { + Product *string `json:"product,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewSelfEntitlementStatus instantiates a new SelfEntitlementStatus 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 NewSelfEntitlementStatus() *SelfEntitlementStatus { + this := SelfEntitlementStatus{} + return &this +} + +// NewSelfEntitlementStatusWithDefaults instantiates a new SelfEntitlementStatus 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 NewSelfEntitlementStatusWithDefaults() *SelfEntitlementStatus { + this := SelfEntitlementStatus{} + return &this +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *SelfEntitlementStatus) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfEntitlementStatus) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *SelfEntitlementStatus) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *SelfEntitlementStatus) SetProduct(v string) { + o.Product = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SelfEntitlementStatus) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfEntitlementStatus) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SelfEntitlementStatus) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SelfEntitlementStatus) SetStatus(v string) { + o.Status = &v +} + +func (o SelfEntitlementStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableSelfEntitlementStatus struct { + value *SelfEntitlementStatus + isSet bool +} + +func (v NullableSelfEntitlementStatus) Get() *SelfEntitlementStatus { + return v.value +} + +func (v *NullableSelfEntitlementStatus) Set(val *SelfEntitlementStatus) { + v.value = val + v.isSet = true +} + +func (v NullableSelfEntitlementStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfEntitlementStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfEntitlementStatus(val *SelfEntitlementStatus) *NullableSelfEntitlementStatus { + return &NullableSelfEntitlementStatus{value: val, isSet: true} +} + +func (v NullableSelfEntitlementStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfEntitlementStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_feature_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_feature_review.go new file mode 100644 index 00000000..11717af3 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_feature_review.go @@ -0,0 +1,108 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfFeatureReview struct for SelfFeatureReview +type SelfFeatureReview struct { + Feature string `json:"feature"` +} + +// NewSelfFeatureReview instantiates a new SelfFeatureReview 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 NewSelfFeatureReview(feature string) *SelfFeatureReview { + this := SelfFeatureReview{} + this.Feature = feature + return &this +} + +// NewSelfFeatureReviewWithDefaults instantiates a new SelfFeatureReview 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 NewSelfFeatureReviewWithDefaults() *SelfFeatureReview { + this := SelfFeatureReview{} + return &this +} + +// GetFeature returns the Feature field value +func (o *SelfFeatureReview) GetFeature() string { + if o == nil { + var ret string + return ret + } + + return o.Feature +} + +// GetFeatureOk returns a tuple with the Feature field value +// and a boolean to check if the value has been set. +func (o *SelfFeatureReview) GetFeatureOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Feature, true +} + +// SetFeature sets field value +func (o *SelfFeatureReview) SetFeature(v string) { + o.Feature = v +} + +func (o SelfFeatureReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["feature"] = o.Feature + } + return json.Marshal(toSerialize) +} + +type NullableSelfFeatureReview struct { + value *SelfFeatureReview + isSet bool +} + +func (v NullableSelfFeatureReview) Get() *SelfFeatureReview { + return v.value +} + +func (v *NullableSelfFeatureReview) Set(val *SelfFeatureReview) { + v.value = val + v.isSet = true +} + +func (v NullableSelfFeatureReview) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfFeatureReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfFeatureReview(val *SelfFeatureReview) *NullableSelfFeatureReview { + return &NullableSelfFeatureReview{value: val, isSet: true} +} + +func (v NullableSelfFeatureReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfFeatureReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review.go new file mode 100644 index 00000000..71ab914b --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review.go @@ -0,0 +1,253 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfResourceReview struct for SelfResourceReview +type SelfResourceReview struct { + Action string `json:"action"` + ClusterIds []string `json:"cluster_ids"` + ClusterUuids []string `json:"cluster_uuids"` + OrganizationIds []string `json:"organization_ids"` + ResourceType string `json:"resource_type"` + SubscriptionIds []string `json:"subscription_ids"` +} + +// NewSelfResourceReview instantiates a new SelfResourceReview 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 NewSelfResourceReview(action string, clusterIds []string, clusterUuids []string, organizationIds []string, resourceType string, subscriptionIds []string) *SelfResourceReview { + this := SelfResourceReview{} + this.Action = action + this.ClusterIds = clusterIds + this.ClusterUuids = clusterUuids + this.OrganizationIds = organizationIds + this.ResourceType = resourceType + this.SubscriptionIds = subscriptionIds + return &this +} + +// NewSelfResourceReviewWithDefaults instantiates a new SelfResourceReview 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 NewSelfResourceReviewWithDefaults() *SelfResourceReview { + this := SelfResourceReview{} + return &this +} + +// GetAction returns the Action field value +func (o *SelfResourceReview) GetAction() string { + if o == nil { + var ret string + return ret + } + + return o.Action +} + +// GetActionOk returns a tuple with the Action field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetActionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Action, true +} + +// SetAction sets field value +func (o *SelfResourceReview) SetAction(v string) { + o.Action = v +} + +// GetClusterIds returns the ClusterIds field value +func (o *SelfResourceReview) GetClusterIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.ClusterIds +} + +// GetClusterIdsOk returns a tuple with the ClusterIds field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetClusterIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterIds, true +} + +// SetClusterIds sets field value +func (o *SelfResourceReview) SetClusterIds(v []string) { + o.ClusterIds = v +} + +// GetClusterUuids returns the ClusterUuids field value +func (o *SelfResourceReview) GetClusterUuids() []string { + if o == nil { + var ret []string + return ret + } + + return o.ClusterUuids +} + +// GetClusterUuidsOk returns a tuple with the ClusterUuids field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetClusterUuidsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterUuids, true +} + +// SetClusterUuids sets field value +func (o *SelfResourceReview) SetClusterUuids(v []string) { + o.ClusterUuids = v +} + +// GetOrganizationIds returns the OrganizationIds field value +func (o *SelfResourceReview) GetOrganizationIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrganizationIds +} + +// GetOrganizationIdsOk returns a tuple with the OrganizationIds field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetOrganizationIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationIds, true +} + +// SetOrganizationIds sets field value +func (o *SelfResourceReview) SetOrganizationIds(v []string) { + o.OrganizationIds = v +} + +// GetResourceType returns the ResourceType field value +func (o *SelfResourceReview) GetResourceType() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetResourceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *SelfResourceReview) SetResourceType(v string) { + o.ResourceType = v +} + +// GetSubscriptionIds returns the SubscriptionIds field value +func (o *SelfResourceReview) GetSubscriptionIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.SubscriptionIds +} + +// GetSubscriptionIdsOk returns a tuple with the SubscriptionIds field value +// and a boolean to check if the value has been set. +func (o *SelfResourceReview) GetSubscriptionIdsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionIds, true +} + +// SetSubscriptionIds sets field value +func (o *SelfResourceReview) SetSubscriptionIds(v []string) { + o.SubscriptionIds = v +} + +func (o SelfResourceReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["action"] = o.Action + } + if true { + toSerialize["cluster_ids"] = o.ClusterIds + } + if true { + toSerialize["cluster_uuids"] = o.ClusterUuids + } + if true { + toSerialize["organization_ids"] = o.OrganizationIds + } + if true { + toSerialize["resource_type"] = o.ResourceType + } + if true { + toSerialize["subscription_ids"] = o.SubscriptionIds + } + return json.Marshal(toSerialize) +} + +type NullableSelfResourceReview struct { + value *SelfResourceReview + isSet bool +} + +func (v NullableSelfResourceReview) Get() *SelfResourceReview { + return v.value +} + +func (v *NullableSelfResourceReview) Set(val *SelfResourceReview) { + v.value = val + v.isSet = true +} + +func (v NullableSelfResourceReview) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfResourceReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfResourceReview(val *SelfResourceReview) *NullableSelfResourceReview { + return &NullableSelfResourceReview{value: val, isSet: true} +} + +func (v NullableSelfResourceReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfResourceReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review_request.go new file mode 100644 index 00000000..589483eb --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_resource_review_request.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfResourceReviewRequest struct for SelfResourceReviewRequest +type SelfResourceReviewRequest struct { + Action *string `json:"action,omitempty"` + ResourceType *string `json:"resource_type,omitempty"` +} + +// NewSelfResourceReviewRequest instantiates a new SelfResourceReviewRequest 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 NewSelfResourceReviewRequest() *SelfResourceReviewRequest { + this := SelfResourceReviewRequest{} + return &this +} + +// NewSelfResourceReviewRequestWithDefaults instantiates a new SelfResourceReviewRequest 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 NewSelfResourceReviewRequestWithDefaults() *SelfResourceReviewRequest { + this := SelfResourceReviewRequest{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *SelfResourceReviewRequest) GetAction() string { + if o == nil || o.Action == nil { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfResourceReviewRequest) GetActionOk() (*string, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *SelfResourceReviewRequest) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *SelfResourceReviewRequest) SetAction(v string) { + o.Action = &v +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise. +func (o *SelfResourceReviewRequest) GetResourceType() string { + if o == nil || o.ResourceType == nil { + var ret string + return ret + } + return *o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfResourceReviewRequest) GetResourceTypeOk() (*string, bool) { + if o == nil || o.ResourceType == nil { + return nil, false + } + return o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *SelfResourceReviewRequest) HasResourceType() bool { + if o != nil && o.ResourceType != nil { + return true + } + + return false +} + +// SetResourceType gets a reference to the given string and assigns it to the ResourceType field. +func (o *SelfResourceReviewRequest) SetResourceType(v string) { + o.ResourceType = &v +} + +func (o SelfResourceReviewRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + return json.Marshal(toSerialize) +} + +type NullableSelfResourceReviewRequest struct { + value *SelfResourceReviewRequest + isSet bool +} + +func (v NullableSelfResourceReviewRequest) Get() *SelfResourceReviewRequest { + return v.value +} + +func (v *NullableSelfResourceReviewRequest) Set(val *SelfResourceReviewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSelfResourceReviewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfResourceReviewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfResourceReviewRequest(val *SelfResourceReviewRequest) *NullableSelfResourceReviewRequest { + return &NullableSelfResourceReviewRequest{value: val, isSet: true} +} + +func (v NullableSelfResourceReviewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfResourceReviewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema.go new file mode 100644 index 00000000..d695bf35 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfServiceLandingPageSchema struct for SelfServiceLandingPageSchema +type SelfServiceLandingPageSchema struct { + ConfigTryLearn *SelfServiceLandingPageSchemaConfigTryLearn `json:"configTryLearn,omitempty"` + Estate *SelfServiceLandingPageSchemaEstate `json:"estate,omitempty"` +} + +// NewSelfServiceLandingPageSchema instantiates a new SelfServiceLandingPageSchema 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 NewSelfServiceLandingPageSchema() *SelfServiceLandingPageSchema { + this := SelfServiceLandingPageSchema{} + return &this +} + +// NewSelfServiceLandingPageSchemaWithDefaults instantiates a new SelfServiceLandingPageSchema 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 NewSelfServiceLandingPageSchemaWithDefaults() *SelfServiceLandingPageSchema { + this := SelfServiceLandingPageSchema{} + return &this +} + +// GetConfigTryLearn returns the ConfigTryLearn field value if set, zero value otherwise. +func (o *SelfServiceLandingPageSchema) GetConfigTryLearn() SelfServiceLandingPageSchemaConfigTryLearn { + if o == nil || o.ConfigTryLearn == nil { + var ret SelfServiceLandingPageSchemaConfigTryLearn + return ret + } + return *o.ConfigTryLearn +} + +// GetConfigTryLearnOk returns a tuple with the ConfigTryLearn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfServiceLandingPageSchema) GetConfigTryLearnOk() (*SelfServiceLandingPageSchemaConfigTryLearn, bool) { + if o == nil || o.ConfigTryLearn == nil { + return nil, false + } + return o.ConfigTryLearn, true +} + +// HasConfigTryLearn returns a boolean if a field has been set. +func (o *SelfServiceLandingPageSchema) HasConfigTryLearn() bool { + if o != nil && o.ConfigTryLearn != nil { + return true + } + + return false +} + +// SetConfigTryLearn gets a reference to the given SelfServiceLandingPageSchemaConfigTryLearn and assigns it to the ConfigTryLearn field. +func (o *SelfServiceLandingPageSchema) SetConfigTryLearn(v SelfServiceLandingPageSchemaConfigTryLearn) { + o.ConfigTryLearn = &v +} + +// GetEstate returns the Estate field value if set, zero value otherwise. +func (o *SelfServiceLandingPageSchema) GetEstate() SelfServiceLandingPageSchemaEstate { + if o == nil || o.Estate == nil { + var ret SelfServiceLandingPageSchemaEstate + return ret + } + return *o.Estate +} + +// GetEstateOk returns a tuple with the Estate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfServiceLandingPageSchema) GetEstateOk() (*SelfServiceLandingPageSchemaEstate, bool) { + if o == nil || o.Estate == nil { + return nil, false + } + return o.Estate, true +} + +// HasEstate returns a boolean if a field has been set. +func (o *SelfServiceLandingPageSchema) HasEstate() bool { + if o != nil && o.Estate != nil { + return true + } + + return false +} + +// SetEstate gets a reference to the given SelfServiceLandingPageSchemaEstate and assigns it to the Estate field. +func (o *SelfServiceLandingPageSchema) SetEstate(v SelfServiceLandingPageSchemaEstate) { + o.Estate = &v +} + +func (o SelfServiceLandingPageSchema) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ConfigTryLearn != nil { + toSerialize["configTryLearn"] = o.ConfigTryLearn + } + if o.Estate != nil { + toSerialize["estate"] = o.Estate + } + return json.Marshal(toSerialize) +} + +type NullableSelfServiceLandingPageSchema struct { + value *SelfServiceLandingPageSchema + isSet bool +} + +func (v NullableSelfServiceLandingPageSchema) Get() *SelfServiceLandingPageSchema { + return v.value +} + +func (v *NullableSelfServiceLandingPageSchema) Set(val *SelfServiceLandingPageSchema) { + v.value = val + v.isSet = true +} + +func (v NullableSelfServiceLandingPageSchema) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfServiceLandingPageSchema) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfServiceLandingPageSchema(val *SelfServiceLandingPageSchema) *NullableSelfServiceLandingPageSchema { + return &NullableSelfServiceLandingPageSchema{value: val, isSet: true} +} + +func (v NullableSelfServiceLandingPageSchema) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfServiceLandingPageSchema) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_config_try_learn.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_config_try_learn.go new file mode 100644 index 00000000..453a8915 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_config_try_learn.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfServiceLandingPageSchemaConfigTryLearn struct for SelfServiceLandingPageSchemaConfigTryLearn +type SelfServiceLandingPageSchemaConfigTryLearn struct { + Configure *[]LandingPageCTLItem `json:"configure,omitempty"` + Try *[]LandingPageCTLItem `json:"try,omitempty"` +} + +// NewSelfServiceLandingPageSchemaConfigTryLearn instantiates a new SelfServiceLandingPageSchemaConfigTryLearn 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 NewSelfServiceLandingPageSchemaConfigTryLearn() *SelfServiceLandingPageSchemaConfigTryLearn { + this := SelfServiceLandingPageSchemaConfigTryLearn{} + return &this +} + +// NewSelfServiceLandingPageSchemaConfigTryLearnWithDefaults instantiates a new SelfServiceLandingPageSchemaConfigTryLearn 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 NewSelfServiceLandingPageSchemaConfigTryLearnWithDefaults() *SelfServiceLandingPageSchemaConfigTryLearn { + this := SelfServiceLandingPageSchemaConfigTryLearn{} + return &this +} + +// GetConfigure returns the Configure field value if set, zero value otherwise. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetConfigure() []LandingPageCTLItem { + if o == nil || o.Configure == nil { + var ret []LandingPageCTLItem + return ret + } + return *o.Configure +} + +// GetConfigureOk returns a tuple with the Configure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetConfigureOk() (*[]LandingPageCTLItem, bool) { + if o == nil || o.Configure == nil { + return nil, false + } + return o.Configure, true +} + +// HasConfigure returns a boolean if a field has been set. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) HasConfigure() bool { + if o != nil && o.Configure != nil { + return true + } + + return false +} + +// SetConfigure gets a reference to the given []LandingPageCTLItem and assigns it to the Configure field. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) SetConfigure(v []LandingPageCTLItem) { + o.Configure = &v +} + +// GetTry returns the Try field value if set, zero value otherwise. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetTry() []LandingPageCTLItem { + if o == nil || o.Try == nil { + var ret []LandingPageCTLItem + return ret + } + return *o.Try +} + +// GetTryOk returns a tuple with the Try field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) GetTryOk() (*[]LandingPageCTLItem, bool) { + if o == nil || o.Try == nil { + return nil, false + } + return o.Try, true +} + +// HasTry returns a boolean if a field has been set. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) HasTry() bool { + if o != nil && o.Try != nil { + return true + } + + return false +} + +// SetTry gets a reference to the given []LandingPageCTLItem and assigns it to the Try field. +func (o *SelfServiceLandingPageSchemaConfigTryLearn) SetTry(v []LandingPageCTLItem) { + o.Try = &v +} + +func (o SelfServiceLandingPageSchemaConfigTryLearn) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Configure != nil { + toSerialize["configure"] = o.Configure + } + if o.Try != nil { + toSerialize["try"] = o.Try + } + return json.Marshal(toSerialize) +} + +type NullableSelfServiceLandingPageSchemaConfigTryLearn struct { + value *SelfServiceLandingPageSchemaConfigTryLearn + isSet bool +} + +func (v NullableSelfServiceLandingPageSchemaConfigTryLearn) Get() *SelfServiceLandingPageSchemaConfigTryLearn { + return v.value +} + +func (v *NullableSelfServiceLandingPageSchemaConfigTryLearn) Set(val *SelfServiceLandingPageSchemaConfigTryLearn) { + v.value = val + v.isSet = true +} + +func (v NullableSelfServiceLandingPageSchemaConfigTryLearn) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfServiceLandingPageSchemaConfigTryLearn) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfServiceLandingPageSchemaConfigTryLearn(val *SelfServiceLandingPageSchemaConfigTryLearn) *NullableSelfServiceLandingPageSchemaConfigTryLearn { + return &NullableSelfServiceLandingPageSchemaConfigTryLearn{value: val, isSet: true} +} + +func (v NullableSelfServiceLandingPageSchemaConfigTryLearn) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfServiceLandingPageSchemaConfigTryLearn) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_estate.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_estate.go new file mode 100644 index 00000000..5ff6aada --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_service_landing_page_schema_estate.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfServiceLandingPageSchemaEstate struct for SelfServiceLandingPageSchemaEstate +type SelfServiceLandingPageSchemaEstate struct { + Items *[]LandingPageEstateItem `json:"items,omitempty"` +} + +// NewSelfServiceLandingPageSchemaEstate instantiates a new SelfServiceLandingPageSchemaEstate 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 NewSelfServiceLandingPageSchemaEstate() *SelfServiceLandingPageSchemaEstate { + this := SelfServiceLandingPageSchemaEstate{} + return &this +} + +// NewSelfServiceLandingPageSchemaEstateWithDefaults instantiates a new SelfServiceLandingPageSchemaEstate 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 NewSelfServiceLandingPageSchemaEstateWithDefaults() *SelfServiceLandingPageSchemaEstate { + this := SelfServiceLandingPageSchemaEstate{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SelfServiceLandingPageSchemaEstate) GetItems() []LandingPageEstateItem { + if o == nil || o.Items == nil { + var ret []LandingPageEstateItem + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfServiceLandingPageSchemaEstate) GetItemsOk() (*[]LandingPageEstateItem, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SelfServiceLandingPageSchemaEstate) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []LandingPageEstateItem and assigns it to the Items field. +func (o *SelfServiceLandingPageSchemaEstate) SetItems(v []LandingPageEstateItem) { + o.Items = &v +} + +func (o SelfServiceLandingPageSchemaEstate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSelfServiceLandingPageSchemaEstate struct { + value *SelfServiceLandingPageSchemaEstate + isSet bool +} + +func (v NullableSelfServiceLandingPageSchemaEstate) Get() *SelfServiceLandingPageSchemaEstate { + return v.value +} + +func (v *NullableSelfServiceLandingPageSchemaEstate) Set(val *SelfServiceLandingPageSchemaEstate) { + v.value = val + v.isSet = true +} + +func (v NullableSelfServiceLandingPageSchemaEstate) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfServiceLandingPageSchemaEstate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfServiceLandingPageSchemaEstate(val *SelfServiceLandingPageSchemaEstate) *NullableSelfServiceLandingPageSchemaEstate { + return &NullableSelfServiceLandingPageSchemaEstate{value: val, isSet: true} +} + +func (v NullableSelfServiceLandingPageSchemaEstate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfServiceLandingPageSchemaEstate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_self_terms_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_terms_review.go new file mode 100644 index 00000000..af5c9e32 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_self_terms_review.go @@ -0,0 +1,191 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SelfTermsReview struct for SelfTermsReview +type SelfTermsReview struct { + CheckOptionalTerms *bool `json:"check_optional_terms,omitempty"` + EventCode *string `json:"event_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` +} + +// NewSelfTermsReview instantiates a new SelfTermsReview 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 NewSelfTermsReview() *SelfTermsReview { + this := SelfTermsReview{} + var checkOptionalTerms bool = true + this.CheckOptionalTerms = &checkOptionalTerms + return &this +} + +// NewSelfTermsReviewWithDefaults instantiates a new SelfTermsReview 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 NewSelfTermsReviewWithDefaults() *SelfTermsReview { + this := SelfTermsReview{} + var checkOptionalTerms bool = true + this.CheckOptionalTerms = &checkOptionalTerms + return &this +} + +// GetCheckOptionalTerms returns the CheckOptionalTerms field value if set, zero value otherwise. +func (o *SelfTermsReview) GetCheckOptionalTerms() bool { + if o == nil || o.CheckOptionalTerms == nil { + var ret bool + return ret + } + return *o.CheckOptionalTerms +} + +// GetCheckOptionalTermsOk returns a tuple with the CheckOptionalTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfTermsReview) GetCheckOptionalTermsOk() (*bool, bool) { + if o == nil || o.CheckOptionalTerms == nil { + return nil, false + } + return o.CheckOptionalTerms, true +} + +// HasCheckOptionalTerms returns a boolean if a field has been set. +func (o *SelfTermsReview) HasCheckOptionalTerms() bool { + if o != nil && o.CheckOptionalTerms != nil { + return true + } + + return false +} + +// SetCheckOptionalTerms gets a reference to the given bool and assigns it to the CheckOptionalTerms field. +func (o *SelfTermsReview) SetCheckOptionalTerms(v bool) { + o.CheckOptionalTerms = &v +} + +// GetEventCode returns the EventCode field value if set, zero value otherwise. +func (o *SelfTermsReview) GetEventCode() string { + if o == nil || o.EventCode == nil { + var ret string + return ret + } + return *o.EventCode +} + +// GetEventCodeOk returns a tuple with the EventCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfTermsReview) GetEventCodeOk() (*string, bool) { + if o == nil || o.EventCode == nil { + return nil, false + } + return o.EventCode, true +} + +// HasEventCode returns a boolean if a field has been set. +func (o *SelfTermsReview) HasEventCode() bool { + if o != nil && o.EventCode != nil { + return true + } + + return false +} + +// SetEventCode gets a reference to the given string and assigns it to the EventCode field. +func (o *SelfTermsReview) SetEventCode(v string) { + o.EventCode = &v +} + +// GetSiteCode returns the SiteCode field value if set, zero value otherwise. +func (o *SelfTermsReview) GetSiteCode() string { + if o == nil || o.SiteCode == nil { + var ret string + return ret + } + return *o.SiteCode +} + +// GetSiteCodeOk returns a tuple with the SiteCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SelfTermsReview) GetSiteCodeOk() (*string, bool) { + if o == nil || o.SiteCode == nil { + return nil, false + } + return o.SiteCode, true +} + +// HasSiteCode returns a boolean if a field has been set. +func (o *SelfTermsReview) HasSiteCode() bool { + if o != nil && o.SiteCode != nil { + return true + } + + return false +} + +// SetSiteCode gets a reference to the given string and assigns it to the SiteCode field. +func (o *SelfTermsReview) SetSiteCode(v string) { + o.SiteCode = &v +} + +func (o SelfTermsReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CheckOptionalTerms != nil { + toSerialize["check_optional_terms"] = o.CheckOptionalTerms + } + if o.EventCode != nil { + toSerialize["event_code"] = o.EventCode + } + if o.SiteCode != nil { + toSerialize["site_code"] = o.SiteCode + } + return json.Marshal(toSerialize) +} + +type NullableSelfTermsReview struct { + value *SelfTermsReview + isSet bool +} + +func (v NullableSelfTermsReview) Get() *SelfTermsReview { + return v.value +} + +func (v *NullableSelfTermsReview) Set(val *SelfTermsReview) { + v.value = val + v.isSet = true +} + +func (v NullableSelfTermsReview) IsSet() bool { + return v.isSet +} + +func (v *NullableSelfTermsReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSelfTermsReview(val *SelfTermsReview) *NullableSelfTermsReview { + return &NullableSelfTermsReview{value: val, isSet: true} +} + +func (v NullableSelfTermsReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSelfTermsReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku.go new file mode 100644 index 00000000..f79c6a97 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku.go @@ -0,0 +1,296 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SKU struct for SKU +type SKU struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSKU instantiates a new SKU 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 NewSKU() *SKU { + this := SKU{} + return &this +} + +// NewSKUWithDefaults instantiates a new SKU 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 NewSKUWithDefaults() *SKU { + this := SKU{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SKU) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *SKU) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *SKU) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SKU) GetId() string { + if o == nil || o.Id == nil { + 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 *SKU) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SKU) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SKU) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *SKU) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *SKU) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *SKU) SetKind(v string) { + o.Kind = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SKU) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SKU) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SKU) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SKU) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SKU) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SKU) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SKU) SetDescription(v string) { + o.Description = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SKU) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SKU) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SKU) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SKU) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSKU struct { + value *SKU + isSet bool +} + +func (v NullableSKU) Get() *SKU { + return v.value +} + +func (v *NullableSKU) Set(val *SKU) { + v.value = val + v.isSet = true +} + +func (v NullableSKU) IsSet() bool { + return v.isSet +} + +func (v *NullableSKU) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSKU(val *SKU) *NullableSKU { + return &NullableSKU{value: val, isSet: true} +} + +func (v NullableSKU) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSKU) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_all_of.go new file mode 100644 index 00000000..57dfcc64 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_all_of.go @@ -0,0 +1,188 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SKUAllOf struct for SKUAllOf +type SKUAllOf struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSKUAllOf instantiates a new SKUAllOf 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 NewSKUAllOf() *SKUAllOf { + this := SKUAllOf{} + return &this +} + +// NewSKUAllOfWithDefaults instantiates a new SKUAllOf 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 NewSKUAllOfWithDefaults() *SKUAllOf { + this := SKUAllOf{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SKUAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKUAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SKUAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SKUAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SKUAllOf) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SKUAllOf) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SKUAllOf) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SKUAllOf) SetDescription(v string) { + o.Description = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SKUAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKUAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SKUAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SKUAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SKUAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSKUAllOf struct { + value *SKUAllOf + isSet bool +} + +func (v NullableSKUAllOf) Get() *SKUAllOf { + return v.value +} + +func (v *NullableSKUAllOf) Set(val *SKUAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSKUAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSKUAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSKUAllOf(val *SKUAllOf) *NullableSKUAllOf { + return &NullableSKUAllOf{value: val, isSet: true} +} + +func (v NullableSKUAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSKUAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list.go new file mode 100644 index 00000000..cf98b358 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuList struct for SkuList +type SkuList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []SKU `json:"items"` +} + +// NewSkuList instantiates a new SkuList 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 NewSkuList(kind string, page int32, size int32, total int32, items []SKU) *SkuList { + this := SkuList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewSkuListWithDefaults instantiates a new SkuList 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 NewSkuListWithDefaults() *SkuList { + this := SkuList{} + return &this +} + +// GetKind returns the Kind field value +func (o *SkuList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SkuList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SkuList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *SkuList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *SkuList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *SkuList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *SkuList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SkuList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SkuList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *SkuList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *SkuList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *SkuList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *SkuList) GetItems() []SKU { + if o == nil { + var ret []SKU + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *SkuList) GetItemsOk() (*[]SKU, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *SkuList) SetItems(v []SKU) { + o.Items = v +} + +func (o SkuList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSkuList struct { + value *SkuList + isSet bool +} + +func (v NullableSkuList) Get() *SkuList { + return v.value +} + +func (v *NullableSkuList) Set(val *SkuList) { + v.value = val + v.isSet = true +} + +func (v NullableSkuList) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuList(val *SkuList) *NullableSkuList { + return &NullableSkuList{value: val, isSet: true} +} + +func (v NullableSkuList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list_all_of.go new file mode 100644 index 00000000..677f41ea --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuListAllOf struct for SkuListAllOf +type SkuListAllOf struct { + Items *[]SKU `json:"items,omitempty"` +} + +// NewSkuListAllOf instantiates a new SkuListAllOf 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 NewSkuListAllOf() *SkuListAllOf { + this := SkuListAllOf{} + return &this +} + +// NewSkuListAllOfWithDefaults instantiates a new SkuListAllOf 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 NewSkuListAllOfWithDefaults() *SkuListAllOf { + this := SkuListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SkuListAllOf) GetItems() []SKU { + if o == nil || o.Items == nil { + var ret []SKU + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuListAllOf) GetItemsOk() (*[]SKU, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SkuListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []SKU and assigns it to the Items field. +func (o *SkuListAllOf) SetItems(v []SKU) { + o.Items = &v +} + +func (o SkuListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSkuListAllOf struct { + value *SkuListAllOf + isSet bool +} + +func (v NullableSkuListAllOf) Get() *SkuListAllOf { + return v.value +} + +func (v *NullableSkuListAllOf) Set(val *SkuListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSkuListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuListAllOf(val *SkuListAllOf) *NullableSkuListAllOf { + return &NullableSkuListAllOf{value: val, isSet: true} +} + +func (v NullableSkuListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules.go new file mode 100644 index 00000000..80b41260 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules.go @@ -0,0 +1,295 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuRules struct for SkuRules +type SkuRules struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Allowed *int32 `json:"allowed,omitempty"` + QuotaId *string `json:"quota_id,omitempty"` + Sku *string `json:"sku,omitempty"` +} + +// NewSkuRules instantiates a new SkuRules 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 NewSkuRules() *SkuRules { + this := SkuRules{} + return &this +} + +// NewSkuRulesWithDefaults instantiates a new SkuRules 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 NewSkuRulesWithDefaults() *SkuRules { + this := SkuRules{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SkuRules) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRules) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *SkuRules) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *SkuRules) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SkuRules) GetId() string { + if o == nil || o.Id == nil { + 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 *SkuRules) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SkuRules) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SkuRules) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *SkuRules) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRules) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *SkuRules) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *SkuRules) SetKind(v string) { + o.Kind = &v +} + +// GetAllowed returns the Allowed field value if set, zero value otherwise. +func (o *SkuRules) GetAllowed() int32 { + if o == nil || o.Allowed == nil { + var ret int32 + return ret + } + return *o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRules) GetAllowedOk() (*int32, bool) { + if o == nil || o.Allowed == nil { + return nil, false + } + return o.Allowed, true +} + +// HasAllowed returns a boolean if a field has been set. +func (o *SkuRules) HasAllowed() bool { + if o != nil && o.Allowed != nil { + return true + } + + return false +} + +// SetAllowed gets a reference to the given int32 and assigns it to the Allowed field. +func (o *SkuRules) SetAllowed(v int32) { + o.Allowed = &v +} + +// GetQuotaId returns the QuotaId field value if set, zero value otherwise. +func (o *SkuRules) GetQuotaId() string { + if o == nil || o.QuotaId == nil { + var ret string + return ret + } + return *o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRules) GetQuotaIdOk() (*string, bool) { + if o == nil || o.QuotaId == nil { + return nil, false + } + return o.QuotaId, true +} + +// HasQuotaId returns a boolean if a field has been set. +func (o *SkuRules) HasQuotaId() bool { + if o != nil && o.QuotaId != nil { + return true + } + + return false +} + +// SetQuotaId gets a reference to the given string and assigns it to the QuotaId field. +func (o *SkuRules) SetQuotaId(v string) { + o.QuotaId = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *SkuRules) GetSku() string { + if o == nil || o.Sku == nil { + var ret string + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRules) GetSkuOk() (*string, bool) { + if o == nil || o.Sku == nil { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *SkuRules) HasSku() bool { + if o != nil && o.Sku != nil { + return true + } + + return false +} + +// SetSku gets a reference to the given string and assigns it to the Sku field. +func (o *SkuRules) SetSku(v string) { + o.Sku = &v +} + +func (o SkuRules) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Allowed != nil { + toSerialize["allowed"] = o.Allowed + } + if o.QuotaId != nil { + toSerialize["quota_id"] = o.QuotaId + } + if o.Sku != nil { + toSerialize["sku"] = o.Sku + } + return json.Marshal(toSerialize) +} + +type NullableSkuRules struct { + value *SkuRules + isSet bool +} + +func (v NullableSkuRules) Get() *SkuRules { + return v.value +} + +func (v *NullableSkuRules) Set(val *SkuRules) { + v.value = val + v.isSet = true +} + +func (v NullableSkuRules) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuRules(val *SkuRules) *NullableSkuRules { + return &NullableSkuRules{value: val, isSet: true} +} + +func (v NullableSkuRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_all_of.go new file mode 100644 index 00000000..6e418e38 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_all_of.go @@ -0,0 +1,187 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuRulesAllOf struct for SkuRulesAllOf +type SkuRulesAllOf struct { + Allowed *int32 `json:"allowed,omitempty"` + QuotaId *string `json:"quota_id,omitempty"` + Sku *string `json:"sku,omitempty"` +} + +// NewSkuRulesAllOf instantiates a new SkuRulesAllOf 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 NewSkuRulesAllOf() *SkuRulesAllOf { + this := SkuRulesAllOf{} + return &this +} + +// NewSkuRulesAllOfWithDefaults instantiates a new SkuRulesAllOf 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 NewSkuRulesAllOfWithDefaults() *SkuRulesAllOf { + this := SkuRulesAllOf{} + return &this +} + +// GetAllowed returns the Allowed field value if set, zero value otherwise. +func (o *SkuRulesAllOf) GetAllowed() int32 { + if o == nil || o.Allowed == nil { + var ret int32 + return ret + } + return *o.Allowed +} + +// GetAllowedOk returns a tuple with the Allowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRulesAllOf) GetAllowedOk() (*int32, bool) { + if o == nil || o.Allowed == nil { + return nil, false + } + return o.Allowed, true +} + +// HasAllowed returns a boolean if a field has been set. +func (o *SkuRulesAllOf) HasAllowed() bool { + if o != nil && o.Allowed != nil { + return true + } + + return false +} + +// SetAllowed gets a reference to the given int32 and assigns it to the Allowed field. +func (o *SkuRulesAllOf) SetAllowed(v int32) { + o.Allowed = &v +} + +// GetQuotaId returns the QuotaId field value if set, zero value otherwise. +func (o *SkuRulesAllOf) GetQuotaId() string { + if o == nil || o.QuotaId == nil { + var ret string + return ret + } + return *o.QuotaId +} + +// GetQuotaIdOk returns a tuple with the QuotaId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRulesAllOf) GetQuotaIdOk() (*string, bool) { + if o == nil || o.QuotaId == nil { + return nil, false + } + return o.QuotaId, true +} + +// HasQuotaId returns a boolean if a field has been set. +func (o *SkuRulesAllOf) HasQuotaId() bool { + if o != nil && o.QuotaId != nil { + return true + } + + return false +} + +// SetQuotaId gets a reference to the given string and assigns it to the QuotaId field. +func (o *SkuRulesAllOf) SetQuotaId(v string) { + o.QuotaId = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *SkuRulesAllOf) GetSku() string { + if o == nil || o.Sku == nil { + var ret string + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRulesAllOf) GetSkuOk() (*string, bool) { + if o == nil || o.Sku == nil { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *SkuRulesAllOf) HasSku() bool { + if o != nil && o.Sku != nil { + return true + } + + return false +} + +// SetSku gets a reference to the given string and assigns it to the Sku field. +func (o *SkuRulesAllOf) SetSku(v string) { + o.Sku = &v +} + +func (o SkuRulesAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Allowed != nil { + toSerialize["allowed"] = o.Allowed + } + if o.QuotaId != nil { + toSerialize["quota_id"] = o.QuotaId + } + if o.Sku != nil { + toSerialize["sku"] = o.Sku + } + return json.Marshal(toSerialize) +} + +type NullableSkuRulesAllOf struct { + value *SkuRulesAllOf + isSet bool +} + +func (v NullableSkuRulesAllOf) Get() *SkuRulesAllOf { + return v.value +} + +func (v *NullableSkuRulesAllOf) Set(val *SkuRulesAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSkuRulesAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuRulesAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuRulesAllOf(val *SkuRulesAllOf) *NullableSkuRulesAllOf { + return &NullableSkuRulesAllOf{value: val, isSet: true} +} + +func (v NullableSkuRulesAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuRulesAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list.go new file mode 100644 index 00000000..3062900c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuRulesList struct for SkuRulesList +type SkuRulesList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []SkuRules `json:"items"` +} + +// NewSkuRulesList instantiates a new SkuRulesList 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 NewSkuRulesList(kind string, page int32, size int32, total int32, items []SkuRules) *SkuRulesList { + this := SkuRulesList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewSkuRulesListWithDefaults instantiates a new SkuRulesList 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 NewSkuRulesListWithDefaults() *SkuRulesList { + this := SkuRulesList{} + return &this +} + +// GetKind returns the Kind field value +func (o *SkuRulesList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SkuRulesList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SkuRulesList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *SkuRulesList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *SkuRulesList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *SkuRulesList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *SkuRulesList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SkuRulesList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SkuRulesList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *SkuRulesList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *SkuRulesList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *SkuRulesList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *SkuRulesList) GetItems() []SkuRules { + if o == nil { + var ret []SkuRules + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *SkuRulesList) GetItemsOk() (*[]SkuRules, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *SkuRulesList) SetItems(v []SkuRules) { + o.Items = v +} + +func (o SkuRulesList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSkuRulesList struct { + value *SkuRulesList + isSet bool +} + +func (v NullableSkuRulesList) Get() *SkuRulesList { + return v.value +} + +func (v *NullableSkuRulesList) Set(val *SkuRulesList) { + v.value = val + v.isSet = true +} + +func (v NullableSkuRulesList) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuRulesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuRulesList(val *SkuRulesList) *NullableSkuRulesList { + return &NullableSkuRulesList{value: val, isSet: true} +} + +func (v NullableSkuRulesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuRulesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list_all_of.go new file mode 100644 index 00000000..4db820b1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_sku_rules_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SkuRulesListAllOf struct for SkuRulesListAllOf +type SkuRulesListAllOf struct { + Items *[]SkuRules `json:"items,omitempty"` +} + +// NewSkuRulesListAllOf instantiates a new SkuRulesListAllOf 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 NewSkuRulesListAllOf() *SkuRulesListAllOf { + this := SkuRulesListAllOf{} + return &this +} + +// NewSkuRulesListAllOfWithDefaults instantiates a new SkuRulesListAllOf 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 NewSkuRulesListAllOfWithDefaults() *SkuRulesListAllOf { + this := SkuRulesListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SkuRulesListAllOf) GetItems() []SkuRules { + if o == nil || o.Items == nil { + var ret []SkuRules + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuRulesListAllOf) GetItemsOk() (*[]SkuRules, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SkuRulesListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []SkuRules and assigns it to the Items field. +func (o *SkuRulesListAllOf) SetItems(v []SkuRules) { + o.Items = &v +} + +func (o SkuRulesListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSkuRulesListAllOf struct { + value *SkuRulesListAllOf + isSet bool +} + +func (v NullableSkuRulesListAllOf) Get() *SkuRulesListAllOf { + return v.value +} + +func (v *NullableSkuRulesListAllOf) Set(val *SkuRulesListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSkuRulesListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuRulesListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuRulesListAllOf(val *SkuRulesListAllOf) *NullableSkuRulesListAllOf { + return &NullableSkuRulesListAllOf{value: val, isSet: true} +} + +func (v NullableSkuRulesListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuRulesListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription.go new file mode 100644 index 00000000..42910874 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription.go @@ -0,0 +1,1555 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// Subscription struct for Subscription +type Subscription struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // If set, the date the subscription expires based on the billing model + BillingExpirationDate *time.Time `json:"billing_expiration_date,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterBillingModel *string `json:"cluster_billing_model,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ConsoleUrl *string `json:"console_url,omitempty"` + ConsumerUuid *string `json:"consumer_uuid,omitempty"` + CpuTotal *int32 `json:"cpu_total,omitempty"` + CreatorId *string `json:"creator_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + // Last time this subscription were reconciled about cluster usage + LastReconcileDate *time.Time `json:"last_reconcile_date,omitempty"` + // Last time status was set to Released for this cluster/subscription in Unix time + LastReleasedAt *time.Time `json:"last_released_at,omitempty"` + // Last telemetry authorization request for this cluster/subscription in Unix time + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ProductBundle *string `json:"product_bundle,omitempty"` + Provenance *string `json:"provenance,omitempty"` + RegionId *string `json:"region_id,omitempty"` + Released *bool `json:"released,omitempty"` + ServiceLevel *string `json:"service_level,omitempty"` + SocketTotal *int32 `json:"socket_total,omitempty"` + Status *string `json:"status,omitempty"` + SupportLevel *string `json:"support_level,omitempty"` + SystemUnits *string `json:"system_units,omitempty"` + // If the subscription is a trial, date the trial ends + TrialEndDate *time.Time `json:"trial_end_date,omitempty"` + Usage *string `json:"usage,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + // Calulated as the subscription created date + 60 days + EvalExpirationDate *time.Time `json:"eval_expiration_date,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + Plan *Plan `json:"plan,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSubscription instantiates a new Subscription 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 NewSubscription(managed bool) *Subscription { + this := Subscription{} + this.Managed = managed + return &this +} + +// NewSubscriptionWithDefaults instantiates a new Subscription 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 NewSubscriptionWithDefaults() *Subscription { + this := Subscription{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Subscription) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Subscription) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Subscription) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Subscription) GetId() string { + if o == nil || o.Id == nil { + 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 *Subscription) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Subscription) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Subscription) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Subscription) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Subscription) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Subscription) SetKind(v string) { + o.Kind = &v +} + +// GetBillingExpirationDate returns the BillingExpirationDate field value if set, zero value otherwise. +func (o *Subscription) GetBillingExpirationDate() time.Time { + if o == nil || o.BillingExpirationDate == nil { + var ret time.Time + return ret + } + return *o.BillingExpirationDate +} + +// GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetBillingExpirationDateOk() (*time.Time, bool) { + if o == nil || o.BillingExpirationDate == nil { + return nil, false + } + return o.BillingExpirationDate, true +} + +// HasBillingExpirationDate returns a boolean if a field has been set. +func (o *Subscription) HasBillingExpirationDate() bool { + if o != nil && o.BillingExpirationDate != nil { + return true + } + + return false +} + +// SetBillingExpirationDate gets a reference to the given time.Time and assigns it to the BillingExpirationDate field. +func (o *Subscription) SetBillingExpirationDate(v time.Time) { + o.BillingExpirationDate = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *Subscription) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *Subscription) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *Subscription) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *Subscription) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *Subscription) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *Subscription) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *Subscription) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *Subscription) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *Subscription) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise. +func (o *Subscription) GetClusterBillingModel() string { + if o == nil || o.ClusterBillingModel == nil { + var ret string + return ret + } + return *o.ClusterBillingModel +} + +// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetClusterBillingModelOk() (*string, bool) { + if o == nil || o.ClusterBillingModel == nil { + return nil, false + } + return o.ClusterBillingModel, true +} + +// HasClusterBillingModel returns a boolean if a field has been set. +func (o *Subscription) HasClusterBillingModel() bool { + if o != nil && o.ClusterBillingModel != nil { + return true + } + + return false +} + +// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field. +func (o *Subscription) SetClusterBillingModel(v string) { + o.ClusterBillingModel = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *Subscription) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *Subscription) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *Subscription) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *Subscription) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *Subscription) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *Subscription) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise. +func (o *Subscription) GetConsumerUuid() string { + if o == nil || o.ConsumerUuid == nil { + var ret string + return ret + } + return *o.ConsumerUuid +} + +// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetConsumerUuidOk() (*string, bool) { + if o == nil || o.ConsumerUuid == nil { + return nil, false + } + return o.ConsumerUuid, true +} + +// HasConsumerUuid returns a boolean if a field has been set. +func (o *Subscription) HasConsumerUuid() bool { + if o != nil && o.ConsumerUuid != nil { + return true + } + + return false +} + +// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field. +func (o *Subscription) SetConsumerUuid(v string) { + o.ConsumerUuid = &v +} + +// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise. +func (o *Subscription) GetCpuTotal() int32 { + if o == nil || o.CpuTotal == nil { + var ret int32 + return ret + } + return *o.CpuTotal +} + +// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCpuTotalOk() (*int32, bool) { + if o == nil || o.CpuTotal == nil { + return nil, false + } + return o.CpuTotal, true +} + +// HasCpuTotal returns a boolean if a field has been set. +func (o *Subscription) HasCpuTotal() bool { + if o != nil && o.CpuTotal != nil { + return true + } + + return false +} + +// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field. +func (o *Subscription) SetCpuTotal(v int32) { + o.CpuTotal = &v +} + +// GetCreatorId returns the CreatorId field value if set, zero value otherwise. +func (o *Subscription) GetCreatorId() string { + if o == nil || o.CreatorId == nil { + var ret string + return ret + } + return *o.CreatorId +} + +// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatorIdOk() (*string, bool) { + if o == nil || o.CreatorId == nil { + return nil, false + } + return o.CreatorId, true +} + +// HasCreatorId returns a boolean if a field has been set. +func (o *Subscription) HasCreatorId() bool { + if o != nil && o.CreatorId != nil { + return true + } + + return false +} + +// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field. +func (o *Subscription) SetCreatorId(v string) { + o.CreatorId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *Subscription) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *Subscription) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *Subscription) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *Subscription) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *Subscription) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *Subscription) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetLastReconcileDate returns the LastReconcileDate field value if set, zero value otherwise. +func (o *Subscription) GetLastReconcileDate() time.Time { + if o == nil || o.LastReconcileDate == nil { + var ret time.Time + return ret + } + return *o.LastReconcileDate +} + +// GetLastReconcileDateOk returns a tuple with the LastReconcileDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetLastReconcileDateOk() (*time.Time, bool) { + if o == nil || o.LastReconcileDate == nil { + return nil, false + } + return o.LastReconcileDate, true +} + +// HasLastReconcileDate returns a boolean if a field has been set. +func (o *Subscription) HasLastReconcileDate() bool { + if o != nil && o.LastReconcileDate != nil { + return true + } + + return false +} + +// SetLastReconcileDate gets a reference to the given time.Time and assigns it to the LastReconcileDate field. +func (o *Subscription) SetLastReconcileDate(v time.Time) { + o.LastReconcileDate = &v +} + +// GetLastReleasedAt returns the LastReleasedAt field value if set, zero value otherwise. +func (o *Subscription) GetLastReleasedAt() time.Time { + if o == nil || o.LastReleasedAt == nil { + var ret time.Time + return ret + } + return *o.LastReleasedAt +} + +// GetLastReleasedAtOk returns a tuple with the LastReleasedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetLastReleasedAtOk() (*time.Time, bool) { + if o == nil || o.LastReleasedAt == nil { + return nil, false + } + return o.LastReleasedAt, true +} + +// HasLastReleasedAt returns a boolean if a field has been set. +func (o *Subscription) HasLastReleasedAt() bool { + if o != nil && o.LastReleasedAt != nil { + return true + } + + return false +} + +// SetLastReleasedAt gets a reference to the given time.Time and assigns it to the LastReleasedAt field. +func (o *Subscription) SetLastReleasedAt(v time.Time) { + o.LastReleasedAt = &v +} + +// GetLastTelemetryDate returns the LastTelemetryDate field value if set, zero value otherwise. +func (o *Subscription) GetLastTelemetryDate() time.Time { + if o == nil || o.LastTelemetryDate == nil { + var ret time.Time + return ret + } + return *o.LastTelemetryDate +} + +// GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetLastTelemetryDateOk() (*time.Time, bool) { + if o == nil || o.LastTelemetryDate == nil { + return nil, false + } + return o.LastTelemetryDate, true +} + +// HasLastTelemetryDate returns a boolean if a field has been set. +func (o *Subscription) HasLastTelemetryDate() bool { + if o != nil && o.LastTelemetryDate != nil { + return true + } + + return false +} + +// SetLastTelemetryDate gets a reference to the given time.Time and assigns it to the LastTelemetryDate field. +func (o *Subscription) SetLastTelemetryDate(v time.Time) { + o.LastTelemetryDate = &v +} + +// GetManaged returns the Managed field value +func (o *Subscription) GetManaged() bool { + if o == nil { + var ret bool + return ret + } + + return o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetManagedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Managed, true +} + +// SetManaged sets field value +func (o *Subscription) SetManaged(v bool) { + o.Managed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *Subscription) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *Subscription) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *Subscription) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *Subscription) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *Subscription) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *Subscription) SetPlanId(v string) { + o.PlanId = &v +} + +// GetProductBundle returns the ProductBundle field value if set, zero value otherwise. +func (o *Subscription) GetProductBundle() string { + if o == nil || o.ProductBundle == nil { + var ret string + return ret + } + return *o.ProductBundle +} + +// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetProductBundleOk() (*string, bool) { + if o == nil || o.ProductBundle == nil { + return nil, false + } + return o.ProductBundle, true +} + +// HasProductBundle returns a boolean if a field has been set. +func (o *Subscription) HasProductBundle() bool { + if o != nil && o.ProductBundle != nil { + return true + } + + return false +} + +// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field. +func (o *Subscription) SetProductBundle(v string) { + o.ProductBundle = &v +} + +// GetProvenance returns the Provenance field value if set, zero value otherwise. +func (o *Subscription) GetProvenance() string { + if o == nil || o.Provenance == nil { + var ret string + return ret + } + return *o.Provenance +} + +// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetProvenanceOk() (*string, bool) { + if o == nil || o.Provenance == nil { + return nil, false + } + return o.Provenance, true +} + +// HasProvenance returns a boolean if a field has been set. +func (o *Subscription) HasProvenance() bool { + if o != nil && o.Provenance != nil { + return true + } + + return false +} + +// SetProvenance gets a reference to the given string and assigns it to the Provenance field. +func (o *Subscription) SetProvenance(v string) { + o.Provenance = &v +} + +// GetRegionId returns the RegionId field value if set, zero value otherwise. +func (o *Subscription) GetRegionId() string { + if o == nil || o.RegionId == nil { + var ret string + return ret + } + return *o.RegionId +} + +// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetRegionIdOk() (*string, bool) { + if o == nil || o.RegionId == nil { + return nil, false + } + return o.RegionId, true +} + +// HasRegionId returns a boolean if a field has been set. +func (o *Subscription) HasRegionId() bool { + if o != nil && o.RegionId != nil { + return true + } + + return false +} + +// SetRegionId gets a reference to the given string and assigns it to the RegionId field. +func (o *Subscription) SetRegionId(v string) { + o.RegionId = &v +} + +// GetReleased returns the Released field value if set, zero value otherwise. +func (o *Subscription) GetReleased() bool { + if o == nil || o.Released == nil { + var ret bool + return ret + } + return *o.Released +} + +// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetReleasedOk() (*bool, bool) { + if o == nil || o.Released == nil { + return nil, false + } + return o.Released, true +} + +// HasReleased returns a boolean if a field has been set. +func (o *Subscription) HasReleased() bool { + if o != nil && o.Released != nil { + return true + } + + return false +} + +// SetReleased gets a reference to the given bool and assigns it to the Released field. +func (o *Subscription) SetReleased(v bool) { + o.Released = &v +} + +// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +func (o *Subscription) GetServiceLevel() string { + if o == nil || o.ServiceLevel == nil { + var ret string + return ret + } + return *o.ServiceLevel +} + +// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetServiceLevelOk() (*string, bool) { + if o == nil || o.ServiceLevel == nil { + return nil, false + } + return o.ServiceLevel, true +} + +// HasServiceLevel returns a boolean if a field has been set. +func (o *Subscription) HasServiceLevel() bool { + if o != nil && o.ServiceLevel != nil { + return true + } + + return false +} + +// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +func (o *Subscription) SetServiceLevel(v string) { + o.ServiceLevel = &v +} + +// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise. +func (o *Subscription) GetSocketTotal() int32 { + if o == nil || o.SocketTotal == nil { + var ret int32 + return ret + } + return *o.SocketTotal +} + +// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetSocketTotalOk() (*int32, bool) { + if o == nil || o.SocketTotal == nil { + return nil, false + } + return o.SocketTotal, true +} + +// HasSocketTotal returns a boolean if a field has been set. +func (o *Subscription) HasSocketTotal() bool { + if o != nil && o.SocketTotal != nil { + return true + } + + return false +} + +// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field. +func (o *Subscription) SetSocketTotal(v int32) { + o.SocketTotal = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Subscription) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Subscription) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *Subscription) SetStatus(v string) { + o.Status = &v +} + +// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise. +func (o *Subscription) GetSupportLevel() string { + if o == nil || o.SupportLevel == nil { + var ret string + return ret + } + return *o.SupportLevel +} + +// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetSupportLevelOk() (*string, bool) { + if o == nil || o.SupportLevel == nil { + return nil, false + } + return o.SupportLevel, true +} + +// HasSupportLevel returns a boolean if a field has been set. +func (o *Subscription) HasSupportLevel() bool { + if o != nil && o.SupportLevel != nil { + return true + } + + return false +} + +// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field. +func (o *Subscription) SetSupportLevel(v string) { + o.SupportLevel = &v +} + +// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise. +func (o *Subscription) GetSystemUnits() string { + if o == nil || o.SystemUnits == nil { + var ret string + return ret + } + return *o.SystemUnits +} + +// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetSystemUnitsOk() (*string, bool) { + if o == nil || o.SystemUnits == nil { + return nil, false + } + return o.SystemUnits, true +} + +// HasSystemUnits returns a boolean if a field has been set. +func (o *Subscription) HasSystemUnits() bool { + if o != nil && o.SystemUnits != nil { + return true + } + + return false +} + +// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field. +func (o *Subscription) SetSystemUnits(v string) { + o.SystemUnits = &v +} + +// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise. +func (o *Subscription) GetTrialEndDate() time.Time { + if o == nil || o.TrialEndDate == nil { + var ret time.Time + return ret + } + return *o.TrialEndDate +} + +// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetTrialEndDateOk() (*time.Time, bool) { + if o == nil || o.TrialEndDate == nil { + return nil, false + } + return o.TrialEndDate, true +} + +// HasTrialEndDate returns a boolean if a field has been set. +func (o *Subscription) HasTrialEndDate() bool { + if o != nil && o.TrialEndDate != nil { + return true + } + + return false +} + +// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field. +func (o *Subscription) SetTrialEndDate(v time.Time) { + o.TrialEndDate = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *Subscription) GetUsage() string { + if o == nil || o.Usage == nil { + var ret string + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetUsageOk() (*string, bool) { + if o == nil || o.Usage == nil { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *Subscription) HasUsage() bool { + if o != nil && o.Usage != nil { + return true + } + + return false +} + +// SetUsage gets a reference to the given string and assigns it to the Usage field. +func (o *Subscription) SetUsage(v string) { + o.Usage = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *Subscription) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *Subscription) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *Subscription) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Subscription) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Subscription) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Subscription) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetCreator returns the Creator field value if set, zero value otherwise. +func (o *Subscription) GetCreator() AccountReference { + if o == nil || o.Creator == nil { + var ret AccountReference + return ret + } + return *o.Creator +} + +// GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatorOk() (*AccountReference, bool) { + if o == nil || o.Creator == nil { + return nil, false + } + return o.Creator, true +} + +// HasCreator returns a boolean if a field has been set. +func (o *Subscription) HasCreator() bool { + if o != nil && o.Creator != nil { + return true + } + + return false +} + +// SetCreator gets a reference to the given AccountReference and assigns it to the Creator field. +func (o *Subscription) SetCreator(v AccountReference) { + o.Creator = &v +} + +// GetEvalExpirationDate returns the EvalExpirationDate field value if set, zero value otherwise. +func (o *Subscription) GetEvalExpirationDate() time.Time { + if o == nil || o.EvalExpirationDate == nil { + var ret time.Time + return ret + } + return *o.EvalExpirationDate +} + +// GetEvalExpirationDateOk returns a tuple with the EvalExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetEvalExpirationDateOk() (*time.Time, bool) { + if o == nil || o.EvalExpirationDate == nil { + return nil, false + } + return o.EvalExpirationDate, true +} + +// HasEvalExpirationDate returns a boolean if a field has been set. +func (o *Subscription) HasEvalExpirationDate() bool { + if o != nil && o.EvalExpirationDate != nil { + return true + } + + return false +} + +// SetEvalExpirationDate gets a reference to the given time.Time and assigns it to the EvalExpirationDate field. +func (o *Subscription) SetEvalExpirationDate(v time.Time) { + o.EvalExpirationDate = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *Subscription) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *Subscription) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *Subscription) SetLabels(v []Label) { + o.Labels = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *Subscription) GetMetrics() []OneMetric { + if o == nil || o.Metrics == nil { + var ret []OneMetric + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetMetricsOk() (*[]OneMetric, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *Subscription) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []OneMetric and assigns it to the Metrics field. +func (o *Subscription) SetMetrics(v []OneMetric) { + o.Metrics = &v +} + +// GetNotificationContacts returns the NotificationContacts field value if set, zero value otherwise. +func (o *Subscription) GetNotificationContacts() []Account { + if o == nil || o.NotificationContacts == nil { + var ret []Account + return ret + } + return *o.NotificationContacts +} + +// GetNotificationContactsOk returns a tuple with the NotificationContacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetNotificationContactsOk() (*[]Account, bool) { + if o == nil || o.NotificationContacts == nil { + return nil, false + } + return o.NotificationContacts, true +} + +// HasNotificationContacts returns a boolean if a field has been set. +func (o *Subscription) HasNotificationContacts() bool { + if o != nil && o.NotificationContacts != nil { + return true + } + + return false +} + +// SetNotificationContacts gets a reference to the given []Account and assigns it to the NotificationContacts field. +func (o *Subscription) SetNotificationContacts(v []Account) { + o.NotificationContacts = &v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *Subscription) GetPlan() Plan { + if o == nil || o.Plan == nil { + var ret Plan + return ret + } + return *o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetPlanOk() (*Plan, bool) { + if o == nil || o.Plan == nil { + return nil, false + } + return o.Plan, true +} + +// HasPlan returns a boolean if a field has been set. +func (o *Subscription) HasPlan() bool { + if o != nil && o.Plan != nil { + return true + } + + return false +} + +// SetPlan gets a reference to the given Plan and assigns it to the Plan field. +func (o *Subscription) SetPlan(v Plan) { + o.Plan = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Subscription) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Subscription) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Subscription) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o Subscription) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.BillingExpirationDate != nil { + toSerialize["billing_expiration_date"] = o.BillingExpirationDate + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if o.ClusterBillingModel != nil { + toSerialize["cluster_billing_model"] = o.ClusterBillingModel + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.ConsumerUuid != nil { + toSerialize["consumer_uuid"] = o.ConsumerUuid + } + if o.CpuTotal != nil { + toSerialize["cpu_total"] = o.CpuTotal + } + if o.CreatorId != nil { + toSerialize["creator_id"] = o.CreatorId + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.LastReconcileDate != nil { + toSerialize["last_reconcile_date"] = o.LastReconcileDate + } + if o.LastReleasedAt != nil { + toSerialize["last_released_at"] = o.LastReleasedAt + } + if o.LastTelemetryDate != nil { + toSerialize["last_telemetry_date"] = o.LastTelemetryDate + } + if true { + toSerialize["managed"] = o.Managed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ProductBundle != nil { + toSerialize["product_bundle"] = o.ProductBundle + } + if o.Provenance != nil { + toSerialize["provenance"] = o.Provenance + } + if o.RegionId != nil { + toSerialize["region_id"] = o.RegionId + } + if o.Released != nil { + toSerialize["released"] = o.Released + } + if o.ServiceLevel != nil { + toSerialize["service_level"] = o.ServiceLevel + } + if o.SocketTotal != nil { + toSerialize["socket_total"] = o.SocketTotal + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SupportLevel != nil { + toSerialize["support_level"] = o.SupportLevel + } + if o.SystemUnits != nil { + toSerialize["system_units"] = o.SystemUnits + } + if o.TrialEndDate != nil { + toSerialize["trial_end_date"] = o.TrialEndDate + } + if o.Usage != nil { + toSerialize["usage"] = o.Usage + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Creator != nil { + toSerialize["creator"] = o.Creator + } + if o.EvalExpirationDate != nil { + toSerialize["eval_expiration_date"] = o.EvalExpirationDate + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.NotificationContacts != nil { + toSerialize["notification_contacts"] = o.NotificationContacts + } + if o.Plan != nil { + toSerialize["plan"] = o.Plan + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSubscription struct { + value *Subscription + isSet bool +} + +func (v NullableSubscription) Get() *Subscription { + return v.value +} + +func (v *NullableSubscription) Set(val *Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscription(val *Subscription) *NullableSubscription { + return &NullableSubscription{value: val, isSet: true} +} + +func (v NullableSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_all_of.go new file mode 100644 index 00000000..3e174133 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_all_of.go @@ -0,0 +1,405 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionAllOf struct for SubscriptionAllOf +type SubscriptionAllOf struct { + Capabilities *[]Capability `json:"capabilities,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Creator *AccountReference `json:"creator,omitempty"` + // Calulated as the subscription created date + 60 days + EvalExpirationDate *time.Time `json:"eval_expiration_date,omitempty"` + Labels *[]Label `json:"labels,omitempty"` + Metrics *[]OneMetric `json:"metrics,omitempty"` + NotificationContacts *[]Account `json:"notification_contacts,omitempty"` + Plan *Plan `json:"plan,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSubscriptionAllOf instantiates a new SubscriptionAllOf 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 NewSubscriptionAllOf() *SubscriptionAllOf { + this := SubscriptionAllOf{} + return &this +} + +// NewSubscriptionAllOfWithDefaults instantiates a new SubscriptionAllOf 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 NewSubscriptionAllOfWithDefaults() *SubscriptionAllOf { + this := SubscriptionAllOf{} + return &this +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetCapabilities() []Capability { + if o == nil || o.Capabilities == nil { + var ret []Capability + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetCapabilitiesOk() (*[]Capability, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []Capability and assigns it to the Capabilities field. +func (o *SubscriptionAllOf) SetCapabilities(v []Capability) { + o.Capabilities = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SubscriptionAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetCreator returns the Creator field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetCreator() AccountReference { + if o == nil || o.Creator == nil { + var ret AccountReference + return ret + } + return *o.Creator +} + +// GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetCreatorOk() (*AccountReference, bool) { + if o == nil || o.Creator == nil { + return nil, false + } + return o.Creator, true +} + +// HasCreator returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasCreator() bool { + if o != nil && o.Creator != nil { + return true + } + + return false +} + +// SetCreator gets a reference to the given AccountReference and assigns it to the Creator field. +func (o *SubscriptionAllOf) SetCreator(v AccountReference) { + o.Creator = &v +} + +// GetEvalExpirationDate returns the EvalExpirationDate field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetEvalExpirationDate() time.Time { + if o == nil || o.EvalExpirationDate == nil { + var ret time.Time + return ret + } + return *o.EvalExpirationDate +} + +// GetEvalExpirationDateOk returns a tuple with the EvalExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetEvalExpirationDateOk() (*time.Time, bool) { + if o == nil || o.EvalExpirationDate == nil { + return nil, false + } + return o.EvalExpirationDate, true +} + +// HasEvalExpirationDate returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasEvalExpirationDate() bool { + if o != nil && o.EvalExpirationDate != nil { + return true + } + + return false +} + +// SetEvalExpirationDate gets a reference to the given time.Time and assigns it to the EvalExpirationDate field. +func (o *SubscriptionAllOf) SetEvalExpirationDate(v time.Time) { + o.EvalExpirationDate = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetLabels() []Label { + if o == nil || o.Labels == nil { + var ret []Label + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetLabelsOk() (*[]Label, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []Label and assigns it to the Labels field. +func (o *SubscriptionAllOf) SetLabels(v []Label) { + o.Labels = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetMetrics() []OneMetric { + if o == nil || o.Metrics == nil { + var ret []OneMetric + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetMetricsOk() (*[]OneMetric, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []OneMetric and assigns it to the Metrics field. +func (o *SubscriptionAllOf) SetMetrics(v []OneMetric) { + o.Metrics = &v +} + +// GetNotificationContacts returns the NotificationContacts field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetNotificationContacts() []Account { + if o == nil || o.NotificationContacts == nil { + var ret []Account + return ret + } + return *o.NotificationContacts +} + +// GetNotificationContactsOk returns a tuple with the NotificationContacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetNotificationContactsOk() (*[]Account, bool) { + if o == nil || o.NotificationContacts == nil { + return nil, false + } + return o.NotificationContacts, true +} + +// HasNotificationContacts returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasNotificationContacts() bool { + if o != nil && o.NotificationContacts != nil { + return true + } + + return false +} + +// SetNotificationContacts gets a reference to the given []Account and assigns it to the NotificationContacts field. +func (o *SubscriptionAllOf) SetNotificationContacts(v []Account) { + o.NotificationContacts = &v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetPlan() Plan { + if o == nil || o.Plan == nil { + var ret Plan + return ret + } + return *o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetPlanOk() (*Plan, bool) { + if o == nil || o.Plan == nil { + return nil, false + } + return o.Plan, true +} + +// HasPlan returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasPlan() bool { + if o != nil && o.Plan != nil { + return true + } + + return false +} + +// SetPlan gets a reference to the given Plan and assigns it to the Plan field. +func (o *SubscriptionAllOf) SetPlan(v Plan) { + o.Plan = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SubscriptionAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SubscriptionAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SubscriptionAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SubscriptionAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Creator != nil { + toSerialize["creator"] = o.Creator + } + if o.EvalExpirationDate != nil { + toSerialize["eval_expiration_date"] = o.EvalExpirationDate + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.NotificationContacts != nil { + toSerialize["notification_contacts"] = o.NotificationContacts + } + if o.Plan != nil { + toSerialize["plan"] = o.Plan + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionAllOf struct { + value *SubscriptionAllOf + isSet bool +} + +func (v NullableSubscriptionAllOf) Get() *SubscriptionAllOf { + return v.value +} + +func (v *NullableSubscriptionAllOf) Set(val *SubscriptionAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionAllOf(val *SubscriptionAllOf) *NullableSubscriptionAllOf { + return &NullableSubscriptionAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields.go new file mode 100644 index 00000000..d37ca1a0 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields.go @@ -0,0 +1,1230 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionCommonFields struct for SubscriptionCommonFields +type SubscriptionCommonFields struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // If set, the date the subscription expires based on the billing model + BillingExpirationDate *time.Time `json:"billing_expiration_date,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterBillingModel *string `json:"cluster_billing_model,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ConsoleUrl *string `json:"console_url,omitempty"` + ConsumerUuid *string `json:"consumer_uuid,omitempty"` + CpuTotal *int32 `json:"cpu_total,omitempty"` + CreatorId *string `json:"creator_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + // Last time this subscription were reconciled about cluster usage + LastReconcileDate *time.Time `json:"last_reconcile_date,omitempty"` + // Last time status was set to Released for this cluster/subscription in Unix time + LastReleasedAt *time.Time `json:"last_released_at,omitempty"` + // Last telemetry authorization request for this cluster/subscription in Unix time + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ProductBundle *string `json:"product_bundle,omitempty"` + Provenance *string `json:"provenance,omitempty"` + RegionId *string `json:"region_id,omitempty"` + Released *bool `json:"released,omitempty"` + ServiceLevel *string `json:"service_level,omitempty"` + SocketTotal *int32 `json:"socket_total,omitempty"` + Status *string `json:"status,omitempty"` + SupportLevel *string `json:"support_level,omitempty"` + SystemUnits *string `json:"system_units,omitempty"` + // If the subscription is a trial, date the trial ends + TrialEndDate *time.Time `json:"trial_end_date,omitempty"` + Usage *string `json:"usage,omitempty"` +} + +// NewSubscriptionCommonFields instantiates a new SubscriptionCommonFields 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 NewSubscriptionCommonFields(managed bool) *SubscriptionCommonFields { + this := SubscriptionCommonFields{} + this.Managed = managed + return &this +} + +// NewSubscriptionCommonFieldsWithDefaults instantiates a new SubscriptionCommonFields 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 NewSubscriptionCommonFieldsWithDefaults() *SubscriptionCommonFields { + this := SubscriptionCommonFields{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *SubscriptionCommonFields) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetId() string { + if o == nil || o.Id == nil { + 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 *SubscriptionCommonFields) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SubscriptionCommonFields) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *SubscriptionCommonFields) SetKind(v string) { + o.Kind = &v +} + +// GetBillingExpirationDate returns the BillingExpirationDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetBillingExpirationDate() time.Time { + if o == nil || o.BillingExpirationDate == nil { + var ret time.Time + return ret + } + return *o.BillingExpirationDate +} + +// GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetBillingExpirationDateOk() (*time.Time, bool) { + if o == nil || o.BillingExpirationDate == nil { + return nil, false + } + return o.BillingExpirationDate, true +} + +// HasBillingExpirationDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasBillingExpirationDate() bool { + if o != nil && o.BillingExpirationDate != nil { + return true + } + + return false +} + +// SetBillingExpirationDate gets a reference to the given time.Time and assigns it to the BillingExpirationDate field. +func (o *SubscriptionCommonFields) SetBillingExpirationDate(v time.Time) { + o.BillingExpirationDate = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *SubscriptionCommonFields) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *SubscriptionCommonFields) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *SubscriptionCommonFields) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetClusterBillingModel() string { + if o == nil || o.ClusterBillingModel == nil { + var ret string + return ret + } + return *o.ClusterBillingModel +} + +// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetClusterBillingModelOk() (*string, bool) { + if o == nil || o.ClusterBillingModel == nil { + return nil, false + } + return o.ClusterBillingModel, true +} + +// HasClusterBillingModel returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasClusterBillingModel() bool { + if o != nil && o.ClusterBillingModel != nil { + return true + } + + return false +} + +// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field. +func (o *SubscriptionCommonFields) SetClusterBillingModel(v string) { + o.ClusterBillingModel = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SubscriptionCommonFields) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *SubscriptionCommonFields) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetConsumerUuid() string { + if o == nil || o.ConsumerUuid == nil { + var ret string + return ret + } + return *o.ConsumerUuid +} + +// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetConsumerUuidOk() (*string, bool) { + if o == nil || o.ConsumerUuid == nil { + return nil, false + } + return o.ConsumerUuid, true +} + +// HasConsumerUuid returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasConsumerUuid() bool { + if o != nil && o.ConsumerUuid != nil { + return true + } + + return false +} + +// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field. +func (o *SubscriptionCommonFields) SetConsumerUuid(v string) { + o.ConsumerUuid = &v +} + +// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetCpuTotal() int32 { + if o == nil || o.CpuTotal == nil { + var ret int32 + return ret + } + return *o.CpuTotal +} + +// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetCpuTotalOk() (*int32, bool) { + if o == nil || o.CpuTotal == nil { + return nil, false + } + return o.CpuTotal, true +} + +// HasCpuTotal returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasCpuTotal() bool { + if o != nil && o.CpuTotal != nil { + return true + } + + return false +} + +// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field. +func (o *SubscriptionCommonFields) SetCpuTotal(v int32) { + o.CpuTotal = &v +} + +// GetCreatorId returns the CreatorId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetCreatorId() string { + if o == nil || o.CreatorId == nil { + var ret string + return ret + } + return *o.CreatorId +} + +// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetCreatorIdOk() (*string, bool) { + if o == nil || o.CreatorId == nil { + return nil, false + } + return o.CreatorId, true +} + +// HasCreatorId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasCreatorId() bool { + if o != nil && o.CreatorId != nil { + return true + } + + return false +} + +// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field. +func (o *SubscriptionCommonFields) SetCreatorId(v string) { + o.CreatorId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SubscriptionCommonFields) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *SubscriptionCommonFields) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetLastReconcileDate returns the LastReconcileDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetLastReconcileDate() time.Time { + if o == nil || o.LastReconcileDate == nil { + var ret time.Time + return ret + } + return *o.LastReconcileDate +} + +// GetLastReconcileDateOk returns a tuple with the LastReconcileDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetLastReconcileDateOk() (*time.Time, bool) { + if o == nil || o.LastReconcileDate == nil { + return nil, false + } + return o.LastReconcileDate, true +} + +// HasLastReconcileDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasLastReconcileDate() bool { + if o != nil && o.LastReconcileDate != nil { + return true + } + + return false +} + +// SetLastReconcileDate gets a reference to the given time.Time and assigns it to the LastReconcileDate field. +func (o *SubscriptionCommonFields) SetLastReconcileDate(v time.Time) { + o.LastReconcileDate = &v +} + +// GetLastReleasedAt returns the LastReleasedAt field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetLastReleasedAt() time.Time { + if o == nil || o.LastReleasedAt == nil { + var ret time.Time + return ret + } + return *o.LastReleasedAt +} + +// GetLastReleasedAtOk returns a tuple with the LastReleasedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetLastReleasedAtOk() (*time.Time, bool) { + if o == nil || o.LastReleasedAt == nil { + return nil, false + } + return o.LastReleasedAt, true +} + +// HasLastReleasedAt returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasLastReleasedAt() bool { + if o != nil && o.LastReleasedAt != nil { + return true + } + + return false +} + +// SetLastReleasedAt gets a reference to the given time.Time and assigns it to the LastReleasedAt field. +func (o *SubscriptionCommonFields) SetLastReleasedAt(v time.Time) { + o.LastReleasedAt = &v +} + +// GetLastTelemetryDate returns the LastTelemetryDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetLastTelemetryDate() time.Time { + if o == nil || o.LastTelemetryDate == nil { + var ret time.Time + return ret + } + return *o.LastTelemetryDate +} + +// GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetLastTelemetryDateOk() (*time.Time, bool) { + if o == nil || o.LastTelemetryDate == nil { + return nil, false + } + return o.LastTelemetryDate, true +} + +// HasLastTelemetryDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasLastTelemetryDate() bool { + if o != nil && o.LastTelemetryDate != nil { + return true + } + + return false +} + +// SetLastTelemetryDate gets a reference to the given time.Time and assigns it to the LastTelemetryDate field. +func (o *SubscriptionCommonFields) SetLastTelemetryDate(v time.Time) { + o.LastTelemetryDate = &v +} + +// GetManaged returns the Managed field value +func (o *SubscriptionCommonFields) GetManaged() bool { + if o == nil { + var ret bool + return ret + } + + return o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetManagedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Managed, true +} + +// SetManaged sets field value +func (o *SubscriptionCommonFields) SetManaged(v bool) { + o.Managed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *SubscriptionCommonFields) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *SubscriptionCommonFields) SetPlanId(v string) { + o.PlanId = &v +} + +// GetProductBundle returns the ProductBundle field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetProductBundle() string { + if o == nil || o.ProductBundle == nil { + var ret string + return ret + } + return *o.ProductBundle +} + +// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetProductBundleOk() (*string, bool) { + if o == nil || o.ProductBundle == nil { + return nil, false + } + return o.ProductBundle, true +} + +// HasProductBundle returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasProductBundle() bool { + if o != nil && o.ProductBundle != nil { + return true + } + + return false +} + +// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field. +func (o *SubscriptionCommonFields) SetProductBundle(v string) { + o.ProductBundle = &v +} + +// GetProvenance returns the Provenance field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetProvenance() string { + if o == nil || o.Provenance == nil { + var ret string + return ret + } + return *o.Provenance +} + +// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetProvenanceOk() (*string, bool) { + if o == nil || o.Provenance == nil { + return nil, false + } + return o.Provenance, true +} + +// HasProvenance returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasProvenance() bool { + if o != nil && o.Provenance != nil { + return true + } + + return false +} + +// SetProvenance gets a reference to the given string and assigns it to the Provenance field. +func (o *SubscriptionCommonFields) SetProvenance(v string) { + o.Provenance = &v +} + +// GetRegionId returns the RegionId field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetRegionId() string { + if o == nil || o.RegionId == nil { + var ret string + return ret + } + return *o.RegionId +} + +// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetRegionIdOk() (*string, bool) { + if o == nil || o.RegionId == nil { + return nil, false + } + return o.RegionId, true +} + +// HasRegionId returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasRegionId() bool { + if o != nil && o.RegionId != nil { + return true + } + + return false +} + +// SetRegionId gets a reference to the given string and assigns it to the RegionId field. +func (o *SubscriptionCommonFields) SetRegionId(v string) { + o.RegionId = &v +} + +// GetReleased returns the Released field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetReleased() bool { + if o == nil || o.Released == nil { + var ret bool + return ret + } + return *o.Released +} + +// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetReleasedOk() (*bool, bool) { + if o == nil || o.Released == nil { + return nil, false + } + return o.Released, true +} + +// HasReleased returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasReleased() bool { + if o != nil && o.Released != nil { + return true + } + + return false +} + +// SetReleased gets a reference to the given bool and assigns it to the Released field. +func (o *SubscriptionCommonFields) SetReleased(v bool) { + o.Released = &v +} + +// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetServiceLevel() string { + if o == nil || o.ServiceLevel == nil { + var ret string + return ret + } + return *o.ServiceLevel +} + +// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetServiceLevelOk() (*string, bool) { + if o == nil || o.ServiceLevel == nil { + return nil, false + } + return o.ServiceLevel, true +} + +// HasServiceLevel returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasServiceLevel() bool { + if o != nil && o.ServiceLevel != nil { + return true + } + + return false +} + +// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +func (o *SubscriptionCommonFields) SetServiceLevel(v string) { + o.ServiceLevel = &v +} + +// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetSocketTotal() int32 { + if o == nil || o.SocketTotal == nil { + var ret int32 + return ret + } + return *o.SocketTotal +} + +// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetSocketTotalOk() (*int32, bool) { + if o == nil || o.SocketTotal == nil { + return nil, false + } + return o.SocketTotal, true +} + +// HasSocketTotal returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasSocketTotal() bool { + if o != nil && o.SocketTotal != nil { + return true + } + + return false +} + +// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field. +func (o *SubscriptionCommonFields) SetSocketTotal(v int32) { + o.SocketTotal = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SubscriptionCommonFields) SetStatus(v string) { + o.Status = &v +} + +// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetSupportLevel() string { + if o == nil || o.SupportLevel == nil { + var ret string + return ret + } + return *o.SupportLevel +} + +// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetSupportLevelOk() (*string, bool) { + if o == nil || o.SupportLevel == nil { + return nil, false + } + return o.SupportLevel, true +} + +// HasSupportLevel returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasSupportLevel() bool { + if o != nil && o.SupportLevel != nil { + return true + } + + return false +} + +// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field. +func (o *SubscriptionCommonFields) SetSupportLevel(v string) { + o.SupportLevel = &v +} + +// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetSystemUnits() string { + if o == nil || o.SystemUnits == nil { + var ret string + return ret + } + return *o.SystemUnits +} + +// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetSystemUnitsOk() (*string, bool) { + if o == nil || o.SystemUnits == nil { + return nil, false + } + return o.SystemUnits, true +} + +// HasSystemUnits returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasSystemUnits() bool { + if o != nil && o.SystemUnits != nil { + return true + } + + return false +} + +// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field. +func (o *SubscriptionCommonFields) SetSystemUnits(v string) { + o.SystemUnits = &v +} + +// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetTrialEndDate() time.Time { + if o == nil || o.TrialEndDate == nil { + var ret time.Time + return ret + } + return *o.TrialEndDate +} + +// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetTrialEndDateOk() (*time.Time, bool) { + if o == nil || o.TrialEndDate == nil { + return nil, false + } + return o.TrialEndDate, true +} + +// HasTrialEndDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasTrialEndDate() bool { + if o != nil && o.TrialEndDate != nil { + return true + } + + return false +} + +// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field. +func (o *SubscriptionCommonFields) SetTrialEndDate(v time.Time) { + o.TrialEndDate = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *SubscriptionCommonFields) GetUsage() string { + if o == nil || o.Usage == nil { + var ret string + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFields) GetUsageOk() (*string, bool) { + if o == nil || o.Usage == nil { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *SubscriptionCommonFields) HasUsage() bool { + if o != nil && o.Usage != nil { + return true + } + + return false +} + +// SetUsage gets a reference to the given string and assigns it to the Usage field. +func (o *SubscriptionCommonFields) SetUsage(v string) { + o.Usage = &v +} + +func (o SubscriptionCommonFields) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.BillingExpirationDate != nil { + toSerialize["billing_expiration_date"] = o.BillingExpirationDate + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if o.ClusterBillingModel != nil { + toSerialize["cluster_billing_model"] = o.ClusterBillingModel + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.ConsumerUuid != nil { + toSerialize["consumer_uuid"] = o.ConsumerUuid + } + if o.CpuTotal != nil { + toSerialize["cpu_total"] = o.CpuTotal + } + if o.CreatorId != nil { + toSerialize["creator_id"] = o.CreatorId + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.LastReconcileDate != nil { + toSerialize["last_reconcile_date"] = o.LastReconcileDate + } + if o.LastReleasedAt != nil { + toSerialize["last_released_at"] = o.LastReleasedAt + } + if o.LastTelemetryDate != nil { + toSerialize["last_telemetry_date"] = o.LastTelemetryDate + } + if true { + toSerialize["managed"] = o.Managed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ProductBundle != nil { + toSerialize["product_bundle"] = o.ProductBundle + } + if o.Provenance != nil { + toSerialize["provenance"] = o.Provenance + } + if o.RegionId != nil { + toSerialize["region_id"] = o.RegionId + } + if o.Released != nil { + toSerialize["released"] = o.Released + } + if o.ServiceLevel != nil { + toSerialize["service_level"] = o.ServiceLevel + } + if o.SocketTotal != nil { + toSerialize["socket_total"] = o.SocketTotal + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SupportLevel != nil { + toSerialize["support_level"] = o.SupportLevel + } + if o.SystemUnits != nil { + toSerialize["system_units"] = o.SystemUnits + } + if o.TrialEndDate != nil { + toSerialize["trial_end_date"] = o.TrialEndDate + } + if o.Usage != nil { + toSerialize["usage"] = o.Usage + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionCommonFields struct { + value *SubscriptionCommonFields + isSet bool +} + +func (v NullableSubscriptionCommonFields) Get() *SubscriptionCommonFields { + return v.value +} + +func (v *NullableSubscriptionCommonFields) Set(val *SubscriptionCommonFields) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionCommonFields) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionCommonFields) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionCommonFields(val *SubscriptionCommonFields) *NullableSubscriptionCommonFields { + return &NullableSubscriptionCommonFields{value: val, isSet: true} +} + +func (v NullableSubscriptionCommonFields) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionCommonFields) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields_all_of.go new file mode 100644 index 00000000..f1f8e374 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_common_fields_all_of.go @@ -0,0 +1,1122 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionCommonFieldsAllOf struct for SubscriptionCommonFieldsAllOf +type SubscriptionCommonFieldsAllOf struct { + // If set, the date the subscription expires based on the billing model + BillingExpirationDate *time.Time `json:"billing_expiration_date,omitempty"` + BillingMarketplaceAccount *string `json:"billing_marketplace_account,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterBillingModel *string `json:"cluster_billing_model,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ConsoleUrl *string `json:"console_url,omitempty"` + ConsumerUuid *string `json:"consumer_uuid,omitempty"` + CpuTotal *int32 `json:"cpu_total,omitempty"` + CreatorId *string `json:"creator_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + // Last time this subscription were reconciled about cluster usage + LastReconcileDate *time.Time `json:"last_reconcile_date,omitempty"` + // Last time status was set to Released for this cluster/subscription in Unix time + LastReleasedAt *time.Time `json:"last_released_at,omitempty"` + // Last telemetry authorization request for this cluster/subscription in Unix time + LastTelemetryDate *time.Time `json:"last_telemetry_date,omitempty"` + Managed bool `json:"managed"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ProductBundle *string `json:"product_bundle,omitempty"` + Provenance *string `json:"provenance,omitempty"` + RegionId *string `json:"region_id,omitempty"` + Released *bool `json:"released,omitempty"` + ServiceLevel *string `json:"service_level,omitempty"` + SocketTotal *int32 `json:"socket_total,omitempty"` + Status *string `json:"status,omitempty"` + SupportLevel *string `json:"support_level,omitempty"` + SystemUnits *string `json:"system_units,omitempty"` + // If the subscription is a trial, date the trial ends + TrialEndDate *time.Time `json:"trial_end_date,omitempty"` + Usage *string `json:"usage,omitempty"` +} + +// NewSubscriptionCommonFieldsAllOf instantiates a new SubscriptionCommonFieldsAllOf 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 NewSubscriptionCommonFieldsAllOf(managed bool) *SubscriptionCommonFieldsAllOf { + this := SubscriptionCommonFieldsAllOf{} + this.Managed = managed + return &this +} + +// NewSubscriptionCommonFieldsAllOfWithDefaults instantiates a new SubscriptionCommonFieldsAllOf 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 NewSubscriptionCommonFieldsAllOfWithDefaults() *SubscriptionCommonFieldsAllOf { + this := SubscriptionCommonFieldsAllOf{} + return &this +} + +// GetBillingExpirationDate returns the BillingExpirationDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetBillingExpirationDate() time.Time { + if o == nil || o.BillingExpirationDate == nil { + var ret time.Time + return ret + } + return *o.BillingExpirationDate +} + +// GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetBillingExpirationDateOk() (*time.Time, bool) { + if o == nil || o.BillingExpirationDate == nil { + return nil, false + } + return o.BillingExpirationDate, true +} + +// HasBillingExpirationDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasBillingExpirationDate() bool { + if o != nil && o.BillingExpirationDate != nil { + return true + } + + return false +} + +// SetBillingExpirationDate gets a reference to the given time.Time and assigns it to the BillingExpirationDate field. +func (o *SubscriptionCommonFieldsAllOf) SetBillingExpirationDate(v time.Time) { + o.BillingExpirationDate = &v +} + +// GetBillingMarketplaceAccount returns the BillingMarketplaceAccount field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetBillingMarketplaceAccount() string { + if o == nil || o.BillingMarketplaceAccount == nil { + var ret string + return ret + } + return *o.BillingMarketplaceAccount +} + +// GetBillingMarketplaceAccountOk returns a tuple with the BillingMarketplaceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetBillingMarketplaceAccountOk() (*string, bool) { + if o == nil || o.BillingMarketplaceAccount == nil { + return nil, false + } + return o.BillingMarketplaceAccount, true +} + +// HasBillingMarketplaceAccount returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasBillingMarketplaceAccount() bool { + if o != nil && o.BillingMarketplaceAccount != nil { + return true + } + + return false +} + +// SetBillingMarketplaceAccount gets a reference to the given string and assigns it to the BillingMarketplaceAccount field. +func (o *SubscriptionCommonFieldsAllOf) SetBillingMarketplaceAccount(v string) { + o.BillingMarketplaceAccount = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *SubscriptionCommonFieldsAllOf) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *SubscriptionCommonFieldsAllOf) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetClusterBillingModel() string { + if o == nil || o.ClusterBillingModel == nil { + var ret string + return ret + } + return *o.ClusterBillingModel +} + +// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetClusterBillingModelOk() (*string, bool) { + if o == nil || o.ClusterBillingModel == nil { + return nil, false + } + return o.ClusterBillingModel, true +} + +// HasClusterBillingModel returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasClusterBillingModel() bool { + if o != nil && o.ClusterBillingModel != nil { + return true + } + + return false +} + +// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field. +func (o *SubscriptionCommonFieldsAllOf) SetClusterBillingModel(v string) { + o.ClusterBillingModel = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SubscriptionCommonFieldsAllOf) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *SubscriptionCommonFieldsAllOf) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetConsumerUuid() string { + if o == nil || o.ConsumerUuid == nil { + var ret string + return ret + } + return *o.ConsumerUuid +} + +// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetConsumerUuidOk() (*string, bool) { + if o == nil || o.ConsumerUuid == nil { + return nil, false + } + return o.ConsumerUuid, true +} + +// HasConsumerUuid returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasConsumerUuid() bool { + if o != nil && o.ConsumerUuid != nil { + return true + } + + return false +} + +// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field. +func (o *SubscriptionCommonFieldsAllOf) SetConsumerUuid(v string) { + o.ConsumerUuid = &v +} + +// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetCpuTotal() int32 { + if o == nil || o.CpuTotal == nil { + var ret int32 + return ret + } + return *o.CpuTotal +} + +// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetCpuTotalOk() (*int32, bool) { + if o == nil || o.CpuTotal == nil { + return nil, false + } + return o.CpuTotal, true +} + +// HasCpuTotal returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasCpuTotal() bool { + if o != nil && o.CpuTotal != nil { + return true + } + + return false +} + +// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field. +func (o *SubscriptionCommonFieldsAllOf) SetCpuTotal(v int32) { + o.CpuTotal = &v +} + +// GetCreatorId returns the CreatorId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetCreatorId() string { + if o == nil || o.CreatorId == nil { + var ret string + return ret + } + return *o.CreatorId +} + +// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetCreatorIdOk() (*string, bool) { + if o == nil || o.CreatorId == nil { + return nil, false + } + return o.CreatorId, true +} + +// HasCreatorId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasCreatorId() bool { + if o != nil && o.CreatorId != nil { + return true + } + + return false +} + +// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field. +func (o *SubscriptionCommonFieldsAllOf) SetCreatorId(v string) { + o.CreatorId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SubscriptionCommonFieldsAllOf) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *SubscriptionCommonFieldsAllOf) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetLastReconcileDate returns the LastReconcileDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetLastReconcileDate() time.Time { + if o == nil || o.LastReconcileDate == nil { + var ret time.Time + return ret + } + return *o.LastReconcileDate +} + +// GetLastReconcileDateOk returns a tuple with the LastReconcileDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetLastReconcileDateOk() (*time.Time, bool) { + if o == nil || o.LastReconcileDate == nil { + return nil, false + } + return o.LastReconcileDate, true +} + +// HasLastReconcileDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasLastReconcileDate() bool { + if o != nil && o.LastReconcileDate != nil { + return true + } + + return false +} + +// SetLastReconcileDate gets a reference to the given time.Time and assigns it to the LastReconcileDate field. +func (o *SubscriptionCommonFieldsAllOf) SetLastReconcileDate(v time.Time) { + o.LastReconcileDate = &v +} + +// GetLastReleasedAt returns the LastReleasedAt field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetLastReleasedAt() time.Time { + if o == nil || o.LastReleasedAt == nil { + var ret time.Time + return ret + } + return *o.LastReleasedAt +} + +// GetLastReleasedAtOk returns a tuple with the LastReleasedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetLastReleasedAtOk() (*time.Time, bool) { + if o == nil || o.LastReleasedAt == nil { + return nil, false + } + return o.LastReleasedAt, true +} + +// HasLastReleasedAt returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasLastReleasedAt() bool { + if o != nil && o.LastReleasedAt != nil { + return true + } + + return false +} + +// SetLastReleasedAt gets a reference to the given time.Time and assigns it to the LastReleasedAt field. +func (o *SubscriptionCommonFieldsAllOf) SetLastReleasedAt(v time.Time) { + o.LastReleasedAt = &v +} + +// GetLastTelemetryDate returns the LastTelemetryDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetLastTelemetryDate() time.Time { + if o == nil || o.LastTelemetryDate == nil { + var ret time.Time + return ret + } + return *o.LastTelemetryDate +} + +// GetLastTelemetryDateOk returns a tuple with the LastTelemetryDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetLastTelemetryDateOk() (*time.Time, bool) { + if o == nil || o.LastTelemetryDate == nil { + return nil, false + } + return o.LastTelemetryDate, true +} + +// HasLastTelemetryDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasLastTelemetryDate() bool { + if o != nil && o.LastTelemetryDate != nil { + return true + } + + return false +} + +// SetLastTelemetryDate gets a reference to the given time.Time and assigns it to the LastTelemetryDate field. +func (o *SubscriptionCommonFieldsAllOf) SetLastTelemetryDate(v time.Time) { + o.LastTelemetryDate = &v +} + +// GetManaged returns the Managed field value +func (o *SubscriptionCommonFieldsAllOf) GetManaged() bool { + if o == nil { + var ret bool + return ret + } + + return o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetManagedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Managed, true +} + +// SetManaged sets field value +func (o *SubscriptionCommonFieldsAllOf) SetManaged(v bool) { + o.Managed = v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *SubscriptionCommonFieldsAllOf) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *SubscriptionCommonFieldsAllOf) SetPlanId(v string) { + o.PlanId = &v +} + +// GetProductBundle returns the ProductBundle field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetProductBundle() string { + if o == nil || o.ProductBundle == nil { + var ret string + return ret + } + return *o.ProductBundle +} + +// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetProductBundleOk() (*string, bool) { + if o == nil || o.ProductBundle == nil { + return nil, false + } + return o.ProductBundle, true +} + +// HasProductBundle returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasProductBundle() bool { + if o != nil && o.ProductBundle != nil { + return true + } + + return false +} + +// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field. +func (o *SubscriptionCommonFieldsAllOf) SetProductBundle(v string) { + o.ProductBundle = &v +} + +// GetProvenance returns the Provenance field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetProvenance() string { + if o == nil || o.Provenance == nil { + var ret string + return ret + } + return *o.Provenance +} + +// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetProvenanceOk() (*string, bool) { + if o == nil || o.Provenance == nil { + return nil, false + } + return o.Provenance, true +} + +// HasProvenance returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasProvenance() bool { + if o != nil && o.Provenance != nil { + return true + } + + return false +} + +// SetProvenance gets a reference to the given string and assigns it to the Provenance field. +func (o *SubscriptionCommonFieldsAllOf) SetProvenance(v string) { + o.Provenance = &v +} + +// GetRegionId returns the RegionId field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetRegionId() string { + if o == nil || o.RegionId == nil { + var ret string + return ret + } + return *o.RegionId +} + +// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetRegionIdOk() (*string, bool) { + if o == nil || o.RegionId == nil { + return nil, false + } + return o.RegionId, true +} + +// HasRegionId returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasRegionId() bool { + if o != nil && o.RegionId != nil { + return true + } + + return false +} + +// SetRegionId gets a reference to the given string and assigns it to the RegionId field. +func (o *SubscriptionCommonFieldsAllOf) SetRegionId(v string) { + o.RegionId = &v +} + +// GetReleased returns the Released field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetReleased() bool { + if o == nil || o.Released == nil { + var ret bool + return ret + } + return *o.Released +} + +// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetReleasedOk() (*bool, bool) { + if o == nil || o.Released == nil { + return nil, false + } + return o.Released, true +} + +// HasReleased returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasReleased() bool { + if o != nil && o.Released != nil { + return true + } + + return false +} + +// SetReleased gets a reference to the given bool and assigns it to the Released field. +func (o *SubscriptionCommonFieldsAllOf) SetReleased(v bool) { + o.Released = &v +} + +// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetServiceLevel() string { + if o == nil || o.ServiceLevel == nil { + var ret string + return ret + } + return *o.ServiceLevel +} + +// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetServiceLevelOk() (*string, bool) { + if o == nil || o.ServiceLevel == nil { + return nil, false + } + return o.ServiceLevel, true +} + +// HasServiceLevel returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasServiceLevel() bool { + if o != nil && o.ServiceLevel != nil { + return true + } + + return false +} + +// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +func (o *SubscriptionCommonFieldsAllOf) SetServiceLevel(v string) { + o.ServiceLevel = &v +} + +// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetSocketTotal() int32 { + if o == nil || o.SocketTotal == nil { + var ret int32 + return ret + } + return *o.SocketTotal +} + +// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetSocketTotalOk() (*int32, bool) { + if o == nil || o.SocketTotal == nil { + return nil, false + } + return o.SocketTotal, true +} + +// HasSocketTotal returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasSocketTotal() bool { + if o != nil && o.SocketTotal != nil { + return true + } + + return false +} + +// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field. +func (o *SubscriptionCommonFieldsAllOf) SetSocketTotal(v int32) { + o.SocketTotal = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SubscriptionCommonFieldsAllOf) SetStatus(v string) { + o.Status = &v +} + +// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetSupportLevel() string { + if o == nil || o.SupportLevel == nil { + var ret string + return ret + } + return *o.SupportLevel +} + +// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetSupportLevelOk() (*string, bool) { + if o == nil || o.SupportLevel == nil { + return nil, false + } + return o.SupportLevel, true +} + +// HasSupportLevel returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasSupportLevel() bool { + if o != nil && o.SupportLevel != nil { + return true + } + + return false +} + +// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field. +func (o *SubscriptionCommonFieldsAllOf) SetSupportLevel(v string) { + o.SupportLevel = &v +} + +// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetSystemUnits() string { + if o == nil || o.SystemUnits == nil { + var ret string + return ret + } + return *o.SystemUnits +} + +// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetSystemUnitsOk() (*string, bool) { + if o == nil || o.SystemUnits == nil { + return nil, false + } + return o.SystemUnits, true +} + +// HasSystemUnits returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasSystemUnits() bool { + if o != nil && o.SystemUnits != nil { + return true + } + + return false +} + +// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field. +func (o *SubscriptionCommonFieldsAllOf) SetSystemUnits(v string) { + o.SystemUnits = &v +} + +// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetTrialEndDate() time.Time { + if o == nil || o.TrialEndDate == nil { + var ret time.Time + return ret + } + return *o.TrialEndDate +} + +// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetTrialEndDateOk() (*time.Time, bool) { + if o == nil || o.TrialEndDate == nil { + return nil, false + } + return o.TrialEndDate, true +} + +// HasTrialEndDate returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasTrialEndDate() bool { + if o != nil && o.TrialEndDate != nil { + return true + } + + return false +} + +// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field. +func (o *SubscriptionCommonFieldsAllOf) SetTrialEndDate(v time.Time) { + o.TrialEndDate = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *SubscriptionCommonFieldsAllOf) GetUsage() string { + if o == nil || o.Usage == nil { + var ret string + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCommonFieldsAllOf) GetUsageOk() (*string, bool) { + if o == nil || o.Usage == nil { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *SubscriptionCommonFieldsAllOf) HasUsage() bool { + if o != nil && o.Usage != nil { + return true + } + + return false +} + +// SetUsage gets a reference to the given string and assigns it to the Usage field. +func (o *SubscriptionCommonFieldsAllOf) SetUsage(v string) { + o.Usage = &v +} + +func (o SubscriptionCommonFieldsAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BillingExpirationDate != nil { + toSerialize["billing_expiration_date"] = o.BillingExpirationDate + } + if o.BillingMarketplaceAccount != nil { + toSerialize["billing_marketplace_account"] = o.BillingMarketplaceAccount + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if o.ClusterBillingModel != nil { + toSerialize["cluster_billing_model"] = o.ClusterBillingModel + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.ConsumerUuid != nil { + toSerialize["consumer_uuid"] = o.ConsumerUuid + } + if o.CpuTotal != nil { + toSerialize["cpu_total"] = o.CpuTotal + } + if o.CreatorId != nil { + toSerialize["creator_id"] = o.CreatorId + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.LastReconcileDate != nil { + toSerialize["last_reconcile_date"] = o.LastReconcileDate + } + if o.LastReleasedAt != nil { + toSerialize["last_released_at"] = o.LastReleasedAt + } + if o.LastTelemetryDate != nil { + toSerialize["last_telemetry_date"] = o.LastTelemetryDate + } + if true { + toSerialize["managed"] = o.Managed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ProductBundle != nil { + toSerialize["product_bundle"] = o.ProductBundle + } + if o.Provenance != nil { + toSerialize["provenance"] = o.Provenance + } + if o.RegionId != nil { + toSerialize["region_id"] = o.RegionId + } + if o.Released != nil { + toSerialize["released"] = o.Released + } + if o.ServiceLevel != nil { + toSerialize["service_level"] = o.ServiceLevel + } + if o.SocketTotal != nil { + toSerialize["socket_total"] = o.SocketTotal + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SupportLevel != nil { + toSerialize["support_level"] = o.SupportLevel + } + if o.SystemUnits != nil { + toSerialize["system_units"] = o.SystemUnits + } + if o.TrialEndDate != nil { + toSerialize["trial_end_date"] = o.TrialEndDate + } + if o.Usage != nil { + toSerialize["usage"] = o.Usage + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionCommonFieldsAllOf struct { + value *SubscriptionCommonFieldsAllOf + isSet bool +} + +func (v NullableSubscriptionCommonFieldsAllOf) Get() *SubscriptionCommonFieldsAllOf { + return v.value +} + +func (v *NullableSubscriptionCommonFieldsAllOf) Set(val *SubscriptionCommonFieldsAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionCommonFieldsAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionCommonFieldsAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionCommonFieldsAllOf(val *SubscriptionCommonFieldsAllOf) *NullableSubscriptionCommonFieldsAllOf { + return &NullableSubscriptionCommonFieldsAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionCommonFieldsAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionCommonFieldsAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_create_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_create_request.go new file mode 100644 index 00000000..c338ee0e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_create_request.go @@ -0,0 +1,238 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionCreateRequest struct for SubscriptionCreateRequest +type SubscriptionCreateRequest struct { + ClusterUuid string `json:"cluster_uuid"` + ConsoleUrl *string `json:"console_url,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + PlanId string `json:"plan_id"` + Status string `json:"status"` +} + +// NewSubscriptionCreateRequest instantiates a new SubscriptionCreateRequest 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 NewSubscriptionCreateRequest(clusterUuid string, planId string, status string) *SubscriptionCreateRequest { + this := SubscriptionCreateRequest{} + this.ClusterUuid = clusterUuid + this.PlanId = planId + this.Status = status + return &this +} + +// NewSubscriptionCreateRequestWithDefaults instantiates a new SubscriptionCreateRequest 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 NewSubscriptionCreateRequestWithDefaults() *SubscriptionCreateRequest { + this := SubscriptionCreateRequest{} + return &this +} + +// GetClusterUuid returns the ClusterUuid field value +func (o *SubscriptionCreateRequest) GetClusterUuid() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value +// and a boolean to check if the value has been set. +func (o *SubscriptionCreateRequest) GetClusterUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterUuid, true +} + +// SetClusterUuid sets field value +func (o *SubscriptionCreateRequest) SetClusterUuid(v string) { + o.ClusterUuid = v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *SubscriptionCreateRequest) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCreateRequest) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *SubscriptionCreateRequest) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *SubscriptionCreateRequest) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SubscriptionCreateRequest) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SubscriptionCreateRequest) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SubscriptionCreateRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetPlanId returns the PlanId field value +func (o *SubscriptionCreateRequest) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *SubscriptionCreateRequest) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *SubscriptionCreateRequest) SetPlanId(v string) { + o.PlanId = v +} + +// GetStatus returns the Status field value +func (o *SubscriptionCreateRequest) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SubscriptionCreateRequest) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SubscriptionCreateRequest) SetStatus(v string) { + o.Status = v +} + +func (o SubscriptionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if true { + toSerialize["plan_id"] = o.PlanId + } + if true { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionCreateRequest struct { + value *SubscriptionCreateRequest + isSet bool +} + +func (v NullableSubscriptionCreateRequest) Get() *SubscriptionCreateRequest { + return v.value +} + +func (v *NullableSubscriptionCreateRequest) Set(val *SubscriptionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionCreateRequest(val *SubscriptionCreateRequest) *NullableSubscriptionCreateRequest { + return &NullableSubscriptionCreateRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list.go new file mode 100644 index 00000000..0957a6a6 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionList struct for SubscriptionList +type SubscriptionList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Subscription `json:"items"` +} + +// NewSubscriptionList instantiates a new SubscriptionList 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 NewSubscriptionList(kind string, page int32, size int32, total int32, items []Subscription) *SubscriptionList { + this := SubscriptionList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewSubscriptionListWithDefaults instantiates a new SubscriptionList 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 NewSubscriptionListWithDefaults() *SubscriptionList { + this := SubscriptionList{} + return &this +} + +// GetKind returns the Kind field value +func (o *SubscriptionList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SubscriptionList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SubscriptionList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *SubscriptionList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *SubscriptionList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *SubscriptionList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *SubscriptionList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SubscriptionList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SubscriptionList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *SubscriptionList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *SubscriptionList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *SubscriptionList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *SubscriptionList) GetItems() []Subscription { + if o == nil { + var ret []Subscription + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *SubscriptionList) GetItemsOk() (*[]Subscription, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *SubscriptionList) SetItems(v []Subscription) { + o.Items = v +} + +func (o SubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionList struct { + value *SubscriptionList + isSet bool +} + +func (v NullableSubscriptionList) Get() *SubscriptionList { + return v.value +} + +func (v *NullableSubscriptionList) Set(val *SubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionList(val *SubscriptionList) *NullableSubscriptionList { + return &NullableSubscriptionList{value: val, isSet: true} +} + +func (v NullableSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list_all_of.go new file mode 100644 index 00000000..33976a2e --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionListAllOf struct for SubscriptionListAllOf +type SubscriptionListAllOf struct { + Items *[]Subscription `json:"items,omitempty"` +} + +// NewSubscriptionListAllOf instantiates a new SubscriptionListAllOf 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 NewSubscriptionListAllOf() *SubscriptionListAllOf { + this := SubscriptionListAllOf{} + return &this +} + +// NewSubscriptionListAllOfWithDefaults instantiates a new SubscriptionListAllOf 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 NewSubscriptionListAllOfWithDefaults() *SubscriptionListAllOf { + this := SubscriptionListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SubscriptionListAllOf) GetItems() []Subscription { + if o == nil || o.Items == nil { + var ret []Subscription + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionListAllOf) GetItemsOk() (*[]Subscription, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SubscriptionListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Subscription and assigns it to the Items field. +func (o *SubscriptionListAllOf) SetItems(v []Subscription) { + o.Items = &v +} + +func (o SubscriptionListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionListAllOf struct { + value *SubscriptionListAllOf + isSet bool +} + +func (v NullableSubscriptionListAllOf) Get() *SubscriptionListAllOf { + return v.value +} + +func (v *NullableSubscriptionListAllOf) Set(val *SubscriptionListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionListAllOf(val *SubscriptionListAllOf) *NullableSubscriptionListAllOf { + return &NullableSubscriptionListAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric.go new file mode 100644 index 00000000..8edf26bd --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionMetric struct for SubscriptionMetric +type SubscriptionMetric struct { + Id *string `json:"_id,omitempty"` +} + +// NewSubscriptionMetric instantiates a new SubscriptionMetric 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 NewSubscriptionMetric() *SubscriptionMetric { + this := SubscriptionMetric{} + return &this +} + +// NewSubscriptionMetricWithDefaults instantiates a new SubscriptionMetric 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 NewSubscriptionMetricWithDefaults() *SubscriptionMetric { + this := SubscriptionMetric{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SubscriptionMetric) GetId() string { + if o == nil || o.Id == nil { + 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 *SubscriptionMetric) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SubscriptionMetric) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SubscriptionMetric) SetId(v string) { + o.Id = &v +} + +func (o SubscriptionMetric) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["_id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionMetric struct { + value *SubscriptionMetric + isSet bool +} + +func (v NullableSubscriptionMetric) Get() *SubscriptionMetric { + return v.value +} + +func (v *NullableSubscriptionMetric) Set(val *SubscriptionMetric) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionMetric) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionMetric) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionMetric(val *SubscriptionMetric) *NullableSubscriptionMetric { + return &NullableSubscriptionMetric{value: val, isSet: true} +} + +func (v NullableSubscriptionMetric) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionMetric) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_all_of.go new file mode 100644 index 00000000..ab74e36f --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionMetricAllOf struct for SubscriptionMetricAllOf +type SubscriptionMetricAllOf struct { + Id *string `json:"_id,omitempty"` +} + +// NewSubscriptionMetricAllOf instantiates a new SubscriptionMetricAllOf 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 NewSubscriptionMetricAllOf() *SubscriptionMetricAllOf { + this := SubscriptionMetricAllOf{} + return &this +} + +// NewSubscriptionMetricAllOfWithDefaults instantiates a new SubscriptionMetricAllOf 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 NewSubscriptionMetricAllOfWithDefaults() *SubscriptionMetricAllOf { + this := SubscriptionMetricAllOf{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SubscriptionMetricAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *SubscriptionMetricAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SubscriptionMetricAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SubscriptionMetricAllOf) SetId(v string) { + o.Id = &v +} + +func (o SubscriptionMetricAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["_id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionMetricAllOf struct { + value *SubscriptionMetricAllOf + isSet bool +} + +func (v NullableSubscriptionMetricAllOf) Get() *SubscriptionMetricAllOf { + return v.value +} + +func (v *NullableSubscriptionMetricAllOf) Set(val *SubscriptionMetricAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionMetricAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionMetricAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionMetricAllOf(val *SubscriptionMetricAllOf) *NullableSubscriptionMetricAllOf { + return &NullableSubscriptionMetricAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionMetricAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionMetricAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list.go new file mode 100644 index 00000000..689a80dc --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionMetricList struct for SubscriptionMetricList +type SubscriptionMetricList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []SubscriptionMetric `json:"items"` +} + +// NewSubscriptionMetricList instantiates a new SubscriptionMetricList 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 NewSubscriptionMetricList(kind string, page int32, size int32, total int32, items []SubscriptionMetric) *SubscriptionMetricList { + this := SubscriptionMetricList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewSubscriptionMetricListWithDefaults instantiates a new SubscriptionMetricList 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 NewSubscriptionMetricListWithDefaults() *SubscriptionMetricList { + this := SubscriptionMetricList{} + return &this +} + +// GetKind returns the Kind field value +func (o *SubscriptionMetricList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SubscriptionMetricList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *SubscriptionMetricList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *SubscriptionMetricList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *SubscriptionMetricList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SubscriptionMetricList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *SubscriptionMetricList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *SubscriptionMetricList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *SubscriptionMetricList) GetItems() []SubscriptionMetric { + if o == nil { + var ret []SubscriptionMetric + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricList) GetItemsOk() (*[]SubscriptionMetric, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *SubscriptionMetricList) SetItems(v []SubscriptionMetric) { + o.Items = v +} + +func (o SubscriptionMetricList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionMetricList struct { + value *SubscriptionMetricList + isSet bool +} + +func (v NullableSubscriptionMetricList) Get() *SubscriptionMetricList { + return v.value +} + +func (v *NullableSubscriptionMetricList) Set(val *SubscriptionMetricList) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionMetricList) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionMetricList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionMetricList(val *SubscriptionMetricList) *NullableSubscriptionMetricList { + return &NullableSubscriptionMetricList{value: val, isSet: true} +} + +func (v NullableSubscriptionMetricList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionMetricList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list_all_of.go new file mode 100644 index 00000000..5d37807d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_metric_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionMetricListAllOf struct for SubscriptionMetricListAllOf +type SubscriptionMetricListAllOf struct { + Items *[]SubscriptionMetric `json:"items,omitempty"` +} + +// NewSubscriptionMetricListAllOf instantiates a new SubscriptionMetricListAllOf 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 NewSubscriptionMetricListAllOf() *SubscriptionMetricListAllOf { + this := SubscriptionMetricListAllOf{} + return &this +} + +// NewSubscriptionMetricListAllOfWithDefaults instantiates a new SubscriptionMetricListAllOf 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 NewSubscriptionMetricListAllOfWithDefaults() *SubscriptionMetricListAllOf { + this := SubscriptionMetricListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SubscriptionMetricListAllOf) GetItems() []SubscriptionMetric { + if o == nil || o.Items == nil { + var ret []SubscriptionMetric + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionMetricListAllOf) GetItemsOk() (*[]SubscriptionMetric, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SubscriptionMetricListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []SubscriptionMetric and assigns it to the Items field. +func (o *SubscriptionMetricListAllOf) SetItems(v []SubscriptionMetric) { + o.Items = &v +} + +func (o SubscriptionMetricListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionMetricListAllOf struct { + value *SubscriptionMetricListAllOf + isSet bool +} + +func (v NullableSubscriptionMetricListAllOf) Get() *SubscriptionMetricListAllOf { + return v.value +} + +func (v *NullableSubscriptionMetricListAllOf) Set(val *SubscriptionMetricListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionMetricListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionMetricListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionMetricListAllOf(val *SubscriptionMetricListAllOf) *NullableSubscriptionMetricListAllOf { + return &NullableSubscriptionMetricListAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionMetricListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionMetricListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_patch_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_patch_request.go new file mode 100644 index 00000000..41750e73 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_patch_request.go @@ -0,0 +1,980 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionPatchRequest struct for SubscriptionPatchRequest +type SubscriptionPatchRequest struct { + BillingExpirationDate *time.Time `json:"billing_expiration_date,omitempty"` + CloudAccountId *string `json:"cloud_account_id,omitempty"` + CloudProviderId *string `json:"cloud_provider_id,omitempty"` + ClusterBillingModel *string `json:"cluster_billing_model,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ConsoleUrl *string `json:"console_url,omitempty"` + ConsumerUuid *string `json:"consumer_uuid,omitempty"` + CpuTotal *int32 `json:"cpu_total,omitempty"` + CreatorId *string `json:"creator_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + ExternalClusterId *string `json:"external_cluster_id,omitempty"` + Managed *bool `json:"managed,omitempty"` + OrganizationId *string `json:"organization_id,omitempty"` + PlanId *string `json:"plan_id,omitempty"` + ProductBundle *string `json:"product_bundle,omitempty"` + Provenance *string `json:"provenance,omitempty"` + RegionId *string `json:"region_id,omitempty"` + Released *bool `json:"released,omitempty"` + ServiceLevel *string `json:"service_level,omitempty"` + SocketTotal *int32 `json:"socket_total,omitempty"` + Status *string `json:"status,omitempty"` + SupportLevel *string `json:"support_level,omitempty"` + SystemUnits *string `json:"system_units,omitempty"` + TrialEndDate *time.Time `json:"trial_end_date,omitempty"` + Usage *string `json:"usage,omitempty"` +} + +// NewSubscriptionPatchRequest instantiates a new SubscriptionPatchRequest 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 NewSubscriptionPatchRequest() *SubscriptionPatchRequest { + this := SubscriptionPatchRequest{} + return &this +} + +// NewSubscriptionPatchRequestWithDefaults instantiates a new SubscriptionPatchRequest 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 NewSubscriptionPatchRequestWithDefaults() *SubscriptionPatchRequest { + this := SubscriptionPatchRequest{} + return &this +} + +// GetBillingExpirationDate returns the BillingExpirationDate field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetBillingExpirationDate() time.Time { + if o == nil || o.BillingExpirationDate == nil { + var ret time.Time + return ret + } + return *o.BillingExpirationDate +} + +// GetBillingExpirationDateOk returns a tuple with the BillingExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetBillingExpirationDateOk() (*time.Time, bool) { + if o == nil || o.BillingExpirationDate == nil { + return nil, false + } + return o.BillingExpirationDate, true +} + +// HasBillingExpirationDate returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasBillingExpirationDate() bool { + if o != nil && o.BillingExpirationDate != nil { + return true + } + + return false +} + +// SetBillingExpirationDate gets a reference to the given time.Time and assigns it to the BillingExpirationDate field. +func (o *SubscriptionPatchRequest) SetBillingExpirationDate(v time.Time) { + o.BillingExpirationDate = &v +} + +// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetCloudAccountId() string { + if o == nil || o.CloudAccountId == nil { + var ret string + return ret + } + return *o.CloudAccountId +} + +// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetCloudAccountIdOk() (*string, bool) { + if o == nil || o.CloudAccountId == nil { + return nil, false + } + return o.CloudAccountId, true +} + +// HasCloudAccountId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasCloudAccountId() bool { + if o != nil && o.CloudAccountId != nil { + return true + } + + return false +} + +// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field. +func (o *SubscriptionPatchRequest) SetCloudAccountId(v string) { + o.CloudAccountId = &v +} + +// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetCloudProviderId() string { + if o == nil || o.CloudProviderId == nil { + var ret string + return ret + } + return *o.CloudProviderId +} + +// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetCloudProviderIdOk() (*string, bool) { + if o == nil || o.CloudProviderId == nil { + return nil, false + } + return o.CloudProviderId, true +} + +// HasCloudProviderId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasCloudProviderId() bool { + if o != nil && o.CloudProviderId != nil { + return true + } + + return false +} + +// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field. +func (o *SubscriptionPatchRequest) SetCloudProviderId(v string) { + o.CloudProviderId = &v +} + +// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetClusterBillingModel() string { + if o == nil || o.ClusterBillingModel == nil { + var ret string + return ret + } + return *o.ClusterBillingModel +} + +// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetClusterBillingModelOk() (*string, bool) { + if o == nil || o.ClusterBillingModel == nil { + return nil, false + } + return o.ClusterBillingModel, true +} + +// HasClusterBillingModel returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasClusterBillingModel() bool { + if o != nil && o.ClusterBillingModel != nil { + return true + } + + return false +} + +// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field. +func (o *SubscriptionPatchRequest) SetClusterBillingModel(v string) { + o.ClusterBillingModel = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SubscriptionPatchRequest) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetConsoleUrl() string { + if o == nil || o.ConsoleUrl == nil { + var ret string + return ret + } + return *o.ConsoleUrl +} + +// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetConsoleUrlOk() (*string, bool) { + if o == nil || o.ConsoleUrl == nil { + return nil, false + } + return o.ConsoleUrl, true +} + +// HasConsoleUrl returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasConsoleUrl() bool { + if o != nil && o.ConsoleUrl != nil { + return true + } + + return false +} + +// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field. +func (o *SubscriptionPatchRequest) SetConsoleUrl(v string) { + o.ConsoleUrl = &v +} + +// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetConsumerUuid() string { + if o == nil || o.ConsumerUuid == nil { + var ret string + return ret + } + return *o.ConsumerUuid +} + +// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetConsumerUuidOk() (*string, bool) { + if o == nil || o.ConsumerUuid == nil { + return nil, false + } + return o.ConsumerUuid, true +} + +// HasConsumerUuid returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasConsumerUuid() bool { + if o != nil && o.ConsumerUuid != nil { + return true + } + + return false +} + +// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field. +func (o *SubscriptionPatchRequest) SetConsumerUuid(v string) { + o.ConsumerUuid = &v +} + +// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetCpuTotal() int32 { + if o == nil || o.CpuTotal == nil { + var ret int32 + return ret + } + return *o.CpuTotal +} + +// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetCpuTotalOk() (*int32, bool) { + if o == nil || o.CpuTotal == nil { + return nil, false + } + return o.CpuTotal, true +} + +// HasCpuTotal returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasCpuTotal() bool { + if o != nil && o.CpuTotal != nil { + return true + } + + return false +} + +// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field. +func (o *SubscriptionPatchRequest) SetCpuTotal(v int32) { + o.CpuTotal = &v +} + +// GetCreatorId returns the CreatorId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetCreatorId() string { + if o == nil || o.CreatorId == nil { + var ret string + return ret + } + return *o.CreatorId +} + +// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetCreatorIdOk() (*string, bool) { + if o == nil || o.CreatorId == nil { + return nil, false + } + return o.CreatorId, true +} + +// HasCreatorId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasCreatorId() bool { + if o != nil && o.CreatorId != nil { + return true + } + + return false +} + +// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field. +func (o *SubscriptionPatchRequest) SetCreatorId(v string) { + o.CreatorId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SubscriptionPatchRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetExternalClusterId() string { + if o == nil || o.ExternalClusterId == nil { + var ret string + return ret + } + return *o.ExternalClusterId +} + +// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetExternalClusterIdOk() (*string, bool) { + if o == nil || o.ExternalClusterId == nil { + return nil, false + } + return o.ExternalClusterId, true +} + +// HasExternalClusterId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasExternalClusterId() bool { + if o != nil && o.ExternalClusterId != nil { + return true + } + + return false +} + +// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field. +func (o *SubscriptionPatchRequest) SetExternalClusterId(v string) { + o.ExternalClusterId = &v +} + +// GetManaged returns the Managed field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetManaged() bool { + if o == nil || o.Managed == nil { + var ret bool + return ret + } + return *o.Managed +} + +// GetManagedOk returns a tuple with the Managed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetManagedOk() (*bool, bool) { + if o == nil || o.Managed == nil { + return nil, false + } + return o.Managed, true +} + +// HasManaged returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasManaged() bool { + if o != nil && o.Managed != nil { + return true + } + + return false +} + +// SetManaged gets a reference to the given bool and assigns it to the Managed field. +func (o *SubscriptionPatchRequest) SetManaged(v bool) { + o.Managed = &v +} + +// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetOrganizationId() string { + if o == nil || o.OrganizationId == nil { + var ret string + return ret + } + return *o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetOrganizationIdOk() (*string, bool) { + if o == nil || o.OrganizationId == nil { + return nil, false + } + return o.OrganizationId, true +} + +// HasOrganizationId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasOrganizationId() bool { + if o != nil && o.OrganizationId != nil { + return true + } + + return false +} + +// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field. +func (o *SubscriptionPatchRequest) SetOrganizationId(v string) { + o.OrganizationId = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetPlanId() string { + if o == nil || o.PlanId == nil { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetPlanIdOk() (*string, bool) { + if o == nil || o.PlanId == nil { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasPlanId() bool { + if o != nil && o.PlanId != nil { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *SubscriptionPatchRequest) SetPlanId(v string) { + o.PlanId = &v +} + +// GetProductBundle returns the ProductBundle field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetProductBundle() string { + if o == nil || o.ProductBundle == nil { + var ret string + return ret + } + return *o.ProductBundle +} + +// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetProductBundleOk() (*string, bool) { + if o == nil || o.ProductBundle == nil { + return nil, false + } + return o.ProductBundle, true +} + +// HasProductBundle returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasProductBundle() bool { + if o != nil && o.ProductBundle != nil { + return true + } + + return false +} + +// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field. +func (o *SubscriptionPatchRequest) SetProductBundle(v string) { + o.ProductBundle = &v +} + +// GetProvenance returns the Provenance field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetProvenance() string { + if o == nil || o.Provenance == nil { + var ret string + return ret + } + return *o.Provenance +} + +// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetProvenanceOk() (*string, bool) { + if o == nil || o.Provenance == nil { + return nil, false + } + return o.Provenance, true +} + +// HasProvenance returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasProvenance() bool { + if o != nil && o.Provenance != nil { + return true + } + + return false +} + +// SetProvenance gets a reference to the given string and assigns it to the Provenance field. +func (o *SubscriptionPatchRequest) SetProvenance(v string) { + o.Provenance = &v +} + +// GetRegionId returns the RegionId field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetRegionId() string { + if o == nil || o.RegionId == nil { + var ret string + return ret + } + return *o.RegionId +} + +// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetRegionIdOk() (*string, bool) { + if o == nil || o.RegionId == nil { + return nil, false + } + return o.RegionId, true +} + +// HasRegionId returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasRegionId() bool { + if o != nil && o.RegionId != nil { + return true + } + + return false +} + +// SetRegionId gets a reference to the given string and assigns it to the RegionId field. +func (o *SubscriptionPatchRequest) SetRegionId(v string) { + o.RegionId = &v +} + +// GetReleased returns the Released field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetReleased() bool { + if o == nil || o.Released == nil { + var ret bool + return ret + } + return *o.Released +} + +// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetReleasedOk() (*bool, bool) { + if o == nil || o.Released == nil { + return nil, false + } + return o.Released, true +} + +// HasReleased returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasReleased() bool { + if o != nil && o.Released != nil { + return true + } + + return false +} + +// SetReleased gets a reference to the given bool and assigns it to the Released field. +func (o *SubscriptionPatchRequest) SetReleased(v bool) { + o.Released = &v +} + +// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetServiceLevel() string { + if o == nil || o.ServiceLevel == nil { + var ret string + return ret + } + return *o.ServiceLevel +} + +// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetServiceLevelOk() (*string, bool) { + if o == nil || o.ServiceLevel == nil { + return nil, false + } + return o.ServiceLevel, true +} + +// HasServiceLevel returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasServiceLevel() bool { + if o != nil && o.ServiceLevel != nil { + return true + } + + return false +} + +// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field. +func (o *SubscriptionPatchRequest) SetServiceLevel(v string) { + o.ServiceLevel = &v +} + +// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetSocketTotal() int32 { + if o == nil || o.SocketTotal == nil { + var ret int32 + return ret + } + return *o.SocketTotal +} + +// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetSocketTotalOk() (*int32, bool) { + if o == nil || o.SocketTotal == nil { + return nil, false + } + return o.SocketTotal, true +} + +// HasSocketTotal returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasSocketTotal() bool { + if o != nil && o.SocketTotal != nil { + return true + } + + return false +} + +// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field. +func (o *SubscriptionPatchRequest) SetSocketTotal(v int32) { + o.SocketTotal = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SubscriptionPatchRequest) SetStatus(v string) { + o.Status = &v +} + +// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetSupportLevel() string { + if o == nil || o.SupportLevel == nil { + var ret string + return ret + } + return *o.SupportLevel +} + +// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetSupportLevelOk() (*string, bool) { + if o == nil || o.SupportLevel == nil { + return nil, false + } + return o.SupportLevel, true +} + +// HasSupportLevel returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasSupportLevel() bool { + if o != nil && o.SupportLevel != nil { + return true + } + + return false +} + +// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field. +func (o *SubscriptionPatchRequest) SetSupportLevel(v string) { + o.SupportLevel = &v +} + +// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetSystemUnits() string { + if o == nil || o.SystemUnits == nil { + var ret string + return ret + } + return *o.SystemUnits +} + +// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetSystemUnitsOk() (*string, bool) { + if o == nil || o.SystemUnits == nil { + return nil, false + } + return o.SystemUnits, true +} + +// HasSystemUnits returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasSystemUnits() bool { + if o != nil && o.SystemUnits != nil { + return true + } + + return false +} + +// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field. +func (o *SubscriptionPatchRequest) SetSystemUnits(v string) { + o.SystemUnits = &v +} + +// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetTrialEndDate() time.Time { + if o == nil || o.TrialEndDate == nil { + var ret time.Time + return ret + } + return *o.TrialEndDate +} + +// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetTrialEndDateOk() (*time.Time, bool) { + if o == nil || o.TrialEndDate == nil { + return nil, false + } + return o.TrialEndDate, true +} + +// HasTrialEndDate returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasTrialEndDate() bool { + if o != nil && o.TrialEndDate != nil { + return true + } + + return false +} + +// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field. +func (o *SubscriptionPatchRequest) SetTrialEndDate(v time.Time) { + o.TrialEndDate = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *SubscriptionPatchRequest) GetUsage() string { + if o == nil || o.Usage == nil { + var ret string + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionPatchRequest) GetUsageOk() (*string, bool) { + if o == nil || o.Usage == nil { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *SubscriptionPatchRequest) HasUsage() bool { + if o != nil && o.Usage != nil { + return true + } + + return false +} + +// SetUsage gets a reference to the given string and assigns it to the Usage field. +func (o *SubscriptionPatchRequest) SetUsage(v string) { + o.Usage = &v +} + +func (o SubscriptionPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BillingExpirationDate != nil { + toSerialize["billing_expiration_date"] = o.BillingExpirationDate + } + if o.CloudAccountId != nil { + toSerialize["cloud_account_id"] = o.CloudAccountId + } + if o.CloudProviderId != nil { + toSerialize["cloud_provider_id"] = o.CloudProviderId + } + if o.ClusterBillingModel != nil { + toSerialize["cluster_billing_model"] = o.ClusterBillingModel + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ConsoleUrl != nil { + toSerialize["console_url"] = o.ConsoleUrl + } + if o.ConsumerUuid != nil { + toSerialize["consumer_uuid"] = o.ConsumerUuid + } + if o.CpuTotal != nil { + toSerialize["cpu_total"] = o.CpuTotal + } + if o.CreatorId != nil { + toSerialize["creator_id"] = o.CreatorId + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.ExternalClusterId != nil { + toSerialize["external_cluster_id"] = o.ExternalClusterId + } + if o.Managed != nil { + toSerialize["managed"] = o.Managed + } + if o.OrganizationId != nil { + toSerialize["organization_id"] = o.OrganizationId + } + if o.PlanId != nil { + toSerialize["plan_id"] = o.PlanId + } + if o.ProductBundle != nil { + toSerialize["product_bundle"] = o.ProductBundle + } + if o.Provenance != nil { + toSerialize["provenance"] = o.Provenance + } + if o.RegionId != nil { + toSerialize["region_id"] = o.RegionId + } + if o.Released != nil { + toSerialize["released"] = o.Released + } + if o.ServiceLevel != nil { + toSerialize["service_level"] = o.ServiceLevel + } + if o.SocketTotal != nil { + toSerialize["socket_total"] = o.SocketTotal + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SupportLevel != nil { + toSerialize["support_level"] = o.SupportLevel + } + if o.SystemUnits != nil { + toSerialize["system_units"] = o.SystemUnits + } + if o.TrialEndDate != nil { + toSerialize["trial_end_date"] = o.TrialEndDate + } + if o.Usage != nil { + toSerialize["usage"] = o.Usage + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionPatchRequest struct { + value *SubscriptionPatchRequest + isSet bool +} + +func (v NullableSubscriptionPatchRequest) Get() *SubscriptionPatchRequest { + return v.value +} + +func (v *NullableSubscriptionPatchRequest) Set(val *SubscriptionPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionPatchRequest(val *SubscriptionPatchRequest) *NullableSubscriptionPatchRequest { + return &NullableSubscriptionPatchRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding.go new file mode 100644 index 00000000..803fcef9 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding.go @@ -0,0 +1,440 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionRoleBinding struct for SubscriptionRoleBinding +type SubscriptionRoleBinding struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Account *AccountReference `json:"account,omitempty"` + AccountEmail *string `json:"account_email,omitempty"` + AccountUsername *string `json:"account_username,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Role *ObjectReference `json:"role,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSubscriptionRoleBinding instantiates a new SubscriptionRoleBinding 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 NewSubscriptionRoleBinding() *SubscriptionRoleBinding { + this := SubscriptionRoleBinding{} + return &this +} + +// NewSubscriptionRoleBindingWithDefaults instantiates a new SubscriptionRoleBinding 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 NewSubscriptionRoleBindingWithDefaults() *SubscriptionRoleBinding { + this := SubscriptionRoleBinding{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *SubscriptionRoleBinding) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetId() string { + if o == nil || o.Id == nil { + 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 *SubscriptionRoleBinding) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SubscriptionRoleBinding) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *SubscriptionRoleBinding) SetKind(v string) { + o.Kind = &v +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetAccount() AccountReference { + if o == nil || o.Account == nil { + var ret AccountReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetAccountOk() (*AccountReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given AccountReference and assigns it to the Account field. +func (o *SubscriptionRoleBinding) SetAccount(v AccountReference) { + o.Account = &v +} + +// GetAccountEmail returns the AccountEmail field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetAccountEmail() string { + if o == nil || o.AccountEmail == nil { + var ret string + return ret + } + return *o.AccountEmail +} + +// GetAccountEmailOk returns a tuple with the AccountEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetAccountEmailOk() (*string, bool) { + if o == nil || o.AccountEmail == nil { + return nil, false + } + return o.AccountEmail, true +} + +// HasAccountEmail returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasAccountEmail() bool { + if o != nil && o.AccountEmail != nil { + return true + } + + return false +} + +// SetAccountEmail gets a reference to the given string and assigns it to the AccountEmail field. +func (o *SubscriptionRoleBinding) SetAccountEmail(v string) { + o.AccountEmail = &v +} + +// GetAccountUsername returns the AccountUsername field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetAccountUsername() string { + if o == nil || o.AccountUsername == nil { + var ret string + return ret + } + return *o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetAccountUsernameOk() (*string, bool) { + if o == nil || o.AccountUsername == nil { + return nil, false + } + return o.AccountUsername, true +} + +// HasAccountUsername returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasAccountUsername() bool { + if o != nil && o.AccountUsername != nil { + return true + } + + return false +} + +// SetAccountUsername gets a reference to the given string and assigns it to the AccountUsername field. +func (o *SubscriptionRoleBinding) SetAccountUsername(v string) { + o.AccountUsername = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SubscriptionRoleBinding) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetRole() ObjectReference { + if o == nil || o.Role == nil { + var ret ObjectReference + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetRoleOk() (*ObjectReference, bool) { + if o == nil || o.Role == nil { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasRole() bool { + if o != nil && o.Role != nil { + return true + } + + return false +} + +// SetRole gets a reference to the given ObjectReference and assigns it to the Role field. +func (o *SubscriptionRoleBinding) SetRole(v ObjectReference) { + o.Role = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *SubscriptionRoleBinding) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SubscriptionRoleBinding) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBinding) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SubscriptionRoleBinding) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SubscriptionRoleBinding) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SubscriptionRoleBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.AccountEmail != nil { + toSerialize["account_email"] = o.AccountEmail + } + if o.AccountUsername != nil { + toSerialize["account_username"] = o.AccountUsername + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Role != nil { + toSerialize["role"] = o.Role + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionRoleBinding struct { + value *SubscriptionRoleBinding + isSet bool +} + +func (v NullableSubscriptionRoleBinding) Get() *SubscriptionRoleBinding { + return v.value +} + +func (v *NullableSubscriptionRoleBinding) Set(val *SubscriptionRoleBinding) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRoleBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRoleBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRoleBinding(val *SubscriptionRoleBinding) *NullableSubscriptionRoleBinding { + return &NullableSubscriptionRoleBinding{value: val, isSet: true} +} + +func (v NullableSubscriptionRoleBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRoleBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_all_of.go new file mode 100644 index 00000000..a37610ce --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_all_of.go @@ -0,0 +1,332 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SubscriptionRoleBindingAllOf struct for SubscriptionRoleBindingAllOf +type SubscriptionRoleBindingAllOf struct { + Account *AccountReference `json:"account,omitempty"` + AccountEmail *string `json:"account_email,omitempty"` + AccountUsername *string `json:"account_username,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Role *ObjectReference `json:"role,omitempty"` + Subscription *ObjectReference `json:"subscription,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +// NewSubscriptionRoleBindingAllOf instantiates a new SubscriptionRoleBindingAllOf 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 NewSubscriptionRoleBindingAllOf() *SubscriptionRoleBindingAllOf { + this := SubscriptionRoleBindingAllOf{} + return &this +} + +// NewSubscriptionRoleBindingAllOfWithDefaults instantiates a new SubscriptionRoleBindingAllOf 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 NewSubscriptionRoleBindingAllOfWithDefaults() *SubscriptionRoleBindingAllOf { + this := SubscriptionRoleBindingAllOf{} + return &this +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetAccount() AccountReference { + if o == nil || o.Account == nil { + var ret AccountReference + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetAccountOk() (*AccountReference, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given AccountReference and assigns it to the Account field. +func (o *SubscriptionRoleBindingAllOf) SetAccount(v AccountReference) { + o.Account = &v +} + +// GetAccountEmail returns the AccountEmail field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetAccountEmail() string { + if o == nil || o.AccountEmail == nil { + var ret string + return ret + } + return *o.AccountEmail +} + +// GetAccountEmailOk returns a tuple with the AccountEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetAccountEmailOk() (*string, bool) { + if o == nil || o.AccountEmail == nil { + return nil, false + } + return o.AccountEmail, true +} + +// HasAccountEmail returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasAccountEmail() bool { + if o != nil && o.AccountEmail != nil { + return true + } + + return false +} + +// SetAccountEmail gets a reference to the given string and assigns it to the AccountEmail field. +func (o *SubscriptionRoleBindingAllOf) SetAccountEmail(v string) { + o.AccountEmail = &v +} + +// GetAccountUsername returns the AccountUsername field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetAccountUsername() string { + if o == nil || o.AccountUsername == nil { + var ret string + return ret + } + return *o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetAccountUsernameOk() (*string, bool) { + if o == nil || o.AccountUsername == nil { + return nil, false + } + return o.AccountUsername, true +} + +// HasAccountUsername returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasAccountUsername() bool { + if o != nil && o.AccountUsername != nil { + return true + } + + return false +} + +// SetAccountUsername gets a reference to the given string and assigns it to the AccountUsername field. +func (o *SubscriptionRoleBindingAllOf) SetAccountUsername(v string) { + o.AccountUsername = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SubscriptionRoleBindingAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetRole() ObjectReference { + if o == nil || o.Role == nil { + var ret ObjectReference + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetRoleOk() (*ObjectReference, bool) { + if o == nil || o.Role == nil { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasRole() bool { + if o != nil && o.Role != nil { + return true + } + + return false +} + +// SetRole gets a reference to the given ObjectReference and assigns it to the Role field. +func (o *SubscriptionRoleBindingAllOf) SetRole(v ObjectReference) { + o.Role = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetSubscription() ObjectReference { + if o == nil || o.Subscription == nil { + var ret ObjectReference + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetSubscriptionOk() (*ObjectReference, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given ObjectReference and assigns it to the Subscription field. +func (o *SubscriptionRoleBindingAllOf) SetSubscription(v ObjectReference) { + o.Subscription = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SubscriptionRoleBindingAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o SubscriptionRoleBindingAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Account != nil { + toSerialize["account"] = o.Account + } + if o.AccountEmail != nil { + toSerialize["account_email"] = o.AccountEmail + } + if o.AccountUsername != nil { + toSerialize["account_username"] = o.AccountUsername + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Role != nil { + toSerialize["role"] = o.Role + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionRoleBindingAllOf struct { + value *SubscriptionRoleBindingAllOf + isSet bool +} + +func (v NullableSubscriptionRoleBindingAllOf) Get() *SubscriptionRoleBindingAllOf { + return v.value +} + +func (v *NullableSubscriptionRoleBindingAllOf) Set(val *SubscriptionRoleBindingAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRoleBindingAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRoleBindingAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRoleBindingAllOf(val *SubscriptionRoleBindingAllOf) *NullableSubscriptionRoleBindingAllOf { + return &NullableSubscriptionRoleBindingAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionRoleBindingAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRoleBindingAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_create_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_create_request.go new file mode 100644 index 00000000..be0dcc0c --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_create_request.go @@ -0,0 +1,137 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionRoleBindingCreateRequest struct for SubscriptionRoleBindingCreateRequest +type SubscriptionRoleBindingCreateRequest struct { + AccountUsername string `json:"account_username"` + RoleId string `json:"role_id"` +} + +// NewSubscriptionRoleBindingCreateRequest instantiates a new SubscriptionRoleBindingCreateRequest 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 NewSubscriptionRoleBindingCreateRequest(accountUsername string, roleId string) *SubscriptionRoleBindingCreateRequest { + this := SubscriptionRoleBindingCreateRequest{} + this.AccountUsername = accountUsername + this.RoleId = roleId + return &this +} + +// NewSubscriptionRoleBindingCreateRequestWithDefaults instantiates a new SubscriptionRoleBindingCreateRequest 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 NewSubscriptionRoleBindingCreateRequestWithDefaults() *SubscriptionRoleBindingCreateRequest { + this := SubscriptionRoleBindingCreateRequest{} + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *SubscriptionRoleBindingCreateRequest) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingCreateRequest) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *SubscriptionRoleBindingCreateRequest) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetRoleId returns the RoleId field value +func (o *SubscriptionRoleBindingCreateRequest) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingCreateRequest) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *SubscriptionRoleBindingCreateRequest) SetRoleId(v string) { + o.RoleId = v +} + +func (o SubscriptionRoleBindingCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if true { + toSerialize["role_id"] = o.RoleId + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionRoleBindingCreateRequest struct { + value *SubscriptionRoleBindingCreateRequest + isSet bool +} + +func (v NullableSubscriptionRoleBindingCreateRequest) Get() *SubscriptionRoleBindingCreateRequest { + return v.value +} + +func (v *NullableSubscriptionRoleBindingCreateRequest) Set(val *SubscriptionRoleBindingCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRoleBindingCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRoleBindingCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRoleBindingCreateRequest(val *SubscriptionRoleBindingCreateRequest) *NullableSubscriptionRoleBindingCreateRequest { + return &NullableSubscriptionRoleBindingCreateRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionRoleBindingCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRoleBindingCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list.go new file mode 100644 index 00000000..094f93db --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list.go @@ -0,0 +1,224 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionRoleBindingList struct for SubscriptionRoleBindingList +type SubscriptionRoleBindingList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []SubscriptionRoleBinding `json:"items"` +} + +// NewSubscriptionRoleBindingList instantiates a new SubscriptionRoleBindingList 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 NewSubscriptionRoleBindingList(kind string, page int32, size int32, total int32, items []SubscriptionRoleBinding) *SubscriptionRoleBindingList { + this := SubscriptionRoleBindingList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewSubscriptionRoleBindingListWithDefaults instantiates a new SubscriptionRoleBindingList 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 NewSubscriptionRoleBindingListWithDefaults() *SubscriptionRoleBindingList { + this := SubscriptionRoleBindingList{} + return &this +} + +// GetKind returns the Kind field value +func (o *SubscriptionRoleBindingList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SubscriptionRoleBindingList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *SubscriptionRoleBindingList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *SubscriptionRoleBindingList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *SubscriptionRoleBindingList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *SubscriptionRoleBindingList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *SubscriptionRoleBindingList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *SubscriptionRoleBindingList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *SubscriptionRoleBindingList) GetItems() []SubscriptionRoleBinding { + if o == nil { + var ret []SubscriptionRoleBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingList) GetItemsOk() (*[]SubscriptionRoleBinding, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *SubscriptionRoleBindingList) SetItems(v []SubscriptionRoleBinding) { + o.Items = v +} + +func (o SubscriptionRoleBindingList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionRoleBindingList struct { + value *SubscriptionRoleBindingList + isSet bool +} + +func (v NullableSubscriptionRoleBindingList) Get() *SubscriptionRoleBindingList { + return v.value +} + +func (v *NullableSubscriptionRoleBindingList) Set(val *SubscriptionRoleBindingList) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRoleBindingList) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRoleBindingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRoleBindingList(val *SubscriptionRoleBindingList) *NullableSubscriptionRoleBindingList { + return &NullableSubscriptionRoleBindingList{value: val, isSet: true} +} + +func (v NullableSubscriptionRoleBindingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRoleBindingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list_all_of.go new file mode 100644 index 00000000..94258896 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_subscription_role_binding_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SubscriptionRoleBindingListAllOf struct for SubscriptionRoleBindingListAllOf +type SubscriptionRoleBindingListAllOf struct { + Items *[]SubscriptionRoleBinding `json:"items,omitempty"` +} + +// NewSubscriptionRoleBindingListAllOf instantiates a new SubscriptionRoleBindingListAllOf 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 NewSubscriptionRoleBindingListAllOf() *SubscriptionRoleBindingListAllOf { + this := SubscriptionRoleBindingListAllOf{} + return &this +} + +// NewSubscriptionRoleBindingListAllOfWithDefaults instantiates a new SubscriptionRoleBindingListAllOf 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 NewSubscriptionRoleBindingListAllOfWithDefaults() *SubscriptionRoleBindingListAllOf { + this := SubscriptionRoleBindingListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *SubscriptionRoleBindingListAllOf) GetItems() []SubscriptionRoleBinding { + if o == nil || o.Items == nil { + var ret []SubscriptionRoleBinding + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRoleBindingListAllOf) GetItemsOk() (*[]SubscriptionRoleBinding, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *SubscriptionRoleBindingListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []SubscriptionRoleBinding and assigns it to the Items field. +func (o *SubscriptionRoleBindingListAllOf) SetItems(v []SubscriptionRoleBinding) { + o.Items = &v +} + +func (o SubscriptionRoleBindingListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableSubscriptionRoleBindingListAllOf struct { + value *SubscriptionRoleBindingListAllOf + isSet bool +} + +func (v NullableSubscriptionRoleBindingListAllOf) Get() *SubscriptionRoleBindingListAllOf { + return v.value +} + +func (v *NullableSubscriptionRoleBindingListAllOf) Set(val *SubscriptionRoleBindingListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRoleBindingListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRoleBindingListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRoleBindingListAllOf(val *SubscriptionRoleBindingListAllOf) *NullableSubscriptionRoleBindingListAllOf { + return &NullableSubscriptionRoleBindingListAllOf{value: val, isSet: true} +} + +func (v NullableSubscriptionRoleBindingListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRoleBindingListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary.go new file mode 100644 index 00000000..d7ab8b52 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary.go @@ -0,0 +1,252 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// Summary struct for Summary +type Summary struct { + Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Metrics []SummaryMetrics `json:"metrics"` + Name *string `json:"name,omitempty"` +} + +// NewSummary instantiates a new Summary 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 NewSummary(metrics []SummaryMetrics) *Summary { + this := Summary{} + this.Metrics = metrics + return &this +} + +// NewSummaryWithDefaults instantiates a new Summary 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 NewSummaryWithDefaults() *Summary { + this := Summary{} + return &this +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Summary) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Summary) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Summary) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Summary) SetHref(v string) { + o.Href = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Summary) GetId() string { + if o == nil || o.Id == nil { + 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 *Summary) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Summary) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Summary) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Summary) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Summary) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Summary) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Summary) SetKind(v string) { + o.Kind = &v +} + +// GetMetrics returns the Metrics field value +func (o *Summary) GetMetrics() []SummaryMetrics { + if o == nil { + var ret []SummaryMetrics + return ret + } + + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value +// and a boolean to check if the value has been set. +func (o *Summary) GetMetricsOk() (*[]SummaryMetrics, bool) { + if o == nil { + return nil, false + } + return &o.Metrics, true +} + +// SetMetrics sets field value +func (o *Summary) SetMetrics(v []SummaryMetrics) { + o.Metrics = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Summary) GetName() string { + if o == nil || o.Name == nil { + 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 *Summary) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Summary) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Summary) SetName(v string) { + o.Name = &v +} + +func (o Summary) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["metrics"] = o.Metrics + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableSummary struct { + value *Summary + isSet bool +} + +func (v NullableSummary) Get() *Summary { + return v.value +} + +func (v *NullableSummary) Set(val *Summary) { + v.value = val + v.isSet = true +} + +func (v NullableSummary) IsSet() bool { + return v.isSet +} + +func (v *NullableSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummary(val *Summary) *NullableSummary { + return &NullableSummary{value: val, isSet: true} +} + +func (v NullableSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_all_of.go new file mode 100644 index 00000000..04cee143 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_all_of.go @@ -0,0 +1,144 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SummaryAllOf struct for SummaryAllOf +type SummaryAllOf struct { + Metrics []SummaryMetrics `json:"metrics"` + Name *string `json:"name,omitempty"` +} + +// NewSummaryAllOf instantiates a new SummaryAllOf 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 NewSummaryAllOf(metrics []SummaryMetrics) *SummaryAllOf { + this := SummaryAllOf{} + this.Metrics = metrics + return &this +} + +// NewSummaryAllOfWithDefaults instantiates a new SummaryAllOf 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 NewSummaryAllOfWithDefaults() *SummaryAllOf { + this := SummaryAllOf{} + return &this +} + +// GetMetrics returns the Metrics field value +func (o *SummaryAllOf) GetMetrics() []SummaryMetrics { + if o == nil { + var ret []SummaryMetrics + return ret + } + + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value +// and a boolean to check if the value has been set. +func (o *SummaryAllOf) GetMetricsOk() (*[]SummaryMetrics, bool) { + if o == nil { + return nil, false + } + return &o.Metrics, true +} + +// SetMetrics sets field value +func (o *SummaryAllOf) SetMetrics(v []SummaryMetrics) { + o.Metrics = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SummaryAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *SummaryAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SummaryAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SummaryAllOf) SetName(v string) { + o.Name = &v +} + +func (o SummaryAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["metrics"] = o.Metrics + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableSummaryAllOf struct { + value *SummaryAllOf + isSet bool +} + +func (v NullableSummaryAllOf) Get() *SummaryAllOf { + return v.value +} + +func (v *NullableSummaryAllOf) Set(val *SummaryAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSummaryAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSummaryAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummaryAllOf(val *SummaryAllOf) *NullableSummaryAllOf { + return &NullableSummaryAllOf{value: val, isSet: true} +} + +func (v NullableSummaryAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummaryAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics.go new file mode 100644 index 00000000..505f27b8 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SummaryMetrics struct for SummaryMetrics +type SummaryMetrics struct { + Name *string `json:"name,omitempty"` + Vector *[]SummaryVector `json:"vector,omitempty"` +} + +// NewSummaryMetrics instantiates a new SummaryMetrics 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 NewSummaryMetrics() *SummaryMetrics { + this := SummaryMetrics{} + return &this +} + +// NewSummaryMetricsWithDefaults instantiates a new SummaryMetrics 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 NewSummaryMetricsWithDefaults() *SummaryMetrics { + this := SummaryMetrics{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SummaryMetrics) GetName() string { + if o == nil || o.Name == nil { + 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 *SummaryMetrics) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SummaryMetrics) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SummaryMetrics) SetName(v string) { + o.Name = &v +} + +// GetVector returns the Vector field value if set, zero value otherwise. +func (o *SummaryMetrics) GetVector() []SummaryVector { + if o == nil || o.Vector == nil { + var ret []SummaryVector + return ret + } + return *o.Vector +} + +// GetVectorOk returns a tuple with the Vector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryMetrics) GetVectorOk() (*[]SummaryVector, bool) { + if o == nil || o.Vector == nil { + return nil, false + } + return o.Vector, true +} + +// HasVector returns a boolean if a field has been set. +func (o *SummaryMetrics) HasVector() bool { + if o != nil && o.Vector != nil { + return true + } + + return false +} + +// SetVector gets a reference to the given []SummaryVector and assigns it to the Vector field. +func (o *SummaryMetrics) SetVector(v []SummaryVector) { + o.Vector = &v +} + +func (o SummaryMetrics) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Vector != nil { + toSerialize["vector"] = o.Vector + } + return json.Marshal(toSerialize) +} + +type NullableSummaryMetrics struct { + value *SummaryMetrics + isSet bool +} + +func (v NullableSummaryMetrics) Get() *SummaryMetrics { + return v.value +} + +func (v *NullableSummaryMetrics) Set(val *SummaryMetrics) { + v.value = val + v.isSet = true +} + +func (v NullableSummaryMetrics) IsSet() bool { + return v.isSet +} + +func (v *NullableSummaryMetrics) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummaryMetrics(val *SummaryMetrics) *NullableSummaryMetrics { + return &NullableSummaryMetrics{value: val, isSet: true} +} + +func (v NullableSummaryMetrics) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummaryMetrics) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics_all_of.go new file mode 100644 index 00000000..a3f35254 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_metrics_all_of.go @@ -0,0 +1,151 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SummaryMetricsAllOf struct for SummaryMetricsAllOf +type SummaryMetricsAllOf struct { + Name *string `json:"name,omitempty"` + Vector *[]SummaryVector `json:"vector,omitempty"` +} + +// NewSummaryMetricsAllOf instantiates a new SummaryMetricsAllOf 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 NewSummaryMetricsAllOf() *SummaryMetricsAllOf { + this := SummaryMetricsAllOf{} + return &this +} + +// NewSummaryMetricsAllOfWithDefaults instantiates a new SummaryMetricsAllOf 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 NewSummaryMetricsAllOfWithDefaults() *SummaryMetricsAllOf { + this := SummaryMetricsAllOf{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SummaryMetricsAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *SummaryMetricsAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SummaryMetricsAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SummaryMetricsAllOf) SetName(v string) { + o.Name = &v +} + +// GetVector returns the Vector field value if set, zero value otherwise. +func (o *SummaryMetricsAllOf) GetVector() []SummaryVector { + if o == nil || o.Vector == nil { + var ret []SummaryVector + return ret + } + return *o.Vector +} + +// GetVectorOk returns a tuple with the Vector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryMetricsAllOf) GetVectorOk() (*[]SummaryVector, bool) { + if o == nil || o.Vector == nil { + return nil, false + } + return o.Vector, true +} + +// HasVector returns a boolean if a field has been set. +func (o *SummaryMetricsAllOf) HasVector() bool { + if o != nil && o.Vector != nil { + return true + } + + return false +} + +// SetVector gets a reference to the given []SummaryVector and assigns it to the Vector field. +func (o *SummaryMetricsAllOf) SetVector(v []SummaryVector) { + o.Vector = &v +} + +func (o SummaryMetricsAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Vector != nil { + toSerialize["vector"] = o.Vector + } + return json.Marshal(toSerialize) +} + +type NullableSummaryMetricsAllOf struct { + value *SummaryMetricsAllOf + isSet bool +} + +func (v NullableSummaryMetricsAllOf) Get() *SummaryMetricsAllOf { + return v.value +} + +func (v *NullableSummaryMetricsAllOf) Set(val *SummaryMetricsAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSummaryMetricsAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSummaryMetricsAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummaryMetricsAllOf(val *SummaryMetricsAllOf) *NullableSummaryMetricsAllOf { + return &NullableSummaryMetricsAllOf{value: val, isSet: true} +} + +func (v NullableSummaryMetricsAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummaryMetricsAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector.go new file mode 100644 index 00000000..fb844ece --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector.go @@ -0,0 +1,152 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SummaryVector struct for SummaryVector +type SummaryVector struct { + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` +} + +// NewSummaryVector instantiates a new SummaryVector 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 NewSummaryVector() *SummaryVector { + this := SummaryVector{} + return &this +} + +// NewSummaryVectorWithDefaults instantiates a new SummaryVector 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 NewSummaryVectorWithDefaults() *SummaryVector { + this := SummaryVector{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *SummaryVector) GetTime() time.Time { + if o == nil || o.Time == nil { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryVector) GetTimeOk() (*time.Time, bool) { + if o == nil || o.Time == nil { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *SummaryVector) HasTime() bool { + if o != nil && o.Time != nil { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *SummaryVector) SetTime(v time.Time) { + o.Time = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SummaryVector) GetValue() float64 { + if o == nil || o.Value == nil { + var ret float64 + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryVector) GetValueOk() (*float64, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SummaryVector) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given float64 and assigns it to the Value field. +func (o *SummaryVector) SetValue(v float64) { + o.Value = &v +} + +func (o SummaryVector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Time != nil { + toSerialize["time"] = o.Time + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableSummaryVector struct { + value *SummaryVector + isSet bool +} + +func (v NullableSummaryVector) Get() *SummaryVector { + return v.value +} + +func (v *NullableSummaryVector) Set(val *SummaryVector) { + v.value = val + v.isSet = true +} + +func (v NullableSummaryVector) IsSet() bool { + return v.isSet +} + +func (v *NullableSummaryVector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummaryVector(val *SummaryVector) *NullableSummaryVector { + return &NullableSummaryVector{value: val, isSet: true} +} + +func (v NullableSummaryVector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummaryVector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector_all_of.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector_all_of.go new file mode 100644 index 00000000..df61df42 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_summary_vector_all_of.go @@ -0,0 +1,152 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// SummaryVectorAllOf struct for SummaryVectorAllOf +type SummaryVectorAllOf struct { + Time *time.Time `json:"time,omitempty"` + Value *float64 `json:"value,omitempty"` +} + +// NewSummaryVectorAllOf instantiates a new SummaryVectorAllOf 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 NewSummaryVectorAllOf() *SummaryVectorAllOf { + this := SummaryVectorAllOf{} + return &this +} + +// NewSummaryVectorAllOfWithDefaults instantiates a new SummaryVectorAllOf 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 NewSummaryVectorAllOfWithDefaults() *SummaryVectorAllOf { + this := SummaryVectorAllOf{} + return &this +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *SummaryVectorAllOf) GetTime() time.Time { + if o == nil || o.Time == nil { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryVectorAllOf) GetTimeOk() (*time.Time, bool) { + if o == nil || o.Time == nil { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *SummaryVectorAllOf) HasTime() bool { + if o != nil && o.Time != nil { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *SummaryVectorAllOf) SetTime(v time.Time) { + o.Time = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SummaryVectorAllOf) GetValue() float64 { + if o == nil || o.Value == nil { + var ret float64 + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SummaryVectorAllOf) GetValueOk() (*float64, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SummaryVectorAllOf) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given float64 and assigns it to the Value field. +func (o *SummaryVectorAllOf) SetValue(v float64) { + o.Value = &v +} + +func (o SummaryVectorAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Time != nil { + toSerialize["time"] = o.Time + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableSummaryVectorAllOf struct { + value *SummaryVectorAllOf + isSet bool +} + +func (v NullableSummaryVectorAllOf) Get() *SummaryVectorAllOf { + return v.value +} + +func (v *NullableSummaryVectorAllOf) Set(val *SummaryVectorAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSummaryVectorAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSummaryVectorAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSummaryVectorAllOf(val *SummaryVectorAllOf) *NullableSummaryVectorAllOf { + return &NullableSummaryVectorAllOf{value: val, isSet: true} +} + +func (v NullableSummaryVectorAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSummaryVectorAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_created_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_created_response.go new file mode 100644 index 00000000..923a2132 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_created_response.go @@ -0,0 +1,403 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SupportCasesCreatedResponse struct for SupportCasesCreatedResponse +type SupportCasesCreatedResponse struct { + CaseNumber *string `json:"caseNumber,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + Description *string `json:"description,omitempty"` + Severity *string `json:"severity,omitempty"` + Status *string `json:"status,omitempty"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Summary *string `json:"summary,omitempty"` + Uri *string `json:"uri,omitempty"` +} + +// NewSupportCasesCreatedResponse instantiates a new SupportCasesCreatedResponse 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 NewSupportCasesCreatedResponse() *SupportCasesCreatedResponse { + this := SupportCasesCreatedResponse{} + return &this +} + +// NewSupportCasesCreatedResponseWithDefaults instantiates a new SupportCasesCreatedResponse 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 NewSupportCasesCreatedResponseWithDefaults() *SupportCasesCreatedResponse { + this := SupportCasesCreatedResponse{} + return &this +} + +// GetCaseNumber returns the CaseNumber field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetCaseNumber() string { + if o == nil || o.CaseNumber == nil { + var ret string + return ret + } + return *o.CaseNumber +} + +// GetCaseNumberOk returns a tuple with the CaseNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetCaseNumberOk() (*string, bool) { + if o == nil || o.CaseNumber == nil { + return nil, false + } + return o.CaseNumber, true +} + +// HasCaseNumber returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasCaseNumber() bool { + if o != nil && o.CaseNumber != nil { + return true + } + + return false +} + +// SetCaseNumber gets a reference to the given string and assigns it to the CaseNumber field. +func (o *SupportCasesCreatedResponse) SetCaseNumber(v string) { + o.CaseNumber = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SupportCasesCreatedResponse) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *SupportCasesCreatedResponse) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SupportCasesCreatedResponse) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SupportCasesCreatedResponse) SetDescription(v string) { + o.Description = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetSeverity() string { + if o == nil || o.Severity == nil { + var ret string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetSeverityOk() (*string, bool) { + if o == nil || o.Severity == nil { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasSeverity() bool { + if o != nil && o.Severity != nil { + return true + } + + return false +} + +// SetSeverity gets a reference to the given string and assigns it to the Severity field. +func (o *SupportCasesCreatedResponse) SetSeverity(v string) { + o.Severity = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SupportCasesCreatedResponse) SetStatus(v string) { + o.Status = &v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *SupportCasesCreatedResponse) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetSummary() string { + if o == nil || o.Summary == nil { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetSummaryOk() (*string, bool) { + if o == nil || o.Summary == nil { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasSummary() bool { + if o != nil && o.Summary != nil { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *SupportCasesCreatedResponse) SetSummary(v string) { + o.Summary = &v +} + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *SupportCasesCreatedResponse) GetUri() string { + if o == nil || o.Uri == nil { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesCreatedResponse) GetUriOk() (*string, bool) { + if o == nil || o.Uri == nil { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *SupportCasesCreatedResponse) HasUri() bool { + if o != nil && o.Uri != nil { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *SupportCasesCreatedResponse) SetUri(v string) { + o.Uri = &v +} + +func (o SupportCasesCreatedResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CaseNumber != nil { + toSerialize["caseNumber"] = o.CaseNumber + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Severity != nil { + toSerialize["severity"] = o.Severity + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if o.Summary != nil { + toSerialize["summary"] = o.Summary + } + if o.Uri != nil { + toSerialize["uri"] = o.Uri + } + return json.Marshal(toSerialize) +} + +type NullableSupportCasesCreatedResponse struct { + value *SupportCasesCreatedResponse + isSet bool +} + +func (v NullableSupportCasesCreatedResponse) Get() *SupportCasesCreatedResponse { + return v.value +} + +func (v *NullableSupportCasesCreatedResponse) Set(val *SupportCasesCreatedResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSupportCasesCreatedResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportCasesCreatedResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportCasesCreatedResponse(val *SupportCasesCreatedResponse) *NullableSupportCasesCreatedResponse { + return &NullableSupportCasesCreatedResponse{value: val, isSet: true} +} + +func (v NullableSupportCasesCreatedResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportCasesCreatedResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_request.go new file mode 100644 index 00000000..d9e2a9ac --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_support_cases_request.go @@ -0,0 +1,534 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// SupportCasesRequest struct for SupportCasesRequest +type SupportCasesRequest struct { + AccountNumber *string `json:"account_number,omitempty"` + CaseLanguage *string `json:"case_language,omitempty"` + ClusterId *string `json:"cluster_id,omitempty"` + ClusterUuid *string `json:"cluster_uuid,omitempty"` + ContactSsoName *string `json:"contact_sso_name,omitempty"` + Description string `json:"description"` + EventStreamId *string `json:"event_stream_id,omitempty"` + OpenshiftClusterId *string `json:"openshift_cluster_id,omitempty"` + Product *string `json:"product,omitempty"` + Severity string `json:"severity"` + SubscriptionId *string `json:"subscription_id,omitempty"` + Summary string `json:"summary"` + Version *string `json:"version,omitempty"` +} + +// NewSupportCasesRequest instantiates a new SupportCasesRequest 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 NewSupportCasesRequest(description string, severity string, summary string) *SupportCasesRequest { + this := SupportCasesRequest{} + this.Description = description + var product string = "OpenShift Container Platform" + this.Product = &product + this.Severity = severity + this.Summary = summary + var version string = "4.10" + this.Version = &version + return &this +} + +// NewSupportCasesRequestWithDefaults instantiates a new SupportCasesRequest 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 NewSupportCasesRequestWithDefaults() *SupportCasesRequest { + this := SupportCasesRequest{} + var product string = "OpenShift Container Platform" + this.Product = &product + var version string = "4.10" + this.Version = &version + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetAccountNumber() string { + if o == nil || o.AccountNumber == nil { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetAccountNumberOk() (*string, bool) { + if o == nil || o.AccountNumber == nil { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasAccountNumber() bool { + if o != nil && o.AccountNumber != nil { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *SupportCasesRequest) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetCaseLanguage returns the CaseLanguage field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetCaseLanguage() string { + if o == nil || o.CaseLanguage == nil { + var ret string + return ret + } + return *o.CaseLanguage +} + +// GetCaseLanguageOk returns a tuple with the CaseLanguage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetCaseLanguageOk() (*string, bool) { + if o == nil || o.CaseLanguage == nil { + return nil, false + } + return o.CaseLanguage, true +} + +// HasCaseLanguage returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasCaseLanguage() bool { + if o != nil && o.CaseLanguage != nil { + return true + } + + return false +} + +// SetCaseLanguage gets a reference to the given string and assigns it to the CaseLanguage field. +func (o *SupportCasesRequest) SetCaseLanguage(v string) { + o.CaseLanguage = &v +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *SupportCasesRequest) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetClusterUuid returns the ClusterUuid field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetClusterUuid() string { + if o == nil || o.ClusterUuid == nil { + var ret string + return ret + } + return *o.ClusterUuid +} + +// GetClusterUuidOk returns a tuple with the ClusterUuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetClusterUuidOk() (*string, bool) { + if o == nil || o.ClusterUuid == nil { + return nil, false + } + return o.ClusterUuid, true +} + +// HasClusterUuid returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasClusterUuid() bool { + if o != nil && o.ClusterUuid != nil { + return true + } + + return false +} + +// SetClusterUuid gets a reference to the given string and assigns it to the ClusterUuid field. +func (o *SupportCasesRequest) SetClusterUuid(v string) { + o.ClusterUuid = &v +} + +// GetContactSsoName returns the ContactSsoName field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetContactSsoName() string { + if o == nil || o.ContactSsoName == nil { + var ret string + return ret + } + return *o.ContactSsoName +} + +// GetContactSsoNameOk returns a tuple with the ContactSsoName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetContactSsoNameOk() (*string, bool) { + if o == nil || o.ContactSsoName == nil { + return nil, false + } + return o.ContactSsoName, true +} + +// HasContactSsoName returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasContactSsoName() bool { + if o != nil && o.ContactSsoName != nil { + return true + } + + return false +} + +// SetContactSsoName gets a reference to the given string and assigns it to the ContactSsoName field. +func (o *SupportCasesRequest) SetContactSsoName(v string) { + o.ContactSsoName = &v +} + +// GetDescription returns the Description field value +func (o *SupportCasesRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *SupportCasesRequest) SetDescription(v string) { + o.Description = v +} + +// GetEventStreamId returns the EventStreamId field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetEventStreamId() string { + if o == nil || o.EventStreamId == nil { + var ret string + return ret + } + return *o.EventStreamId +} + +// GetEventStreamIdOk returns a tuple with the EventStreamId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetEventStreamIdOk() (*string, bool) { + if o == nil || o.EventStreamId == nil { + return nil, false + } + return o.EventStreamId, true +} + +// HasEventStreamId returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasEventStreamId() bool { + if o != nil && o.EventStreamId != nil { + return true + } + + return false +} + +// SetEventStreamId gets a reference to the given string and assigns it to the EventStreamId field. +func (o *SupportCasesRequest) SetEventStreamId(v string) { + o.EventStreamId = &v +} + +// GetOpenshiftClusterId returns the OpenshiftClusterId field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetOpenshiftClusterId() string { + if o == nil || o.OpenshiftClusterId == nil { + var ret string + return ret + } + return *o.OpenshiftClusterId +} + +// GetOpenshiftClusterIdOk returns a tuple with the OpenshiftClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetOpenshiftClusterIdOk() (*string, bool) { + if o == nil || o.OpenshiftClusterId == nil { + return nil, false + } + return o.OpenshiftClusterId, true +} + +// HasOpenshiftClusterId returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasOpenshiftClusterId() bool { + if o != nil && o.OpenshiftClusterId != nil { + return true + } + + return false +} + +// SetOpenshiftClusterId gets a reference to the given string and assigns it to the OpenshiftClusterId field. +func (o *SupportCasesRequest) SetOpenshiftClusterId(v string) { + o.OpenshiftClusterId = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *SupportCasesRequest) SetProduct(v string) { + o.Product = &v +} + +// GetSeverity returns the Severity field value +func (o *SupportCasesRequest) GetSeverity() string { + if o == nil { + var ret string + return ret + } + + return o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetSeverityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Severity, true +} + +// SetSeverity sets field value +func (o *SupportCasesRequest) SetSeverity(v string) { + o.Severity = v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetSubscriptionId() string { + if o == nil || o.SubscriptionId == nil { + var ret string + return ret + } + return *o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetSubscriptionIdOk() (*string, bool) { + if o == nil || o.SubscriptionId == nil { + return nil, false + } + return o.SubscriptionId, true +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId != nil { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given string and assigns it to the SubscriptionId field. +func (o *SupportCasesRequest) SetSubscriptionId(v string) { + o.SubscriptionId = &v +} + +// GetSummary returns the Summary field value +func (o *SupportCasesRequest) GetSummary() string { + if o == nil { + var ret string + return ret + } + + return o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetSummaryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Summary, true +} + +// SetSummary sets field value +func (o *SupportCasesRequest) SetSummary(v string) { + o.Summary = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SupportCasesRequest) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportCasesRequest) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SupportCasesRequest) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SupportCasesRequest) SetVersion(v string) { + o.Version = &v +} + +func (o SupportCasesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccountNumber != nil { + toSerialize["account_number"] = o.AccountNumber + } + if o.CaseLanguage != nil { + toSerialize["case_language"] = o.CaseLanguage + } + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.ClusterUuid != nil { + toSerialize["cluster_uuid"] = o.ClusterUuid + } + if o.ContactSsoName != nil { + toSerialize["contact_sso_name"] = o.ContactSsoName + } + if true { + toSerialize["description"] = o.Description + } + if o.EventStreamId != nil { + toSerialize["event_stream_id"] = o.EventStreamId + } + if o.OpenshiftClusterId != nil { + toSerialize["openshift_cluster_id"] = o.OpenshiftClusterId + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if true { + toSerialize["severity"] = o.Severity + } + if o.SubscriptionId != nil { + toSerialize["subscription_id"] = o.SubscriptionId + } + if true { + toSerialize["summary"] = o.Summary + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableSupportCasesRequest struct { + value *SupportCasesRequest + isSet bool +} + +func (v NullableSupportCasesRequest) Get() *SupportCasesRequest { + return v.value +} + +func (v *NullableSupportCasesRequest) Set(val *SupportCasesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSupportCasesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportCasesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportCasesRequest(val *SupportCasesRequest) *NullableSupportCasesRequest { + return &NullableSupportCasesRequest{value: val, isSet: true} +} + +func (v NullableSupportCasesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportCasesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_template_parameter.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_template_parameter.go new file mode 100644 index 00000000..219af678 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_template_parameter.go @@ -0,0 +1,137 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// TemplateParameter struct for TemplateParameter +type TemplateParameter struct { + Content string `json:"content"` + Name string `json:"name"` +} + +// NewTemplateParameter instantiates a new TemplateParameter 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 NewTemplateParameter(content string, name string) *TemplateParameter { + this := TemplateParameter{} + this.Content = content + this.Name = name + return &this +} + +// NewTemplateParameterWithDefaults instantiates a new TemplateParameter 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 NewTemplateParameterWithDefaults() *TemplateParameter { + this := TemplateParameter{} + return &this +} + +// GetContent returns the Content field value +func (o *TemplateParameter) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *TemplateParameter) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *TemplateParameter) SetContent(v string) { + o.Content = v +} + +// GetName returns the Name field value +func (o *TemplateParameter) 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 *TemplateParameter) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *TemplateParameter) SetName(v string) { + o.Name = v +} + +func (o TemplateParameter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["content"] = o.Content + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableTemplateParameter struct { + value *TemplateParameter + isSet bool +} + +func (v NullableTemplateParameter) Get() *TemplateParameter { + return v.value +} + +func (v *NullableTemplateParameter) Set(val *TemplateParameter) { + v.value = val + v.isSet = true +} + +func (v NullableTemplateParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplateParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplateParameter(val *TemplateParameter) *NullableTemplateParameter { + return &NullableTemplateParameter{value: val, isSet: true} +} + +func (v NullableTemplateParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplateParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review.go new file mode 100644 index 00000000..aa308365 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review.go @@ -0,0 +1,220 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// TermsReview struct for TermsReview +type TermsReview struct { + AccountUsername string `json:"account_username"` + CheckOptionalTerms *bool `json:"check_optional_terms,omitempty"` + EventCode *string `json:"event_code,omitempty"` + SiteCode *string `json:"site_code,omitempty"` +} + +// NewTermsReview instantiates a new TermsReview 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 NewTermsReview(accountUsername string) *TermsReview { + this := TermsReview{} + this.AccountUsername = accountUsername + var checkOptionalTerms bool = true + this.CheckOptionalTerms = &checkOptionalTerms + return &this +} + +// NewTermsReviewWithDefaults instantiates a new TermsReview 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 NewTermsReviewWithDefaults() *TermsReview { + this := TermsReview{} + var checkOptionalTerms bool = true + this.CheckOptionalTerms = &checkOptionalTerms + return &this +} + +// GetAccountUsername returns the AccountUsername field value +func (o *TermsReview) GetAccountUsername() string { + if o == nil { + var ret string + return ret + } + + return o.AccountUsername +} + +// GetAccountUsernameOk returns a tuple with the AccountUsername field value +// and a boolean to check if the value has been set. +func (o *TermsReview) GetAccountUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountUsername, true +} + +// SetAccountUsername sets field value +func (o *TermsReview) SetAccountUsername(v string) { + o.AccountUsername = v +} + +// GetCheckOptionalTerms returns the CheckOptionalTerms field value if set, zero value otherwise. +func (o *TermsReview) GetCheckOptionalTerms() bool { + if o == nil || o.CheckOptionalTerms == nil { + var ret bool + return ret + } + return *o.CheckOptionalTerms +} + +// GetCheckOptionalTermsOk returns a tuple with the CheckOptionalTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TermsReview) GetCheckOptionalTermsOk() (*bool, bool) { + if o == nil || o.CheckOptionalTerms == nil { + return nil, false + } + return o.CheckOptionalTerms, true +} + +// HasCheckOptionalTerms returns a boolean if a field has been set. +func (o *TermsReview) HasCheckOptionalTerms() bool { + if o != nil && o.CheckOptionalTerms != nil { + return true + } + + return false +} + +// SetCheckOptionalTerms gets a reference to the given bool and assigns it to the CheckOptionalTerms field. +func (o *TermsReview) SetCheckOptionalTerms(v bool) { + o.CheckOptionalTerms = &v +} + +// GetEventCode returns the EventCode field value if set, zero value otherwise. +func (o *TermsReview) GetEventCode() string { + if o == nil || o.EventCode == nil { + var ret string + return ret + } + return *o.EventCode +} + +// GetEventCodeOk returns a tuple with the EventCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TermsReview) GetEventCodeOk() (*string, bool) { + if o == nil || o.EventCode == nil { + return nil, false + } + return o.EventCode, true +} + +// HasEventCode returns a boolean if a field has been set. +func (o *TermsReview) HasEventCode() bool { + if o != nil && o.EventCode != nil { + return true + } + + return false +} + +// SetEventCode gets a reference to the given string and assigns it to the EventCode field. +func (o *TermsReview) SetEventCode(v string) { + o.EventCode = &v +} + +// GetSiteCode returns the SiteCode field value if set, zero value otherwise. +func (o *TermsReview) GetSiteCode() string { + if o == nil || o.SiteCode == nil { + var ret string + return ret + } + return *o.SiteCode +} + +// GetSiteCodeOk returns a tuple with the SiteCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TermsReview) GetSiteCodeOk() (*string, bool) { + if o == nil || o.SiteCode == nil { + return nil, false + } + return o.SiteCode, true +} + +// HasSiteCode returns a boolean if a field has been set. +func (o *TermsReview) HasSiteCode() bool { + if o != nil && o.SiteCode != nil { + return true + } + + return false +} + +// SetSiteCode gets a reference to the given string and assigns it to the SiteCode field. +func (o *TermsReview) SetSiteCode(v string) { + o.SiteCode = &v +} + +func (o TermsReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_username"] = o.AccountUsername + } + if o.CheckOptionalTerms != nil { + toSerialize["check_optional_terms"] = o.CheckOptionalTerms + } + if o.EventCode != nil { + toSerialize["event_code"] = o.EventCode + } + if o.SiteCode != nil { + toSerialize["site_code"] = o.SiteCode + } + return json.Marshal(toSerialize) +} + +type NullableTermsReview struct { + value *TermsReview + isSet bool +} + +func (v NullableTermsReview) Get() *TermsReview { + return v.value +} + +func (v *NullableTermsReview) Set(val *TermsReview) { + v.value = val + v.isSet = true +} + +func (v NullableTermsReview) IsSet() bool { + return v.isSet +} + +func (v *NullableTermsReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTermsReview(val *TermsReview) *NullableTermsReview { + return &NullableTermsReview{value: val, isSet: true} +} + +func (v NullableTermsReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTermsReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review_response.go new file mode 100644 index 00000000..51f2ac80 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_terms_review_response.go @@ -0,0 +1,231 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// TermsReviewResponse struct for TermsReviewResponse +type TermsReviewResponse struct { + AccountId string `json:"account_id"` + OrganizationId string `json:"organization_id"` + RedirectUrl *string `json:"redirect_url,omitempty"` + TermsAvailable bool `json:"terms_available"` + TermsRequired bool `json:"terms_required"` +} + +// NewTermsReviewResponse instantiates a new TermsReviewResponse 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 NewTermsReviewResponse(accountId string, organizationId string, termsAvailable bool, termsRequired bool) *TermsReviewResponse { + this := TermsReviewResponse{} + this.AccountId = accountId + this.OrganizationId = organizationId + this.TermsAvailable = termsAvailable + this.TermsRequired = termsRequired + return &this +} + +// NewTermsReviewResponseWithDefaults instantiates a new TermsReviewResponse 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 NewTermsReviewResponseWithDefaults() *TermsReviewResponse { + this := TermsReviewResponse{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *TermsReviewResponse) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *TermsReviewResponse) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *TermsReviewResponse) SetAccountId(v string) { + o.AccountId = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *TermsReviewResponse) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *TermsReviewResponse) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *TermsReviewResponse) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise. +func (o *TermsReviewResponse) GetRedirectUrl() string { + if o == nil || o.RedirectUrl == nil { + var ret string + return ret + } + return *o.RedirectUrl +} + +// GetRedirectUrlOk returns a tuple with the RedirectUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TermsReviewResponse) GetRedirectUrlOk() (*string, bool) { + if o == nil || o.RedirectUrl == nil { + return nil, false + } + return o.RedirectUrl, true +} + +// HasRedirectUrl returns a boolean if a field has been set. +func (o *TermsReviewResponse) HasRedirectUrl() bool { + if o != nil && o.RedirectUrl != nil { + return true + } + + return false +} + +// SetRedirectUrl gets a reference to the given string and assigns it to the RedirectUrl field. +func (o *TermsReviewResponse) SetRedirectUrl(v string) { + o.RedirectUrl = &v +} + +// GetTermsAvailable returns the TermsAvailable field value +func (o *TermsReviewResponse) GetTermsAvailable() bool { + if o == nil { + var ret bool + return ret + } + + return o.TermsAvailable +} + +// GetTermsAvailableOk returns a tuple with the TermsAvailable field value +// and a boolean to check if the value has been set. +func (o *TermsReviewResponse) GetTermsAvailableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TermsAvailable, true +} + +// SetTermsAvailable sets field value +func (o *TermsReviewResponse) SetTermsAvailable(v bool) { + o.TermsAvailable = v +} + +// GetTermsRequired returns the TermsRequired field value +func (o *TermsReviewResponse) GetTermsRequired() bool { + if o == nil { + var ret bool + return ret + } + + return o.TermsRequired +} + +// GetTermsRequiredOk returns a tuple with the TermsRequired field value +// and a boolean to check if the value has been set. +func (o *TermsReviewResponse) GetTermsRequiredOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TermsRequired, true +} + +// SetTermsRequired sets field value +func (o *TermsReviewResponse) SetTermsRequired(v bool) { + o.TermsRequired = v +} + +func (o TermsReviewResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["account_id"] = o.AccountId + } + if true { + toSerialize["organization_id"] = o.OrganizationId + } + if o.RedirectUrl != nil { + toSerialize["redirect_url"] = o.RedirectUrl + } + if true { + toSerialize["terms_available"] = o.TermsAvailable + } + if true { + toSerialize["terms_required"] = o.TermsRequired + } + return json.Marshal(toSerialize) +} + +type NullableTermsReviewResponse struct { + value *TermsReviewResponse + isSet bool +} + +func (v NullableTermsReviewResponse) Get() *TermsReviewResponse { + return v.value +} + +func (v *NullableTermsReviewResponse) Set(val *TermsReviewResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTermsReviewResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTermsReviewResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTermsReviewResponse(val *TermsReviewResponse) *NullableTermsReviewResponse { + return &NullableTermsReviewResponse{value: val, isSet: true} +} + +func (v NullableTermsReviewResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTermsReviewResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_request.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_request.go new file mode 100644 index 00000000..dd091572 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_request.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// TokenAuthorizationRequest struct for TokenAuthorizationRequest +type TokenAuthorizationRequest struct { + AuthorizationToken *string `json:"authorization_token,omitempty"` +} + +// NewTokenAuthorizationRequest instantiates a new TokenAuthorizationRequest 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 NewTokenAuthorizationRequest() *TokenAuthorizationRequest { + this := TokenAuthorizationRequest{} + return &this +} + +// NewTokenAuthorizationRequestWithDefaults instantiates a new TokenAuthorizationRequest 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 NewTokenAuthorizationRequestWithDefaults() *TokenAuthorizationRequest { + this := TokenAuthorizationRequest{} + return &this +} + +// GetAuthorizationToken returns the AuthorizationToken field value if set, zero value otherwise. +func (o *TokenAuthorizationRequest) GetAuthorizationToken() string { + if o == nil || o.AuthorizationToken == nil { + var ret string + return ret + } + return *o.AuthorizationToken +} + +// GetAuthorizationTokenOk returns a tuple with the AuthorizationToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenAuthorizationRequest) GetAuthorizationTokenOk() (*string, bool) { + if o == nil || o.AuthorizationToken == nil { + return nil, false + } + return o.AuthorizationToken, true +} + +// HasAuthorizationToken returns a boolean if a field has been set. +func (o *TokenAuthorizationRequest) HasAuthorizationToken() bool { + if o != nil && o.AuthorizationToken != nil { + return true + } + + return false +} + +// SetAuthorizationToken gets a reference to the given string and assigns it to the AuthorizationToken field. +func (o *TokenAuthorizationRequest) SetAuthorizationToken(v string) { + o.AuthorizationToken = &v +} + +func (o TokenAuthorizationRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AuthorizationToken != nil { + toSerialize["authorization_token"] = o.AuthorizationToken + } + return json.Marshal(toSerialize) +} + +type NullableTokenAuthorizationRequest struct { + value *TokenAuthorizationRequest + isSet bool +} + +func (v NullableTokenAuthorizationRequest) Get() *TokenAuthorizationRequest { + return v.value +} + +func (v *NullableTokenAuthorizationRequest) Set(val *TokenAuthorizationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTokenAuthorizationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenAuthorizationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenAuthorizationRequest(val *TokenAuthorizationRequest) *NullableTokenAuthorizationRequest { + return &NullableTokenAuthorizationRequest{value: val, isSet: true} +} + +func (v NullableTokenAuthorizationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenAuthorizationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_response.go b/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_response.go new file mode 100644 index 00000000..f3b9903d --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/model_token_authorization_response.go @@ -0,0 +1,115 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" +) + +// TokenAuthorizationResponse struct for TokenAuthorizationResponse +type TokenAuthorizationResponse struct { + Account *Account `json:"account,omitempty"` +} + +// NewTokenAuthorizationResponse instantiates a new TokenAuthorizationResponse 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 NewTokenAuthorizationResponse() *TokenAuthorizationResponse { + this := TokenAuthorizationResponse{} + return &this +} + +// NewTokenAuthorizationResponseWithDefaults instantiates a new TokenAuthorizationResponse 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 NewTokenAuthorizationResponseWithDefaults() *TokenAuthorizationResponse { + this := TokenAuthorizationResponse{} + return &this +} + +// GetAccount returns the Account field value if set, zero value otherwise. +func (o *TokenAuthorizationResponse) GetAccount() Account { + if o == nil || o.Account == nil { + var ret Account + return ret + } + return *o.Account +} + +// GetAccountOk returns a tuple with the Account field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenAuthorizationResponse) GetAccountOk() (*Account, bool) { + if o == nil || o.Account == nil { + return nil, false + } + return o.Account, true +} + +// HasAccount returns a boolean if a field has been set. +func (o *TokenAuthorizationResponse) HasAccount() bool { + if o != nil && o.Account != nil { + return true + } + + return false +} + +// SetAccount gets a reference to the given Account and assigns it to the Account field. +func (o *TokenAuthorizationResponse) SetAccount(v Account) { + o.Account = &v +} + +func (o TokenAuthorizationResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Account != nil { + toSerialize["account"] = o.Account + } + return json.Marshal(toSerialize) +} + +type NullableTokenAuthorizationResponse struct { + value *TokenAuthorizationResponse + isSet bool +} + +func (v NullableTokenAuthorizationResponse) Get() *TokenAuthorizationResponse { + return v.value +} + +func (v *NullableTokenAuthorizationResponse) Set(val *TokenAuthorizationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTokenAuthorizationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenAuthorizationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenAuthorizationResponse(val *TokenAuthorizationResponse) *NullableTokenAuthorizationResponse { + return &NullableTokenAuthorizationResponse{value: val, isSet: true} +} + +func (v NullableTokenAuthorizationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenAuthorizationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/response.go b/app-services-sdk-go/accountmgmt/apiv1/client/response.go new file mode 100644 index 00000000..e0638e3a --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/response.go @@ -0,0 +1,47 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/accountmgmt/apiv1/client/utils.go b/app-services-sdk-go/accountmgmt/apiv1/client/utils.go new file mode 100644 index 00000000..e53ac6e1 --- /dev/null +++ b/app-services-sdk-go/accountmgmt/apiv1/client/utils.go @@ -0,0 +1,328 @@ +/* + * Account Management Service API + * + * Manage user subscriptions and clusters + * + * API version: 0.0.1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package accountmgmtclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/.gitignore b/app-services-sdk-go/connectormgmt/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..8a9524c1 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,132 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_connector_clusters.go +api_connector_namespaces.go +api_connector_service.go +api_connector_types.go +api_connectors.go +client.go +configuration.go +docs/AddonParameter.md +docs/Channel.md +docs/Connector.md +docs/ConnectorCluster.md +docs/ConnectorClusterList.md +docs/ConnectorClusterListAllOf.md +docs/ConnectorClusterMeta.md +docs/ConnectorClusterRequest.md +docs/ConnectorClusterRequestMeta.md +docs/ConnectorClusterState.md +docs/ConnectorClusterStatus.md +docs/ConnectorClusterStatusStatus.md +docs/ConnectorClustersApi.md +docs/ConnectorConfiguration.md +docs/ConnectorDesiredState.md +docs/ConnectorList.md +docs/ConnectorListAllOf.md +docs/ConnectorMeta.md +docs/ConnectorMetaAllOf.md +docs/ConnectorNamespace.md +docs/ConnectorNamespaceAllOf.md +docs/ConnectorNamespaceEvalRequest.md +docs/ConnectorNamespaceList.md +docs/ConnectorNamespaceListAllOf.md +docs/ConnectorNamespaceMeta.md +docs/ConnectorNamespaceMetaAllOf.md +docs/ConnectorNamespacePatchRequest.md +docs/ConnectorNamespaceQuota.md +docs/ConnectorNamespaceRequest.md +docs/ConnectorNamespaceRequestAllOf.md +docs/ConnectorNamespaceRequestMeta.md +docs/ConnectorNamespaceState.md +docs/ConnectorNamespaceStatus.md +docs/ConnectorNamespaceTenant.md +docs/ConnectorNamespaceTenantKind.md +docs/ConnectorNamespacesApi.md +docs/ConnectorRequest.md +docs/ConnectorRequestMeta.md +docs/ConnectorServiceApi.md +docs/ConnectorState.md +docs/ConnectorStatus.md +docs/ConnectorStatusStatus.md +docs/ConnectorType.md +docs/ConnectorTypeAllOf.md +docs/ConnectorTypeLabelCount.md +docs/ConnectorTypeLabelCountList.md +docs/ConnectorTypeList.md +docs/ConnectorTypeListAllOf.md +docs/ConnectorTypesApi.md +docs/ConnectorsApi.md +docs/Error.md +docs/KafkaConnectionSettings.md +docs/List.md +docs/ObjectMeta.md +docs/ObjectReference.md +docs/SchemaRegistryConnectionSettings.md +docs/ServiceAccount.md +docs/ServiceConnectionSettings.md +docs/VersionMetadata.md +docs/VersionMetadataAllOf.md +git_push.sh +go.mod +go.sum +model_addon_parameter.go +model_channel.go +model_connector.go +model_connector_cluster.go +model_connector_cluster_list.go +model_connector_cluster_list_all_of.go +model_connector_cluster_meta.go +model_connector_cluster_request.go +model_connector_cluster_request_meta.go +model_connector_cluster_state.go +model_connector_cluster_status.go +model_connector_cluster_status_status.go +model_connector_configuration.go +model_connector_desired_state.go +model_connector_list.go +model_connector_list_all_of.go +model_connector_meta.go +model_connector_meta_all_of.go +model_connector_namespace.go +model_connector_namespace_all_of.go +model_connector_namespace_eval_request.go +model_connector_namespace_list.go +model_connector_namespace_list_all_of.go +model_connector_namespace_meta.go +model_connector_namespace_meta_all_of.go +model_connector_namespace_patch_request.go +model_connector_namespace_quota.go +model_connector_namespace_request.go +model_connector_namespace_request_all_of.go +model_connector_namespace_request_meta.go +model_connector_namespace_state.go +model_connector_namespace_status.go +model_connector_namespace_tenant.go +model_connector_namespace_tenant_kind.go +model_connector_request.go +model_connector_request_meta.go +model_connector_state.go +model_connector_status.go +model_connector_status_status.go +model_connector_type.go +model_connector_type_all_of.go +model_connector_type_label_count.go +model_connector_type_label_count_list.go +model_connector_type_list.go +model_connector_type_list_all_of.go +model_error.go +model_kafka_connection_settings.go +model_list.go +model_object_meta.go +model_object_reference.go +model_schema_registry_connection_settings.go +model_service_account.go +model_service_connection_settings.go +model_version_metadata.go +model_version_metadata_all_of.go +response.go +utils.go diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/.travis.yml b/app-services-sdk-go/connectormgmt/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/README.md b/app-services-sdk-go/connectormgmt/apiv1/client/README.md new file mode 100644 index 00000000..d28880ae --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/README.md @@ -0,0 +1,196 @@ +# Go API client for connectormgmtclient + +Connector Management API is a REST API to manage connectors. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.1.0 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./connectormgmtclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.openshift.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ConnectorClustersApi* | [**CreateConnectorCluster**](docs/ConnectorClustersApi.md#createconnectorcluster) | **Post** /api/connector_mgmt/v1/kafka_connector_clusters | Create a new connector cluster +*ConnectorClustersApi* | [**DeleteConnectorCluster**](docs/ConnectorClustersApi.md#deleteconnectorcluster) | **Delete** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | Delete a connector cluster +*ConnectorClustersApi* | [**GetConnectorCluster**](docs/ConnectorClustersApi.md#getconnectorcluster) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | Get a connector cluster +*ConnectorClustersApi* | [**GetConnectorClusterAddonParameters**](docs/ConnectorClustersApi.md#getconnectorclusteraddonparameters) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/addon_parameters | Get a connector cluster's addon parameters +*ConnectorClustersApi* | [**GetConnectorClusterNamespaces**](docs/ConnectorClustersApi.md#getconnectorclusternamespaces) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/namespaces | Get a connector cluster's namespaces +*ConnectorClustersApi* | [**ListConnectorClusters**](docs/ConnectorClustersApi.md#listconnectorclusters) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters | Returns a list of connector clusters +*ConnectorClustersApi* | [**UpdateConnectorClusterById**](docs/ConnectorClustersApi.md#updateconnectorclusterbyid) | **Put** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | udpate a connector cluster +*ConnectorNamespacesApi* | [**CreateEvaluationNamespace**](docs/ConnectorNamespacesApi.md#createevaluationnamespace) | **Post** /api/connector_mgmt/v1/kafka_connector_namespaces/eval | Create a new short lived evaluation connector namespace +*ConnectorNamespacesApi* | [**GetConnectorNamespace**](docs/ConnectorNamespacesApi.md#getconnectornamespace) | **Get** /api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id} | Get a connector namespace +*ConnectorNamespacesApi* | [**ListConnectorNamespaces**](docs/ConnectorNamespacesApi.md#listconnectornamespaces) | **Get** /api/connector_mgmt/v1/kafka_connector_namespaces | Returns a list of connector namespaces +*ConnectorServiceApi* | [**GetVersionMetadata**](docs/ConnectorServiceApi.md#getversionmetadata) | **Get** /api/connector_mgmt/v1 | Returns the version metadata +*ConnectorTypesApi* | [**GetConnectorTypeByID**](docs/ConnectorTypesApi.md#getconnectortypebyid) | **Get** /api/connector_mgmt/v1/kafka_connector_types/{connector_type_id} | Get a connector type by id +*ConnectorTypesApi* | [**GetConnectorTypeLabels**](docs/ConnectorTypesApi.md#getconnectortypelabels) | **Get** /api/connector_mgmt/v1/kafka_connector_types/labels | Returns a list of connector type labels +*ConnectorTypesApi* | [**GetConnectorTypes**](docs/ConnectorTypesApi.md#getconnectortypes) | **Get** /api/connector_mgmt/v1/kafka_connector_types | Returns a list of connector types +*ConnectorsApi* | [**CreateConnector**](docs/ConnectorsApi.md#createconnector) | **Post** /api/connector_mgmt/v1/kafka_connectors | Create a new connector +*ConnectorsApi* | [**DeleteConnector**](docs/ConnectorsApi.md#deleteconnector) | **Delete** /api/connector_mgmt/v1/kafka_connectors/{id} | Delete a connector +*ConnectorsApi* | [**GetConnector**](docs/ConnectorsApi.md#getconnector) | **Get** /api/connector_mgmt/v1/kafka_connectors/{id} | Get a connector +*ConnectorsApi* | [**ListConnectors**](docs/ConnectorsApi.md#listconnectors) | **Get** /api/connector_mgmt/v1/kafka_connectors | Returns a list of connector types +*ConnectorsApi* | [**PatchConnector**](docs/ConnectorsApi.md#patchconnector) | **Patch** /api/connector_mgmt/v1/kafka_connectors/{id} | Patch a connector + + +## Documentation For Models + + - [AddonParameter](docs/AddonParameter.md) + - [Channel](docs/Channel.md) + - [Connector](docs/Connector.md) + - [ConnectorCluster](docs/ConnectorCluster.md) + - [ConnectorClusterList](docs/ConnectorClusterList.md) + - [ConnectorClusterListAllOf](docs/ConnectorClusterListAllOf.md) + - [ConnectorClusterMeta](docs/ConnectorClusterMeta.md) + - [ConnectorClusterRequest](docs/ConnectorClusterRequest.md) + - [ConnectorClusterRequestMeta](docs/ConnectorClusterRequestMeta.md) + - [ConnectorClusterState](docs/ConnectorClusterState.md) + - [ConnectorClusterStatus](docs/ConnectorClusterStatus.md) + - [ConnectorClusterStatusStatus](docs/ConnectorClusterStatusStatus.md) + - [ConnectorConfiguration](docs/ConnectorConfiguration.md) + - [ConnectorDesiredState](docs/ConnectorDesiredState.md) + - [ConnectorList](docs/ConnectorList.md) + - [ConnectorListAllOf](docs/ConnectorListAllOf.md) + - [ConnectorMeta](docs/ConnectorMeta.md) + - [ConnectorMetaAllOf](docs/ConnectorMetaAllOf.md) + - [ConnectorNamespace](docs/ConnectorNamespace.md) + - [ConnectorNamespaceAllOf](docs/ConnectorNamespaceAllOf.md) + - [ConnectorNamespaceEvalRequest](docs/ConnectorNamespaceEvalRequest.md) + - [ConnectorNamespaceList](docs/ConnectorNamespaceList.md) + - [ConnectorNamespaceListAllOf](docs/ConnectorNamespaceListAllOf.md) + - [ConnectorNamespaceMeta](docs/ConnectorNamespaceMeta.md) + - [ConnectorNamespaceMetaAllOf](docs/ConnectorNamespaceMetaAllOf.md) + - [ConnectorNamespacePatchRequest](docs/ConnectorNamespacePatchRequest.md) + - [ConnectorNamespaceQuota](docs/ConnectorNamespaceQuota.md) + - [ConnectorNamespaceRequest](docs/ConnectorNamespaceRequest.md) + - [ConnectorNamespaceRequestAllOf](docs/ConnectorNamespaceRequestAllOf.md) + - [ConnectorNamespaceRequestMeta](docs/ConnectorNamespaceRequestMeta.md) + - [ConnectorNamespaceState](docs/ConnectorNamespaceState.md) + - [ConnectorNamespaceStatus](docs/ConnectorNamespaceStatus.md) + - [ConnectorNamespaceTenant](docs/ConnectorNamespaceTenant.md) + - [ConnectorNamespaceTenantKind](docs/ConnectorNamespaceTenantKind.md) + - [ConnectorRequest](docs/ConnectorRequest.md) + - [ConnectorRequestMeta](docs/ConnectorRequestMeta.md) + - [ConnectorState](docs/ConnectorState.md) + - [ConnectorStatus](docs/ConnectorStatus.md) + - [ConnectorStatusStatus](docs/ConnectorStatusStatus.md) + - [ConnectorType](docs/ConnectorType.md) + - [ConnectorTypeAllOf](docs/ConnectorTypeAllOf.md) + - [ConnectorTypeLabelCount](docs/ConnectorTypeLabelCount.md) + - [ConnectorTypeLabelCountList](docs/ConnectorTypeLabelCountList.md) + - [ConnectorTypeList](docs/ConnectorTypeList.md) + - [ConnectorTypeListAllOf](docs/ConnectorTypeListAllOf.md) + - [Error](docs/Error.md) + - [KafkaConnectionSettings](docs/KafkaConnectionSettings.md) + - [List](docs/List.md) + - [ObjectMeta](docs/ObjectMeta.md) + - [ObjectReference](docs/ObjectReference.md) + - [SchemaRegistryConnectionSettings](docs/SchemaRegistryConnectionSettings.md) + - [ServiceAccount](docs/ServiceAccount.md) + - [ServiceConnectionSettings](docs/ServiceConnectionSettings.md) + - [VersionMetadata](docs/VersionMetadata.md) + - [VersionMetadataAllOf](docs/VersionMetadataAllOf.md) + + +## Documentation For Authorization + + + +### Bearer + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +rhosak-support@redhat.com + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/connectormgmt/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..6e9819f2 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api/openapi.yaml @@ -0,0 +1,2453 @@ +openapi: 3.0.0 +info: + contact: + email: rhosak-support@redhat.com + name: Red Hat OpenShift Streams for Apache Kafka Support + description: Connector Management API is a REST API to manage connectors. + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + title: Connector Management API + version: 0.1.0 +servers: +- description: Main (production) server + url: https://api.openshift.com +- description: Staging server + url: https://api.stage.openshift.com +- description: localhost + url: http://localhost:8000 +- description: current domain + url: / +tags: +- name: Connector Types +- name: Connectors +- name: Connector Clusters +- name: Connector Service +- name: Connector Namespaces +paths: + /api/connector_mgmt/v1: + get: + description: Returns the version metadata + operationId: getVersionMetadata + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VersionMetadata' + description: Version metadata + summary: Returns the version metadata + tags: + - Connector Service + /api/connector_mgmt/v1/kafka_connector_types/{connector_type_id}: + get: + description: Get a connector type by id + operationId: getConnectorTypeByID + parameters: + - description: The id of the connector type + explode: false + in: path + name: connector_type_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + ConnectorTypeExample: + $ref: '#/components/examples/ConnectorTypeExample' + schema: + $ref: '#/components/schemas/ConnectorType' + description: The connector type matching the request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector type exists + "410": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/410Example' + schema: + $ref: '#/components/schemas/Error' + description: Connector type doesn't exist anymore + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector type by id + tags: + - Connector Types + /api/connector_mgmt/v1/kafka_connector_types: + get: + description: Returns a list of connector types + operationId: getConnectorTypes + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorTypeList' + description: A list of connector types + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of connector types + tags: + - Connector Types + /api/connector_mgmt/v1/kafka_connector_types/labels: + get: + description: Returns a list of connector type labels + operationId: getConnectorTypeLabels + parameters: + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorTypeLabelCountList' + description: A list of connector type labels + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of connector type labels + tags: + - Connector Types + /api/connector_mgmt/v1/kafka_connectors: + get: + description: Returns a list of connector types + operationId: listConnectors + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorList' + description: A list of connectors + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of connector types + tags: + - Connectors + post: + description: Create a new connector + operationId: createConnector + parameters: + - description: Perform the action in an asynchronous manner + explode: true + in: query + name: async + required: true + schema: + type: boolean + style: form + requestBody: + content: + application/json: + examples: + ConnectorCreateExample: + $ref: '#/components/examples/ConnectorCreateExample' + schema: + $ref: '#/components/schemas/ConnectorRequest' + description: Connector data + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Connector' + description: Accepted + "400": + content: + application/json: + examples: + "400CreationExample": + $ref: '#/components/examples/400CreationExample' + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the connector + security: + - Bearer: [] + summary: Create a new connector + tags: + - Connectors + /api/connector_mgmt/v1/kafka_connectors/{id}: + delete: + description: Delete a connector + operationId: deleteConnector + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Deleted + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404DeleteExample": + $ref: '#/components/examples/404DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: No kafka request with specified ID exists + "500": + content: + application/json: + examples: + "500DeleteExample": + $ref: '#/components/examples/500DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Delete a connector + tags: + - Connectors + get: + description: Get a connector + operationId: getConnector + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Connector' + description: The connector matching the request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector exists + "410": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/410Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist anymore + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector + tags: + - Connectors + patch: + description: Patch a connector + operationId: patchConnector + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/merge-patch+json: + schema: + type: object + application/json-patch+json: + schema: + description: A JSON Patch, RFC 6902 - https://tools.ietf.org/html/rfc6902 + type: object + application/json: + schema: + $ref: '#/components/schemas/ConnectorRequest' + description: Data to patch the connector with + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Connector' + description: The connector matching the request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching resource exists + "410": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/410Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist anymore + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Patch a connector + tags: + - Connectors + /api/connector_mgmt/v1/kafka_connector_clusters: + get: + description: Returns a list of connector clusters + operationId: listConnectorClusters + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorClusterList' + description: A list of connector clusters + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of connector clusters + tags: + - Connector Clusters + post: + description: Create a new connector cluster + operationId: createConnectorCluster + parameters: + - description: Perform the action in an asynchronous manner + explode: true + in: query + name: async + required: true + schema: + type: boolean + style: form + requestBody: + content: + application/json: + examples: + ConnectorClusterCreateExample: + $ref: '#/components/examples/ConnectorClusterCreateExample' + schema: + $ref: '#/components/schemas/ConnectorClusterRequest' + description: Connector cluster data + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorCluster' + description: Accepted + "400": + content: + application/json: + examples: + "400CreationExample": + $ref: '#/components/examples/400CreationExample' + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the connector cluster + security: + - Bearer: [] + summary: Create a new connector cluster + tags: + - Connector Clusters + /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}: + delete: + description: Delete a connector cluster + operationId: deleteConnectorCluster + parameters: + - description: The id of the connector cluster + explode: false + in: path + name: connector_cluster_id + required: true + schema: + type: string + style: simple + responses: + "204": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Deleted + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404DeleteExample": + $ref: '#/components/examples/404DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: No resource with specified ID exists + "500": + content: + application/json: + examples: + "500DeleteExample": + $ref: '#/components/examples/500DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Delete a connector cluster + tags: + - Connector Clusters + get: + description: Get a connector cluster + operationId: getConnectorCluster + parameters: + - description: The id of the connector cluster + explode: false + in: path + name: connector_cluster_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorCluster' + description: The connector cluster matching the request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector cluster type exists + "410": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/410Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist anymore + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector cluster + tags: + - Connector Clusters + put: + description: udpate a connector cluster + operationId: updateConnectorClusterById + parameters: + - description: The id of the connector cluster + explode: false + in: path + name: connector_cluster_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorClusterRequest' + description: Data to updated connector with + required: true + responses: + "204": + description: Cluster status is updated + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector cluster exists + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: udpate a connector cluster + tags: + - Connector Clusters + /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/addon_parameters: + get: + description: Get a connector cluster's addon parameters + operationId: getConnectorClusterAddonParameters + parameters: + - description: The id of the connector cluster + explode: false + in: path + name: connector_cluster_id + required: true + schema: + type: string + style: simple + - description: Resets cluster service account credentials when true + explode: true + in: query + name: reset_credentials + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AddonParameterList' + description: The parameters that should be used to configure the managed + connector addon on the cluster. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector cluster type exists + "410": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/410Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist anymore + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector cluster's addon parameters + tags: + - Connector Clusters + /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/namespaces: + get: + description: Get a connector cluster's namespaces + operationId: getConnectorClusterNamespaces + parameters: + - description: The id of the connector cluster + explode: false + in: path + name: connector_cluster_id + required: true + schema: + type: string + style: simple + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorNamespaceList' + description: The namespaces visible to user in the cluster. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector cluster type exists + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector cluster's namespaces + tags: + - Connector Clusters + /api/connector_mgmt/v1/kafka_connector_namespaces: + get: + description: Returns a list of connector namespaces + operationId: listConnectorNamespaces + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorNamespaceList' + description: A list of connector namespaces + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Returns a list of connector namespaces + tags: + - Connector Namespaces + /api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id}: + get: + description: Get a connector namespace + operationId: getConnectorNamespace + parameters: + - description: The id of the connector namespace + explode: false + in: path + name: connector_namespace_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorNamespace' + description: The connector namespace matching the request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No matching connector namespace type exists + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + summary: Get a connector namespace + tags: + - Connector Namespaces + /api/connector_mgmt/v1/kafka_connector_namespaces/eval: + post: + description: Create a new evaluation connector namespace + operationId: createEvaluationNamespace + requestBody: + content: + application/json: + examples: + ConnectorNamespaceEvalCreateExample: + $ref: '#/components/examples/ConnectorNamespaceEvalCreateExample' + schema: + $ref: '#/components/schemas/ConnectorNamespaceEvalRequest' + description: Connector namespace data + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ConnectorNamespace' + description: Accepted + "400": + content: + application/json: + examples: + "400CreationExample": + $ref: '#/components/examples/400CreationExample' + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred creating the connector namespace + security: + - Bearer: [] + summary: Create a new short lived evaluation connector namespace + tags: + - Connector Namespaces +components: + examples: + ConnectorClusterCreateExample: + value: + name: MyCluster + ConnectorTypeExample: + value: + id: log_sink_0.1 + kind: ConnectorType + href: /api/connector_mgmt/v1/kafka_connector_types/log_sink_0.1 + name: Log Sink + version: "0.1" + channels: + - stable + description: Log Sink + icon_href: /api/connector_mgmt/v1/kafka_connector_types/log_sink.png + labels: + - sink + capabilities: + - data_shape + - processors + schema: + properties: + common: + required: [] + title: Log + type: object + properties: + multi_line: + default: false + description: Multi Line + title: Multi Line + type: boolean + x-group: endpoint + show_all: + default: false + description: Show All + title: Show All + type: boolean + x-group: endpoint + topics: + description: Comma separated list of Kafka topic names + title: Topic names + type: string + x-group: kafka + steps: + type: array + items: + oneOf: + - properties: + insert_field: + description: Adds a custom field with a constant value to the + message in transit. + properties: + field: + description: The name of the field to be added + title: Field + type: string + value: + description: The value of the field + title: Value + type: string + required: + - field + - value + title: Insert Field Action + type: object + required: + - insert_field + type: object + - properties: + extract_field: + description: Extract a field from the body + properties: + field: + description: The name of the field to be added + title: Field + type: string + required: + - field + title: Extract Field Action + type: object + required: + - extract_field + type: object + - properties: + has_header_filter: + description: Filter based on the presence of one header + properties: + name: + description: The header name to evaluate + example: headerName + title: Header Name + type: string + required: + - name + title: Has Header Filter Action + type: object + required: + - has_header_filter + type: object + ConnectorCreateExample: + value: + name: MyLogger + namespace_id: 9bsv0s7tne7g02gh5g4g + kafka: + id: 9bsv0s6brfr002pfnkh0 + client_id: srvc-acct-162ef2d8-0209-4117-8462-df63c2025c26 + client_secret: b144d991-08eb-4472-8ec1-eb034c69231b + url: foo-9bsv0s6brfr002pfnkh0.kas.acme.com:443 + schema_registry: + id: 9bsv0s0k8lng031se9q0 + client_id: srvc-acct-e025265e-a88a-44fb-8450-ed010eb6bc5c + client_secret: dc5a8298-bed7-422e-8947-f6fda69292ff + url: bar-9bsv0s2mfca002t9q7sg.srs.acme.com:443 + channel: stable + connector_type_id: log_sink_0.1 + connector: + common: + show_all: true + multi_lines: true + topics: foo,bar + data_shape: + key: + format: STRING + value: + format: JSON + processors: + - insert_field: + name: fieldName + value: fieldValue + desired_state: ready + error_handling: + dead_letter_queue: + topic: dlq + service_account: + client_id: SA-121212 + client_secret: secret + ConnectorNamespaceCreateExample: + value: + name: MyNamespace + cluster_id: 9bsv0s7tne7g02gh5g4g + annotations: + connector_mgmt.bf2.org/profile: default-profile + ConnectorNamespaceEvalCreateExample: + value: + name: MyEvalNamespace + annotations: + connector_mgmt.bf2.org/profile: evaluation-profile + "400CreationExample": + value: + id: "103" + kind: Error + href: /api/connector_mgmt/v1/errors/103 + code: CONNECTOR-MGMT-103 + reason: Synchronous action is not supported, use async=true parameter + operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa + "400InvalidQueryExample": + value: + id: "203" + kind: Error + href: /api/connector_mgmt/v1/errors/23 + code: CONNECTOR-MGMT-23 + reason: | + Failed to parse search query: Unable to list Kafka requests for api_kafka_service: CONNECTOR-MGMT-23: + Failed to parse search query: Unsupported column name for search: 'id'. Supported column names are: + region, name, cloud_provider, name, status. Query invalid: id = 123 + operation_id: 1lWDGuybIrEnxrAem724gqkkiDv + "404Example": + value: + id: "404" + kind: Error + href: /api/connector_mgmt/v1/errors/7 + code: CONNECTOR-MGMT-7 + reason: The requested resource doesn't exist + "410Example": + value: + id: "410" + kind: Error + href: /api/connector_mgmt/v1/errors/25 + code: CONNECTOR-MGMT-25 + reason: The requested resource has been deleted + "404DeleteExample": + value: + id: "7" + kind: Error + href: /api/connector_mgmt/v1/errors/7 + code: CONNECTOR-MGMT-7 + reason: Connector with id='1iK3duVYIvv5YvLlyz1mGR3JyqN' not found + operation_id: 1iYO7g2g6HTdUKUa2ksH82kQD3y + "401Example": + value: + id: "11" + kind: Error + href: /api/connector_mgmt/v1/errors/11 + code: CONNECTOR-MGMT-11 + reason: 'Unable to verify JWT token: Required authorization token not found' + operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD + "409NameConflictExample": + value: + id: "36" + kind: Error + href: /api/connector_mgmt/v1/errors/36 + code: CONNECTOR-MGMT-36 + reason: Conenctor name is already used + operation_id: 6kY0UiEkzkXCzWPeI2oYehd3ED + "500Example": + value: + id: "9" + kind: Error + href: /api/connector_mgmt/v1/errors/9 + code: CONNECTOR-MGMT-9 + reason: Unspecified error + operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW + "500DeleteExample": + value: + id: "9" + kind: Error + href: /api/connector_mgmt/v1/errors/9 + code: CONNECTOR-MGMT-9 + reason: | + Error deleting syncset: OCM-EX-9: failed to delete syncset: ext-serviceapi-1ix03lndlmq0qfc7sita5sljv8e + for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier + is '404', code is 'CLUSTERS-MGMT-404' and operation identifier is '1g5or50viu07oealuehrkc26dgftj1ac': + Cluster '1g5d88q0lrcdv4g7alb7slfgnj3dhbsj' not found) + operation_id: 1iYTsWry6nsqb2sNmFj5bXpD7Ca + parameters: + id: + description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + page: + description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + size: + description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + orderBy: + description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the underlying resource fields supported in the search parameter. + For example, to return all Connector types ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Connector types ordered by their name _and_ version, use the following syntax: + + ```sql + name asc, version asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + search: + description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of a + SQL statement. + + Allowed fields in the search depend on the resource type: + + * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id + * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state + * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank + * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url + + Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. + + Examples: + + To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: + + ``` + name = aws-sqs-source and channel = stable + ```[p-] + + To return a connector instance with a name that starts with `aws`, use the following syntax: + + ``` + name like aws%25 + ``` + + To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: + + ``` + name ilike %25aws%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the resources + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = aws-sqs-source and channel = stable + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + schemas: + List: + properties: + kind: + type: string + page: + type: integer + size: + type: integer + total: + type: integer + items: + items: + $ref: '#/components/schemas/ObjectReference' + type: array + required: + - items + - kind + - page + - size + - total + type: object + Error: + example: + reason: reason + code: code + kind: kind + operation_id: operation_id + id: id + href: href + nullable: true + properties: + reason: + type: string + operation_id: + type: string + id: + type: string + kind: + type: string + href: + type: string + code: + type: string + required: + - code + - href + - id + - kind + - reason + type: object + ObjectReference: + properties: + id: + type: string + kind: + type: string + href: + type: string + type: object + ObjectMeta: + properties: + owner: + type: string + created_at: + format: date-time + type: string + modified_at: + format: date-time + type: string + type: object + ServiceConnectionSettings: + properties: + id: + type: string + url: + type: string + required: + - id + - url + ServiceAccount: + properties: + client_id: + type: string + client_secret: + type: string + required: + - client_id + - client_secret + VersionMetadata: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/VersionMetadata_allOf' + KafkaConnectionSettings: + allOf: + - $ref: '#/components/schemas/ServiceConnectionSettings' + description: Holds the configuration to connect to a Kafka Instance. + SchemaRegistryConnectionSettings: + allOf: + - $ref: '#/components/schemas/ServiceConnectionSettings' + description: Holds the configuration to connect to a Schem Registry Instance. + AddonParameter: + description: A addon parameter + example: + id: id + value: value + properties: + id: + type: string + value: + type: string + type: object + AddonParameterList: + description: A list of addon parameters + items: + $ref: '#/components/schemas/AddonParameter' + type: array + ConnectorClusterState: + enum: + - disconnected + - ready + - deleting + type: string + ConnectorClusterRequestMeta: + properties: + name: + type: string + ConnectorClusterRequest: + allOf: + - $ref: '#/components/schemas/ConnectorClusterRequestMeta' + description: Schema for the request to update a data plane cluster's name + ConnectorClusterMeta: + allOf: + - $ref: '#/components/schemas/ObjectMeta' + - $ref: '#/components/schemas/ConnectorClusterRequestMeta' + ConnectorClusterStatus: + properties: + status: + $ref: '#/components/schemas/ConnectorClusterStatus_status' + ConnectorCluster: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConnectorClusterMeta' + - $ref: '#/components/schemas/ConnectorClusterStatus' + ConnectorClusterList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConnectorClusterList_allOf' + Channel: + default: stable + enum: + - stable + type: string + ConnectorDesiredState: + enum: + - unassigned + - ready + - stopped + - deleted + type: string + ConnectorState: + enum: + - assigning + - assigned + - updating + - ready + - stopped + - failed + - deleting + - deleted + - provisioning + - deprovisioning + type: string + ConnectorConfiguration: + properties: + kafka: + $ref: '#/components/schemas/KafkaConnectionSettings' + service_account: + $ref: '#/components/schemas/ServiceAccount' + schema_registry: + $ref: '#/components/schemas/SchemaRegistryConnectionSettings' + connector: + type: object + required: + - connector + - kafka + - service_account + ConnectorRequestMeta: + properties: + name: + type: string + connector_type_id: + type: string + namespace_id: + type: string + channel: + $ref: '#/components/schemas/Channel' + desired_state: + $ref: '#/components/schemas/ConnectorDesiredState' + required: + - connector_type_id + - desired_state + - name + - namespace_id + ConnectorRequest: + allOf: + - $ref: '#/components/schemas/ConnectorRequestMeta' + - $ref: '#/components/schemas/ConnectorConfiguration' + ConnectorMeta: + allOf: + - $ref: '#/components/schemas/ObjectMeta' + - $ref: '#/components/schemas/ConnectorRequestMeta' + - $ref: '#/components/schemas/ConnectorMeta_allOf' + ConnectorStatus: + properties: + status: + $ref: '#/components/schemas/ConnectorStatus_status' + Connector: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConnectorMeta' + - $ref: '#/components/schemas/ConnectorConfiguration' + - $ref: '#/components/schemas/ConnectorStatus' + ConnectorList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConnectorList_allOf' + ConnectorType: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConnectorType_allOf' + description: Represents a connector type supported by the API + required: + - name + - schema + - version + ConnectorTypeList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConnectorTypeList_allOf' + ConnectorTypeLabelCount: + description: Represents a connector type label and the number of types with + that label + example: + count: 0 + label: label + properties: + label: + description: Name of the connector type label. + type: string + count: + description: Number of connector types with this label. + format: int32 + type: integer + required: + - count + - label + type: object + ConnectorTypeLabelCountList: + example: + items: + - count: 0 + label: label + - count: 0 + label: label + properties: + items: + items: + $ref: '#/components/schemas/ConnectorTypeLabelCount' + type: array + type: object + ConnectorNamespaceRequestMeta: + properties: + name: + description: Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, + or it may be empty to be auto-generated. + pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$ + type: string + annotations: + additionalProperties: + type: string + type: object + type: object + ConnectorNamespaceQuota: + properties: + connectors: + format: int32 + type: integer + memory_requests: + description: Memory quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + memory_limits: + description: Memory quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + cpu_requests: + description: CPU quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + cpu_limits: + description: CPU quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + type: object + ConnectorNamespaceMeta: + allOf: + - $ref: '#/components/schemas/ObjectMeta' + - $ref: '#/components/schemas/ConnectorNamespaceRequestMeta' + - $ref: '#/components/schemas/ConnectorNamespaceMeta_allOf' + ConnectorNamespaceTenantKind: + enum: + - user + - organisation + type: string + ConnectorNamespaceTenant: + properties: + kind: + $ref: '#/components/schemas/ConnectorNamespaceTenantKind' + id: + description: Either user or organisation id depending on the value of kind + type: string + required: + - id + - kind + type: object + ConnectorNamespaceRequest: + allOf: + - $ref: '#/components/schemas/ConnectorNamespaceRequestMeta' + - $ref: '#/components/schemas/ConnectorNamespaceRequest_allOf' + description: A connector namespace create request + required: + - cluster_id + - kind + - name + ConnectorNamespacePatchRequest: + allOf: + - $ref: '#/components/schemas/ConnectorNamespaceRequestMeta' + - type: object + description: A connector namespace patch request + ConnectorNamespaceEvalRequest: + allOf: + - $ref: '#/components/schemas/ConnectorNamespaceRequestMeta' + description: An evaluation connector namespace create request + ConnectorNamespaceList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConnectorNamespaceList_allOf' + ConnectorNamespaceState: + enum: + - disconnected + - ready + - deleting + - deleted + type: string + ConnectorNamespaceStatus: + properties: + state: + $ref: '#/components/schemas/ConnectorNamespaceState' + version: + type: string + connectors_deployed: + format: int32 + type: integer + error: + type: string + required: + - connectors_deployed + - state + type: object + ConnectorNamespace: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConnectorNamespaceMeta' + - $ref: '#/components/schemas/ConnectorNamespace_allOf' + description: A connector namespace + MemoryQuota: + description: Memory quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + CpuQuota: + description: CPU quota for limits or requests + pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$ + type: string + VersionMetadata_allOf: + example: + kind: APIVersion + id: v1 + href: /api/connector_mgmt/v1 + collections: + - id: kafkas + href: /api/connector_mgmt/v1/kafka_connectors + kind: ConnectorList + properties: + collections: + items: + allOf: + - $ref: '#/components/schemas/ObjectReference' + type: array + type: object + ConnectorClusterStatus_status: + properties: + state: + $ref: '#/components/schemas/ConnectorClusterState' + error: + type: string + type: object + ConnectorClusterList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ConnectorCluster' + type: array + type: object + ConnectorMeta_allOf: + properties: + resource_version: + format: int64 + type: integer + type: object + ConnectorStatus_status: + properties: + state: + $ref: '#/components/schemas/ConnectorState' + error: + type: string + type: object + ConnectorList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Connector' + type: array + type: object + ConnectorType_allOf: + properties: + name: + description: Name of the connector type. + type: string + version: + description: Version of the connector type. + type: string + channels: + description: Channels of the connector type. + items: + $ref: '#/components/schemas/Channel' + type: array + description: + description: A description of the connector. + type: string + icon_href: + description: URL to an icon of the connector. + type: string + labels: + description: Labels used to categorize the connector + items: + type: string + type: array + featured_rank: + description: Ranking for featured connectors + format: int32 + type: integer + capabilities: + description: The capabilities supported by the conenctor + items: + type: string + type: array + schema: + description: A json schema that can be used to validate a ConnectorRequest + connector field. + type: object + type: object + ConnectorTypeList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ConnectorType' + type: array + type: object + ConnectorNamespaceMeta_allOf: + properties: + resource_version: + format: int64 + type: integer + quota: + $ref: '#/components/schemas/ConnectorNamespaceQuota' + type: object + ConnectorNamespaceRequest_allOf: + properties: + cluster_id: + type: string + kind: + $ref: '#/components/schemas/ConnectorNamespaceTenantKind' + type: object + ConnectorNamespaceList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ConnectorNamespace' + type: array + type: object + ConnectorNamespace_allOf: + properties: + name: + type: string + cluster_id: + type: string + expiration: + description: Namespace expiration timestamp in RFC 3339 format + type: string + tenant: + $ref: '#/components/schemas/ConnectorNamespaceTenant' + status: + $ref: '#/components/schemas/ConnectorNamespaceStatus' + required: + - cluster_id + - id + - name + - resource_version + - status + - tenant + type: object + securitySchemes: + Bearer: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_clusters.go b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_clusters.go new file mode 100644 index 00000000..79b1fd9a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_clusters.go @@ -0,0 +1,1181 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ConnectorClustersApi interface { + + /* + * CreateConnectorCluster Create a new connector cluster + * Create a new connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateConnectorClusterRequest + */ + CreateConnectorCluster(ctx _context.Context) ApiCreateConnectorClusterRequest + + /* + * CreateConnectorClusterExecute executes the request + * @return ConnectorCluster + */ + CreateConnectorClusterExecute(r ApiCreateConnectorClusterRequest) (ConnectorCluster, *_nethttp.Response, error) + + /* + * DeleteConnectorCluster Delete a connector cluster + * Delete a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiDeleteConnectorClusterRequest + */ + DeleteConnectorCluster(ctx _context.Context, connectorClusterId string) ApiDeleteConnectorClusterRequest + + /* + * DeleteConnectorClusterExecute executes the request + * @return Error + */ + DeleteConnectorClusterExecute(r ApiDeleteConnectorClusterRequest) (Error, *_nethttp.Response, error) + + /* + * GetConnectorCluster Get a connector cluster + * Get a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterRequest + */ + GetConnectorCluster(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterRequest + + /* + * GetConnectorClusterExecute executes the request + * @return ConnectorCluster + */ + GetConnectorClusterExecute(r ApiGetConnectorClusterRequest) (ConnectorCluster, *_nethttp.Response, error) + + /* + * GetConnectorClusterAddonParameters Get a connector cluster's addon parameters + * Get a connector cluster's addon parameters + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterAddonParametersRequest + */ + GetConnectorClusterAddonParameters(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterAddonParametersRequest + + /* + * GetConnectorClusterAddonParametersExecute executes the request + * @return []AddonParameter + */ + GetConnectorClusterAddonParametersExecute(r ApiGetConnectorClusterAddonParametersRequest) ([]AddonParameter, *_nethttp.Response, error) + + /* + * GetConnectorClusterNamespaces Get a connector cluster's namespaces + * Get a connector cluster's namespaces + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterNamespacesRequest + */ + GetConnectorClusterNamespaces(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterNamespacesRequest + + /* + * GetConnectorClusterNamespacesExecute executes the request + * @return ConnectorNamespaceList + */ + GetConnectorClusterNamespacesExecute(r ApiGetConnectorClusterNamespacesRequest) (ConnectorNamespaceList, *_nethttp.Response, error) + + /* + * ListConnectorClusters Returns a list of connector clusters + * Returns a list of connector clusters + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorClustersRequest + */ + ListConnectorClusters(ctx _context.Context) ApiListConnectorClustersRequest + + /* + * ListConnectorClustersExecute executes the request + * @return ConnectorClusterList + */ + ListConnectorClustersExecute(r ApiListConnectorClustersRequest) (ConnectorClusterList, *_nethttp.Response, error) + + /* + * UpdateConnectorClusterById udpate a connector cluster + * udpate a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiUpdateConnectorClusterByIdRequest + */ + UpdateConnectorClusterById(ctx _context.Context, connectorClusterId string) ApiUpdateConnectorClusterByIdRequest + + /* + * UpdateConnectorClusterByIdExecute executes the request + */ + UpdateConnectorClusterByIdExecute(r ApiUpdateConnectorClusterByIdRequest) (*_nethttp.Response, error) +} + +// ConnectorClustersApiService ConnectorClustersApi service +type ConnectorClustersApiService service + +type ApiCreateConnectorClusterRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + async *bool + connectorClusterRequest *ConnectorClusterRequest +} + +func (r ApiCreateConnectorClusterRequest) Async(async bool) ApiCreateConnectorClusterRequest { + r.async = &async + return r +} +func (r ApiCreateConnectorClusterRequest) ConnectorClusterRequest(connectorClusterRequest ConnectorClusterRequest) ApiCreateConnectorClusterRequest { + r.connectorClusterRequest = &connectorClusterRequest + return r +} + +func (r ApiCreateConnectorClusterRequest) Execute() (ConnectorCluster, *_nethttp.Response, error) { + return r.ApiService.CreateConnectorClusterExecute(r) +} + +/* + * CreateConnectorCluster Create a new connector cluster + * Create a new connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateConnectorClusterRequest + */ +func (a *ConnectorClustersApiService) CreateConnectorCluster(ctx _context.Context) ApiCreateConnectorClusterRequest { + return ApiCreateConnectorClusterRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorCluster + */ +func (a *ConnectorClustersApiService) CreateConnectorClusterExecute(r ApiCreateConnectorClusterRequest) (ConnectorCluster, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.CreateConnectorCluster") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.async == nil { + return localVarReturnValue, nil, reportError("async is required and must be specified") + } + if r.connectorClusterRequest == nil { + return localVarReturnValue, nil, reportError("connectorClusterRequest is required and must be specified") + } + + localVarQueryParams.Add("async", parameterToString(*r.async, "")) + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.connectorClusterRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteConnectorClusterRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + connectorClusterId string +} + + +func (r ApiDeleteConnectorClusterRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.DeleteConnectorClusterExecute(r) +} + +/* + * DeleteConnectorCluster Delete a connector cluster + * Delete a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiDeleteConnectorClusterRequest + */ +func (a *ConnectorClustersApiService) DeleteConnectorCluster(ctx _context.Context, connectorClusterId string) ApiDeleteConnectorClusterRequest { + return ApiDeleteConnectorClusterRequest{ + ApiService: a, + ctx: ctx, + connectorClusterId: connectorClusterId, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *ConnectorClustersApiService) DeleteConnectorClusterExecute(r ApiDeleteConnectorClusterRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.DeleteConnectorCluster") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}" + localVarPath = strings.Replace(localVarPath, "{"+"connector_cluster_id"+"}", _neturl.PathEscape(parameterToString(r.connectorClusterId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorClusterRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + connectorClusterId string +} + + +func (r ApiGetConnectorClusterRequest) Execute() (ConnectorCluster, *_nethttp.Response, error) { + return r.ApiService.GetConnectorClusterExecute(r) +} + +/* + * GetConnectorCluster Get a connector cluster + * Get a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterRequest + */ +func (a *ConnectorClustersApiService) GetConnectorCluster(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterRequest { + return ApiGetConnectorClusterRequest{ + ApiService: a, + ctx: ctx, + connectorClusterId: connectorClusterId, + } +} + +/* + * Execute executes the request + * @return ConnectorCluster + */ +func (a *ConnectorClustersApiService) GetConnectorClusterExecute(r ApiGetConnectorClusterRequest) (ConnectorCluster, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.GetConnectorCluster") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}" + localVarPath = strings.Replace(localVarPath, "{"+"connector_cluster_id"+"}", _neturl.PathEscape(parameterToString(r.connectorClusterId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorClusterAddonParametersRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + connectorClusterId string + resetCredentials *bool +} + +func (r ApiGetConnectorClusterAddonParametersRequest) ResetCredentials(resetCredentials bool) ApiGetConnectorClusterAddonParametersRequest { + r.resetCredentials = &resetCredentials + return r +} + +func (r ApiGetConnectorClusterAddonParametersRequest) Execute() ([]AddonParameter, *_nethttp.Response, error) { + return r.ApiService.GetConnectorClusterAddonParametersExecute(r) +} + +/* + * GetConnectorClusterAddonParameters Get a connector cluster's addon parameters + * Get a connector cluster's addon parameters + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterAddonParametersRequest + */ +func (a *ConnectorClustersApiService) GetConnectorClusterAddonParameters(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterAddonParametersRequest { + return ApiGetConnectorClusterAddonParametersRequest{ + ApiService: a, + ctx: ctx, + connectorClusterId: connectorClusterId, + } +} + +/* + * Execute executes the request + * @return []AddonParameter + */ +func (a *ConnectorClustersApiService) GetConnectorClusterAddonParametersExecute(r ApiGetConnectorClusterAddonParametersRequest) ([]AddonParameter, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []AddonParameter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.GetConnectorClusterAddonParameters") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/addon_parameters" + localVarPath = strings.Replace(localVarPath, "{"+"connector_cluster_id"+"}", _neturl.PathEscape(parameterToString(r.connectorClusterId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.resetCredentials != nil { + localVarQueryParams.Add("reset_credentials", parameterToString(*r.resetCredentials, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorClusterNamespacesRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + connectorClusterId string + page *string + size *string + orderBy *string + search *string +} + +func (r ApiGetConnectorClusterNamespacesRequest) Page(page string) ApiGetConnectorClusterNamespacesRequest { + r.page = &page + return r +} +func (r ApiGetConnectorClusterNamespacesRequest) Size(size string) ApiGetConnectorClusterNamespacesRequest { + r.size = &size + return r +} +func (r ApiGetConnectorClusterNamespacesRequest) OrderBy(orderBy string) ApiGetConnectorClusterNamespacesRequest { + r.orderBy = &orderBy + return r +} +func (r ApiGetConnectorClusterNamespacesRequest) Search(search string) ApiGetConnectorClusterNamespacesRequest { + r.search = &search + return r +} + +func (r ApiGetConnectorClusterNamespacesRequest) Execute() (ConnectorNamespaceList, *_nethttp.Response, error) { + return r.ApiService.GetConnectorClusterNamespacesExecute(r) +} + +/* + * GetConnectorClusterNamespaces Get a connector cluster's namespaces + * Get a connector cluster's namespaces + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiGetConnectorClusterNamespacesRequest + */ +func (a *ConnectorClustersApiService) GetConnectorClusterNamespaces(ctx _context.Context, connectorClusterId string) ApiGetConnectorClusterNamespacesRequest { + return ApiGetConnectorClusterNamespacesRequest{ + ApiService: a, + ctx: ctx, + connectorClusterId: connectorClusterId, + } +} + +/* + * Execute executes the request + * @return ConnectorNamespaceList + */ +func (a *ConnectorClustersApiService) GetConnectorClusterNamespacesExecute(r ApiGetConnectorClusterNamespacesRequest) (ConnectorNamespaceList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorNamespaceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.GetConnectorClusterNamespaces") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/namespaces" + localVarPath = strings.Replace(localVarPath, "{"+"connector_cluster_id"+"}", _neturl.PathEscape(parameterToString(r.connectorClusterId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListConnectorClustersRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + page *string + size *string + orderBy *string + search *string +} + +func (r ApiListConnectorClustersRequest) Page(page string) ApiListConnectorClustersRequest { + r.page = &page + return r +} +func (r ApiListConnectorClustersRequest) Size(size string) ApiListConnectorClustersRequest { + r.size = &size + return r +} +func (r ApiListConnectorClustersRequest) OrderBy(orderBy string) ApiListConnectorClustersRequest { + r.orderBy = &orderBy + return r +} +func (r ApiListConnectorClustersRequest) Search(search string) ApiListConnectorClustersRequest { + r.search = &search + return r +} + +func (r ApiListConnectorClustersRequest) Execute() (ConnectorClusterList, *_nethttp.Response, error) { + return r.ApiService.ListConnectorClustersExecute(r) +} + +/* + * ListConnectorClusters Returns a list of connector clusters + * Returns a list of connector clusters + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorClustersRequest + */ +func (a *ConnectorClustersApiService) ListConnectorClusters(ctx _context.Context) ApiListConnectorClustersRequest { + return ApiListConnectorClustersRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorClusterList + */ +func (a *ConnectorClustersApiService) ListConnectorClustersExecute(r ApiListConnectorClustersRequest) (ConnectorClusterList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorClusterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.ListConnectorClusters") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateConnectorClusterByIdRequest struct { + ctx _context.Context + ApiService ConnectorClustersApi + connectorClusterId string + connectorClusterRequest *ConnectorClusterRequest +} + +func (r ApiUpdateConnectorClusterByIdRequest) ConnectorClusterRequest(connectorClusterRequest ConnectorClusterRequest) ApiUpdateConnectorClusterByIdRequest { + r.connectorClusterRequest = &connectorClusterRequest + return r +} + +func (r ApiUpdateConnectorClusterByIdRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateConnectorClusterByIdExecute(r) +} + +/* + * UpdateConnectorClusterById udpate a connector cluster + * udpate a connector cluster + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorClusterId The id of the connector cluster + * @return ApiUpdateConnectorClusterByIdRequest + */ +func (a *ConnectorClustersApiService) UpdateConnectorClusterById(ctx _context.Context, connectorClusterId string) ApiUpdateConnectorClusterByIdRequest { + return ApiUpdateConnectorClusterByIdRequest{ + ApiService: a, + ctx: ctx, + connectorClusterId: connectorClusterId, + } +} + +/* + * Execute executes the request + */ +func (a *ConnectorClustersApiService) UpdateConnectorClusterByIdExecute(r ApiUpdateConnectorClusterByIdRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorClustersApiService.UpdateConnectorClusterById") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}" + localVarPath = strings.Replace(localVarPath, "{"+"connector_cluster_id"+"}", _neturl.PathEscape(parameterToString(r.connectorClusterId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.connectorClusterRequest == nil { + return nil, reportError("connectorClusterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.connectorClusterRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_namespaces.go b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_namespaces.go new file mode 100644 index 00000000..6e0f93e5 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_namespaces.go @@ -0,0 +1,514 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ConnectorNamespacesApi interface { + + /* + * CreateEvaluationNamespace Create a new short lived evaluation connector namespace + * Create a new evaluation connector namespace + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateEvaluationNamespaceRequest + */ + CreateEvaluationNamespace(ctx _context.Context) ApiCreateEvaluationNamespaceRequest + + /* + * CreateEvaluationNamespaceExecute executes the request + * @return ConnectorNamespace + */ + CreateEvaluationNamespaceExecute(r ApiCreateEvaluationNamespaceRequest) (ConnectorNamespace, *_nethttp.Response, error) + + /* + * GetConnectorNamespace Get a connector namespace + * Get a connector namespace + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorNamespaceId The id of the connector namespace + * @return ApiGetConnectorNamespaceRequest + */ + GetConnectorNamespace(ctx _context.Context, connectorNamespaceId string) ApiGetConnectorNamespaceRequest + + /* + * GetConnectorNamespaceExecute executes the request + * @return ConnectorNamespace + */ + GetConnectorNamespaceExecute(r ApiGetConnectorNamespaceRequest) (ConnectorNamespace, *_nethttp.Response, error) + + /* + * ListConnectorNamespaces Returns a list of connector namespaces + * Returns a list of connector namespaces + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorNamespacesRequest + */ + ListConnectorNamespaces(ctx _context.Context) ApiListConnectorNamespacesRequest + + /* + * ListConnectorNamespacesExecute executes the request + * @return ConnectorNamespaceList + */ + ListConnectorNamespacesExecute(r ApiListConnectorNamespacesRequest) (ConnectorNamespaceList, *_nethttp.Response, error) +} + +// ConnectorNamespacesApiService ConnectorNamespacesApi service +type ConnectorNamespacesApiService service + +type ApiCreateEvaluationNamespaceRequest struct { + ctx _context.Context + ApiService ConnectorNamespacesApi + connectorNamespaceEvalRequest *ConnectorNamespaceEvalRequest +} + +func (r ApiCreateEvaluationNamespaceRequest) ConnectorNamespaceEvalRequest(connectorNamespaceEvalRequest ConnectorNamespaceEvalRequest) ApiCreateEvaluationNamespaceRequest { + r.connectorNamespaceEvalRequest = &connectorNamespaceEvalRequest + return r +} + +func (r ApiCreateEvaluationNamespaceRequest) Execute() (ConnectorNamespace, *_nethttp.Response, error) { + return r.ApiService.CreateEvaluationNamespaceExecute(r) +} + +/* + * CreateEvaluationNamespace Create a new short lived evaluation connector namespace + * Create a new evaluation connector namespace + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateEvaluationNamespaceRequest + */ +func (a *ConnectorNamespacesApiService) CreateEvaluationNamespace(ctx _context.Context) ApiCreateEvaluationNamespaceRequest { + return ApiCreateEvaluationNamespaceRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorNamespace + */ +func (a *ConnectorNamespacesApiService) CreateEvaluationNamespaceExecute(r ApiCreateEvaluationNamespaceRequest) (ConnectorNamespace, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorNamespace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorNamespacesApiService.CreateEvaluationNamespace") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_namespaces/eval" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.connectorNamespaceEvalRequest == nil { + return localVarReturnValue, nil, reportError("connectorNamespaceEvalRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.connectorNamespaceEvalRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorNamespaceRequest struct { + ctx _context.Context + ApiService ConnectorNamespacesApi + connectorNamespaceId string +} + + +func (r ApiGetConnectorNamespaceRequest) Execute() (ConnectorNamespace, *_nethttp.Response, error) { + return r.ApiService.GetConnectorNamespaceExecute(r) +} + +/* + * GetConnectorNamespace Get a connector namespace + * Get a connector namespace + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorNamespaceId The id of the connector namespace + * @return ApiGetConnectorNamespaceRequest + */ +func (a *ConnectorNamespacesApiService) GetConnectorNamespace(ctx _context.Context, connectorNamespaceId string) ApiGetConnectorNamespaceRequest { + return ApiGetConnectorNamespaceRequest{ + ApiService: a, + ctx: ctx, + connectorNamespaceId: connectorNamespaceId, + } +} + +/* + * Execute executes the request + * @return ConnectorNamespace + */ +func (a *ConnectorNamespacesApiService) GetConnectorNamespaceExecute(r ApiGetConnectorNamespaceRequest) (ConnectorNamespace, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorNamespace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorNamespacesApiService.GetConnectorNamespace") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id}" + localVarPath = strings.Replace(localVarPath, "{"+"connector_namespace_id"+"}", _neturl.PathEscape(parameterToString(r.connectorNamespaceId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListConnectorNamespacesRequest struct { + ctx _context.Context + ApiService ConnectorNamespacesApi + page *string + size *string + orderBy *string + search *string +} + +func (r ApiListConnectorNamespacesRequest) Page(page string) ApiListConnectorNamespacesRequest { + r.page = &page + return r +} +func (r ApiListConnectorNamespacesRequest) Size(size string) ApiListConnectorNamespacesRequest { + r.size = &size + return r +} +func (r ApiListConnectorNamespacesRequest) OrderBy(orderBy string) ApiListConnectorNamespacesRequest { + r.orderBy = &orderBy + return r +} +func (r ApiListConnectorNamespacesRequest) Search(search string) ApiListConnectorNamespacesRequest { + r.search = &search + return r +} + +func (r ApiListConnectorNamespacesRequest) Execute() (ConnectorNamespaceList, *_nethttp.Response, error) { + return r.ApiService.ListConnectorNamespacesExecute(r) +} + +/* + * ListConnectorNamespaces Returns a list of connector namespaces + * Returns a list of connector namespaces + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorNamespacesRequest + */ +func (a *ConnectorNamespacesApiService) ListConnectorNamespaces(ctx _context.Context) ApiListConnectorNamespacesRequest { + return ApiListConnectorNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorNamespaceList + */ +func (a *ConnectorNamespacesApiService) ListConnectorNamespacesExecute(r ApiListConnectorNamespacesRequest) (ConnectorNamespaceList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorNamespaceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorNamespacesApiService.ListConnectorNamespaces") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_namespaces" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_service.go b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_service.go new file mode 100644 index 00000000..1ded3fc8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_service.go @@ -0,0 +1,147 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type ConnectorServiceApi interface { + + /* + * GetVersionMetadata Returns the version metadata + * Returns the version metadata + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetVersionMetadataRequest + */ + GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest + + /* + * GetVersionMetadataExecute executes the request + * @return VersionMetadata + */ + GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) +} + +// ConnectorServiceApiService ConnectorServiceApi service +type ConnectorServiceApiService service + +type ApiGetVersionMetadataRequest struct { + ctx _context.Context + ApiService ConnectorServiceApi +} + + +func (r ApiGetVersionMetadataRequest) Execute() (VersionMetadata, *_nethttp.Response, error) { + return r.ApiService.GetVersionMetadataExecute(r) +} + +/* + * GetVersionMetadata Returns the version metadata + * Returns the version metadata + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetVersionMetadataRequest + */ +func (a *ConnectorServiceApiService) GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest { + return ApiGetVersionMetadataRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return VersionMetadata + */ +func (a *ConnectorServiceApiService) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionMetadata + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorServiceApiService.GetVersionMetadata") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_types.go b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_types.go new file mode 100644 index 00000000..8013c9f4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api_connector_types.go @@ -0,0 +1,510 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ConnectorTypesApi interface { + + /* + * GetConnectorTypeByID Get a connector type by id + * Get a connector type by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorTypeId The id of the connector type + * @return ApiGetConnectorTypeByIDRequest + */ + GetConnectorTypeByID(ctx _context.Context, connectorTypeId string) ApiGetConnectorTypeByIDRequest + + /* + * GetConnectorTypeByIDExecute executes the request + * @return ConnectorType + */ + GetConnectorTypeByIDExecute(r ApiGetConnectorTypeByIDRequest) (ConnectorType, *_nethttp.Response, error) + + /* + * GetConnectorTypeLabels Returns a list of connector type labels + * Returns a list of connector type labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConnectorTypeLabelsRequest + */ + GetConnectorTypeLabels(ctx _context.Context) ApiGetConnectorTypeLabelsRequest + + /* + * GetConnectorTypeLabelsExecute executes the request + * @return ConnectorTypeLabelCountList + */ + GetConnectorTypeLabelsExecute(r ApiGetConnectorTypeLabelsRequest) (ConnectorTypeLabelCountList, *_nethttp.Response, error) + + /* + * GetConnectorTypes Returns a list of connector types + * Returns a list of connector types + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConnectorTypesRequest + */ + GetConnectorTypes(ctx _context.Context) ApiGetConnectorTypesRequest + + /* + * GetConnectorTypesExecute executes the request + * @return ConnectorTypeList + */ + GetConnectorTypesExecute(r ApiGetConnectorTypesRequest) (ConnectorTypeList, *_nethttp.Response, error) +} + +// ConnectorTypesApiService ConnectorTypesApi service +type ConnectorTypesApiService service + +type ApiGetConnectorTypeByIDRequest struct { + ctx _context.Context + ApiService ConnectorTypesApi + connectorTypeId string +} + + +func (r ApiGetConnectorTypeByIDRequest) Execute() (ConnectorType, *_nethttp.Response, error) { + return r.ApiService.GetConnectorTypeByIDExecute(r) +} + +/* + * GetConnectorTypeByID Get a connector type by id + * Get a connector type by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param connectorTypeId The id of the connector type + * @return ApiGetConnectorTypeByIDRequest + */ +func (a *ConnectorTypesApiService) GetConnectorTypeByID(ctx _context.Context, connectorTypeId string) ApiGetConnectorTypeByIDRequest { + return ApiGetConnectorTypeByIDRequest{ + ApiService: a, + ctx: ctx, + connectorTypeId: connectorTypeId, + } +} + +/* + * Execute executes the request + * @return ConnectorType + */ +func (a *ConnectorTypesApiService) GetConnectorTypeByIDExecute(r ApiGetConnectorTypeByIDRequest) (ConnectorType, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorTypesApiService.GetConnectorTypeByID") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_types/{connector_type_id}" + localVarPath = strings.Replace(localVarPath, "{"+"connector_type_id"+"}", _neturl.PathEscape(parameterToString(r.connectorTypeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorTypeLabelsRequest struct { + ctx _context.Context + ApiService ConnectorTypesApi + orderBy *string + search *string +} + +func (r ApiGetConnectorTypeLabelsRequest) OrderBy(orderBy string) ApiGetConnectorTypeLabelsRequest { + r.orderBy = &orderBy + return r +} +func (r ApiGetConnectorTypeLabelsRequest) Search(search string) ApiGetConnectorTypeLabelsRequest { + r.search = &search + return r +} + +func (r ApiGetConnectorTypeLabelsRequest) Execute() (ConnectorTypeLabelCountList, *_nethttp.Response, error) { + return r.ApiService.GetConnectorTypeLabelsExecute(r) +} + +/* + * GetConnectorTypeLabels Returns a list of connector type labels + * Returns a list of connector type labels + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConnectorTypeLabelsRequest + */ +func (a *ConnectorTypesApiService) GetConnectorTypeLabels(ctx _context.Context) ApiGetConnectorTypeLabelsRequest { + return ApiGetConnectorTypeLabelsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorTypeLabelCountList + */ +func (a *ConnectorTypesApiService) GetConnectorTypeLabelsExecute(r ApiGetConnectorTypeLabelsRequest) (ConnectorTypeLabelCountList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorTypeLabelCountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorTypesApiService.GetConnectorTypeLabels") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_types/labels" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorTypesRequest struct { + ctx _context.Context + ApiService ConnectorTypesApi + page *string + size *string + orderBy *string + search *string +} + +func (r ApiGetConnectorTypesRequest) Page(page string) ApiGetConnectorTypesRequest { + r.page = &page + return r +} +func (r ApiGetConnectorTypesRequest) Size(size string) ApiGetConnectorTypesRequest { + r.size = &size + return r +} +func (r ApiGetConnectorTypesRequest) OrderBy(orderBy string) ApiGetConnectorTypesRequest { + r.orderBy = &orderBy + return r +} +func (r ApiGetConnectorTypesRequest) Search(search string) ApiGetConnectorTypesRequest { + r.search = &search + return r +} + +func (r ApiGetConnectorTypesRequest) Execute() (ConnectorTypeList, *_nethttp.Response, error) { + return r.ApiService.GetConnectorTypesExecute(r) +} + +/* + * GetConnectorTypes Returns a list of connector types + * Returns a list of connector types + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConnectorTypesRequest + */ +func (a *ConnectorTypesApiService) GetConnectorTypes(ctx _context.Context) ApiGetConnectorTypesRequest { + return ApiGetConnectorTypesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorTypeList + */ +func (a *ConnectorTypesApiService) GetConnectorTypesExecute(r ApiGetConnectorTypesRequest) (ConnectorTypeList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorTypesApiService.GetConnectorTypes") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connector_types" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/api_connectors.go b/app-services-sdk-go/connectormgmt/apiv1/client/api_connectors.go new file mode 100644 index 00000000..bb1f0c54 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/api_connectors.go @@ -0,0 +1,853 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ConnectorsApi interface { + + /* + * CreateConnector Create a new connector + * Create a new connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateConnectorRequest + */ + CreateConnector(ctx _context.Context) ApiCreateConnectorRequest + + /* + * CreateConnectorExecute executes the request + * @return Connector + */ + CreateConnectorExecute(r ApiCreateConnectorRequest) (Connector, *_nethttp.Response, error) + + /* + * DeleteConnector Delete a connector + * Delete a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteConnectorRequest + */ + DeleteConnector(ctx _context.Context, id string) ApiDeleteConnectorRequest + + /* + * DeleteConnectorExecute executes the request + * @return Error + */ + DeleteConnectorExecute(r ApiDeleteConnectorRequest) (Error, *_nethttp.Response, error) + + /* + * GetConnector Get a connector + * Get a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetConnectorRequest + */ + GetConnector(ctx _context.Context, id string) ApiGetConnectorRequest + + /* + * GetConnectorExecute executes the request + * @return Connector + */ + GetConnectorExecute(r ApiGetConnectorRequest) (Connector, *_nethttp.Response, error) + + /* + * ListConnectors Returns a list of connector types + * Returns a list of connector types + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorsRequest + */ + ListConnectors(ctx _context.Context) ApiListConnectorsRequest + + /* + * ListConnectorsExecute executes the request + * @return ConnectorList + */ + ListConnectorsExecute(r ApiListConnectorsRequest) (ConnectorList, *_nethttp.Response, error) + + /* + * PatchConnector Patch a connector + * Patch a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiPatchConnectorRequest + */ + PatchConnector(ctx _context.Context, id string) ApiPatchConnectorRequest + + /* + * PatchConnectorExecute executes the request + * @return Connector + */ + PatchConnectorExecute(r ApiPatchConnectorRequest) (Connector, *_nethttp.Response, error) +} + +// ConnectorsApiService ConnectorsApi service +type ConnectorsApiService service + +type ApiCreateConnectorRequest struct { + ctx _context.Context + ApiService ConnectorsApi + async *bool + connectorRequest *ConnectorRequest +} + +func (r ApiCreateConnectorRequest) Async(async bool) ApiCreateConnectorRequest { + r.async = &async + return r +} +func (r ApiCreateConnectorRequest) ConnectorRequest(connectorRequest ConnectorRequest) ApiCreateConnectorRequest { + r.connectorRequest = &connectorRequest + return r +} + +func (r ApiCreateConnectorRequest) Execute() (Connector, *_nethttp.Response, error) { + return r.ApiService.CreateConnectorExecute(r) +} + +/* + * CreateConnector Create a new connector + * Create a new connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateConnectorRequest + */ +func (a *ConnectorsApiService) CreateConnector(ctx _context.Context) ApiCreateConnectorRequest { + return ApiCreateConnectorRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Connector + */ +func (a *ConnectorsApiService) CreateConnectorExecute(r ApiCreateConnectorRequest) (Connector, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Connector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.CreateConnector") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.async == nil { + return localVarReturnValue, nil, reportError("async is required and must be specified") + } + if r.connectorRequest == nil { + return localVarReturnValue, nil, reportError("connectorRequest is required and must be specified") + } + + localVarQueryParams.Add("async", parameterToString(*r.async, "")) + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.connectorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteConnectorRequest struct { + ctx _context.Context + ApiService ConnectorsApi + id string +} + + +func (r ApiDeleteConnectorRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.DeleteConnectorExecute(r) +} + +/* + * DeleteConnector Delete a connector + * Delete a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteConnectorRequest + */ +func (a *ConnectorsApiService) DeleteConnector(ctx _context.Context, id string) ApiDeleteConnectorRequest { + return ApiDeleteConnectorRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *ConnectorsApiService) DeleteConnectorExecute(r ApiDeleteConnectorRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.DeleteConnector") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorRequest struct { + ctx _context.Context + ApiService ConnectorsApi + id string +} + + +func (r ApiGetConnectorRequest) Execute() (Connector, *_nethttp.Response, error) { + return r.ApiService.GetConnectorExecute(r) +} + +/* + * GetConnector Get a connector + * Get a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetConnectorRequest + */ +func (a *ConnectorsApiService) GetConnector(ctx _context.Context, id string) ApiGetConnectorRequest { + return ApiGetConnectorRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Connector + */ +func (a *ConnectorsApiService) GetConnectorExecute(r ApiGetConnectorRequest) (Connector, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Connector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.GetConnector") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListConnectorsRequest struct { + ctx _context.Context + ApiService ConnectorsApi + page *string + size *string + orderBy *string + search *string +} + +func (r ApiListConnectorsRequest) Page(page string) ApiListConnectorsRequest { + r.page = &page + return r +} +func (r ApiListConnectorsRequest) Size(size string) ApiListConnectorsRequest { + r.size = &size + return r +} +func (r ApiListConnectorsRequest) OrderBy(orderBy string) ApiListConnectorsRequest { + r.orderBy = &orderBy + return r +} +func (r ApiListConnectorsRequest) Search(search string) ApiListConnectorsRequest { + r.search = &search + return r +} + +func (r ApiListConnectorsRequest) Execute() (ConnectorList, *_nethttp.Response, error) { + return r.ApiService.ListConnectorsExecute(r) +} + +/* + * ListConnectors Returns a list of connector types + * Returns a list of connector types + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConnectorsRequest + */ +func (a *ConnectorsApiService) ListConnectors(ctx _context.Context) ApiListConnectorsRequest { + return ApiListConnectorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConnectorList + */ +func (a *ConnectorsApiService) ListConnectorsExecute(r ApiListConnectorsRequest) (ConnectorList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConnectorList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.ListConnectors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchConnectorRequest struct { + ctx _context.Context + ApiService ConnectorsApi + id string + body *map[string]interface{} +} + +func (r ApiPatchConnectorRequest) Body(body map[string]interface{}) ApiPatchConnectorRequest { + r.body = &body + return r +} + +func (r ApiPatchConnectorRequest) Execute() (Connector, *_nethttp.Response, error) { + return r.ApiService.PatchConnectorExecute(r) +} + +/* + * PatchConnector Patch a connector + * Patch a connector + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiPatchConnectorRequest + */ +func (a *ConnectorsApiService) PatchConnector(ctx _context.Context, id string) ApiPatchConnectorRequest { + return ApiPatchConnectorRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Connector + */ +func (a *ConnectorsApiService) PatchConnectorExecute(r ApiPatchConnectorRequest) (Connector, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Connector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConnectorsApiService.PatchConnector") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/connector_mgmt/v1/kafka_connectors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/merge-patch+json", "application/json-patch+json", "application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/client.go b/app-services-sdk-go/connectormgmt/apiv1/client/client.go new file mode 100644 index 00000000..b7750eb4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/client.go @@ -0,0 +1,558 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Connector Management API API v0.1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ConnectorClustersApi ConnectorClustersApi + + ConnectorNamespacesApi ConnectorNamespacesApi + + ConnectorServiceApi ConnectorServiceApi + + ConnectorTypesApi ConnectorTypesApi + + ConnectorsApi ConnectorsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ConnectorClustersApi = (*ConnectorClustersApiService)(&c.common) + c.ConnectorNamespacesApi = (*ConnectorNamespacesApiService)(&c.common) + c.ConnectorServiceApi = (*ConnectorServiceApiService)(&c.common) + c.ConnectorTypesApi = (*ConnectorTypesApiService)(&c.common) + c.ConnectorsApi = (*ConnectorsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/configuration.go b/app-services-sdk-go/connectormgmt/apiv1/client/configuration.go new file mode 100644 index 00000000..d73d0b77 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/configuration.go @@ -0,0 +1,243 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.openshift.com", + Description: "Main (production) server", + }, + { + URL: "https://api.stage.openshift.com", + Description: "Staging server", + }, + { + URL: "http://localhost:8000", + Description: "localhost", + }, + { + URL: "", + Description: "current domain", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/AddonParameter.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/AddonParameter.md new file mode 100644 index 00000000..4b0ece0a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/AddonParameter.md @@ -0,0 +1,82 @@ +# AddonParameter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonParameter + +`func NewAddonParameter() *AddonParameter` + +NewAddonParameter instantiates a new AddonParameter 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 + +### NewAddonParameterWithDefaults + +`func NewAddonParameterWithDefaults() *AddonParameter` + +NewAddonParameterWithDefaults instantiates a new AddonParameter 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 *AddonParameter) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AddonParameter) 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 *AddonParameter) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AddonParameter) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *AddonParameter) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AddonParameter) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AddonParameter) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AddonParameter) HasValue() bool` + +HasValue 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/Channel.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Channel.md new file mode 100644 index 00000000..c909080d --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Channel.md @@ -0,0 +1,11 @@ +# Channel + +## Enum + + +* `STABLE` (value: `"stable"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/Connector.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Connector.md new file mode 100644 index 00000000..0c5a8d56 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Connector.md @@ -0,0 +1,437 @@ +# Connector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | **string** | | +**ConnectorTypeId** | **string** | | +**NamespaceId** | **string** | | +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] [default to CHANNEL_STABLE] +**DesiredState** | [**ConnectorDesiredState**](ConnectorDesiredState.md) | | +**ResourceVersion** | Pointer to **int64** | | [optional] +**Kafka** | [**KafkaConnectionSettings**](KafkaConnectionSettings.md) | | +**ServiceAccount** | [**ServiceAccount**](ServiceAccount.md) | | +**SchemaRegistry** | Pointer to [**SchemaRegistryConnectionSettings**](SchemaRegistryConnectionSettings.md) | | [optional] +**Connector** | **map[string]interface{}** | | +**Status** | Pointer to [**ConnectorStatusStatus**](ConnectorStatusStatus.md) | | [optional] + +## Methods + +### NewConnector + +`func NewConnector(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}, ) *Connector` + +NewConnector instantiates a new Connector 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 + +### NewConnectorWithDefaults + +`func NewConnectorWithDefaults() *Connector` + +NewConnectorWithDefaults instantiates a new Connector 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 *Connector) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Connector) 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 *Connector) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Connector) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Connector) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Connector) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Connector) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Connector) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *Connector) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Connector) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Connector) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Connector) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetOwner + +`func (o *Connector) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *Connector) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *Connector) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *Connector) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Connector) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Connector) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Connector) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Connector) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *Connector) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *Connector) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *Connector) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *Connector) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *Connector) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Connector) 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 *Connector) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectorTypeId + +`func (o *Connector) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *Connector) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *Connector) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetNamespaceId + +`func (o *Connector) GetNamespaceId() string` + +GetNamespaceId returns the NamespaceId field if non-nil, zero value otherwise. + +### GetNamespaceIdOk + +`func (o *Connector) GetNamespaceIdOk() (*string, bool)` + +GetNamespaceIdOk returns a tuple with the NamespaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceId + +`func (o *Connector) SetNamespaceId(v string)` + +SetNamespaceId sets NamespaceId field to given value. + + +### GetChannel + +`func (o *Connector) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *Connector) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *Connector) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *Connector) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetDesiredState + +`func (o *Connector) GetDesiredState() ConnectorDesiredState` + +GetDesiredState returns the DesiredState field if non-nil, zero value otherwise. + +### GetDesiredStateOk + +`func (o *Connector) GetDesiredStateOk() (*ConnectorDesiredState, bool)` + +GetDesiredStateOk returns a tuple with the DesiredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDesiredState + +`func (o *Connector) SetDesiredState(v ConnectorDesiredState)` + +SetDesiredState sets DesiredState field to given value. + + +### GetResourceVersion + +`func (o *Connector) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *Connector) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *Connector) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *Connector) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetKafka + +`func (o *Connector) GetKafka() KafkaConnectionSettings` + +GetKafka returns the Kafka field if non-nil, zero value otherwise. + +### GetKafkaOk + +`func (o *Connector) GetKafkaOk() (*KafkaConnectionSettings, bool)` + +GetKafkaOk returns a tuple with the Kafka field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafka + +`func (o *Connector) SetKafka(v KafkaConnectionSettings)` + +SetKafka sets Kafka field to given value. + + +### GetServiceAccount + +`func (o *Connector) GetServiceAccount() ServiceAccount` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *Connector) GetServiceAccountOk() (*ServiceAccount, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *Connector) SetServiceAccount(v ServiceAccount)` + +SetServiceAccount sets ServiceAccount field to given value. + + +### GetSchemaRegistry + +`func (o *Connector) GetSchemaRegistry() SchemaRegistryConnectionSettings` + +GetSchemaRegistry returns the SchemaRegistry field if non-nil, zero value otherwise. + +### GetSchemaRegistryOk + +`func (o *Connector) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool)` + +GetSchemaRegistryOk returns a tuple with the SchemaRegistry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemaRegistry + +`func (o *Connector) SetSchemaRegistry(v SchemaRegistryConnectionSettings)` + +SetSchemaRegistry sets SchemaRegistry field to given value. + +### HasSchemaRegistry + +`func (o *Connector) HasSchemaRegistry() bool` + +HasSchemaRegistry returns a boolean if a field has been set. + +### GetConnector + +`func (o *Connector) GetConnector() map[string]interface{}` + +GetConnector returns the Connector field if non-nil, zero value otherwise. + +### GetConnectorOk + +`func (o *Connector) GetConnectorOk() (*map[string]interface{}, bool)` + +GetConnectorOk returns a tuple with the Connector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnector + +`func (o *Connector) SetConnector(v map[string]interface{})` + +SetConnector sets Connector field to given value. + + +### GetStatus + +`func (o *Connector) GetStatus() ConnectorStatusStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Connector) GetStatusOk() (*ConnectorStatusStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Connector) SetStatus(v ConnectorStatusStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Connector) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorCluster.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorCluster.md new file mode 100644 index 00000000..f81bcd2a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorCluster.md @@ -0,0 +1,238 @@ +# ConnectorCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Status** | Pointer to [**ConnectorClusterStatusStatus**](ConnectorClusterStatusStatus.md) | | [optional] + +## Methods + +### NewConnectorCluster + +`func NewConnectorCluster() *ConnectorCluster` + +NewConnectorCluster instantiates a new ConnectorCluster 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 + +### NewConnectorClusterWithDefaults + +`func NewConnectorClusterWithDefaults() *ConnectorCluster` + +NewConnectorClusterWithDefaults instantiates a new ConnectorCluster 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 *ConnectorCluster) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorCluster) 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 *ConnectorCluster) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ConnectorCluster) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ConnectorCluster) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorCluster) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorCluster) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConnectorCluster) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ConnectorCluster) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ConnectorCluster) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ConnectorCluster) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ConnectorCluster) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetOwner + +`func (o *ConnectorCluster) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ConnectorCluster) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ConnectorCluster) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ConnectorCluster) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ConnectorCluster) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectorCluster) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ConnectorCluster) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectorCluster) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ConnectorCluster) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ConnectorCluster) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ConnectorCluster) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ConnectorCluster) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorCluster) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorCluster) 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 *ConnectorCluster) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorCluster) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetStatus + +`func (o *ConnectorCluster) GetStatus() ConnectorClusterStatusStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ConnectorCluster) GetStatusOk() (*ConnectorClusterStatusStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ConnectorCluster) SetStatus(v ConnectorClusterStatusStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ConnectorCluster) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterList.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterList.md new file mode 100644 index 00000000..75d13e3a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterList.md @@ -0,0 +1,135 @@ +# ConnectorClusterList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ConnectorCluster**](ConnectorCluster.md) | | + +## Methods + +### NewConnectorClusterList + +`func NewConnectorClusterList(kind string, page int32, size int32, total int32, items []ConnectorCluster, ) *ConnectorClusterList` + +NewConnectorClusterList instantiates a new ConnectorClusterList 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 + +### NewConnectorClusterListWithDefaults + +`func NewConnectorClusterListWithDefaults() *ConnectorClusterList` + +NewConnectorClusterListWithDefaults instantiates a new ConnectorClusterList 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 + +### GetKind + +`func (o *ConnectorClusterList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorClusterList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorClusterList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ConnectorClusterList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConnectorClusterList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConnectorClusterList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ConnectorClusterList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConnectorClusterList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConnectorClusterList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ConnectorClusterList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConnectorClusterList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConnectorClusterList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ConnectorClusterList) GetItems() []ConnectorCluster` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorClusterList) GetItemsOk() (*[]ConnectorCluster, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorClusterList) SetItems(v []ConnectorCluster)` + +SetItems sets Items 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterListAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterListAllOf.md new file mode 100644 index 00000000..91e68455 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterListAllOf.md @@ -0,0 +1,56 @@ +# ConnectorClusterListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConnectorCluster**](ConnectorCluster.md) | | [optional] + +## Methods + +### NewConnectorClusterListAllOf + +`func NewConnectorClusterListAllOf() *ConnectorClusterListAllOf` + +NewConnectorClusterListAllOf instantiates a new ConnectorClusterListAllOf 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 + +### NewConnectorClusterListAllOfWithDefaults + +`func NewConnectorClusterListAllOfWithDefaults() *ConnectorClusterListAllOf` + +NewConnectorClusterListAllOfWithDefaults instantiates a new ConnectorClusterListAllOf 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 + +### GetItems + +`func (o *ConnectorClusterListAllOf) GetItems() []ConnectorCluster` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorClusterListAllOf) GetItemsOk() (*[]ConnectorCluster, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorClusterListAllOf) SetItems(v []ConnectorCluster)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConnectorClusterListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterMeta.md new file mode 100644 index 00000000..f3137052 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterMeta.md @@ -0,0 +1,134 @@ +# ConnectorClusterMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorClusterMeta + +`func NewConnectorClusterMeta() *ConnectorClusterMeta` + +NewConnectorClusterMeta instantiates a new ConnectorClusterMeta 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 + +### NewConnectorClusterMetaWithDefaults + +`func NewConnectorClusterMetaWithDefaults() *ConnectorClusterMeta` + +NewConnectorClusterMetaWithDefaults instantiates a new ConnectorClusterMeta 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 + +### GetOwner + +`func (o *ConnectorClusterMeta) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ConnectorClusterMeta) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ConnectorClusterMeta) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ConnectorClusterMeta) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ConnectorClusterMeta) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectorClusterMeta) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ConnectorClusterMeta) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectorClusterMeta) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ConnectorClusterMeta) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ConnectorClusterMeta) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ConnectorClusterMeta) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ConnectorClusterMeta) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorClusterMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorClusterMeta) 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 *ConnectorClusterMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorClusterMeta) 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequest.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequest.md new file mode 100644 index 00000000..fdcaa97c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequest.md @@ -0,0 +1,56 @@ +# ConnectorClusterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorClusterRequest + +`func NewConnectorClusterRequest() *ConnectorClusterRequest` + +NewConnectorClusterRequest instantiates a new ConnectorClusterRequest 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 + +### NewConnectorClusterRequestWithDefaults + +`func NewConnectorClusterRequestWithDefaults() *ConnectorClusterRequest` + +NewConnectorClusterRequestWithDefaults instantiates a new ConnectorClusterRequest 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 *ConnectorClusterRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorClusterRequest) 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 *ConnectorClusterRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorClusterRequest) 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequestMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequestMeta.md new file mode 100644 index 00000000..eeef8f21 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterRequestMeta.md @@ -0,0 +1,56 @@ +# ConnectorClusterRequestMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorClusterRequestMeta + +`func NewConnectorClusterRequestMeta() *ConnectorClusterRequestMeta` + +NewConnectorClusterRequestMeta instantiates a new ConnectorClusterRequestMeta 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 + +### NewConnectorClusterRequestMetaWithDefaults + +`func NewConnectorClusterRequestMetaWithDefaults() *ConnectorClusterRequestMeta` + +NewConnectorClusterRequestMetaWithDefaults instantiates a new ConnectorClusterRequestMeta 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 *ConnectorClusterRequestMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorClusterRequestMeta) 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 *ConnectorClusterRequestMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorClusterRequestMeta) 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterState.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterState.md new file mode 100644 index 00000000..f7901828 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterState.md @@ -0,0 +1,15 @@ +# ConnectorClusterState + +## Enum + + +* `DISCONNECTED` (value: `"disconnected"`) + +* `READY` (value: `"ready"`) + +* `DELETING` (value: `"deleting"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatus.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatus.md new file mode 100644 index 00000000..0c12a778 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatus.md @@ -0,0 +1,56 @@ +# ConnectorClusterStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to [**ConnectorClusterStatusStatus**](ConnectorClusterStatusStatus.md) | | [optional] + +## Methods + +### NewConnectorClusterStatus + +`func NewConnectorClusterStatus() *ConnectorClusterStatus` + +NewConnectorClusterStatus instantiates a new ConnectorClusterStatus 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 + +### NewConnectorClusterStatusWithDefaults + +`func NewConnectorClusterStatusWithDefaults() *ConnectorClusterStatus` + +NewConnectorClusterStatusWithDefaults instantiates a new ConnectorClusterStatus 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 + +### GetStatus + +`func (o *ConnectorClusterStatus) GetStatus() ConnectorClusterStatusStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ConnectorClusterStatus) GetStatusOk() (*ConnectorClusterStatusStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ConnectorClusterStatus) SetStatus(v ConnectorClusterStatusStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ConnectorClusterStatus) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatusStatus.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatusStatus.md new file mode 100644 index 00000000..baa18b8d --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClusterStatusStatus.md @@ -0,0 +1,82 @@ +# ConnectorClusterStatusStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | Pointer to [**ConnectorClusterState**](ConnectorClusterState.md) | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorClusterStatusStatus + +`func NewConnectorClusterStatusStatus() *ConnectorClusterStatusStatus` + +NewConnectorClusterStatusStatus instantiates a new ConnectorClusterStatusStatus 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 + +### NewConnectorClusterStatusStatusWithDefaults + +`func NewConnectorClusterStatusStatusWithDefaults() *ConnectorClusterStatusStatus` + +NewConnectorClusterStatusStatusWithDefaults instantiates a new ConnectorClusterStatusStatus 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 + +### GetState + +`func (o *ConnectorClusterStatusStatus) GetState() ConnectorClusterState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConnectorClusterStatusStatus) GetStateOk() (*ConnectorClusterState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConnectorClusterStatusStatus) SetState(v ConnectorClusterState)` + +SetState sets State field to given value. + +### HasState + +`func (o *ConnectorClusterStatusStatus) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetError + +`func (o *ConnectorClusterStatusStatus) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ConnectorClusterStatusStatus) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ConnectorClusterStatusStatus) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ConnectorClusterStatusStatus) HasError() bool` + +HasError 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClustersApi.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClustersApi.md new file mode 100644 index 00000000..2b3f75a4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorClustersApi.md @@ -0,0 +1,515 @@ +# \ConnectorClustersApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateConnectorCluster**](ConnectorClustersApi.md#CreateConnectorCluster) | **Post** /api/connector_mgmt/v1/kafka_connector_clusters | Create a new connector cluster +[**DeleteConnectorCluster**](ConnectorClustersApi.md#DeleteConnectorCluster) | **Delete** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | Delete a connector cluster +[**GetConnectorCluster**](ConnectorClustersApi.md#GetConnectorCluster) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | Get a connector cluster +[**GetConnectorClusterAddonParameters**](ConnectorClustersApi.md#GetConnectorClusterAddonParameters) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/addon_parameters | Get a connector cluster's addon parameters +[**GetConnectorClusterNamespaces**](ConnectorClustersApi.md#GetConnectorClusterNamespaces) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id}/namespaces | Get a connector cluster's namespaces +[**ListConnectorClusters**](ConnectorClustersApi.md#ListConnectorClusters) | **Get** /api/connector_mgmt/v1/kafka_connector_clusters | Returns a list of connector clusters +[**UpdateConnectorClusterById**](ConnectorClustersApi.md#UpdateConnectorClusterById) | **Put** /api/connector_mgmt/v1/kafka_connector_clusters/{connector_cluster_id} | udpate a connector cluster + + + +## CreateConnectorCluster + +> ConnectorCluster CreateConnectorCluster(ctx).Async(async).ConnectorClusterRequest(connectorClusterRequest).Execute() + +Create a new connector cluster + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + async := true // bool | Perform the action in an asynchronous manner + connectorClusterRequest := *openapiclient.NewConnectorClusterRequest() // ConnectorClusterRequest | Connector cluster data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.CreateConnectorCluster(context.Background()).Async(async).ConnectorClusterRequest(connectorClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.CreateConnectorCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorCluster`: ConnectorCluster + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.CreateConnectorCluster`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateConnectorClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async** | **bool** | Perform the action in an asynchronous manner | + **connectorClusterRequest** | [**ConnectorClusterRequest**](ConnectorClusterRequest.md) | Connector cluster data | + +### Return type + +[**ConnectorCluster**](ConnectorCluster.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteConnectorCluster + +> Error DeleteConnectorCluster(ctx, connectorClusterId).Execute() + +Delete a connector cluster + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.DeleteConnectorCluster(context.Background(), connectorClusterId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.DeleteConnectorCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteConnectorCluster`: Error + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.DeleteConnectorCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorClusterId** | **string** | The id of the connector cluster | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteConnectorClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorCluster + +> ConnectorCluster GetConnectorCluster(ctx, connectorClusterId).Execute() + +Get a connector cluster + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.GetConnectorCluster(context.Background(), connectorClusterId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.GetConnectorCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorCluster`: ConnectorCluster + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.GetConnectorCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorClusterId** | **string** | The id of the connector cluster | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ConnectorCluster**](ConnectorCluster.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorClusterAddonParameters + +> []AddonParameter GetConnectorClusterAddonParameters(ctx, connectorClusterId).ResetCredentials(resetCredentials).Execute() + +Get a connector cluster's addon parameters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster + resetCredentials := true // bool | Resets cluster service account credentials when true (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.GetConnectorClusterAddonParameters(context.Background(), connectorClusterId).ResetCredentials(resetCredentials).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.GetConnectorClusterAddonParameters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorClusterAddonParameters`: []AddonParameter + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.GetConnectorClusterAddonParameters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorClusterId** | **string** | The id of the connector cluster | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorClusterAddonParametersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **resetCredentials** | **bool** | Resets cluster service account credentials when true | + +### Return type + +[**[]AddonParameter**](AddonParameter.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorClusterNamespaces + +> ConnectorNamespaceList GetConnectorClusterNamespaces(ctx, connectorClusterId).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + +Get a connector cluster's namespaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.GetConnectorClusterNamespaces(context.Background(), connectorClusterId).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.GetConnectorClusterNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorClusterNamespaces`: ConnectorNamespaceList + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.GetConnectorClusterNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorClusterId** | **string** | The id of the connector cluster | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorClusterNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorNamespaceList**](ConnectorNamespaceList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListConnectorClusters + +> ConnectorClusterList ListConnectorClusters(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + +Returns a list of connector clusters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.ListConnectorClusters(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.ListConnectorClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnectorClusters`: ConnectorClusterList + fmt.Fprintf(os.Stdout, "Response from `ConnectorClustersApi.ListConnectorClusters`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListConnectorClustersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorClusterList**](ConnectorClusterList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateConnectorClusterById + +> UpdateConnectorClusterById(ctx, connectorClusterId).ConnectorClusterRequest(connectorClusterRequest).Execute() + +udpate a connector cluster + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster + connectorClusterRequest := *openapiclient.NewConnectorClusterRequest() // ConnectorClusterRequest | Data to updated connector with + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorClustersApi.UpdateConnectorClusterById(context.Background(), connectorClusterId).ConnectorClusterRequest(connectorClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.UpdateConnectorClusterById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorClusterId** | **string** | The id of the connector cluster | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateConnectorClusterByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **connectorClusterRequest** | [**ConnectorClusterRequest**](ConnectorClusterRequest.md) | Data to updated connector with | + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorConfiguration.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorConfiguration.md new file mode 100644 index 00000000..2511710b --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorConfiguration.md @@ -0,0 +1,119 @@ +# ConnectorConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kafka** | [**KafkaConnectionSettings**](KafkaConnectionSettings.md) | | +**ServiceAccount** | [**ServiceAccount**](ServiceAccount.md) | | +**SchemaRegistry** | Pointer to [**SchemaRegistryConnectionSettings**](SchemaRegistryConnectionSettings.md) | | [optional] +**Connector** | **map[string]interface{}** | | + +## Methods + +### NewConnectorConfiguration + +`func NewConnectorConfiguration(kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}, ) *ConnectorConfiguration` + +NewConnectorConfiguration instantiates a new ConnectorConfiguration 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 + +### NewConnectorConfigurationWithDefaults + +`func NewConnectorConfigurationWithDefaults() *ConnectorConfiguration` + +NewConnectorConfigurationWithDefaults instantiates a new ConnectorConfiguration 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 + +### GetKafka + +`func (o *ConnectorConfiguration) GetKafka() KafkaConnectionSettings` + +GetKafka returns the Kafka field if non-nil, zero value otherwise. + +### GetKafkaOk + +`func (o *ConnectorConfiguration) GetKafkaOk() (*KafkaConnectionSettings, bool)` + +GetKafkaOk returns a tuple with the Kafka field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafka + +`func (o *ConnectorConfiguration) SetKafka(v KafkaConnectionSettings)` + +SetKafka sets Kafka field to given value. + + +### GetServiceAccount + +`func (o *ConnectorConfiguration) GetServiceAccount() ServiceAccount` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *ConnectorConfiguration) GetServiceAccountOk() (*ServiceAccount, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *ConnectorConfiguration) SetServiceAccount(v ServiceAccount)` + +SetServiceAccount sets ServiceAccount field to given value. + + +### GetSchemaRegistry + +`func (o *ConnectorConfiguration) GetSchemaRegistry() SchemaRegistryConnectionSettings` + +GetSchemaRegistry returns the SchemaRegistry field if non-nil, zero value otherwise. + +### GetSchemaRegistryOk + +`func (o *ConnectorConfiguration) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool)` + +GetSchemaRegistryOk returns a tuple with the SchemaRegistry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemaRegistry + +`func (o *ConnectorConfiguration) SetSchemaRegistry(v SchemaRegistryConnectionSettings)` + +SetSchemaRegistry sets SchemaRegistry field to given value. + +### HasSchemaRegistry + +`func (o *ConnectorConfiguration) HasSchemaRegistry() bool` + +HasSchemaRegistry returns a boolean if a field has been set. + +### GetConnector + +`func (o *ConnectorConfiguration) GetConnector() map[string]interface{}` + +GetConnector returns the Connector field if non-nil, zero value otherwise. + +### GetConnectorOk + +`func (o *ConnectorConfiguration) GetConnectorOk() (*map[string]interface{}, bool)` + +GetConnectorOk returns a tuple with the Connector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnector + +`func (o *ConnectorConfiguration) SetConnector(v map[string]interface{})` + +SetConnector sets Connector 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorDesiredState.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorDesiredState.md new file mode 100644 index 00000000..0cb9c96a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorDesiredState.md @@ -0,0 +1,17 @@ +# ConnectorDesiredState + +## Enum + + +* `UNASSIGNED` (value: `"unassigned"`) + +* `READY` (value: `"ready"`) + +* `STOPPED` (value: `"stopped"`) + +* `DELETED` (value: `"deleted"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorList.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorList.md new file mode 100644 index 00000000..a02ec8d3 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorList.md @@ -0,0 +1,135 @@ +# ConnectorList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Connector**](Connector.md) | | + +## Methods + +### NewConnectorList + +`func NewConnectorList(kind string, page int32, size int32, total int32, items []Connector, ) *ConnectorList` + +NewConnectorList instantiates a new ConnectorList 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 + +### NewConnectorListWithDefaults + +`func NewConnectorListWithDefaults() *ConnectorList` + +NewConnectorListWithDefaults instantiates a new ConnectorList 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 + +### GetKind + +`func (o *ConnectorList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ConnectorList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConnectorList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConnectorList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ConnectorList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConnectorList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConnectorList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ConnectorList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConnectorList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConnectorList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ConnectorList) GetItems() []Connector` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorList) GetItemsOk() (*[]Connector, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorList) SetItems(v []Connector)` + +SetItems sets Items 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorListAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorListAllOf.md new file mode 100644 index 00000000..9257075e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorListAllOf.md @@ -0,0 +1,56 @@ +# ConnectorListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Connector**](Connector.md) | | [optional] + +## Methods + +### NewConnectorListAllOf + +`func NewConnectorListAllOf() *ConnectorListAllOf` + +NewConnectorListAllOf instantiates a new ConnectorListAllOf 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 + +### NewConnectorListAllOfWithDefaults + +`func NewConnectorListAllOfWithDefaults() *ConnectorListAllOf` + +NewConnectorListAllOfWithDefaults instantiates a new ConnectorListAllOf 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 + +### GetItems + +`func (o *ConnectorListAllOf) GetItems() []Connector` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorListAllOf) GetItemsOk() (*[]Connector, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorListAllOf) SetItems(v []Connector)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConnectorListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMeta.md new file mode 100644 index 00000000..65880fc8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMeta.md @@ -0,0 +1,244 @@ +# ConnectorMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | **string** | | +**ConnectorTypeId** | **string** | | +**NamespaceId** | **string** | | +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] [default to CHANNEL_STABLE] +**DesiredState** | [**ConnectorDesiredState**](ConnectorDesiredState.md) | | +**ResourceVersion** | Pointer to **int64** | | [optional] + +## Methods + +### NewConnectorMeta + +`func NewConnectorMeta(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, ) *ConnectorMeta` + +NewConnectorMeta instantiates a new ConnectorMeta 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 + +### NewConnectorMetaWithDefaults + +`func NewConnectorMetaWithDefaults() *ConnectorMeta` + +NewConnectorMetaWithDefaults instantiates a new ConnectorMeta 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 + +### GetOwner + +`func (o *ConnectorMeta) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ConnectorMeta) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ConnectorMeta) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ConnectorMeta) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ConnectorMeta) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectorMeta) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ConnectorMeta) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectorMeta) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ConnectorMeta) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ConnectorMeta) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ConnectorMeta) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ConnectorMeta) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorMeta) 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 *ConnectorMeta) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorMeta) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorMeta) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorMeta) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetNamespaceId + +`func (o *ConnectorMeta) GetNamespaceId() string` + +GetNamespaceId returns the NamespaceId field if non-nil, zero value otherwise. + +### GetNamespaceIdOk + +`func (o *ConnectorMeta) GetNamespaceIdOk() (*string, bool)` + +GetNamespaceIdOk returns a tuple with the NamespaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceId + +`func (o *ConnectorMeta) SetNamespaceId(v string)` + +SetNamespaceId sets NamespaceId field to given value. + + +### GetChannel + +`func (o *ConnectorMeta) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *ConnectorMeta) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *ConnectorMeta) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *ConnectorMeta) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetDesiredState + +`func (o *ConnectorMeta) GetDesiredState() ConnectorDesiredState` + +GetDesiredState returns the DesiredState field if non-nil, zero value otherwise. + +### GetDesiredStateOk + +`func (o *ConnectorMeta) GetDesiredStateOk() (*ConnectorDesiredState, bool)` + +GetDesiredStateOk returns a tuple with the DesiredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDesiredState + +`func (o *ConnectorMeta) SetDesiredState(v ConnectorDesiredState)` + +SetDesiredState sets DesiredState field to given value. + + +### GetResourceVersion + +`func (o *ConnectorMeta) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ConnectorMeta) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ConnectorMeta) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *ConnectorMeta) HasResourceVersion() bool` + +HasResourceVersion 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMetaAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMetaAllOf.md new file mode 100644 index 00000000..5352f086 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorMetaAllOf.md @@ -0,0 +1,56 @@ +# ConnectorMetaAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceVersion** | Pointer to **int64** | | [optional] + +## Methods + +### NewConnectorMetaAllOf + +`func NewConnectorMetaAllOf() *ConnectorMetaAllOf` + +NewConnectorMetaAllOf instantiates a new ConnectorMetaAllOf 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 + +### NewConnectorMetaAllOfWithDefaults + +`func NewConnectorMetaAllOfWithDefaults() *ConnectorMetaAllOf` + +NewConnectorMetaAllOfWithDefaults instantiates a new ConnectorMetaAllOf 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 + +### GetResourceVersion + +`func (o *ConnectorMetaAllOf) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ConnectorMetaAllOf) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ConnectorMetaAllOf) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *ConnectorMetaAllOf) HasResourceVersion() bool` + +HasResourceVersion 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespace.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespace.md new file mode 100644 index 00000000..db5fa454 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespace.md @@ -0,0 +1,364 @@ +# ConnectorNamespace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | **string** | | +**Annotations** | Pointer to **map[string]string** | | [optional] +**ResourceVersion** | **int64** | | +**Quota** | Pointer to [**ConnectorNamespaceQuota**](ConnectorNamespaceQuota.md) | | [optional] +**ClusterId** | **string** | | +**Expiration** | Pointer to **string** | Namespace expiration timestamp in RFC 3339 format | [optional] +**Tenant** | [**ConnectorNamespaceTenant**](ConnectorNamespaceTenant.md) | | +**Status** | [**ConnectorNamespaceStatus**](ConnectorNamespaceStatus.md) | | + +## Methods + +### NewConnectorNamespace + +`func NewConnectorNamespace(id string, name string, resourceVersion int64, clusterId string, tenant ConnectorNamespaceTenant, status ConnectorNamespaceStatus, ) *ConnectorNamespace` + +NewConnectorNamespace instantiates a new ConnectorNamespace 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 + +### NewConnectorNamespaceWithDefaults + +`func NewConnectorNamespaceWithDefaults() *ConnectorNamespace` + +NewConnectorNamespaceWithDefaults instantiates a new ConnectorNamespace 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 *ConnectorNamespace) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorNamespace) 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 *ConnectorNamespace) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *ConnectorNamespace) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorNamespace) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorNamespace) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConnectorNamespace) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ConnectorNamespace) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ConnectorNamespace) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ConnectorNamespace) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ConnectorNamespace) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetOwner + +`func (o *ConnectorNamespace) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ConnectorNamespace) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ConnectorNamespace) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ConnectorNamespace) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ConnectorNamespace) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectorNamespace) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ConnectorNamespace) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectorNamespace) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ConnectorNamespace) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ConnectorNamespace) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ConnectorNamespace) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ConnectorNamespace) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorNamespace) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespace) 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 *ConnectorNamespace) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAnnotations + +`func (o *ConnectorNamespace) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespace) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespace) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespace) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetResourceVersion + +`func (o *ConnectorNamespace) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ConnectorNamespace) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ConnectorNamespace) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + + +### GetQuota + +`func (o *ConnectorNamespace) GetQuota() ConnectorNamespaceQuota` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *ConnectorNamespace) GetQuotaOk() (*ConnectorNamespaceQuota, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *ConnectorNamespace) SetQuota(v ConnectorNamespaceQuota)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *ConnectorNamespace) HasQuota() bool` + +HasQuota returns a boolean if a field has been set. + +### GetClusterId + +`func (o *ConnectorNamespace) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ConnectorNamespace) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ConnectorNamespace) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + + +### GetExpiration + +`func (o *ConnectorNamespace) GetExpiration() string` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *ConnectorNamespace) GetExpirationOk() (*string, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *ConnectorNamespace) SetExpiration(v string)` + +SetExpiration sets Expiration field to given value. + +### HasExpiration + +`func (o *ConnectorNamespace) HasExpiration() bool` + +HasExpiration returns a boolean if a field has been set. + +### GetTenant + +`func (o *ConnectorNamespace) GetTenant() ConnectorNamespaceTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ConnectorNamespace) GetTenantOk() (*ConnectorNamespaceTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ConnectorNamespace) SetTenant(v ConnectorNamespaceTenant)` + +SetTenant sets Tenant field to given value. + + +### GetStatus + +`func (o *ConnectorNamespace) GetStatus() ConnectorNamespaceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ConnectorNamespace) GetStatusOk() (*ConnectorNamespaceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ConnectorNamespace) SetStatus(v ConnectorNamespaceStatus)` + +SetStatus sets Status 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceAllOf.md new file mode 100644 index 00000000..d25b8950 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceAllOf.md @@ -0,0 +1,140 @@ +# ConnectorNamespaceAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ClusterId** | **string** | | +**Expiration** | Pointer to **string** | Namespace expiration timestamp in RFC 3339 format | [optional] +**Tenant** | [**ConnectorNamespaceTenant**](ConnectorNamespaceTenant.md) | | +**Status** | [**ConnectorNamespaceStatus**](ConnectorNamespaceStatus.md) | | + +## Methods + +### NewConnectorNamespaceAllOf + +`func NewConnectorNamespaceAllOf(name string, clusterId string, tenant ConnectorNamespaceTenant, status ConnectorNamespaceStatus, ) *ConnectorNamespaceAllOf` + +NewConnectorNamespaceAllOf instantiates a new ConnectorNamespaceAllOf 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 + +### NewConnectorNamespaceAllOfWithDefaults + +`func NewConnectorNamespaceAllOfWithDefaults() *ConnectorNamespaceAllOf` + +NewConnectorNamespaceAllOfWithDefaults instantiates a new ConnectorNamespaceAllOf 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 *ConnectorNamespaceAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespaceAllOf) 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 *ConnectorNamespaceAllOf) SetName(v string)` + +SetName sets Name field to given value. + + +### GetClusterId + +`func (o *ConnectorNamespaceAllOf) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ConnectorNamespaceAllOf) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ConnectorNamespaceAllOf) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + + +### GetExpiration + +`func (o *ConnectorNamespaceAllOf) GetExpiration() string` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *ConnectorNamespaceAllOf) GetExpirationOk() (*string, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *ConnectorNamespaceAllOf) SetExpiration(v string)` + +SetExpiration sets Expiration field to given value. + +### HasExpiration + +`func (o *ConnectorNamespaceAllOf) HasExpiration() bool` + +HasExpiration returns a boolean if a field has been set. + +### GetTenant + +`func (o *ConnectorNamespaceAllOf) GetTenant() ConnectorNamespaceTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ConnectorNamespaceAllOf) GetTenantOk() (*ConnectorNamespaceTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ConnectorNamespaceAllOf) SetTenant(v ConnectorNamespaceTenant)` + +SetTenant sets Tenant field to given value. + + +### GetStatus + +`func (o *ConnectorNamespaceAllOf) GetStatus() ConnectorNamespaceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ConnectorNamespaceAllOf) GetStatusOk() (*ConnectorNamespaceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ConnectorNamespaceAllOf) SetStatus(v ConnectorNamespaceStatus)` + +SetStatus sets Status 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceEvalRequest.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceEvalRequest.md new file mode 100644 index 00000000..2726a124 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceEvalRequest.md @@ -0,0 +1,82 @@ +# ConnectorNamespaceEvalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. | [optional] +**Annotations** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewConnectorNamespaceEvalRequest + +`func NewConnectorNamespaceEvalRequest() *ConnectorNamespaceEvalRequest` + +NewConnectorNamespaceEvalRequest instantiates a new ConnectorNamespaceEvalRequest 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 + +### NewConnectorNamespaceEvalRequestWithDefaults + +`func NewConnectorNamespaceEvalRequestWithDefaults() *ConnectorNamespaceEvalRequest` + +NewConnectorNamespaceEvalRequestWithDefaults instantiates a new ConnectorNamespaceEvalRequest 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 *ConnectorNamespaceEvalRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespaceEvalRequest) 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 *ConnectorNamespaceEvalRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorNamespaceEvalRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *ConnectorNamespaceEvalRequest) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespaceEvalRequest) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespaceEvalRequest) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespaceEvalRequest) HasAnnotations() bool` + +HasAnnotations 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceList.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceList.md new file mode 100644 index 00000000..19e189ec --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceList.md @@ -0,0 +1,135 @@ +# ConnectorNamespaceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ConnectorNamespace**](ConnectorNamespace.md) | | + +## Methods + +### NewConnectorNamespaceList + +`func NewConnectorNamespaceList(kind string, page int32, size int32, total int32, items []ConnectorNamespace, ) *ConnectorNamespaceList` + +NewConnectorNamespaceList instantiates a new ConnectorNamespaceList 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 + +### NewConnectorNamespaceListWithDefaults + +`func NewConnectorNamespaceListWithDefaults() *ConnectorNamespaceList` + +NewConnectorNamespaceListWithDefaults instantiates a new ConnectorNamespaceList 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 + +### GetKind + +`func (o *ConnectorNamespaceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorNamespaceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorNamespaceList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ConnectorNamespaceList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConnectorNamespaceList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConnectorNamespaceList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ConnectorNamespaceList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConnectorNamespaceList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConnectorNamespaceList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ConnectorNamespaceList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConnectorNamespaceList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConnectorNamespaceList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ConnectorNamespaceList) GetItems() []ConnectorNamespace` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorNamespaceList) GetItemsOk() (*[]ConnectorNamespace, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorNamespaceList) SetItems(v []ConnectorNamespace)` + +SetItems sets Items 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceListAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceListAllOf.md new file mode 100644 index 00000000..f9d9be4c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceListAllOf.md @@ -0,0 +1,56 @@ +# ConnectorNamespaceListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConnectorNamespace**](ConnectorNamespace.md) | | [optional] + +## Methods + +### NewConnectorNamespaceListAllOf + +`func NewConnectorNamespaceListAllOf() *ConnectorNamespaceListAllOf` + +NewConnectorNamespaceListAllOf instantiates a new ConnectorNamespaceListAllOf 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 + +### NewConnectorNamespaceListAllOfWithDefaults + +`func NewConnectorNamespaceListAllOfWithDefaults() *ConnectorNamespaceListAllOf` + +NewConnectorNamespaceListAllOfWithDefaults instantiates a new ConnectorNamespaceListAllOf 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 + +### GetItems + +`func (o *ConnectorNamespaceListAllOf) GetItems() []ConnectorNamespace` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorNamespaceListAllOf) GetItemsOk() (*[]ConnectorNamespace, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorNamespaceListAllOf) SetItems(v []ConnectorNamespace)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConnectorNamespaceListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMeta.md new file mode 100644 index 00000000..39556c4c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMeta.md @@ -0,0 +1,212 @@ +# ConnectorNamespaceMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Name** | Pointer to **string** | Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. | [optional] +**Annotations** | Pointer to **map[string]string** | | [optional] +**ResourceVersion** | Pointer to **int64** | | [optional] +**Quota** | Pointer to [**ConnectorNamespaceQuota**](ConnectorNamespaceQuota.md) | | [optional] + +## Methods + +### NewConnectorNamespaceMeta + +`func NewConnectorNamespaceMeta() *ConnectorNamespaceMeta` + +NewConnectorNamespaceMeta instantiates a new ConnectorNamespaceMeta 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 + +### NewConnectorNamespaceMetaWithDefaults + +`func NewConnectorNamespaceMetaWithDefaults() *ConnectorNamespaceMeta` + +NewConnectorNamespaceMetaWithDefaults instantiates a new ConnectorNamespaceMeta 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 + +### GetOwner + +`func (o *ConnectorNamespaceMeta) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ConnectorNamespaceMeta) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ConnectorNamespaceMeta) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ConnectorNamespaceMeta) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ConnectorNamespaceMeta) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ConnectorNamespaceMeta) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ConnectorNamespaceMeta) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ConnectorNamespaceMeta) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ConnectorNamespaceMeta) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ConnectorNamespaceMeta) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ConnectorNamespaceMeta) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ConnectorNamespaceMeta) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorNamespaceMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespaceMeta) 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 *ConnectorNamespaceMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorNamespaceMeta) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *ConnectorNamespaceMeta) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespaceMeta) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespaceMeta) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespaceMeta) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetResourceVersion + +`func (o *ConnectorNamespaceMeta) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ConnectorNamespaceMeta) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ConnectorNamespaceMeta) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *ConnectorNamespaceMeta) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetQuota + +`func (o *ConnectorNamespaceMeta) GetQuota() ConnectorNamespaceQuota` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *ConnectorNamespaceMeta) GetQuotaOk() (*ConnectorNamespaceQuota, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *ConnectorNamespaceMeta) SetQuota(v ConnectorNamespaceQuota)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *ConnectorNamespaceMeta) HasQuota() bool` + +HasQuota 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMetaAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMetaAllOf.md new file mode 100644 index 00000000..b1e91ec6 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceMetaAllOf.md @@ -0,0 +1,82 @@ +# ConnectorNamespaceMetaAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceVersion** | Pointer to **int64** | | [optional] +**Quota** | Pointer to [**ConnectorNamespaceQuota**](ConnectorNamespaceQuota.md) | | [optional] + +## Methods + +### NewConnectorNamespaceMetaAllOf + +`func NewConnectorNamespaceMetaAllOf() *ConnectorNamespaceMetaAllOf` + +NewConnectorNamespaceMetaAllOf instantiates a new ConnectorNamespaceMetaAllOf 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 + +### NewConnectorNamespaceMetaAllOfWithDefaults + +`func NewConnectorNamespaceMetaAllOfWithDefaults() *ConnectorNamespaceMetaAllOf` + +NewConnectorNamespaceMetaAllOfWithDefaults instantiates a new ConnectorNamespaceMetaAllOf 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 + +### GetResourceVersion + +`func (o *ConnectorNamespaceMetaAllOf) GetResourceVersion() int64` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ConnectorNamespaceMetaAllOf) GetResourceVersionOk() (*int64, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ConnectorNamespaceMetaAllOf) SetResourceVersion(v int64)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *ConnectorNamespaceMetaAllOf) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetQuota + +`func (o *ConnectorNamespaceMetaAllOf) GetQuota() ConnectorNamespaceQuota` + +GetQuota returns the Quota field if non-nil, zero value otherwise. + +### GetQuotaOk + +`func (o *ConnectorNamespaceMetaAllOf) GetQuotaOk() (*ConnectorNamespaceQuota, bool)` + +GetQuotaOk returns a tuple with the Quota field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuota + +`func (o *ConnectorNamespaceMetaAllOf) SetQuota(v ConnectorNamespaceQuota)` + +SetQuota sets Quota field to given value. + +### HasQuota + +`func (o *ConnectorNamespaceMetaAllOf) HasQuota() bool` + +HasQuota 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacePatchRequest.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacePatchRequest.md new file mode 100644 index 00000000..e1deda52 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacePatchRequest.md @@ -0,0 +1,82 @@ +# ConnectorNamespacePatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. | [optional] +**Annotations** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewConnectorNamespacePatchRequest + +`func NewConnectorNamespacePatchRequest() *ConnectorNamespacePatchRequest` + +NewConnectorNamespacePatchRequest instantiates a new ConnectorNamespacePatchRequest 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 + +### NewConnectorNamespacePatchRequestWithDefaults + +`func NewConnectorNamespacePatchRequestWithDefaults() *ConnectorNamespacePatchRequest` + +NewConnectorNamespacePatchRequestWithDefaults instantiates a new ConnectorNamespacePatchRequest 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 *ConnectorNamespacePatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespacePatchRequest) 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 *ConnectorNamespacePatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorNamespacePatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *ConnectorNamespacePatchRequest) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespacePatchRequest) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespacePatchRequest) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespacePatchRequest) HasAnnotations() bool` + +HasAnnotations 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceQuota.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceQuota.md new file mode 100644 index 00000000..5bb5f2ff --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceQuota.md @@ -0,0 +1,160 @@ +# ConnectorNamespaceQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Connectors** | Pointer to **int32** | | [optional] +**MemoryRequests** | Pointer to **string** | Memory quota for limits or requests | [optional] +**MemoryLimits** | Pointer to **string** | Memory quota for limits or requests | [optional] +**CpuRequests** | Pointer to **string** | CPU quota for limits or requests | [optional] +**CpuLimits** | Pointer to **string** | CPU quota for limits or requests | [optional] + +## Methods + +### NewConnectorNamespaceQuota + +`func NewConnectorNamespaceQuota() *ConnectorNamespaceQuota` + +NewConnectorNamespaceQuota instantiates a new ConnectorNamespaceQuota 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 + +### NewConnectorNamespaceQuotaWithDefaults + +`func NewConnectorNamespaceQuotaWithDefaults() *ConnectorNamespaceQuota` + +NewConnectorNamespaceQuotaWithDefaults instantiates a new ConnectorNamespaceQuota 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 + +### GetConnectors + +`func (o *ConnectorNamespaceQuota) GetConnectors() int32` + +GetConnectors returns the Connectors field if non-nil, zero value otherwise. + +### GetConnectorsOk + +`func (o *ConnectorNamespaceQuota) GetConnectorsOk() (*int32, bool)` + +GetConnectorsOk returns a tuple with the Connectors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectors + +`func (o *ConnectorNamespaceQuota) SetConnectors(v int32)` + +SetConnectors sets Connectors field to given value. + +### HasConnectors + +`func (o *ConnectorNamespaceQuota) HasConnectors() bool` + +HasConnectors returns a boolean if a field has been set. + +### GetMemoryRequests + +`func (o *ConnectorNamespaceQuota) GetMemoryRequests() string` + +GetMemoryRequests returns the MemoryRequests field if non-nil, zero value otherwise. + +### GetMemoryRequestsOk + +`func (o *ConnectorNamespaceQuota) GetMemoryRequestsOk() (*string, bool)` + +GetMemoryRequestsOk returns a tuple with the MemoryRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryRequests + +`func (o *ConnectorNamespaceQuota) SetMemoryRequests(v string)` + +SetMemoryRequests sets MemoryRequests field to given value. + +### HasMemoryRequests + +`func (o *ConnectorNamespaceQuota) HasMemoryRequests() bool` + +HasMemoryRequests returns a boolean if a field has been set. + +### GetMemoryLimits + +`func (o *ConnectorNamespaceQuota) GetMemoryLimits() string` + +GetMemoryLimits returns the MemoryLimits field if non-nil, zero value otherwise. + +### GetMemoryLimitsOk + +`func (o *ConnectorNamespaceQuota) GetMemoryLimitsOk() (*string, bool)` + +GetMemoryLimitsOk returns a tuple with the MemoryLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemoryLimits + +`func (o *ConnectorNamespaceQuota) SetMemoryLimits(v string)` + +SetMemoryLimits sets MemoryLimits field to given value. + +### HasMemoryLimits + +`func (o *ConnectorNamespaceQuota) HasMemoryLimits() bool` + +HasMemoryLimits returns a boolean if a field has been set. + +### GetCpuRequests + +`func (o *ConnectorNamespaceQuota) GetCpuRequests() string` + +GetCpuRequests returns the CpuRequests field if non-nil, zero value otherwise. + +### GetCpuRequestsOk + +`func (o *ConnectorNamespaceQuota) GetCpuRequestsOk() (*string, bool)` + +GetCpuRequestsOk returns a tuple with the CpuRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuRequests + +`func (o *ConnectorNamespaceQuota) SetCpuRequests(v string)` + +SetCpuRequests sets CpuRequests field to given value. + +### HasCpuRequests + +`func (o *ConnectorNamespaceQuota) HasCpuRequests() bool` + +HasCpuRequests returns a boolean if a field has been set. + +### GetCpuLimits + +`func (o *ConnectorNamespaceQuota) GetCpuLimits() string` + +GetCpuLimits returns the CpuLimits field if non-nil, zero value otherwise. + +### GetCpuLimitsOk + +`func (o *ConnectorNamespaceQuota) GetCpuLimitsOk() (*string, bool)` + +GetCpuLimitsOk returns a tuple with the CpuLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpuLimits + +`func (o *ConnectorNamespaceQuota) SetCpuLimits(v string)` + +SetCpuLimits sets CpuLimits field to given value. + +### HasCpuLimits + +`func (o *ConnectorNamespaceQuota) HasCpuLimits() bool` + +HasCpuLimits 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequest.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequest.md new file mode 100644 index 00000000..c6ecccee --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequest.md @@ -0,0 +1,119 @@ +# ConnectorNamespaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. | +**Annotations** | Pointer to **map[string]string** | | [optional] +**ClusterId** | **string** | | +**Kind** | [**ConnectorNamespaceTenantKind**](ConnectorNamespaceTenantKind.md) | | + +## Methods + +### NewConnectorNamespaceRequest + +`func NewConnectorNamespaceRequest(name string, clusterId string, kind ConnectorNamespaceTenantKind, ) *ConnectorNamespaceRequest` + +NewConnectorNamespaceRequest instantiates a new ConnectorNamespaceRequest 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 + +### NewConnectorNamespaceRequestWithDefaults + +`func NewConnectorNamespaceRequestWithDefaults() *ConnectorNamespaceRequest` + +NewConnectorNamespaceRequestWithDefaults instantiates a new ConnectorNamespaceRequest 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 *ConnectorNamespaceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespaceRequest) 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 *ConnectorNamespaceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAnnotations + +`func (o *ConnectorNamespaceRequest) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespaceRequest) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespaceRequest) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespaceRequest) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetClusterId + +`func (o *ConnectorNamespaceRequest) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ConnectorNamespaceRequest) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ConnectorNamespaceRequest) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + + +### GetKind + +`func (o *ConnectorNamespaceRequest) GetKind() ConnectorNamespaceTenantKind` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorNamespaceRequest) GetKindOk() (*ConnectorNamespaceTenantKind, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorNamespaceRequest) SetKind(v ConnectorNamespaceTenantKind)` + +SetKind sets Kind 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestAllOf.md new file mode 100644 index 00000000..c82acba0 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestAllOf.md @@ -0,0 +1,82 @@ +# ConnectorNamespaceRequestAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterId** | Pointer to **string** | | [optional] +**Kind** | Pointer to [**ConnectorNamespaceTenantKind**](ConnectorNamespaceTenantKind.md) | | [optional] + +## Methods + +### NewConnectorNamespaceRequestAllOf + +`func NewConnectorNamespaceRequestAllOf() *ConnectorNamespaceRequestAllOf` + +NewConnectorNamespaceRequestAllOf instantiates a new ConnectorNamespaceRequestAllOf 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 + +### NewConnectorNamespaceRequestAllOfWithDefaults + +`func NewConnectorNamespaceRequestAllOfWithDefaults() *ConnectorNamespaceRequestAllOf` + +NewConnectorNamespaceRequestAllOfWithDefaults instantiates a new ConnectorNamespaceRequestAllOf 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 + +### GetClusterId + +`func (o *ConnectorNamespaceRequestAllOf) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ConnectorNamespaceRequestAllOf) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ConnectorNamespaceRequestAllOf) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + +### HasClusterId + +`func (o *ConnectorNamespaceRequestAllOf) HasClusterId() bool` + +HasClusterId returns a boolean if a field has been set. + +### GetKind + +`func (o *ConnectorNamespaceRequestAllOf) GetKind() ConnectorNamespaceTenantKind` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorNamespaceRequestAllOf) GetKindOk() (*ConnectorNamespaceTenantKind, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorNamespaceRequestAllOf) SetKind(v ConnectorNamespaceTenantKind)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConnectorNamespaceRequestAllOf) HasKind() bool` + +HasKind 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestMeta.md new file mode 100644 index 00000000..ade3977a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceRequestMeta.md @@ -0,0 +1,82 @@ +# ConnectorNamespaceRequestMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. | [optional] +**Annotations** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewConnectorNamespaceRequestMeta + +`func NewConnectorNamespaceRequestMeta() *ConnectorNamespaceRequestMeta` + +NewConnectorNamespaceRequestMeta instantiates a new ConnectorNamespaceRequestMeta 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 + +### NewConnectorNamespaceRequestMetaWithDefaults + +`func NewConnectorNamespaceRequestMetaWithDefaults() *ConnectorNamespaceRequestMeta` + +NewConnectorNamespaceRequestMetaWithDefaults instantiates a new ConnectorNamespaceRequestMeta 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 *ConnectorNamespaceRequestMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorNamespaceRequestMeta) 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 *ConnectorNamespaceRequestMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorNamespaceRequestMeta) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAnnotations + +`func (o *ConnectorNamespaceRequestMeta) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ConnectorNamespaceRequestMeta) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ConnectorNamespaceRequestMeta) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ConnectorNamespaceRequestMeta) HasAnnotations() bool` + +HasAnnotations 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceState.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceState.md new file mode 100644 index 00000000..b48123a5 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceState.md @@ -0,0 +1,17 @@ +# ConnectorNamespaceState + +## Enum + + +* `DISCONNECTED` (value: `"disconnected"`) + +* `READY` (value: `"ready"`) + +* `DELETING` (value: `"deleting"`) + +* `DELETED` (value: `"deleted"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceStatus.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceStatus.md new file mode 100644 index 00000000..82d82c75 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceStatus.md @@ -0,0 +1,124 @@ +# ConnectorNamespaceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | [**ConnectorNamespaceState**](ConnectorNamespaceState.md) | | +**Version** | Pointer to **string** | | [optional] +**ConnectorsDeployed** | **int32** | | +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorNamespaceStatus + +`func NewConnectorNamespaceStatus(state ConnectorNamespaceState, connectorsDeployed int32, ) *ConnectorNamespaceStatus` + +NewConnectorNamespaceStatus instantiates a new ConnectorNamespaceStatus 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 + +### NewConnectorNamespaceStatusWithDefaults + +`func NewConnectorNamespaceStatusWithDefaults() *ConnectorNamespaceStatus` + +NewConnectorNamespaceStatusWithDefaults instantiates a new ConnectorNamespaceStatus 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 + +### GetState + +`func (o *ConnectorNamespaceStatus) GetState() ConnectorNamespaceState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConnectorNamespaceStatus) GetStateOk() (*ConnectorNamespaceState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConnectorNamespaceStatus) SetState(v ConnectorNamespaceState)` + +SetState sets State field to given value. + + +### GetVersion + +`func (o *ConnectorNamespaceStatus) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConnectorNamespaceStatus) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConnectorNamespaceStatus) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ConnectorNamespaceStatus) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetConnectorsDeployed + +`func (o *ConnectorNamespaceStatus) GetConnectorsDeployed() int32` + +GetConnectorsDeployed returns the ConnectorsDeployed field if non-nil, zero value otherwise. + +### GetConnectorsDeployedOk + +`func (o *ConnectorNamespaceStatus) GetConnectorsDeployedOk() (*int32, bool)` + +GetConnectorsDeployedOk returns a tuple with the ConnectorsDeployed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorsDeployed + +`func (o *ConnectorNamespaceStatus) SetConnectorsDeployed(v int32)` + +SetConnectorsDeployed sets ConnectorsDeployed field to given value. + + +### GetError + +`func (o *ConnectorNamespaceStatus) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ConnectorNamespaceStatus) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ConnectorNamespaceStatus) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ConnectorNamespaceStatus) HasError() bool` + +HasError 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenant.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenant.md new file mode 100644 index 00000000..e4031e54 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenant.md @@ -0,0 +1,72 @@ +# ConnectorNamespaceTenant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | [**ConnectorNamespaceTenantKind**](ConnectorNamespaceTenantKind.md) | | +**Id** | **string** | Either user or organisation id depending on the value of kind | + +## Methods + +### NewConnectorNamespaceTenant + +`func NewConnectorNamespaceTenant(kind ConnectorNamespaceTenantKind, id string, ) *ConnectorNamespaceTenant` + +NewConnectorNamespaceTenant instantiates a new ConnectorNamespaceTenant 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 + +### NewConnectorNamespaceTenantWithDefaults + +`func NewConnectorNamespaceTenantWithDefaults() *ConnectorNamespaceTenant` + +NewConnectorNamespaceTenantWithDefaults instantiates a new ConnectorNamespaceTenant 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 + +### GetKind + +`func (o *ConnectorNamespaceTenant) GetKind() ConnectorNamespaceTenantKind` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorNamespaceTenant) GetKindOk() (*ConnectorNamespaceTenantKind, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorNamespaceTenant) SetKind(v ConnectorNamespaceTenantKind)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *ConnectorNamespaceTenant) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorNamespaceTenant) 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 *ConnectorNamespaceTenant) 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenantKind.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenantKind.md new file mode 100644 index 00000000..0728259c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespaceTenantKind.md @@ -0,0 +1,13 @@ +# ConnectorNamespaceTenantKind + +## Enum + + +* `USER` (value: `"user"`) + +* `ORGANISATION` (value: `"organisation"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacesApi.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacesApi.md new file mode 100644 index 00000000..dee4653e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorNamespacesApi.md @@ -0,0 +1,219 @@ +# \ConnectorNamespacesApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEvaluationNamespace**](ConnectorNamespacesApi.md#CreateEvaluationNamespace) | **Post** /api/connector_mgmt/v1/kafka_connector_namespaces/eval | Create a new short lived evaluation connector namespace +[**GetConnectorNamespace**](ConnectorNamespacesApi.md#GetConnectorNamespace) | **Get** /api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id} | Get a connector namespace +[**ListConnectorNamespaces**](ConnectorNamespacesApi.md#ListConnectorNamespaces) | **Get** /api/connector_mgmt/v1/kafka_connector_namespaces | Returns a list of connector namespaces + + + +## CreateEvaluationNamespace + +> ConnectorNamespace CreateEvaluationNamespace(ctx).ConnectorNamespaceEvalRequest(connectorNamespaceEvalRequest).Execute() + +Create a new short lived evaluation connector namespace + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorNamespaceEvalRequest := *openapiclient.NewConnectorNamespaceEvalRequest() // ConnectorNamespaceEvalRequest | Connector namespace data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorNamespacesApi.CreateEvaluationNamespace(context.Background()).ConnectorNamespaceEvalRequest(connectorNamespaceEvalRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorNamespacesApi.CreateEvaluationNamespace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEvaluationNamespace`: ConnectorNamespace + fmt.Fprintf(os.Stdout, "Response from `ConnectorNamespacesApi.CreateEvaluationNamespace`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEvaluationNamespaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connectorNamespaceEvalRequest** | [**ConnectorNamespaceEvalRequest**](ConnectorNamespaceEvalRequest.md) | Connector namespace data | + +### Return type + +[**ConnectorNamespace**](ConnectorNamespace.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorNamespace + +> ConnectorNamespace GetConnectorNamespace(ctx, connectorNamespaceId).Execute() + +Get a connector namespace + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorNamespaceId := "connectorNamespaceId_example" // string | The id of the connector namespace + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorNamespacesApi.GetConnectorNamespace(context.Background(), connectorNamespaceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorNamespacesApi.GetConnectorNamespace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorNamespace`: ConnectorNamespace + fmt.Fprintf(os.Stdout, "Response from `ConnectorNamespacesApi.GetConnectorNamespace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorNamespaceId** | **string** | The id of the connector namespace | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorNamespaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ConnectorNamespace**](ConnectorNamespace.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListConnectorNamespaces + +> ConnectorNamespaceList ListConnectorNamespaces(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + +Returns a list of connector namespaces + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorNamespacesApi.ListConnectorNamespaces(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorNamespacesApi.ListConnectorNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnectorNamespaces`: ConnectorNamespaceList + fmt.Fprintf(os.Stdout, "Response from `ConnectorNamespacesApi.ListConnectorNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListConnectorNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorNamespaceList**](ConnectorNamespaceList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequest.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequest.md new file mode 100644 index 00000000..d5071692 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequest.md @@ -0,0 +1,229 @@ +# ConnectorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ConnectorTypeId** | **string** | | +**NamespaceId** | **string** | | +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] [default to CHANNEL_STABLE] +**DesiredState** | [**ConnectorDesiredState**](ConnectorDesiredState.md) | | +**Kafka** | [**KafkaConnectionSettings**](KafkaConnectionSettings.md) | | +**ServiceAccount** | [**ServiceAccount**](ServiceAccount.md) | | +**SchemaRegistry** | Pointer to [**SchemaRegistryConnectionSettings**](SchemaRegistryConnectionSettings.md) | | [optional] +**Connector** | **map[string]interface{}** | | + +## Methods + +### NewConnectorRequest + +`func NewConnectorRequest(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}, ) *ConnectorRequest` + +NewConnectorRequest instantiates a new ConnectorRequest 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 + +### NewConnectorRequestWithDefaults + +`func NewConnectorRequestWithDefaults() *ConnectorRequest` + +NewConnectorRequestWithDefaults instantiates a new ConnectorRequest 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 *ConnectorRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorRequest) 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 *ConnectorRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorRequest) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorRequest) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorRequest) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetNamespaceId + +`func (o *ConnectorRequest) GetNamespaceId() string` + +GetNamespaceId returns the NamespaceId field if non-nil, zero value otherwise. + +### GetNamespaceIdOk + +`func (o *ConnectorRequest) GetNamespaceIdOk() (*string, bool)` + +GetNamespaceIdOk returns a tuple with the NamespaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceId + +`func (o *ConnectorRequest) SetNamespaceId(v string)` + +SetNamespaceId sets NamespaceId field to given value. + + +### GetChannel + +`func (o *ConnectorRequest) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *ConnectorRequest) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *ConnectorRequest) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *ConnectorRequest) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetDesiredState + +`func (o *ConnectorRequest) GetDesiredState() ConnectorDesiredState` + +GetDesiredState returns the DesiredState field if non-nil, zero value otherwise. + +### GetDesiredStateOk + +`func (o *ConnectorRequest) GetDesiredStateOk() (*ConnectorDesiredState, bool)` + +GetDesiredStateOk returns a tuple with the DesiredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDesiredState + +`func (o *ConnectorRequest) SetDesiredState(v ConnectorDesiredState)` + +SetDesiredState sets DesiredState field to given value. + + +### GetKafka + +`func (o *ConnectorRequest) GetKafka() KafkaConnectionSettings` + +GetKafka returns the Kafka field if non-nil, zero value otherwise. + +### GetKafkaOk + +`func (o *ConnectorRequest) GetKafkaOk() (*KafkaConnectionSettings, bool)` + +GetKafkaOk returns a tuple with the Kafka field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafka + +`func (o *ConnectorRequest) SetKafka(v KafkaConnectionSettings)` + +SetKafka sets Kafka field to given value. + + +### GetServiceAccount + +`func (o *ConnectorRequest) GetServiceAccount() ServiceAccount` + +GetServiceAccount returns the ServiceAccount field if non-nil, zero value otherwise. + +### GetServiceAccountOk + +`func (o *ConnectorRequest) GetServiceAccountOk() (*ServiceAccount, bool)` + +GetServiceAccountOk returns a tuple with the ServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccount + +`func (o *ConnectorRequest) SetServiceAccount(v ServiceAccount)` + +SetServiceAccount sets ServiceAccount field to given value. + + +### GetSchemaRegistry + +`func (o *ConnectorRequest) GetSchemaRegistry() SchemaRegistryConnectionSettings` + +GetSchemaRegistry returns the SchemaRegistry field if non-nil, zero value otherwise. + +### GetSchemaRegistryOk + +`func (o *ConnectorRequest) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool)` + +GetSchemaRegistryOk returns a tuple with the SchemaRegistry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemaRegistry + +`func (o *ConnectorRequest) SetSchemaRegistry(v SchemaRegistryConnectionSettings)` + +SetSchemaRegistry sets SchemaRegistry field to given value. + +### HasSchemaRegistry + +`func (o *ConnectorRequest) HasSchemaRegistry() bool` + +HasSchemaRegistry returns a boolean if a field has been set. + +### GetConnector + +`func (o *ConnectorRequest) GetConnector() map[string]interface{}` + +GetConnector returns the Connector field if non-nil, zero value otherwise. + +### GetConnectorOk + +`func (o *ConnectorRequest) GetConnectorOk() (*map[string]interface{}, bool)` + +GetConnectorOk returns a tuple with the Connector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnector + +`func (o *ConnectorRequest) SetConnector(v map[string]interface{})` + +SetConnector sets Connector 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequestMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequestMeta.md new file mode 100644 index 00000000..2cb8694a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorRequestMeta.md @@ -0,0 +1,140 @@ +# ConnectorRequestMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ConnectorTypeId** | **string** | | +**NamespaceId** | **string** | | +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] [default to CHANNEL_STABLE] +**DesiredState** | [**ConnectorDesiredState**](ConnectorDesiredState.md) | | + +## Methods + +### NewConnectorRequestMeta + +`func NewConnectorRequestMeta(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, ) *ConnectorRequestMeta` + +NewConnectorRequestMeta instantiates a new ConnectorRequestMeta 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 + +### NewConnectorRequestMetaWithDefaults + +`func NewConnectorRequestMetaWithDefaults() *ConnectorRequestMeta` + +NewConnectorRequestMetaWithDefaults instantiates a new ConnectorRequestMeta 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 *ConnectorRequestMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorRequestMeta) 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 *ConnectorRequestMeta) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectorTypeId + +`func (o *ConnectorRequestMeta) GetConnectorTypeId() string` + +GetConnectorTypeId returns the ConnectorTypeId field if non-nil, zero value otherwise. + +### GetConnectorTypeIdOk + +`func (o *ConnectorRequestMeta) GetConnectorTypeIdOk() (*string, bool)` + +GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorTypeId + +`func (o *ConnectorRequestMeta) SetConnectorTypeId(v string)` + +SetConnectorTypeId sets ConnectorTypeId field to given value. + + +### GetNamespaceId + +`func (o *ConnectorRequestMeta) GetNamespaceId() string` + +GetNamespaceId returns the NamespaceId field if non-nil, zero value otherwise. + +### GetNamespaceIdOk + +`func (o *ConnectorRequestMeta) GetNamespaceIdOk() (*string, bool)` + +GetNamespaceIdOk returns a tuple with the NamespaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceId + +`func (o *ConnectorRequestMeta) SetNamespaceId(v string)` + +SetNamespaceId sets NamespaceId field to given value. + + +### GetChannel + +`func (o *ConnectorRequestMeta) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *ConnectorRequestMeta) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *ConnectorRequestMeta) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *ConnectorRequestMeta) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetDesiredState + +`func (o *ConnectorRequestMeta) GetDesiredState() ConnectorDesiredState` + +GetDesiredState returns the DesiredState field if non-nil, zero value otherwise. + +### GetDesiredStateOk + +`func (o *ConnectorRequestMeta) GetDesiredStateOk() (*ConnectorDesiredState, bool)` + +GetDesiredStateOk returns a tuple with the DesiredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDesiredState + +`func (o *ConnectorRequestMeta) SetDesiredState(v ConnectorDesiredState)` + +SetDesiredState sets DesiredState 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorServiceApi.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorServiceApi.md new file mode 100644 index 00000000..df6f2d88 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorServiceApi.md @@ -0,0 +1,70 @@ +# \ConnectorServiceApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetVersionMetadata**](ConnectorServiceApi.md#GetVersionMetadata) | **Get** /api/connector_mgmt/v1 | Returns the version metadata + + + +## GetVersionMetadata + +> VersionMetadata GetVersionMetadata(ctx).Execute() + +Returns the version metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorServiceApi.GetVersionMetadata(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorServiceApi.GetVersionMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVersionMetadata`: VersionMetadata + fmt.Fprintf(os.Stdout, "Response from `ConnectorServiceApi.GetVersionMetadata`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVersionMetadataRequest struct via the builder pattern + + +### Return type + +[**VersionMetadata**](VersionMetadata.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorState.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorState.md new file mode 100644 index 00000000..77b4243d --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorState.md @@ -0,0 +1,29 @@ +# ConnectorState + +## Enum + + +* `ASSIGNING` (value: `"assigning"`) + +* `ASSIGNED` (value: `"assigned"`) + +* `UPDATING` (value: `"updating"`) + +* `READY` (value: `"ready"`) + +* `STOPPED` (value: `"stopped"`) + +* `FAILED` (value: `"failed"`) + +* `DELETING` (value: `"deleting"`) + +* `DELETED` (value: `"deleted"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `DEPROVISIONING` (value: `"deprovisioning"`) + + +[[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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatus.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatus.md new file mode 100644 index 00000000..e1824ee5 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatus.md @@ -0,0 +1,56 @@ +# ConnectorStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to [**ConnectorStatusStatus**](ConnectorStatusStatus.md) | | [optional] + +## Methods + +### NewConnectorStatus + +`func NewConnectorStatus() *ConnectorStatus` + +NewConnectorStatus instantiates a new ConnectorStatus 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 + +### NewConnectorStatusWithDefaults + +`func NewConnectorStatusWithDefaults() *ConnectorStatus` + +NewConnectorStatusWithDefaults instantiates a new ConnectorStatus 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 + +### GetStatus + +`func (o *ConnectorStatus) GetStatus() ConnectorStatusStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ConnectorStatus) GetStatusOk() (*ConnectorStatusStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ConnectorStatus) SetStatus(v ConnectorStatusStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ConnectorStatus) HasStatus() bool` + +HasStatus 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatusStatus.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatusStatus.md new file mode 100644 index 00000000..8001b402 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorStatusStatus.md @@ -0,0 +1,82 @@ +# ConnectorStatusStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | Pointer to [**ConnectorState**](ConnectorState.md) | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewConnectorStatusStatus + +`func NewConnectorStatusStatus() *ConnectorStatusStatus` + +NewConnectorStatusStatus instantiates a new ConnectorStatusStatus 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 + +### NewConnectorStatusStatusWithDefaults + +`func NewConnectorStatusStatusWithDefaults() *ConnectorStatusStatus` + +NewConnectorStatusStatusWithDefaults instantiates a new ConnectorStatusStatus 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 + +### GetState + +`func (o *ConnectorStatusStatus) GetState() ConnectorState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConnectorStatusStatus) GetStateOk() (*ConnectorState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConnectorStatusStatus) SetState(v ConnectorState)` + +SetState sets State field to given value. + +### HasState + +`func (o *ConnectorStatusStatus) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetError + +`func (o *ConnectorStatusStatus) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ConnectorStatusStatus) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ConnectorStatusStatus) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ConnectorStatusStatus) HasError() bool` + +HasError 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorType.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorType.md new file mode 100644 index 00000000..c883e3a6 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorType.md @@ -0,0 +1,327 @@ +# ConnectorType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] +**Name** | **string** | Name of the connector type. | +**Version** | **string** | Version of the connector type. | +**Channels** | Pointer to [**[]Channel**](Channel.md) | Channels of the connector type. | [optional] +**Description** | Pointer to **string** | A description of the connector. | [optional] +**IconHref** | Pointer to **string** | URL to an icon of the connector. | [optional] +**Labels** | Pointer to **[]string** | Labels used to categorize the connector | [optional] +**FeaturedRank** | Pointer to **int32** | Ranking for featured connectors | [optional] +**Capabilities** | Pointer to **[]string** | The capabilities supported by the conenctor | [optional] +**Schema** | **map[string]interface{}** | A json schema that can be used to validate a ConnectorRequest connector field. | + +## Methods + +### NewConnectorType + +`func NewConnectorType(name string, version string, schema map[string]interface{}, ) *ConnectorType` + +NewConnectorType instantiates a new ConnectorType 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 + +### NewConnectorTypeWithDefaults + +`func NewConnectorTypeWithDefaults() *ConnectorType` + +NewConnectorTypeWithDefaults instantiates a new ConnectorType 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 *ConnectorType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConnectorType) 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 *ConnectorType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ConnectorType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ConnectorType) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorType) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorType) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConnectorType) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ConnectorType) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ConnectorType) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ConnectorType) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ConnectorType) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetName + +`func (o *ConnectorType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorType) 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 *ConnectorType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetVersion + +`func (o *ConnectorType) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConnectorType) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConnectorType) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetChannels + +`func (o *ConnectorType) GetChannels() []Channel` + +GetChannels returns the Channels field if non-nil, zero value otherwise. + +### GetChannelsOk + +`func (o *ConnectorType) GetChannelsOk() (*[]Channel, bool)` + +GetChannelsOk returns a tuple with the Channels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannels + +`func (o *ConnectorType) SetChannels(v []Channel)` + +SetChannels sets Channels field to given value. + +### HasChannels + +`func (o *ConnectorType) HasChannels() bool` + +HasChannels returns a boolean if a field has been set. + +### GetDescription + +`func (o *ConnectorType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ConnectorType) 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 *ConnectorType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ConnectorType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetIconHref + +`func (o *ConnectorType) GetIconHref() string` + +GetIconHref returns the IconHref field if non-nil, zero value otherwise. + +### GetIconHrefOk + +`func (o *ConnectorType) GetIconHrefOk() (*string, bool)` + +GetIconHrefOk returns a tuple with the IconHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIconHref + +`func (o *ConnectorType) SetIconHref(v string)` + +SetIconHref sets IconHref field to given value. + +### HasIconHref + +`func (o *ConnectorType) HasIconHref() bool` + +HasIconHref returns a boolean if a field has been set. + +### GetLabels + +`func (o *ConnectorType) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ConnectorType) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ConnectorType) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ConnectorType) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetFeaturedRank + +`func (o *ConnectorType) GetFeaturedRank() int32` + +GetFeaturedRank returns the FeaturedRank field if non-nil, zero value otherwise. + +### GetFeaturedRankOk + +`func (o *ConnectorType) GetFeaturedRankOk() (*int32, bool)` + +GetFeaturedRankOk returns a tuple with the FeaturedRank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeaturedRank + +`func (o *ConnectorType) SetFeaturedRank(v int32)` + +SetFeaturedRank sets FeaturedRank field to given value. + +### HasFeaturedRank + +`func (o *ConnectorType) HasFeaturedRank() bool` + +HasFeaturedRank returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *ConnectorType) GetCapabilities() []string` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *ConnectorType) GetCapabilitiesOk() (*[]string, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *ConnectorType) SetCapabilities(v []string)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *ConnectorType) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetSchema + +`func (o *ConnectorType) GetSchema() map[string]interface{}` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *ConnectorType) GetSchemaOk() (*map[string]interface{}, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *ConnectorType) SetSchema(v map[string]interface{})` + +SetSchema sets Schema 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeAllOf.md new file mode 100644 index 00000000..b2ef3c44 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeAllOf.md @@ -0,0 +1,264 @@ +# ConnectorTypeAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the connector type. | [optional] +**Version** | Pointer to **string** | Version of the connector type. | [optional] +**Channels** | Pointer to [**[]Channel**](Channel.md) | Channels of the connector type. | [optional] +**Description** | Pointer to **string** | A description of the connector. | [optional] +**IconHref** | Pointer to **string** | URL to an icon of the connector. | [optional] +**Labels** | Pointer to **[]string** | Labels used to categorize the connector | [optional] +**FeaturedRank** | Pointer to **int32** | Ranking for featured connectors | [optional] +**Capabilities** | Pointer to **[]string** | The capabilities supported by the conenctor | [optional] +**Schema** | Pointer to **map[string]interface{}** | A json schema that can be used to validate a ConnectorRequest connector field. | [optional] + +## Methods + +### NewConnectorTypeAllOf + +`func NewConnectorTypeAllOf() *ConnectorTypeAllOf` + +NewConnectorTypeAllOf instantiates a new ConnectorTypeAllOf 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 + +### NewConnectorTypeAllOfWithDefaults + +`func NewConnectorTypeAllOfWithDefaults() *ConnectorTypeAllOf` + +NewConnectorTypeAllOfWithDefaults instantiates a new ConnectorTypeAllOf 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 *ConnectorTypeAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConnectorTypeAllOf) 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 *ConnectorTypeAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ConnectorTypeAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVersion + +`func (o *ConnectorTypeAllOf) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ConnectorTypeAllOf) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ConnectorTypeAllOf) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ConnectorTypeAllOf) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetChannels + +`func (o *ConnectorTypeAllOf) GetChannels() []Channel` + +GetChannels returns the Channels field if non-nil, zero value otherwise. + +### GetChannelsOk + +`func (o *ConnectorTypeAllOf) GetChannelsOk() (*[]Channel, bool)` + +GetChannelsOk returns a tuple with the Channels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannels + +`func (o *ConnectorTypeAllOf) SetChannels(v []Channel)` + +SetChannels sets Channels field to given value. + +### HasChannels + +`func (o *ConnectorTypeAllOf) HasChannels() bool` + +HasChannels returns a boolean if a field has been set. + +### GetDescription + +`func (o *ConnectorTypeAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ConnectorTypeAllOf) 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 *ConnectorTypeAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ConnectorTypeAllOf) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetIconHref + +`func (o *ConnectorTypeAllOf) GetIconHref() string` + +GetIconHref returns the IconHref field if non-nil, zero value otherwise. + +### GetIconHrefOk + +`func (o *ConnectorTypeAllOf) GetIconHrefOk() (*string, bool)` + +GetIconHrefOk returns a tuple with the IconHref field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIconHref + +`func (o *ConnectorTypeAllOf) SetIconHref(v string)` + +SetIconHref sets IconHref field to given value. + +### HasIconHref + +`func (o *ConnectorTypeAllOf) HasIconHref() bool` + +HasIconHref returns a boolean if a field has been set. + +### GetLabels + +`func (o *ConnectorTypeAllOf) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ConnectorTypeAllOf) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ConnectorTypeAllOf) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ConnectorTypeAllOf) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetFeaturedRank + +`func (o *ConnectorTypeAllOf) GetFeaturedRank() int32` + +GetFeaturedRank returns the FeaturedRank field if non-nil, zero value otherwise. + +### GetFeaturedRankOk + +`func (o *ConnectorTypeAllOf) GetFeaturedRankOk() (*int32, bool)` + +GetFeaturedRankOk returns a tuple with the FeaturedRank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeaturedRank + +`func (o *ConnectorTypeAllOf) SetFeaturedRank(v int32)` + +SetFeaturedRank sets FeaturedRank field to given value. + +### HasFeaturedRank + +`func (o *ConnectorTypeAllOf) HasFeaturedRank() bool` + +HasFeaturedRank returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *ConnectorTypeAllOf) GetCapabilities() []string` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *ConnectorTypeAllOf) GetCapabilitiesOk() (*[]string, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *ConnectorTypeAllOf) SetCapabilities(v []string)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *ConnectorTypeAllOf) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetSchema + +`func (o *ConnectorTypeAllOf) GetSchema() map[string]interface{}` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *ConnectorTypeAllOf) GetSchemaOk() (*map[string]interface{}, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *ConnectorTypeAllOf) SetSchema(v map[string]interface{})` + +SetSchema sets Schema field to given value. + +### HasSchema + +`func (o *ConnectorTypeAllOf) HasSchema() bool` + +HasSchema 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCount.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCount.md new file mode 100644 index 00000000..4c0a45f0 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCount.md @@ -0,0 +1,72 @@ +# ConnectorTypeLabelCount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | **string** | Name of the connector type label. | +**Count** | **int32** | Number of connector types with this label. | + +## Methods + +### NewConnectorTypeLabelCount + +`func NewConnectorTypeLabelCount(label string, count int32, ) *ConnectorTypeLabelCount` + +NewConnectorTypeLabelCount instantiates a new ConnectorTypeLabelCount 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 + +### NewConnectorTypeLabelCountWithDefaults + +`func NewConnectorTypeLabelCountWithDefaults() *ConnectorTypeLabelCount` + +NewConnectorTypeLabelCountWithDefaults instantiates a new ConnectorTypeLabelCount 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 + +### GetLabel + +`func (o *ConnectorTypeLabelCount) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ConnectorTypeLabelCount) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ConnectorTypeLabelCount) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetCount + +`func (o *ConnectorTypeLabelCount) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ConnectorTypeLabelCount) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ConnectorTypeLabelCount) SetCount(v int32)` + +SetCount sets Count 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCountList.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCountList.md new file mode 100644 index 00000000..c0a17ed5 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeLabelCountList.md @@ -0,0 +1,56 @@ +# ConnectorTypeLabelCountList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConnectorTypeLabelCount**](ConnectorTypeLabelCount.md) | | [optional] + +## Methods + +### NewConnectorTypeLabelCountList + +`func NewConnectorTypeLabelCountList() *ConnectorTypeLabelCountList` + +NewConnectorTypeLabelCountList instantiates a new ConnectorTypeLabelCountList 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 + +### NewConnectorTypeLabelCountListWithDefaults + +`func NewConnectorTypeLabelCountListWithDefaults() *ConnectorTypeLabelCountList` + +NewConnectorTypeLabelCountListWithDefaults instantiates a new ConnectorTypeLabelCountList 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 + +### GetItems + +`func (o *ConnectorTypeLabelCountList) GetItems() []ConnectorTypeLabelCount` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorTypeLabelCountList) GetItemsOk() (*[]ConnectorTypeLabelCount, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorTypeLabelCountList) SetItems(v []ConnectorTypeLabelCount)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConnectorTypeLabelCountList) HasItems() bool` + +HasItems 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeList.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeList.md new file mode 100644 index 00000000..2634c9f2 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeList.md @@ -0,0 +1,135 @@ +# ConnectorTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ConnectorType**](ConnectorType.md) | | + +## Methods + +### NewConnectorTypeList + +`func NewConnectorTypeList(kind string, page int32, size int32, total int32, items []ConnectorType, ) *ConnectorTypeList` + +NewConnectorTypeList instantiates a new ConnectorTypeList 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 + +### NewConnectorTypeListWithDefaults + +`func NewConnectorTypeListWithDefaults() *ConnectorTypeList` + +NewConnectorTypeListWithDefaults instantiates a new ConnectorTypeList 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 + +### GetKind + +`func (o *ConnectorTypeList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConnectorTypeList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConnectorTypeList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ConnectorTypeList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConnectorTypeList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConnectorTypeList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ConnectorTypeList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConnectorTypeList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConnectorTypeList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ConnectorTypeList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConnectorTypeList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConnectorTypeList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ConnectorTypeList) GetItems() []ConnectorType` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorTypeList) GetItemsOk() (*[]ConnectorType, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorTypeList) SetItems(v []ConnectorType)` + +SetItems sets Items 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeListAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeListAllOf.md new file mode 100644 index 00000000..bdce6f61 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypeListAllOf.md @@ -0,0 +1,56 @@ +# ConnectorTypeListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConnectorType**](ConnectorType.md) | | [optional] + +## Methods + +### NewConnectorTypeListAllOf + +`func NewConnectorTypeListAllOf() *ConnectorTypeListAllOf` + +NewConnectorTypeListAllOf instantiates a new ConnectorTypeListAllOf 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 + +### NewConnectorTypeListAllOfWithDefaults + +`func NewConnectorTypeListAllOfWithDefaults() *ConnectorTypeListAllOf` + +NewConnectorTypeListAllOfWithDefaults instantiates a new ConnectorTypeListAllOf 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 + +### GetItems + +`func (o *ConnectorTypeListAllOf) GetItems() []ConnectorType` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConnectorTypeListAllOf) GetItemsOk() (*[]ConnectorType, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConnectorTypeListAllOf) SetItems(v []ConnectorType)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConnectorTypeListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypesApi.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypesApi.md new file mode 100644 index 00000000..88a80da1 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorTypesApi.md @@ -0,0 +1,221 @@ +# \ConnectorTypesApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetConnectorTypeByID**](ConnectorTypesApi.md#GetConnectorTypeByID) | **Get** /api/connector_mgmt/v1/kafka_connector_types/{connector_type_id} | Get a connector type by id +[**GetConnectorTypeLabels**](ConnectorTypesApi.md#GetConnectorTypeLabels) | **Get** /api/connector_mgmt/v1/kafka_connector_types/labels | Returns a list of connector type labels +[**GetConnectorTypes**](ConnectorTypesApi.md#GetConnectorTypes) | **Get** /api/connector_mgmt/v1/kafka_connector_types | Returns a list of connector types + + + +## GetConnectorTypeByID + +> ConnectorType GetConnectorTypeByID(ctx, connectorTypeId).Execute() + +Get a connector type by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + connectorTypeId := "connectorTypeId_example" // string | The id of the connector type + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorTypesApi.GetConnectorTypeByID(context.Background(), connectorTypeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorTypesApi.GetConnectorTypeByID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTypeByID`: ConnectorType + fmt.Fprintf(os.Stdout, "Response from `ConnectorTypesApi.GetConnectorTypeByID`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectorTypeId** | **string** | The id of the connector type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorTypeByIDRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ConnectorType**](ConnectorType.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorTypeLabels + +> ConnectorTypeLabelCountList GetConnectorTypeLabels(ctx).OrderBy(orderBy).Search(search).Execute() + +Returns a list of connector type labels + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorTypesApi.GetConnectorTypeLabels(context.Background()).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorTypesApi.GetConnectorTypeLabels``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTypeLabels`: ConnectorTypeLabelCountList + fmt.Fprintf(os.Stdout, "Response from `ConnectorTypesApi.GetConnectorTypeLabels`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorTypeLabelsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorTypeLabelCountList**](ConnectorTypeLabelCountList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnectorTypes + +> ConnectorTypeList GetConnectorTypes(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + +Returns a list of connector types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorTypesApi.GetConnectorTypes(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorTypesApi.GetConnectorTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTypes`: ConnectorTypeList + fmt.Fprintf(os.Stdout, "Response from `ConnectorTypesApi.GetConnectorTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorTypeList**](ConnectorTypeList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorsApi.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorsApi.md new file mode 100644 index 00000000..2b2e433c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ConnectorsApi.md @@ -0,0 +1,365 @@ +# \ConnectorsApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateConnector**](ConnectorsApi.md#CreateConnector) | **Post** /api/connector_mgmt/v1/kafka_connectors | Create a new connector +[**DeleteConnector**](ConnectorsApi.md#DeleteConnector) | **Delete** /api/connector_mgmt/v1/kafka_connectors/{id} | Delete a connector +[**GetConnector**](ConnectorsApi.md#GetConnector) | **Get** /api/connector_mgmt/v1/kafka_connectors/{id} | Get a connector +[**ListConnectors**](ConnectorsApi.md#ListConnectors) | **Get** /api/connector_mgmt/v1/kafka_connectors | Returns a list of connector types +[**PatchConnector**](ConnectorsApi.md#PatchConnector) | **Patch** /api/connector_mgmt/v1/kafka_connectors/{id} | Patch a connector + + + +## CreateConnector + +> Connector CreateConnector(ctx).Async(async).ConnectorRequest(connectorRequest).Execute() + +Create a new connector + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + async := true // bool | Perform the action in an asynchronous manner + connectorRequest := *openapiclient.NewConnectorRequest("Name_example", "ConnectorTypeId_example", "NamespaceId_example", openapiclient.ConnectorDesiredState("unassigned"), *openapiclient.NewKafkaConnectionSettings("Id_example", "Url_example"), *openapiclient.NewServiceAccount("ClientId_example", "ClientSecret_example"), map[string]interface{}(123)) // ConnectorRequest | Connector data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorsApi.CreateConnector(context.Background()).Async(async).ConnectorRequest(connectorRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.CreateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnector`: Connector + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.CreateConnector`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async** | **bool** | Perform the action in an asynchronous manner | + **connectorRequest** | [**ConnectorRequest**](ConnectorRequest.md) | Connector data | + +### Return type + +[**Connector**](Connector.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteConnector + +> Error DeleteConnector(ctx, id).Execute() + +Delete a connector + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorsApi.DeleteConnector(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.DeleteConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteConnector`: Error + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.DeleteConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConnector + +> Connector GetConnector(ctx, id).Execute() + +Get a connector + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorsApi.GetConnector(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.GetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnector`: Connector + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.GetConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Connector**](Connector.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListConnectors + +> ConnectorList ListConnectors(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + +Returns a list of connector types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorsApi.ListConnectors(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.ListConnectors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnectors`: ConnectorList + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.ListConnectors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListConnectorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**ConnectorList**](ConnectorList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchConnector + +> Connector PatchConnector(ctx, id).Body(body).Execute() + +Patch a connector + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + body := map[string]interface{}(Object) // map[string]interface{} | Data to patch the connector with + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ConnectorsApi.PatchConnector(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsApi.PatchConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchConnector`: Connector + fmt.Fprintf(os.Stdout, "Response from `ConnectorsApi.PatchConnector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchConnectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | Data to patch the connector with | + +### Return type + +[**Connector**](Connector.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/merge-patch+json, application/json-patch+json, application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Error.md new file mode 100644 index 00000000..112031e0 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/Error.md @@ -0,0 +1,161 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | | +**OperationId** | Pointer to **string** | | [optional] +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Code** | **string** | | + +## Methods + +### NewError + +`func NewError(reason string, id string, kind string, href string, code string, ) *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetOperationId + +`func (o *Error) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *Error) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *Error) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *Error) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetId + +`func (o *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetCode + +`func (o *Error) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v string)` + +SetCode sets Code 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/KafkaConnectionSettings.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/KafkaConnectionSettings.md new file mode 100644 index 00000000..4d657d9f --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/KafkaConnectionSettings.md @@ -0,0 +1,72 @@ +# KafkaConnectionSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Url** | **string** | | + +## Methods + +### NewKafkaConnectionSettings + +`func NewKafkaConnectionSettings(id string, url string, ) *KafkaConnectionSettings` + +NewKafkaConnectionSettings instantiates a new KafkaConnectionSettings 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 + +### NewKafkaConnectionSettingsWithDefaults + +`func NewKafkaConnectionSettingsWithDefaults() *KafkaConnectionSettings` + +NewKafkaConnectionSettingsWithDefaults instantiates a new KafkaConnectionSettings 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 *KafkaConnectionSettings) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KafkaConnectionSettings) 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 *KafkaConnectionSettings) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *KafkaConnectionSettings) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *KafkaConnectionSettings) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *KafkaConnectionSettings) SetUrl(v string)` + +SetUrl sets Url 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/List.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/List.md new file mode 100644 index 00000000..df93b0c7 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/List.md @@ -0,0 +1,135 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ObjectReference**](ObjectReference.md) | | + +## Methods + +### NewList + +`func NewList(kind string, page int32, size int32, total int32, items []ObjectReference, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *List) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *List) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *List) GetItems() []ObjectReference` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *List) GetItemsOk() (*[]ObjectReference, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *List) SetItems(v []ObjectReference)` + +SetItems sets Items 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectMeta.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectMeta.md new file mode 100644 index 00000000..bc988ddd --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectMeta.md @@ -0,0 +1,108 @@ +# ObjectMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewObjectMeta + +`func NewObjectMeta() *ObjectMeta` + +NewObjectMeta instantiates a new ObjectMeta 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 + +### NewObjectMetaWithDefaults + +`func NewObjectMetaWithDefaults() *ObjectMeta` + +NewObjectMetaWithDefaults instantiates a new ObjectMeta 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 + +### GetOwner + +`func (o *ObjectMeta) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ObjectMeta) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ObjectMeta) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ObjectMeta) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ObjectMeta) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ObjectMeta) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ObjectMeta) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ObjectMeta) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ObjectMeta) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ObjectMeta) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ObjectMeta) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ObjectMeta) HasModifiedAt() bool` + +HasModifiedAt 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectReference.md new file mode 100644 index 00000000..a09601d8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ObjectReference.md @@ -0,0 +1,108 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewObjectReference + +`func NewObjectReference() *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ObjectReference) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ObjectReference) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ObjectReference) HasHref() bool` + +HasHref 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/SchemaRegistryConnectionSettings.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/SchemaRegistryConnectionSettings.md new file mode 100644 index 00000000..b3b0b3fb --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/SchemaRegistryConnectionSettings.md @@ -0,0 +1,72 @@ +# SchemaRegistryConnectionSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Url** | **string** | | + +## Methods + +### NewSchemaRegistryConnectionSettings + +`func NewSchemaRegistryConnectionSettings(id string, url string, ) *SchemaRegistryConnectionSettings` + +NewSchemaRegistryConnectionSettings instantiates a new SchemaRegistryConnectionSettings 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 + +### NewSchemaRegistryConnectionSettingsWithDefaults + +`func NewSchemaRegistryConnectionSettingsWithDefaults() *SchemaRegistryConnectionSettings` + +NewSchemaRegistryConnectionSettingsWithDefaults instantiates a new SchemaRegistryConnectionSettings 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 *SchemaRegistryConnectionSettings) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaRegistryConnectionSettings) 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 *SchemaRegistryConnectionSettings) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *SchemaRegistryConnectionSettings) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *SchemaRegistryConnectionSettings) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *SchemaRegistryConnectionSettings) SetUrl(v string)` + +SetUrl sets Url 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceAccount.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceAccount.md new file mode 100644 index 00000000..a853f954 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceAccount.md @@ -0,0 +1,72 @@ +# ServiceAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **string** | | +**ClientSecret** | **string** | | + +## Methods + +### NewServiceAccount + +`func NewServiceAccount(clientId string, clientSecret string, ) *ServiceAccount` + +NewServiceAccount instantiates a new ServiceAccount 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 + +### NewServiceAccountWithDefaults + +`func NewServiceAccountWithDefaults() *ServiceAccount` + +NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 + +### GetClientId + +`func (o *ServiceAccount) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccount) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccount) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetClientSecret + +`func (o *ServiceAccount) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *ServiceAccount) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *ServiceAccount) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceConnectionSettings.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceConnectionSettings.md new file mode 100644 index 00000000..034dd91a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/ServiceConnectionSettings.md @@ -0,0 +1,72 @@ +# ServiceConnectionSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Url** | **string** | | + +## Methods + +### NewServiceConnectionSettings + +`func NewServiceConnectionSettings(id string, url string, ) *ServiceConnectionSettings` + +NewServiceConnectionSettings instantiates a new ServiceConnectionSettings 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 + +### NewServiceConnectionSettingsWithDefaults + +`func NewServiceConnectionSettingsWithDefaults() *ServiceConnectionSettings` + +NewServiceConnectionSettingsWithDefaults instantiates a new ServiceConnectionSettings 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 *ServiceConnectionSettings) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceConnectionSettings) 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 *ServiceConnectionSettings) SetId(v string)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *ServiceConnectionSettings) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ServiceConnectionSettings) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ServiceConnectionSettings) SetUrl(v string)` + +SetUrl sets Url 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadata.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadata.md new file mode 100644 index 00000000..3fb8c2f5 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadata.md @@ -0,0 +1,134 @@ +# VersionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**Href** | Pointer to **string** | | [optional] +**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + +## Methods + +### NewVersionMetadata + +`func NewVersionMetadata() *VersionMetadata` + +NewVersionMetadata instantiates a new VersionMetadata 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 + +### NewVersionMetadataWithDefaults + +`func NewVersionMetadataWithDefaults() *VersionMetadata` + +NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 *VersionMetadata) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VersionMetadata) 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 *VersionMetadata) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *VersionMetadata) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *VersionMetadata) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *VersionMetadata) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *VersionMetadata) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *VersionMetadata) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *VersionMetadata) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *VersionMetadata) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *VersionMetadata) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *VersionMetadata) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetCollections + +`func (o *VersionMetadata) GetCollections() []ObjectReference` + +GetCollections returns the Collections field if non-nil, zero value otherwise. + +### GetCollectionsOk + +`func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool)` + +GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollections + +`func (o *VersionMetadata) SetCollections(v []ObjectReference)` + +SetCollections sets Collections field to given value. + +### HasCollections + +`func (o *VersionMetadata) HasCollections() bool` + +HasCollections 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/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadataAllOf.md b/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadataAllOf.md new file mode 100644 index 00000000..045d3b46 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/docs/VersionMetadataAllOf.md @@ -0,0 +1,56 @@ +# VersionMetadataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + +## Methods + +### NewVersionMetadataAllOf + +`func NewVersionMetadataAllOf() *VersionMetadataAllOf` + +NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 + +### NewVersionMetadataAllOfWithDefaults + +`func NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf` + +NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 + +### GetCollections + +`func (o *VersionMetadataAllOf) GetCollections() []ObjectReference` + +GetCollections returns the Collections field if non-nil, zero value otherwise. + +### GetCollectionsOk + +`func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool)` + +GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollections + +`func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference)` + +SetCollections sets Collections field to given value. + +### HasCollections + +`func (o *VersionMetadataAllOf) HasCollections() bool` + +HasCollections 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/app-services-sdk-go/connectormgmt/apiv1/client/git_push.sh b/app-services-sdk-go/connectormgmt/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/go.mod b/app-services-sdk-go/connectormgmt/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/go.sum b/app-services-sdk-go/connectormgmt/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_addon_parameter.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_addon_parameter.go new file mode 100644 index 00000000..2ef7e282 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_addon_parameter.go @@ -0,0 +1,152 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// AddonParameter A addon parameter +type AddonParameter struct { + Id *string `json:"id,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewAddonParameter instantiates a new AddonParameter 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 NewAddonParameter() *AddonParameter { + this := AddonParameter{} + return &this +} + +// NewAddonParameterWithDefaults instantiates a new AddonParameter 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 NewAddonParameterWithDefaults() *AddonParameter { + this := AddonParameter{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AddonParameter) GetId() string { + if o == nil || o.Id == nil { + 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 *AddonParameter) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AddonParameter) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AddonParameter) SetId(v string) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *AddonParameter) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonParameter) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *AddonParameter) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *AddonParameter) SetValue(v string) { + o.Value = &v +} + +func (o AddonParameter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableAddonParameter struct { + value *AddonParameter + isSet bool +} + +func (v NullableAddonParameter) Get() *AddonParameter { + return v.value +} + +func (v *NullableAddonParameter) Set(val *AddonParameter) { + v.value = val + v.isSet = true +} + +func (v NullableAddonParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonParameter(val *AddonParameter) *NullableAddonParameter { + return &NullableAddonParameter{value: val, isSet: true} +} + +func (v NullableAddonParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_channel.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_channel.go new file mode 100644 index 00000000..b9fac509 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_channel.go @@ -0,0 +1,109 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// Channel the model 'Channel' +type Channel string + +// List of Channel +const ( + CHANNEL_STABLE Channel = "stable" +) + +var allowedChannelEnumValues = []Channel{ + "stable", +} + +func (v *Channel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Channel(value) + for _, existing := range allowedChannelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Channel", value) +} + +// NewChannelFromValue returns a pointer to a valid Channel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewChannelFromValue(v string) (*Channel, error) { + ev := Channel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Channel: valid values are %v", v, allowedChannelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Channel) IsValid() bool { + for _, existing := range allowedChannelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Channel value +func (v Channel) Ptr() *Channel { + return &v +} + +type NullableChannel struct { + value *Channel + isSet bool +} + +func (v NullableChannel) Get() *Channel { + return v.value +} + +func (v *NullableChannel) Set(val *Channel) { + v.value = val + v.isSet = true +} + +func (v NullableChannel) IsSet() bool { + return v.isSet +} + +func (v *NullableChannel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannel(val *Channel) *NullableChannel { + return &NullableChannel{value: val, isSet: true} +} + +func (v NullableChannel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector.go new file mode 100644 index 00000000..f69362be --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector.go @@ -0,0 +1,648 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// Connector struct for Connector +type Connector struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name string `json:"name"` + ConnectorTypeId string `json:"connector_type_id"` + NamespaceId string `json:"namespace_id"` + Channel *Channel `json:"channel,omitempty"` + DesiredState ConnectorDesiredState `json:"desired_state"` + ResourceVersion *int64 `json:"resource_version,omitempty"` + Kafka KafkaConnectionSettings `json:"kafka"` + ServiceAccount ServiceAccount `json:"service_account"` + SchemaRegistry *SchemaRegistryConnectionSettings `json:"schema_registry,omitempty"` + Connector map[string]interface{} `json:"connector"` + Status *ConnectorStatusStatus `json:"status,omitempty"` +} + +// NewConnector instantiates a new Connector 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 NewConnector(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}) *Connector { + this := Connector{} + this.Name = name + this.ConnectorTypeId = connectorTypeId + this.NamespaceId = namespaceId + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + this.DesiredState = desiredState + this.Kafka = kafka + this.ServiceAccount = serviceAccount + this.Connector = connector + return &this +} + +// NewConnectorWithDefaults instantiates a new Connector 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 NewConnectorWithDefaults() *Connector { + this := Connector{} + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Connector) GetId() string { + if o == nil || o.Id == nil { + 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 *Connector) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Connector) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Connector) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Connector) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Connector) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Connector) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Connector) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Connector) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Connector) SetHref(v string) { + o.Href = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *Connector) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *Connector) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *Connector) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Connector) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Connector) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Connector) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *Connector) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *Connector) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *Connector) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value +func (o *Connector) 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 *Connector) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Connector) SetName(v string) { + o.Name = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *Connector) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *Connector) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *Connector) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetNamespaceId returns the NamespaceId field value +func (o *Connector) GetNamespaceId() string { + if o == nil { + var ret string + return ret + } + + return o.NamespaceId +} + +// GetNamespaceIdOk returns a tuple with the NamespaceId field value +// and a boolean to check if the value has been set. +func (o *Connector) GetNamespaceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NamespaceId, true +} + +// SetNamespaceId sets field value +func (o *Connector) SetNamespaceId(v string) { + o.NamespaceId = v +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *Connector) GetChannel() Channel { + if o == nil || o.Channel == nil { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetChannelOk() (*Channel, bool) { + if o == nil || o.Channel == nil { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *Connector) HasChannel() bool { + if o != nil && o.Channel != nil { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *Connector) SetChannel(v Channel) { + o.Channel = &v +} + +// GetDesiredState returns the DesiredState field value +func (o *Connector) GetDesiredState() ConnectorDesiredState { + if o == nil { + var ret ConnectorDesiredState + return ret + } + + return o.DesiredState +} + +// GetDesiredStateOk returns a tuple with the DesiredState field value +// and a boolean to check if the value has been set. +func (o *Connector) GetDesiredStateOk() (*ConnectorDesiredState, bool) { + if o == nil { + return nil, false + } + return &o.DesiredState, true +} + +// SetDesiredState sets field value +func (o *Connector) SetDesiredState(v ConnectorDesiredState) { + o.DesiredState = v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *Connector) GetResourceVersion() int64 { + if o == nil || o.ResourceVersion == nil { + var ret int64 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetResourceVersionOk() (*int64, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *Connector) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int64 and assigns it to the ResourceVersion field. +func (o *Connector) SetResourceVersion(v int64) { + o.ResourceVersion = &v +} + +// GetKafka returns the Kafka field value +func (o *Connector) GetKafka() KafkaConnectionSettings { + if o == nil { + var ret KafkaConnectionSettings + return ret + } + + return o.Kafka +} + +// GetKafkaOk returns a tuple with the Kafka field value +// and a boolean to check if the value has been set. +func (o *Connector) GetKafkaOk() (*KafkaConnectionSettings, bool) { + if o == nil { + return nil, false + } + return &o.Kafka, true +} + +// SetKafka sets field value +func (o *Connector) SetKafka(v KafkaConnectionSettings) { + o.Kafka = v +} + +// GetServiceAccount returns the ServiceAccount field value +func (o *Connector) GetServiceAccount() ServiceAccount { + if o == nil { + var ret ServiceAccount + return ret + } + + return o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value +// and a boolean to check if the value has been set. +func (o *Connector) GetServiceAccountOk() (*ServiceAccount, bool) { + if o == nil { + return nil, false + } + return &o.ServiceAccount, true +} + +// SetServiceAccount sets field value +func (o *Connector) SetServiceAccount(v ServiceAccount) { + o.ServiceAccount = v +} + +// GetSchemaRegistry returns the SchemaRegistry field value if set, zero value otherwise. +func (o *Connector) GetSchemaRegistry() SchemaRegistryConnectionSettings { + if o == nil || o.SchemaRegistry == nil { + var ret SchemaRegistryConnectionSettings + return ret + } + return *o.SchemaRegistry +} + +// GetSchemaRegistryOk returns a tuple with the SchemaRegistry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool) { + if o == nil || o.SchemaRegistry == nil { + return nil, false + } + return o.SchemaRegistry, true +} + +// HasSchemaRegistry returns a boolean if a field has been set. +func (o *Connector) HasSchemaRegistry() bool { + if o != nil && o.SchemaRegistry != nil { + return true + } + + return false +} + +// SetSchemaRegistry gets a reference to the given SchemaRegistryConnectionSettings and assigns it to the SchemaRegistry field. +func (o *Connector) SetSchemaRegistry(v SchemaRegistryConnectionSettings) { + o.SchemaRegistry = &v +} + +// GetConnector returns the Connector field value +func (o *Connector) GetConnector() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Connector +} + +// GetConnectorOk returns a tuple with the Connector field value +// and a boolean to check if the value has been set. +func (o *Connector) GetConnectorOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Connector, true +} + +// SetConnector sets field value +func (o *Connector) SetConnector(v map[string]interface{}) { + o.Connector = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Connector) GetStatus() ConnectorStatusStatus { + if o == nil || o.Status == nil { + var ret ConnectorStatusStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Connector) GetStatusOk() (*ConnectorStatusStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Connector) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ConnectorStatusStatus and assigns it to the Status field. +func (o *Connector) SetStatus(v ConnectorStatusStatus) { + o.Status = &v +} + +func (o Connector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["connector_type_id"] = o.ConnectorTypeId + } + if true { + toSerialize["namespace_id"] = o.NamespaceId + } + if o.Channel != nil { + toSerialize["channel"] = o.Channel + } + if true { + toSerialize["desired_state"] = o.DesiredState + } + if o.ResourceVersion != nil { + toSerialize["resource_version"] = o.ResourceVersion + } + if true { + toSerialize["kafka"] = o.Kafka + } + if true { + toSerialize["service_account"] = o.ServiceAccount + } + if o.SchemaRegistry != nil { + toSerialize["schema_registry"] = o.SchemaRegistry + } + if true { + toSerialize["connector"] = o.Connector + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnector struct { + value *Connector + isSet bool +} + +func (v NullableConnector) Get() *Connector { + return v.value +} + +func (v *NullableConnector) Set(val *Connector) { + v.value = val + v.isSet = true +} + +func (v NullableConnector) IsSet() bool { + return v.isSet +} + +func (v *NullableConnector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnector(val *Connector) *NullableConnector { + return &NullableConnector{value: val, isSet: true} +} + +func (v NullableConnector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster.go new file mode 100644 index 00000000..08d59fce --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster.go @@ -0,0 +1,369 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ConnectorCluster struct for ConnectorCluster +type ConnectorCluster struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name *string `json:"name,omitempty"` + Status *ConnectorClusterStatusStatus `json:"status,omitempty"` +} + +// NewConnectorCluster instantiates a new ConnectorCluster 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 NewConnectorCluster() *ConnectorCluster { + this := ConnectorCluster{} + return &this +} + +// NewConnectorClusterWithDefaults instantiates a new ConnectorCluster 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 NewConnectorClusterWithDefaults() *ConnectorCluster { + this := ConnectorCluster{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ConnectorCluster) GetId() string { + if o == nil || o.Id == nil { + 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 *ConnectorCluster) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ConnectorCluster) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ConnectorCluster) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConnectorCluster) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConnectorCluster) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConnectorCluster) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ConnectorCluster) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ConnectorCluster) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ConnectorCluster) SetHref(v string) { + o.Href = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ConnectorCluster) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ConnectorCluster) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ConnectorCluster) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectorCluster) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ConnectorCluster) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ConnectorCluster) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ConnectorCluster) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ConnectorCluster) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ConnectorCluster) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorCluster) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorCluster) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorCluster) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorCluster) SetName(v string) { + o.Name = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ConnectorCluster) GetStatus() ConnectorClusterStatusStatus { + if o == nil || o.Status == nil { + var ret ConnectorClusterStatusStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorCluster) GetStatusOk() (*ConnectorClusterStatusStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ConnectorCluster) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ConnectorClusterStatusStatus and assigns it to the Status field. +func (o *ConnectorCluster) SetStatus(v ConnectorClusterStatusStatus) { + o.Status = &v +} + +func (o ConnectorCluster) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnectorCluster struct { + value *ConnectorCluster + isSet bool +} + +func (v NullableConnectorCluster) Get() *ConnectorCluster { + return v.value +} + +func (v *NullableConnectorCluster) Set(val *ConnectorCluster) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorCluster(val *ConnectorCluster) *NullableConnectorCluster { + return &NullableConnectorCluster{value: val, isSet: true} +} + +func (v NullableConnectorCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list.go new file mode 100644 index 00000000..08b09be4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterList struct for ConnectorClusterList +type ConnectorClusterList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ConnectorCluster `json:"items"` +} + +// NewConnectorClusterList instantiates a new ConnectorClusterList 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 NewConnectorClusterList(kind string, page int32, size int32, total int32, items []ConnectorCluster) *ConnectorClusterList { + this := ConnectorClusterList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewConnectorClusterListWithDefaults instantiates a new ConnectorClusterList 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 NewConnectorClusterListWithDefaults() *ConnectorClusterList { + this := ConnectorClusterList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConnectorClusterList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorClusterList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorClusterList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ConnectorClusterList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ConnectorClusterList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ConnectorClusterList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ConnectorClusterList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ConnectorClusterList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ConnectorClusterList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ConnectorClusterList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConnectorClusterList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConnectorClusterList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ConnectorClusterList) GetItems() []ConnectorCluster { + if o == nil { + var ret []ConnectorCluster + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConnectorClusterList) GetItemsOk() (*[]ConnectorCluster, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConnectorClusterList) SetItems(v []ConnectorCluster) { + o.Items = v +} + +func (o ConnectorClusterList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterList struct { + value *ConnectorClusterList + isSet bool +} + +func (v NullableConnectorClusterList) Get() *ConnectorClusterList { + return v.value +} + +func (v *NullableConnectorClusterList) Set(val *ConnectorClusterList) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterList) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterList(val *ConnectorClusterList) *NullableConnectorClusterList { + return &NullableConnectorClusterList{value: val, isSet: true} +} + +func (v NullableConnectorClusterList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list_all_of.go new file mode 100644 index 00000000..21f92eea --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterListAllOf struct for ConnectorClusterListAllOf +type ConnectorClusterListAllOf struct { + Items *[]ConnectorCluster `json:"items,omitempty"` +} + +// NewConnectorClusterListAllOf instantiates a new ConnectorClusterListAllOf 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 NewConnectorClusterListAllOf() *ConnectorClusterListAllOf { + this := ConnectorClusterListAllOf{} + return &this +} + +// NewConnectorClusterListAllOfWithDefaults instantiates a new ConnectorClusterListAllOf 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 NewConnectorClusterListAllOfWithDefaults() *ConnectorClusterListAllOf { + this := ConnectorClusterListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConnectorClusterListAllOf) GetItems() []ConnectorCluster { + if o == nil || o.Items == nil { + var ret []ConnectorCluster + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterListAllOf) GetItemsOk() (*[]ConnectorCluster, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConnectorClusterListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConnectorCluster and assigns it to the Items field. +func (o *ConnectorClusterListAllOf) SetItems(v []ConnectorCluster) { + o.Items = &v +} + +func (o ConnectorClusterListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterListAllOf struct { + value *ConnectorClusterListAllOf + isSet bool +} + +func (v NullableConnectorClusterListAllOf) Get() *ConnectorClusterListAllOf { + return v.value +} + +func (v *NullableConnectorClusterListAllOf) Set(val *ConnectorClusterListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterListAllOf(val *ConnectorClusterListAllOf) *NullableConnectorClusterListAllOf { + return &NullableConnectorClusterListAllOf{value: val, isSet: true} +} + +func (v NullableConnectorClusterListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_meta.go new file mode 100644 index 00000000..2b603f59 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_meta.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ConnectorClusterMeta struct for ConnectorClusterMeta +type ConnectorClusterMeta struct { + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewConnectorClusterMeta instantiates a new ConnectorClusterMeta 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 NewConnectorClusterMeta() *ConnectorClusterMeta { + this := ConnectorClusterMeta{} + return &this +} + +// NewConnectorClusterMetaWithDefaults instantiates a new ConnectorClusterMeta 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 NewConnectorClusterMetaWithDefaults() *ConnectorClusterMeta { + this := ConnectorClusterMeta{} + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ConnectorClusterMeta) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterMeta) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ConnectorClusterMeta) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ConnectorClusterMeta) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectorClusterMeta) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterMeta) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ConnectorClusterMeta) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ConnectorClusterMeta) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ConnectorClusterMeta) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterMeta) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ConnectorClusterMeta) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ConnectorClusterMeta) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorClusterMeta) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorClusterMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorClusterMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorClusterMeta) SetName(v string) { + o.Name = &v +} + +func (o ConnectorClusterMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterMeta struct { + value *ConnectorClusterMeta + isSet bool +} + +func (v NullableConnectorClusterMeta) Get() *ConnectorClusterMeta { + return v.value +} + +func (v *NullableConnectorClusterMeta) Set(val *ConnectorClusterMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterMeta(val *ConnectorClusterMeta) *NullableConnectorClusterMeta { + return &NullableConnectorClusterMeta{value: val, isSet: true} +} + +func (v NullableConnectorClusterMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request.go new file mode 100644 index 00000000..d166f9b8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterRequest Schema for the request to update a data plane cluster's name +type ConnectorClusterRequest struct { + Name *string `json:"name,omitempty"` +} + +// NewConnectorClusterRequest instantiates a new ConnectorClusterRequest 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 NewConnectorClusterRequest() *ConnectorClusterRequest { + this := ConnectorClusterRequest{} + return &this +} + +// NewConnectorClusterRequestWithDefaults instantiates a new ConnectorClusterRequest 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 NewConnectorClusterRequestWithDefaults() *ConnectorClusterRequest { + this := ConnectorClusterRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorClusterRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorClusterRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorClusterRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorClusterRequest) SetName(v string) { + o.Name = &v +} + +func (o ConnectorClusterRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterRequest struct { + value *ConnectorClusterRequest + isSet bool +} + +func (v NullableConnectorClusterRequest) Get() *ConnectorClusterRequest { + return v.value +} + +func (v *NullableConnectorClusterRequest) Set(val *ConnectorClusterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterRequest(val *ConnectorClusterRequest) *NullableConnectorClusterRequest { + return &NullableConnectorClusterRequest{value: val, isSet: true} +} + +func (v NullableConnectorClusterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request_meta.go new file mode 100644 index 00000000..2199a82f --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_request_meta.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterRequestMeta struct for ConnectorClusterRequestMeta +type ConnectorClusterRequestMeta struct { + Name *string `json:"name,omitempty"` +} + +// NewConnectorClusterRequestMeta instantiates a new ConnectorClusterRequestMeta 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 NewConnectorClusterRequestMeta() *ConnectorClusterRequestMeta { + this := ConnectorClusterRequestMeta{} + return &this +} + +// NewConnectorClusterRequestMetaWithDefaults instantiates a new ConnectorClusterRequestMeta 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 NewConnectorClusterRequestMetaWithDefaults() *ConnectorClusterRequestMeta { + this := ConnectorClusterRequestMeta{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorClusterRequestMeta) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorClusterRequestMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorClusterRequestMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorClusterRequestMeta) SetName(v string) { + o.Name = &v +} + +func (o ConnectorClusterRequestMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterRequestMeta struct { + value *ConnectorClusterRequestMeta + isSet bool +} + +func (v NullableConnectorClusterRequestMeta) Get() *ConnectorClusterRequestMeta { + return v.value +} + +func (v *NullableConnectorClusterRequestMeta) Set(val *ConnectorClusterRequestMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterRequestMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterRequestMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterRequestMeta(val *ConnectorClusterRequestMeta) *NullableConnectorClusterRequestMeta { + return &NullableConnectorClusterRequestMeta{value: val, isSet: true} +} + +func (v NullableConnectorClusterRequestMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterRequestMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_state.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_state.go new file mode 100644 index 00000000..1ecef21e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_state.go @@ -0,0 +1,113 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ConnectorClusterState the model 'ConnectorClusterState' +type ConnectorClusterState string + +// List of ConnectorClusterState +const ( + CONNECTORCLUSTERSTATE_DISCONNECTED ConnectorClusterState = "disconnected" + CONNECTORCLUSTERSTATE_READY ConnectorClusterState = "ready" + CONNECTORCLUSTERSTATE_DELETING ConnectorClusterState = "deleting" +) + +var allowedConnectorClusterStateEnumValues = []ConnectorClusterState{ + "disconnected", + "ready", + "deleting", +} + +func (v *ConnectorClusterState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorClusterState(value) + for _, existing := range allowedConnectorClusterStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorClusterState", value) +} + +// NewConnectorClusterStateFromValue returns a pointer to a valid ConnectorClusterState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorClusterStateFromValue(v string) (*ConnectorClusterState, error) { + ev := ConnectorClusterState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorClusterState: valid values are %v", v, allowedConnectorClusterStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorClusterState) IsValid() bool { + for _, existing := range allowedConnectorClusterStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectorClusterState value +func (v ConnectorClusterState) Ptr() *ConnectorClusterState { + return &v +} + +type NullableConnectorClusterState struct { + value *ConnectorClusterState + isSet bool +} + +func (v NullableConnectorClusterState) Get() *ConnectorClusterState { + return v.value +} + +func (v *NullableConnectorClusterState) Set(val *ConnectorClusterState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterState(val *ConnectorClusterState) *NullableConnectorClusterState { + return &NullableConnectorClusterState{value: val, isSet: true} +} + +func (v NullableConnectorClusterState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status.go new file mode 100644 index 00000000..52f8ad8e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterStatus struct for ConnectorClusterStatus +type ConnectorClusterStatus struct { + Status *ConnectorClusterStatusStatus `json:"status,omitempty"` +} + +// NewConnectorClusterStatus instantiates a new ConnectorClusterStatus 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 NewConnectorClusterStatus() *ConnectorClusterStatus { + this := ConnectorClusterStatus{} + return &this +} + +// NewConnectorClusterStatusWithDefaults instantiates a new ConnectorClusterStatus 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 NewConnectorClusterStatusWithDefaults() *ConnectorClusterStatus { + this := ConnectorClusterStatus{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ConnectorClusterStatus) GetStatus() ConnectorClusterStatusStatus { + if o == nil || o.Status == nil { + var ret ConnectorClusterStatusStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterStatus) GetStatusOk() (*ConnectorClusterStatusStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ConnectorClusterStatus) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ConnectorClusterStatusStatus and assigns it to the Status field. +func (o *ConnectorClusterStatus) SetStatus(v ConnectorClusterStatusStatus) { + o.Status = &v +} + +func (o ConnectorClusterStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterStatus struct { + value *ConnectorClusterStatus + isSet bool +} + +func (v NullableConnectorClusterStatus) Get() *ConnectorClusterStatus { + return v.value +} + +func (v *NullableConnectorClusterStatus) Set(val *ConnectorClusterStatus) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterStatus(val *ConnectorClusterStatus) *NullableConnectorClusterStatus { + return &NullableConnectorClusterStatus{value: val, isSet: true} +} + +func (v NullableConnectorClusterStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status_status.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status_status.go new file mode 100644 index 00000000..50b46250 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_cluster_status_status.go @@ -0,0 +1,152 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorClusterStatusStatus struct for ConnectorClusterStatusStatus +type ConnectorClusterStatusStatus struct { + State *ConnectorClusterState `json:"state,omitempty"` + Error *string `json:"error,omitempty"` +} + +// NewConnectorClusterStatusStatus instantiates a new ConnectorClusterStatusStatus 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 NewConnectorClusterStatusStatus() *ConnectorClusterStatusStatus { + this := ConnectorClusterStatusStatus{} + return &this +} + +// NewConnectorClusterStatusStatusWithDefaults instantiates a new ConnectorClusterStatusStatus 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 NewConnectorClusterStatusStatusWithDefaults() *ConnectorClusterStatusStatus { + this := ConnectorClusterStatusStatus{} + return &this +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ConnectorClusterStatusStatus) GetState() ConnectorClusterState { + if o == nil || o.State == nil { + var ret ConnectorClusterState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterStatusStatus) GetStateOk() (*ConnectorClusterState, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ConnectorClusterStatusStatus) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given ConnectorClusterState and assigns it to the State field. +func (o *ConnectorClusterStatusStatus) SetState(v ConnectorClusterState) { + o.State = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ConnectorClusterStatusStatus) GetError() string { + if o == nil || o.Error == nil { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorClusterStatusStatus) GetErrorOk() (*string, bool) { + if o == nil || o.Error == nil { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ConnectorClusterStatusStatus) HasError() bool { + if o != nil && o.Error != nil { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ConnectorClusterStatusStatus) SetError(v string) { + o.Error = &v +} + +func (o ConnectorClusterStatusStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.State != nil { + toSerialize["state"] = o.State + } + if o.Error != nil { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullableConnectorClusterStatusStatus struct { + value *ConnectorClusterStatusStatus + isSet bool +} + +func (v NullableConnectorClusterStatusStatus) Get() *ConnectorClusterStatusStatus { + return v.value +} + +func (v *NullableConnectorClusterStatusStatus) Set(val *ConnectorClusterStatusStatus) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorClusterStatusStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorClusterStatusStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorClusterStatusStatus(val *ConnectorClusterStatusStatus) *NullableConnectorClusterStatusStatus { + return &NullableConnectorClusterStatusStatus{value: val, isSet: true} +} + +func (v NullableConnectorClusterStatusStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorClusterStatusStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_configuration.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_configuration.go new file mode 100644 index 00000000..40582d2b --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_configuration.go @@ -0,0 +1,203 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorConfiguration struct for ConnectorConfiguration +type ConnectorConfiguration struct { + Kafka KafkaConnectionSettings `json:"kafka"` + ServiceAccount ServiceAccount `json:"service_account"` + SchemaRegistry *SchemaRegistryConnectionSettings `json:"schema_registry,omitempty"` + Connector map[string]interface{} `json:"connector"` +} + +// NewConnectorConfiguration instantiates a new ConnectorConfiguration 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 NewConnectorConfiguration(kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}) *ConnectorConfiguration { + this := ConnectorConfiguration{} + this.Kafka = kafka + this.ServiceAccount = serviceAccount + this.Connector = connector + return &this +} + +// NewConnectorConfigurationWithDefaults instantiates a new ConnectorConfiguration 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 NewConnectorConfigurationWithDefaults() *ConnectorConfiguration { + this := ConnectorConfiguration{} + return &this +} + +// GetKafka returns the Kafka field value +func (o *ConnectorConfiguration) GetKafka() KafkaConnectionSettings { + if o == nil { + var ret KafkaConnectionSettings + return ret + } + + return o.Kafka +} + +// GetKafkaOk returns a tuple with the Kafka field value +// and a boolean to check if the value has been set. +func (o *ConnectorConfiguration) GetKafkaOk() (*KafkaConnectionSettings, bool) { + if o == nil { + return nil, false + } + return &o.Kafka, true +} + +// SetKafka sets field value +func (o *ConnectorConfiguration) SetKafka(v KafkaConnectionSettings) { + o.Kafka = v +} + +// GetServiceAccount returns the ServiceAccount field value +func (o *ConnectorConfiguration) GetServiceAccount() ServiceAccount { + if o == nil { + var ret ServiceAccount + return ret + } + + return o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value +// and a boolean to check if the value has been set. +func (o *ConnectorConfiguration) GetServiceAccountOk() (*ServiceAccount, bool) { + if o == nil { + return nil, false + } + return &o.ServiceAccount, true +} + +// SetServiceAccount sets field value +func (o *ConnectorConfiguration) SetServiceAccount(v ServiceAccount) { + o.ServiceAccount = v +} + +// GetSchemaRegistry returns the SchemaRegistry field value if set, zero value otherwise. +func (o *ConnectorConfiguration) GetSchemaRegistry() SchemaRegistryConnectionSettings { + if o == nil || o.SchemaRegistry == nil { + var ret SchemaRegistryConnectionSettings + return ret + } + return *o.SchemaRegistry +} + +// GetSchemaRegistryOk returns a tuple with the SchemaRegistry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorConfiguration) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool) { + if o == nil || o.SchemaRegistry == nil { + return nil, false + } + return o.SchemaRegistry, true +} + +// HasSchemaRegistry returns a boolean if a field has been set. +func (o *ConnectorConfiguration) HasSchemaRegistry() bool { + if o != nil && o.SchemaRegistry != nil { + return true + } + + return false +} + +// SetSchemaRegistry gets a reference to the given SchemaRegistryConnectionSettings and assigns it to the SchemaRegistry field. +func (o *ConnectorConfiguration) SetSchemaRegistry(v SchemaRegistryConnectionSettings) { + o.SchemaRegistry = &v +} + +// GetConnector returns the Connector field value +func (o *ConnectorConfiguration) GetConnector() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Connector +} + +// GetConnectorOk returns a tuple with the Connector field value +// and a boolean to check if the value has been set. +func (o *ConnectorConfiguration) GetConnectorOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Connector, true +} + +// SetConnector sets field value +func (o *ConnectorConfiguration) SetConnector(v map[string]interface{}) { + o.Connector = v +} + +func (o ConnectorConfiguration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kafka"] = o.Kafka + } + if true { + toSerialize["service_account"] = o.ServiceAccount + } + if o.SchemaRegistry != nil { + toSerialize["schema_registry"] = o.SchemaRegistry + } + if true { + toSerialize["connector"] = o.Connector + } + return json.Marshal(toSerialize) +} + +type NullableConnectorConfiguration struct { + value *ConnectorConfiguration + isSet bool +} + +func (v NullableConnectorConfiguration) Get() *ConnectorConfiguration { + return v.value +} + +func (v *NullableConnectorConfiguration) Set(val *ConnectorConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorConfiguration(val *ConnectorConfiguration) *NullableConnectorConfiguration { + return &NullableConnectorConfiguration{value: val, isSet: true} +} + +func (v NullableConnectorConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_desired_state.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_desired_state.go new file mode 100644 index 00000000..4234b2f6 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_desired_state.go @@ -0,0 +1,115 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ConnectorDesiredState the model 'ConnectorDesiredState' +type ConnectorDesiredState string + +// List of ConnectorDesiredState +const ( + CONNECTORDESIREDSTATE_UNASSIGNED ConnectorDesiredState = "unassigned" + CONNECTORDESIREDSTATE_READY ConnectorDesiredState = "ready" + CONNECTORDESIREDSTATE_STOPPED ConnectorDesiredState = "stopped" + CONNECTORDESIREDSTATE_DELETED ConnectorDesiredState = "deleted" +) + +var allowedConnectorDesiredStateEnumValues = []ConnectorDesiredState{ + "unassigned", + "ready", + "stopped", + "deleted", +} + +func (v *ConnectorDesiredState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorDesiredState(value) + for _, existing := range allowedConnectorDesiredStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorDesiredState", value) +} + +// NewConnectorDesiredStateFromValue returns a pointer to a valid ConnectorDesiredState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorDesiredStateFromValue(v string) (*ConnectorDesiredState, error) { + ev := ConnectorDesiredState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorDesiredState: valid values are %v", v, allowedConnectorDesiredStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorDesiredState) IsValid() bool { + for _, existing := range allowedConnectorDesiredStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectorDesiredState value +func (v ConnectorDesiredState) Ptr() *ConnectorDesiredState { + return &v +} + +type NullableConnectorDesiredState struct { + value *ConnectorDesiredState + isSet bool +} + +func (v NullableConnectorDesiredState) Get() *ConnectorDesiredState { + return v.value +} + +func (v *NullableConnectorDesiredState) Set(val *ConnectorDesiredState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorDesiredState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorDesiredState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorDesiredState(val *ConnectorDesiredState) *NullableConnectorDesiredState { + return &NullableConnectorDesiredState{value: val, isSet: true} +} + +func (v NullableConnectorDesiredState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorDesiredState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list.go new file mode 100644 index 00000000..03d01fe4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorList struct for ConnectorList +type ConnectorList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Connector `json:"items"` +} + +// NewConnectorList instantiates a new ConnectorList 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 NewConnectorList(kind string, page int32, size int32, total int32, items []Connector) *ConnectorList { + this := ConnectorList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewConnectorListWithDefaults instantiates a new ConnectorList 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 NewConnectorListWithDefaults() *ConnectorList { + this := ConnectorList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConnectorList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ConnectorList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ConnectorList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ConnectorList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ConnectorList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ConnectorList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ConnectorList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ConnectorList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConnectorList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConnectorList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ConnectorList) GetItems() []Connector { + if o == nil { + var ret []Connector + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConnectorList) GetItemsOk() (*[]Connector, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConnectorList) SetItems(v []Connector) { + o.Items = v +} + +func (o ConnectorList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorList struct { + value *ConnectorList + isSet bool +} + +func (v NullableConnectorList) Get() *ConnectorList { + return v.value +} + +func (v *NullableConnectorList) Set(val *ConnectorList) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorList) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorList(val *ConnectorList) *NullableConnectorList { + return &NullableConnectorList{value: val, isSet: true} +} + +func (v NullableConnectorList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list_all_of.go new file mode 100644 index 00000000..18f9572e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorListAllOf struct for ConnectorListAllOf +type ConnectorListAllOf struct { + Items *[]Connector `json:"items,omitempty"` +} + +// NewConnectorListAllOf instantiates a new ConnectorListAllOf 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 NewConnectorListAllOf() *ConnectorListAllOf { + this := ConnectorListAllOf{} + return &this +} + +// NewConnectorListAllOfWithDefaults instantiates a new ConnectorListAllOf 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 NewConnectorListAllOfWithDefaults() *ConnectorListAllOf { + this := ConnectorListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConnectorListAllOf) GetItems() []Connector { + if o == nil || o.Items == nil { + var ret []Connector + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorListAllOf) GetItemsOk() (*[]Connector, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConnectorListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Connector and assigns it to the Items field. +func (o *ConnectorListAllOf) SetItems(v []Connector) { + o.Items = &v +} + +func (o ConnectorListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorListAllOf struct { + value *ConnectorListAllOf + isSet bool +} + +func (v NullableConnectorListAllOf) Get() *ConnectorListAllOf { + return v.value +} + +func (v *NullableConnectorListAllOf) Set(val *ConnectorListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorListAllOf(val *ConnectorListAllOf) *NullableConnectorListAllOf { + return &NullableConnectorListAllOf{value: val, isSet: true} +} + +func (v NullableConnectorListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta.go new file mode 100644 index 00000000..7e17e3e7 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta.go @@ -0,0 +1,381 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ConnectorMeta struct for ConnectorMeta +type ConnectorMeta struct { + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name string `json:"name"` + ConnectorTypeId string `json:"connector_type_id"` + NamespaceId string `json:"namespace_id"` + Channel *Channel `json:"channel,omitempty"` + DesiredState ConnectorDesiredState `json:"desired_state"` + ResourceVersion *int64 `json:"resource_version,omitempty"` +} + +// NewConnectorMeta instantiates a new ConnectorMeta 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 NewConnectorMeta(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState) *ConnectorMeta { + this := ConnectorMeta{} + this.Name = name + this.ConnectorTypeId = connectorTypeId + this.NamespaceId = namespaceId + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + this.DesiredState = desiredState + return &this +} + +// NewConnectorMetaWithDefaults instantiates a new ConnectorMeta 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 NewConnectorMetaWithDefaults() *ConnectorMeta { + this := ConnectorMeta{} + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ConnectorMeta) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ConnectorMeta) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ConnectorMeta) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectorMeta) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ConnectorMeta) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ConnectorMeta) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ConnectorMeta) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ConnectorMeta) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ConnectorMeta) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value +func (o *ConnectorMeta) 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 *ConnectorMeta) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorMeta) SetName(v string) { + o.Name = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorMeta) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorMeta) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetNamespaceId returns the NamespaceId field value +func (o *ConnectorMeta) GetNamespaceId() string { + if o == nil { + var ret string + return ret + } + + return o.NamespaceId +} + +// GetNamespaceIdOk returns a tuple with the NamespaceId field value +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetNamespaceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NamespaceId, true +} + +// SetNamespaceId sets field value +func (o *ConnectorMeta) SetNamespaceId(v string) { + o.NamespaceId = v +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *ConnectorMeta) GetChannel() Channel { + if o == nil || o.Channel == nil { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetChannelOk() (*Channel, bool) { + if o == nil || o.Channel == nil { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *ConnectorMeta) HasChannel() bool { + if o != nil && o.Channel != nil { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *ConnectorMeta) SetChannel(v Channel) { + o.Channel = &v +} + +// GetDesiredState returns the DesiredState field value +func (o *ConnectorMeta) GetDesiredState() ConnectorDesiredState { + if o == nil { + var ret ConnectorDesiredState + return ret + } + + return o.DesiredState +} + +// GetDesiredStateOk returns a tuple with the DesiredState field value +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetDesiredStateOk() (*ConnectorDesiredState, bool) { + if o == nil { + return nil, false + } + return &o.DesiredState, true +} + +// SetDesiredState sets field value +func (o *ConnectorMeta) SetDesiredState(v ConnectorDesiredState) { + o.DesiredState = v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *ConnectorMeta) GetResourceVersion() int64 { + if o == nil || o.ResourceVersion == nil { + var ret int64 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMeta) GetResourceVersionOk() (*int64, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *ConnectorMeta) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int64 and assigns it to the ResourceVersion field. +func (o *ConnectorMeta) SetResourceVersion(v int64) { + o.ResourceVersion = &v +} + +func (o ConnectorMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["connector_type_id"] = o.ConnectorTypeId + } + if true { + toSerialize["namespace_id"] = o.NamespaceId + } + if o.Channel != nil { + toSerialize["channel"] = o.Channel + } + if true { + toSerialize["desired_state"] = o.DesiredState + } + if o.ResourceVersion != nil { + toSerialize["resource_version"] = o.ResourceVersion + } + return json.Marshal(toSerialize) +} + +type NullableConnectorMeta struct { + value *ConnectorMeta + isSet bool +} + +func (v NullableConnectorMeta) Get() *ConnectorMeta { + return v.value +} + +func (v *NullableConnectorMeta) Set(val *ConnectorMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorMeta(val *ConnectorMeta) *NullableConnectorMeta { + return &NullableConnectorMeta{value: val, isSet: true} +} + +func (v NullableConnectorMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta_all_of.go new file mode 100644 index 00000000..061182bf --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_meta_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorMetaAllOf struct for ConnectorMetaAllOf +type ConnectorMetaAllOf struct { + ResourceVersion *int64 `json:"resource_version,omitempty"` +} + +// NewConnectorMetaAllOf instantiates a new ConnectorMetaAllOf 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 NewConnectorMetaAllOf() *ConnectorMetaAllOf { + this := ConnectorMetaAllOf{} + return &this +} + +// NewConnectorMetaAllOfWithDefaults instantiates a new ConnectorMetaAllOf 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 NewConnectorMetaAllOfWithDefaults() *ConnectorMetaAllOf { + this := ConnectorMetaAllOf{} + return &this +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *ConnectorMetaAllOf) GetResourceVersion() int64 { + if o == nil || o.ResourceVersion == nil { + var ret int64 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorMetaAllOf) GetResourceVersionOk() (*int64, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *ConnectorMetaAllOf) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int64 and assigns it to the ResourceVersion field. +func (o *ConnectorMetaAllOf) SetResourceVersion(v int64) { + o.ResourceVersion = &v +} + +func (o ConnectorMetaAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResourceVersion != nil { + toSerialize["resource_version"] = o.ResourceVersion + } + return json.Marshal(toSerialize) +} + +type NullableConnectorMetaAllOf struct { + value *ConnectorMetaAllOf + isSet bool +} + +func (v NullableConnectorMetaAllOf) Get() *ConnectorMetaAllOf { + return v.value +} + +func (v *NullableConnectorMetaAllOf) Set(val *ConnectorMetaAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorMetaAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorMetaAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorMetaAllOf(val *ConnectorMetaAllOf) *NullableConnectorMetaAllOf { + return &NullableConnectorMetaAllOf{value: val, isSet: true} +} + +func (v NullableConnectorMetaAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorMetaAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace.go new file mode 100644 index 00000000..22be8fc8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace.go @@ -0,0 +1,544 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ConnectorNamespace A connector namespace +type ConnectorNamespace struct { + Id string `json:"id"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name string `json:"name"` + Annotations *map[string]string `json:"annotations,omitempty"` + ResourceVersion int64 `json:"resource_version"` + Quota *ConnectorNamespaceQuota `json:"quota,omitempty"` + ClusterId string `json:"cluster_id"` + // Namespace expiration timestamp in RFC 3339 format + Expiration *string `json:"expiration,omitempty"` + Tenant ConnectorNamespaceTenant `json:"tenant"` + Status ConnectorNamespaceStatus `json:"status"` +} + +// NewConnectorNamespace instantiates a new ConnectorNamespace 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 NewConnectorNamespace(id string, name string, resourceVersion int64, clusterId string, tenant ConnectorNamespaceTenant, status ConnectorNamespaceStatus) *ConnectorNamespace { + this := ConnectorNamespace{} + this.Id = id + this.Name = name + this.ResourceVersion = resourceVersion + this.ClusterId = clusterId + this.Tenant = tenant + this.Status = status + return &this +} + +// NewConnectorNamespaceWithDefaults instantiates a new ConnectorNamespace 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 NewConnectorNamespaceWithDefaults() *ConnectorNamespace { + this := ConnectorNamespace{} + return &this +} + +// GetId returns the Id field value +func (o *ConnectorNamespace) 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 *ConnectorNamespace) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorNamespace) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConnectorNamespace) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ConnectorNamespace) SetHref(v string) { + o.Href = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ConnectorNamespace) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ConnectorNamespace) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ConnectorNamespace) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value +func (o *ConnectorNamespace) 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 *ConnectorNamespace) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorNamespace) SetName(v string) { + o.Name = v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespace) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetResourceVersion returns the ResourceVersion field value +func (o *ConnectorNamespace) GetResourceVersion() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetResourceVersionOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ResourceVersion, true +} + +// SetResourceVersion sets field value +func (o *ConnectorNamespace) SetResourceVersion(v int64) { + o.ResourceVersion = v +} + +// GetQuota returns the Quota field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetQuota() ConnectorNamespaceQuota { + if o == nil || o.Quota == nil { + var ret ConnectorNamespaceQuota + return ret + } + return *o.Quota +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetQuotaOk() (*ConnectorNamespaceQuota, bool) { + if o == nil || o.Quota == nil { + return nil, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasQuota() bool { + if o != nil && o.Quota != nil { + return true + } + + return false +} + +// SetQuota gets a reference to the given ConnectorNamespaceQuota and assigns it to the Quota field. +func (o *ConnectorNamespace) SetQuota(v ConnectorNamespaceQuota) { + o.Quota = &v +} + +// GetClusterId returns the ClusterId field value +func (o *ConnectorNamespace) GetClusterId() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetClusterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterId, true +} + +// SetClusterId sets field value +func (o *ConnectorNamespace) SetClusterId(v string) { + o.ClusterId = v +} + +// GetExpiration returns the Expiration field value if set, zero value otherwise. +func (o *ConnectorNamespace) GetExpiration() string { + if o == nil || o.Expiration == nil { + var ret string + return ret + } + return *o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetExpirationOk() (*string, bool) { + if o == nil || o.Expiration == nil { + return nil, false + } + return o.Expiration, true +} + +// HasExpiration returns a boolean if a field has been set. +func (o *ConnectorNamespace) HasExpiration() bool { + if o != nil && o.Expiration != nil { + return true + } + + return false +} + +// SetExpiration gets a reference to the given string and assigns it to the Expiration field. +func (o *ConnectorNamespace) SetExpiration(v string) { + o.Expiration = &v +} + +// GetTenant returns the Tenant field value +func (o *ConnectorNamespace) GetTenant() ConnectorNamespaceTenant { + if o == nil { + var ret ConnectorNamespaceTenant + return ret + } + + return o.Tenant +} + +// GetTenantOk returns a tuple with the Tenant field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetTenantOk() (*ConnectorNamespaceTenant, bool) { + if o == nil { + return nil, false + } + return &o.Tenant, true +} + +// SetTenant sets field value +func (o *ConnectorNamespace) SetTenant(v ConnectorNamespaceTenant) { + o.Tenant = v +} + +// GetStatus returns the Status field value +func (o *ConnectorNamespace) GetStatus() ConnectorNamespaceStatus { + if o == nil { + var ret ConnectorNamespaceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespace) GetStatusOk() (*ConnectorNamespaceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ConnectorNamespace) SetStatus(v ConnectorNamespaceStatus) { + o.Status = v +} + +func (o ConnectorNamespace) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if true { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if true { + toSerialize["resource_version"] = o.ResourceVersion + } + if o.Quota != nil { + toSerialize["quota"] = o.Quota + } + if true { + toSerialize["cluster_id"] = o.ClusterId + } + if o.Expiration != nil { + toSerialize["expiration"] = o.Expiration + } + if true { + toSerialize["tenant"] = o.Tenant + } + if true { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespace struct { + value *ConnectorNamespace + isSet bool +} + +func (v NullableConnectorNamespace) Get() *ConnectorNamespace { + return v.value +} + +func (v *NullableConnectorNamespace) Set(val *ConnectorNamespace) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespace) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespace(val *ConnectorNamespace) *NullableConnectorNamespace { + return &NullableConnectorNamespace{value: val, isSet: true} +} + +func (v NullableConnectorNamespace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_all_of.go new file mode 100644 index 00000000..fa0f89c9 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_all_of.go @@ -0,0 +1,233 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceAllOf struct for ConnectorNamespaceAllOf +type ConnectorNamespaceAllOf struct { + Name string `json:"name"` + ClusterId string `json:"cluster_id"` + // Namespace expiration timestamp in RFC 3339 format + Expiration *string `json:"expiration,omitempty"` + Tenant ConnectorNamespaceTenant `json:"tenant"` + Status ConnectorNamespaceStatus `json:"status"` +} + +// NewConnectorNamespaceAllOf instantiates a new ConnectorNamespaceAllOf 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 NewConnectorNamespaceAllOf(name string, clusterId string, tenant ConnectorNamespaceTenant, status ConnectorNamespaceStatus) *ConnectorNamespaceAllOf { + this := ConnectorNamespaceAllOf{} + this.Name = name + this.ClusterId = clusterId + this.Tenant = tenant + this.Status = status + return &this +} + +// NewConnectorNamespaceAllOfWithDefaults instantiates a new ConnectorNamespaceAllOf 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 NewConnectorNamespaceAllOfWithDefaults() *ConnectorNamespaceAllOf { + this := ConnectorNamespaceAllOf{} + return &this +} + +// GetName returns the Name field value +func (o *ConnectorNamespaceAllOf) 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 *ConnectorNamespaceAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorNamespaceAllOf) SetName(v string) { + o.Name = v +} + +// GetClusterId returns the ClusterId field value +func (o *ConnectorNamespaceAllOf) GetClusterId() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceAllOf) GetClusterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterId, true +} + +// SetClusterId sets field value +func (o *ConnectorNamespaceAllOf) SetClusterId(v string) { + o.ClusterId = v +} + +// GetExpiration returns the Expiration field value if set, zero value otherwise. +func (o *ConnectorNamespaceAllOf) GetExpiration() string { + if o == nil || o.Expiration == nil { + var ret string + return ret + } + return *o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceAllOf) GetExpirationOk() (*string, bool) { + if o == nil || o.Expiration == nil { + return nil, false + } + return o.Expiration, true +} + +// HasExpiration returns a boolean if a field has been set. +func (o *ConnectorNamespaceAllOf) HasExpiration() bool { + if o != nil && o.Expiration != nil { + return true + } + + return false +} + +// SetExpiration gets a reference to the given string and assigns it to the Expiration field. +func (o *ConnectorNamespaceAllOf) SetExpiration(v string) { + o.Expiration = &v +} + +// GetTenant returns the Tenant field value +func (o *ConnectorNamespaceAllOf) GetTenant() ConnectorNamespaceTenant { + if o == nil { + var ret ConnectorNamespaceTenant + return ret + } + + return o.Tenant +} + +// GetTenantOk returns a tuple with the Tenant field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceAllOf) GetTenantOk() (*ConnectorNamespaceTenant, bool) { + if o == nil { + return nil, false + } + return &o.Tenant, true +} + +// SetTenant sets field value +func (o *ConnectorNamespaceAllOf) SetTenant(v ConnectorNamespaceTenant) { + o.Tenant = v +} + +// GetStatus returns the Status field value +func (o *ConnectorNamespaceAllOf) GetStatus() ConnectorNamespaceStatus { + if o == nil { + var ret ConnectorNamespaceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceAllOf) GetStatusOk() (*ConnectorNamespaceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ConnectorNamespaceAllOf) SetStatus(v ConnectorNamespaceStatus) { + o.Status = v +} + +func (o ConnectorNamespaceAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["cluster_id"] = o.ClusterId + } + if o.Expiration != nil { + toSerialize["expiration"] = o.Expiration + } + if true { + toSerialize["tenant"] = o.Tenant + } + if true { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceAllOf struct { + value *ConnectorNamespaceAllOf + isSet bool +} + +func (v NullableConnectorNamespaceAllOf) Get() *ConnectorNamespaceAllOf { + return v.value +} + +func (v *NullableConnectorNamespaceAllOf) Set(val *ConnectorNamespaceAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceAllOf(val *ConnectorNamespaceAllOf) *NullableConnectorNamespaceAllOf { + return &NullableConnectorNamespaceAllOf{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_eval_request.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_eval_request.go new file mode 100644 index 00000000..34433286 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_eval_request.go @@ -0,0 +1,153 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceEvalRequest An evaluation connector namespace create request +type ConnectorNamespaceEvalRequest struct { + // Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. + Name *string `json:"name,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` +} + +// NewConnectorNamespaceEvalRequest instantiates a new ConnectorNamespaceEvalRequest 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 NewConnectorNamespaceEvalRequest() *ConnectorNamespaceEvalRequest { + this := ConnectorNamespaceEvalRequest{} + return &this +} + +// NewConnectorNamespaceEvalRequestWithDefaults instantiates a new ConnectorNamespaceEvalRequest 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 NewConnectorNamespaceEvalRequestWithDefaults() *ConnectorNamespaceEvalRequest { + this := ConnectorNamespaceEvalRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorNamespaceEvalRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorNamespaceEvalRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorNamespaceEvalRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorNamespaceEvalRequest) SetName(v string) { + o.Name = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespaceEvalRequest) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceEvalRequest) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespaceEvalRequest) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespaceEvalRequest) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +func (o ConnectorNamespaceEvalRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceEvalRequest struct { + value *ConnectorNamespaceEvalRequest + isSet bool +} + +func (v NullableConnectorNamespaceEvalRequest) Get() *ConnectorNamespaceEvalRequest { + return v.value +} + +func (v *NullableConnectorNamespaceEvalRequest) Set(val *ConnectorNamespaceEvalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceEvalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceEvalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceEvalRequest(val *ConnectorNamespaceEvalRequest) *NullableConnectorNamespaceEvalRequest { + return &NullableConnectorNamespaceEvalRequest{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceEvalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceEvalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list.go new file mode 100644 index 00000000..6833eda6 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceList struct for ConnectorNamespaceList +type ConnectorNamespaceList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ConnectorNamespace `json:"items"` +} + +// NewConnectorNamespaceList instantiates a new ConnectorNamespaceList 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 NewConnectorNamespaceList(kind string, page int32, size int32, total int32, items []ConnectorNamespace) *ConnectorNamespaceList { + this := ConnectorNamespaceList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewConnectorNamespaceListWithDefaults instantiates a new ConnectorNamespaceList 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 NewConnectorNamespaceListWithDefaults() *ConnectorNamespaceList { + this := ConnectorNamespaceList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConnectorNamespaceList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorNamespaceList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ConnectorNamespaceList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ConnectorNamespaceList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ConnectorNamespaceList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ConnectorNamespaceList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ConnectorNamespaceList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConnectorNamespaceList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ConnectorNamespaceList) GetItems() []ConnectorNamespace { + if o == nil { + var ret []ConnectorNamespace + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceList) GetItemsOk() (*[]ConnectorNamespace, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConnectorNamespaceList) SetItems(v []ConnectorNamespace) { + o.Items = v +} + +func (o ConnectorNamespaceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceList struct { + value *ConnectorNamespaceList + isSet bool +} + +func (v NullableConnectorNamespaceList) Get() *ConnectorNamespaceList { + return v.value +} + +func (v *NullableConnectorNamespaceList) Set(val *ConnectorNamespaceList) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceList) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceList(val *ConnectorNamespaceList) *NullableConnectorNamespaceList { + return &NullableConnectorNamespaceList{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list_all_of.go new file mode 100644 index 00000000..99310728 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceListAllOf struct for ConnectorNamespaceListAllOf +type ConnectorNamespaceListAllOf struct { + Items *[]ConnectorNamespace `json:"items,omitempty"` +} + +// NewConnectorNamespaceListAllOf instantiates a new ConnectorNamespaceListAllOf 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 NewConnectorNamespaceListAllOf() *ConnectorNamespaceListAllOf { + this := ConnectorNamespaceListAllOf{} + return &this +} + +// NewConnectorNamespaceListAllOfWithDefaults instantiates a new ConnectorNamespaceListAllOf 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 NewConnectorNamespaceListAllOfWithDefaults() *ConnectorNamespaceListAllOf { + this := ConnectorNamespaceListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConnectorNamespaceListAllOf) GetItems() []ConnectorNamespace { + if o == nil || o.Items == nil { + var ret []ConnectorNamespace + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceListAllOf) GetItemsOk() (*[]ConnectorNamespace, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConnectorNamespaceListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConnectorNamespace and assigns it to the Items field. +func (o *ConnectorNamespaceListAllOf) SetItems(v []ConnectorNamespace) { + o.Items = &v +} + +func (o ConnectorNamespaceListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceListAllOf struct { + value *ConnectorNamespaceListAllOf + isSet bool +} + +func (v NullableConnectorNamespaceListAllOf) Get() *ConnectorNamespaceListAllOf { + return v.value +} + +func (v *NullableConnectorNamespaceListAllOf) Set(val *ConnectorNamespaceListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceListAllOf(val *ConnectorNamespaceListAllOf) *NullableConnectorNamespaceListAllOf { + return &NullableConnectorNamespaceListAllOf{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta.go new file mode 100644 index 00000000..c829bb0e --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta.go @@ -0,0 +1,334 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ConnectorNamespaceMeta struct for ConnectorNamespaceMeta +type ConnectorNamespaceMeta struct { + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + // Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. + Name *string `json:"name,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` + ResourceVersion *int64 `json:"resource_version,omitempty"` + Quota *ConnectorNamespaceQuota `json:"quota,omitempty"` +} + +// NewConnectorNamespaceMeta instantiates a new ConnectorNamespaceMeta 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 NewConnectorNamespaceMeta() *ConnectorNamespaceMeta { + this := ConnectorNamespaceMeta{} + return &this +} + +// NewConnectorNamespaceMetaWithDefaults instantiates a new ConnectorNamespaceMeta 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 NewConnectorNamespaceMetaWithDefaults() *ConnectorNamespaceMeta { + this := ConnectorNamespaceMeta{} + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ConnectorNamespaceMeta) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ConnectorNamespaceMeta) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ConnectorNamespaceMeta) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorNamespaceMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorNamespaceMeta) SetName(v string) { + o.Name = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespaceMeta) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetResourceVersion() int64 { + if o == nil || o.ResourceVersion == nil { + var ret int64 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetResourceVersionOk() (*int64, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int64 and assigns it to the ResourceVersion field. +func (o *ConnectorNamespaceMeta) SetResourceVersion(v int64) { + o.ResourceVersion = &v +} + +// GetQuota returns the Quota field value if set, zero value otherwise. +func (o *ConnectorNamespaceMeta) GetQuota() ConnectorNamespaceQuota { + if o == nil || o.Quota == nil { + var ret ConnectorNamespaceQuota + return ret + } + return *o.Quota +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMeta) GetQuotaOk() (*ConnectorNamespaceQuota, bool) { + if o == nil || o.Quota == nil { + return nil, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *ConnectorNamespaceMeta) HasQuota() bool { + if o != nil && o.Quota != nil { + return true + } + + return false +} + +// SetQuota gets a reference to the given ConnectorNamespaceQuota and assigns it to the Quota field. +func (o *ConnectorNamespaceMeta) SetQuota(v ConnectorNamespaceQuota) { + o.Quota = &v +} + +func (o ConnectorNamespaceMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.ResourceVersion != nil { + toSerialize["resource_version"] = o.ResourceVersion + } + if o.Quota != nil { + toSerialize["quota"] = o.Quota + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceMeta struct { + value *ConnectorNamespaceMeta + isSet bool +} + +func (v NullableConnectorNamespaceMeta) Get() *ConnectorNamespaceMeta { + return v.value +} + +func (v *NullableConnectorNamespaceMeta) Set(val *ConnectorNamespaceMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceMeta(val *ConnectorNamespaceMeta) *NullableConnectorNamespaceMeta { + return &NullableConnectorNamespaceMeta{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta_all_of.go new file mode 100644 index 00000000..c7696329 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_meta_all_of.go @@ -0,0 +1,152 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceMetaAllOf struct for ConnectorNamespaceMetaAllOf +type ConnectorNamespaceMetaAllOf struct { + ResourceVersion *int64 `json:"resource_version,omitempty"` + Quota *ConnectorNamespaceQuota `json:"quota,omitempty"` +} + +// NewConnectorNamespaceMetaAllOf instantiates a new ConnectorNamespaceMetaAllOf 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 NewConnectorNamespaceMetaAllOf() *ConnectorNamespaceMetaAllOf { + this := ConnectorNamespaceMetaAllOf{} + return &this +} + +// NewConnectorNamespaceMetaAllOfWithDefaults instantiates a new ConnectorNamespaceMetaAllOf 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 NewConnectorNamespaceMetaAllOfWithDefaults() *ConnectorNamespaceMetaAllOf { + this := ConnectorNamespaceMetaAllOf{} + return &this +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *ConnectorNamespaceMetaAllOf) GetResourceVersion() int64 { + if o == nil || o.ResourceVersion == nil { + var ret int64 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMetaAllOf) GetResourceVersionOk() (*int64, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *ConnectorNamespaceMetaAllOf) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int64 and assigns it to the ResourceVersion field. +func (o *ConnectorNamespaceMetaAllOf) SetResourceVersion(v int64) { + o.ResourceVersion = &v +} + +// GetQuota returns the Quota field value if set, zero value otherwise. +func (o *ConnectorNamespaceMetaAllOf) GetQuota() ConnectorNamespaceQuota { + if o == nil || o.Quota == nil { + var ret ConnectorNamespaceQuota + return ret + } + return *o.Quota +} + +// GetQuotaOk returns a tuple with the Quota field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceMetaAllOf) GetQuotaOk() (*ConnectorNamespaceQuota, bool) { + if o == nil || o.Quota == nil { + return nil, false + } + return o.Quota, true +} + +// HasQuota returns a boolean if a field has been set. +func (o *ConnectorNamespaceMetaAllOf) HasQuota() bool { + if o != nil && o.Quota != nil { + return true + } + + return false +} + +// SetQuota gets a reference to the given ConnectorNamespaceQuota and assigns it to the Quota field. +func (o *ConnectorNamespaceMetaAllOf) SetQuota(v ConnectorNamespaceQuota) { + o.Quota = &v +} + +func (o ConnectorNamespaceMetaAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResourceVersion != nil { + toSerialize["resource_version"] = o.ResourceVersion + } + if o.Quota != nil { + toSerialize["quota"] = o.Quota + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceMetaAllOf struct { + value *ConnectorNamespaceMetaAllOf + isSet bool +} + +func (v NullableConnectorNamespaceMetaAllOf) Get() *ConnectorNamespaceMetaAllOf { + return v.value +} + +func (v *NullableConnectorNamespaceMetaAllOf) Set(val *ConnectorNamespaceMetaAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceMetaAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceMetaAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceMetaAllOf(val *ConnectorNamespaceMetaAllOf) *NullableConnectorNamespaceMetaAllOf { + return &NullableConnectorNamespaceMetaAllOf{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceMetaAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceMetaAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_patch_request.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_patch_request.go new file mode 100644 index 00000000..7be9aeab --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_patch_request.go @@ -0,0 +1,153 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespacePatchRequest A connector namespace patch request +type ConnectorNamespacePatchRequest struct { + // Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. + Name *string `json:"name,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` +} + +// NewConnectorNamespacePatchRequest instantiates a new ConnectorNamespacePatchRequest 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 NewConnectorNamespacePatchRequest() *ConnectorNamespacePatchRequest { + this := ConnectorNamespacePatchRequest{} + return &this +} + +// NewConnectorNamespacePatchRequestWithDefaults instantiates a new ConnectorNamespacePatchRequest 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 NewConnectorNamespacePatchRequestWithDefaults() *ConnectorNamespacePatchRequest { + this := ConnectorNamespacePatchRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorNamespacePatchRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorNamespacePatchRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorNamespacePatchRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorNamespacePatchRequest) SetName(v string) { + o.Name = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespacePatchRequest) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespacePatchRequest) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespacePatchRequest) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespacePatchRequest) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +func (o ConnectorNamespacePatchRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespacePatchRequest struct { + value *ConnectorNamespacePatchRequest + isSet bool +} + +func (v NullableConnectorNamespacePatchRequest) Get() *ConnectorNamespacePatchRequest { + return v.value +} + +func (v *NullableConnectorNamespacePatchRequest) Set(val *ConnectorNamespacePatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespacePatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespacePatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespacePatchRequest(val *ConnectorNamespacePatchRequest) *NullableConnectorNamespacePatchRequest { + return &NullableConnectorNamespacePatchRequest{value: val, isSet: true} +} + +func (v NullableConnectorNamespacePatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespacePatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_quota.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_quota.go new file mode 100644 index 00000000..abd6aae2 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_quota.go @@ -0,0 +1,264 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceQuota struct for ConnectorNamespaceQuota +type ConnectorNamespaceQuota struct { + Connectors *int32 `json:"connectors,omitempty"` + // Memory quota for limits or requests + MemoryRequests *string `json:"memory_requests,omitempty"` + // Memory quota for limits or requests + MemoryLimits *string `json:"memory_limits,omitempty"` + // CPU quota for limits or requests + CpuRequests *string `json:"cpu_requests,omitempty"` + // CPU quota for limits or requests + CpuLimits *string `json:"cpu_limits,omitempty"` +} + +// NewConnectorNamespaceQuota instantiates a new ConnectorNamespaceQuota 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 NewConnectorNamespaceQuota() *ConnectorNamespaceQuota { + this := ConnectorNamespaceQuota{} + return &this +} + +// NewConnectorNamespaceQuotaWithDefaults instantiates a new ConnectorNamespaceQuota 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 NewConnectorNamespaceQuotaWithDefaults() *ConnectorNamespaceQuota { + this := ConnectorNamespaceQuota{} + return &this +} + +// GetConnectors returns the Connectors field value if set, zero value otherwise. +func (o *ConnectorNamespaceQuota) GetConnectors() int32 { + if o == nil || o.Connectors == nil { + var ret int32 + return ret + } + return *o.Connectors +} + +// GetConnectorsOk returns a tuple with the Connectors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceQuota) GetConnectorsOk() (*int32, bool) { + if o == nil || o.Connectors == nil { + return nil, false + } + return o.Connectors, true +} + +// HasConnectors returns a boolean if a field has been set. +func (o *ConnectorNamespaceQuota) HasConnectors() bool { + if o != nil && o.Connectors != nil { + return true + } + + return false +} + +// SetConnectors gets a reference to the given int32 and assigns it to the Connectors field. +func (o *ConnectorNamespaceQuota) SetConnectors(v int32) { + o.Connectors = &v +} + +// GetMemoryRequests returns the MemoryRequests field value if set, zero value otherwise. +func (o *ConnectorNamespaceQuota) GetMemoryRequests() string { + if o == nil || o.MemoryRequests == nil { + var ret string + return ret + } + return *o.MemoryRequests +} + +// GetMemoryRequestsOk returns a tuple with the MemoryRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceQuota) GetMemoryRequestsOk() (*string, bool) { + if o == nil || o.MemoryRequests == nil { + return nil, false + } + return o.MemoryRequests, true +} + +// HasMemoryRequests returns a boolean if a field has been set. +func (o *ConnectorNamespaceQuota) HasMemoryRequests() bool { + if o != nil && o.MemoryRequests != nil { + return true + } + + return false +} + +// SetMemoryRequests gets a reference to the given string and assigns it to the MemoryRequests field. +func (o *ConnectorNamespaceQuota) SetMemoryRequests(v string) { + o.MemoryRequests = &v +} + +// GetMemoryLimits returns the MemoryLimits field value if set, zero value otherwise. +func (o *ConnectorNamespaceQuota) GetMemoryLimits() string { + if o == nil || o.MemoryLimits == nil { + var ret string + return ret + } + return *o.MemoryLimits +} + +// GetMemoryLimitsOk returns a tuple with the MemoryLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceQuota) GetMemoryLimitsOk() (*string, bool) { + if o == nil || o.MemoryLimits == nil { + return nil, false + } + return o.MemoryLimits, true +} + +// HasMemoryLimits returns a boolean if a field has been set. +func (o *ConnectorNamespaceQuota) HasMemoryLimits() bool { + if o != nil && o.MemoryLimits != nil { + return true + } + + return false +} + +// SetMemoryLimits gets a reference to the given string and assigns it to the MemoryLimits field. +func (o *ConnectorNamespaceQuota) SetMemoryLimits(v string) { + o.MemoryLimits = &v +} + +// GetCpuRequests returns the CpuRequests field value if set, zero value otherwise. +func (o *ConnectorNamespaceQuota) GetCpuRequests() string { + if o == nil || o.CpuRequests == nil { + var ret string + return ret + } + return *o.CpuRequests +} + +// GetCpuRequestsOk returns a tuple with the CpuRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceQuota) GetCpuRequestsOk() (*string, bool) { + if o == nil || o.CpuRequests == nil { + return nil, false + } + return o.CpuRequests, true +} + +// HasCpuRequests returns a boolean if a field has been set. +func (o *ConnectorNamespaceQuota) HasCpuRequests() bool { + if o != nil && o.CpuRequests != nil { + return true + } + + return false +} + +// SetCpuRequests gets a reference to the given string and assigns it to the CpuRequests field. +func (o *ConnectorNamespaceQuota) SetCpuRequests(v string) { + o.CpuRequests = &v +} + +// GetCpuLimits returns the CpuLimits field value if set, zero value otherwise. +func (o *ConnectorNamespaceQuota) GetCpuLimits() string { + if o == nil || o.CpuLimits == nil { + var ret string + return ret + } + return *o.CpuLimits +} + +// GetCpuLimitsOk returns a tuple with the CpuLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceQuota) GetCpuLimitsOk() (*string, bool) { + if o == nil || o.CpuLimits == nil { + return nil, false + } + return o.CpuLimits, true +} + +// HasCpuLimits returns a boolean if a field has been set. +func (o *ConnectorNamespaceQuota) HasCpuLimits() bool { + if o != nil && o.CpuLimits != nil { + return true + } + + return false +} + +// SetCpuLimits gets a reference to the given string and assigns it to the CpuLimits field. +func (o *ConnectorNamespaceQuota) SetCpuLimits(v string) { + o.CpuLimits = &v +} + +func (o ConnectorNamespaceQuota) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Connectors != nil { + toSerialize["connectors"] = o.Connectors + } + if o.MemoryRequests != nil { + toSerialize["memory_requests"] = o.MemoryRequests + } + if o.MemoryLimits != nil { + toSerialize["memory_limits"] = o.MemoryLimits + } + if o.CpuRequests != nil { + toSerialize["cpu_requests"] = o.CpuRequests + } + if o.CpuLimits != nil { + toSerialize["cpu_limits"] = o.CpuLimits + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceQuota struct { + value *ConnectorNamespaceQuota + isSet bool +} + +func (v NullableConnectorNamespaceQuota) Get() *ConnectorNamespaceQuota { + return v.value +} + +func (v *NullableConnectorNamespaceQuota) Set(val *ConnectorNamespaceQuota) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceQuota) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceQuota) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceQuota(val *ConnectorNamespaceQuota) *NullableConnectorNamespaceQuota { + return &NullableConnectorNamespaceQuota{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceQuota) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceQuota) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request.go new file mode 100644 index 00000000..c314dce2 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request.go @@ -0,0 +1,204 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceRequest A connector namespace create request +type ConnectorNamespaceRequest struct { + // Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. + Name string `json:"name"` + Annotations *map[string]string `json:"annotations,omitempty"` + ClusterId string `json:"cluster_id"` + Kind ConnectorNamespaceTenantKind `json:"kind"` +} + +// NewConnectorNamespaceRequest instantiates a new ConnectorNamespaceRequest 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 NewConnectorNamespaceRequest(name string, clusterId string, kind ConnectorNamespaceTenantKind) *ConnectorNamespaceRequest { + this := ConnectorNamespaceRequest{} + this.Name = name + this.ClusterId = clusterId + this.Kind = kind + return &this +} + +// NewConnectorNamespaceRequestWithDefaults instantiates a new ConnectorNamespaceRequest 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 NewConnectorNamespaceRequestWithDefaults() *ConnectorNamespaceRequest { + this := ConnectorNamespaceRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ConnectorNamespaceRequest) 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 *ConnectorNamespaceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorNamespaceRequest) SetName(v string) { + o.Name = v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespaceRequest) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequest) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespaceRequest) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespaceRequest) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetClusterId returns the ClusterId field value +func (o *ConnectorNamespaceRequest) GetClusterId() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequest) GetClusterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterId, true +} + +// SetClusterId sets field value +func (o *ConnectorNamespaceRequest) SetClusterId(v string) { + o.ClusterId = v +} + +// GetKind returns the Kind field value +func (o *ConnectorNamespaceRequest) GetKind() ConnectorNamespaceTenantKind { + if o == nil { + var ret ConnectorNamespaceTenantKind + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequest) GetKindOk() (*ConnectorNamespaceTenantKind, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorNamespaceRequest) SetKind(v ConnectorNamespaceTenantKind) { + o.Kind = v +} + +func (o ConnectorNamespaceRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if true { + toSerialize["cluster_id"] = o.ClusterId + } + if true { + toSerialize["kind"] = o.Kind + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceRequest struct { + value *ConnectorNamespaceRequest + isSet bool +} + +func (v NullableConnectorNamespaceRequest) Get() *ConnectorNamespaceRequest { + return v.value +} + +func (v *NullableConnectorNamespaceRequest) Set(val *ConnectorNamespaceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceRequest(val *ConnectorNamespaceRequest) *NullableConnectorNamespaceRequest { + return &NullableConnectorNamespaceRequest{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_all_of.go new file mode 100644 index 00000000..39b66b1f --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_all_of.go @@ -0,0 +1,152 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceRequestAllOf struct for ConnectorNamespaceRequestAllOf +type ConnectorNamespaceRequestAllOf struct { + ClusterId *string `json:"cluster_id,omitempty"` + Kind *ConnectorNamespaceTenantKind `json:"kind,omitempty"` +} + +// NewConnectorNamespaceRequestAllOf instantiates a new ConnectorNamespaceRequestAllOf 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 NewConnectorNamespaceRequestAllOf() *ConnectorNamespaceRequestAllOf { + this := ConnectorNamespaceRequestAllOf{} + return &this +} + +// NewConnectorNamespaceRequestAllOfWithDefaults instantiates a new ConnectorNamespaceRequestAllOf 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 NewConnectorNamespaceRequestAllOfWithDefaults() *ConnectorNamespaceRequestAllOf { + this := ConnectorNamespaceRequestAllOf{} + return &this +} + +// GetClusterId returns the ClusterId field value if set, zero value otherwise. +func (o *ConnectorNamespaceRequestAllOf) GetClusterId() string { + if o == nil || o.ClusterId == nil { + var ret string + return ret + } + return *o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequestAllOf) GetClusterIdOk() (*string, bool) { + if o == nil || o.ClusterId == nil { + return nil, false + } + return o.ClusterId, true +} + +// HasClusterId returns a boolean if a field has been set. +func (o *ConnectorNamespaceRequestAllOf) HasClusterId() bool { + if o != nil && o.ClusterId != nil { + return true + } + + return false +} + +// SetClusterId gets a reference to the given string and assigns it to the ClusterId field. +func (o *ConnectorNamespaceRequestAllOf) SetClusterId(v string) { + o.ClusterId = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConnectorNamespaceRequestAllOf) GetKind() ConnectorNamespaceTenantKind { + if o == nil || o.Kind == nil { + var ret ConnectorNamespaceTenantKind + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequestAllOf) GetKindOk() (*ConnectorNamespaceTenantKind, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConnectorNamespaceRequestAllOf) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given ConnectorNamespaceTenantKind and assigns it to the Kind field. +func (o *ConnectorNamespaceRequestAllOf) SetKind(v ConnectorNamespaceTenantKind) { + o.Kind = &v +} + +func (o ConnectorNamespaceRequestAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClusterId != nil { + toSerialize["cluster_id"] = o.ClusterId + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceRequestAllOf struct { + value *ConnectorNamespaceRequestAllOf + isSet bool +} + +func (v NullableConnectorNamespaceRequestAllOf) Get() *ConnectorNamespaceRequestAllOf { + return v.value +} + +func (v *NullableConnectorNamespaceRequestAllOf) Set(val *ConnectorNamespaceRequestAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceRequestAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceRequestAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceRequestAllOf(val *ConnectorNamespaceRequestAllOf) *NullableConnectorNamespaceRequestAllOf { + return &NullableConnectorNamespaceRequestAllOf{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceRequestAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceRequestAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_meta.go new file mode 100644 index 00000000..72f715c7 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_request_meta.go @@ -0,0 +1,153 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceRequestMeta struct for ConnectorNamespaceRequestMeta +type ConnectorNamespaceRequestMeta struct { + // Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated. + Name *string `json:"name,omitempty"` + Annotations *map[string]string `json:"annotations,omitempty"` +} + +// NewConnectorNamespaceRequestMeta instantiates a new ConnectorNamespaceRequestMeta 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 NewConnectorNamespaceRequestMeta() *ConnectorNamespaceRequestMeta { + this := ConnectorNamespaceRequestMeta{} + return &this +} + +// NewConnectorNamespaceRequestMetaWithDefaults instantiates a new ConnectorNamespaceRequestMeta 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 NewConnectorNamespaceRequestMetaWithDefaults() *ConnectorNamespaceRequestMeta { + this := ConnectorNamespaceRequestMeta{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorNamespaceRequestMeta) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorNamespaceRequestMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorNamespaceRequestMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorNamespaceRequestMeta) SetName(v string) { + o.Name = &v +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ConnectorNamespaceRequestMeta) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceRequestMeta) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ConnectorNamespaceRequestMeta) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ConnectorNamespaceRequestMeta) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +func (o ConnectorNamespaceRequestMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceRequestMeta struct { + value *ConnectorNamespaceRequestMeta + isSet bool +} + +func (v NullableConnectorNamespaceRequestMeta) Get() *ConnectorNamespaceRequestMeta { + return v.value +} + +func (v *NullableConnectorNamespaceRequestMeta) Set(val *ConnectorNamespaceRequestMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceRequestMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceRequestMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceRequestMeta(val *ConnectorNamespaceRequestMeta) *NullableConnectorNamespaceRequestMeta { + return &NullableConnectorNamespaceRequestMeta{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceRequestMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceRequestMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_state.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_state.go new file mode 100644 index 00000000..8f0e8ff9 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_state.go @@ -0,0 +1,115 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ConnectorNamespaceState the model 'ConnectorNamespaceState' +type ConnectorNamespaceState string + +// List of ConnectorNamespaceState +const ( + CONNECTORNAMESPACESTATE_DISCONNECTED ConnectorNamespaceState = "disconnected" + CONNECTORNAMESPACESTATE_READY ConnectorNamespaceState = "ready" + CONNECTORNAMESPACESTATE_DELETING ConnectorNamespaceState = "deleting" + CONNECTORNAMESPACESTATE_DELETED ConnectorNamespaceState = "deleted" +) + +var allowedConnectorNamespaceStateEnumValues = []ConnectorNamespaceState{ + "disconnected", + "ready", + "deleting", + "deleted", +} + +func (v *ConnectorNamespaceState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorNamespaceState(value) + for _, existing := range allowedConnectorNamespaceStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorNamespaceState", value) +} + +// NewConnectorNamespaceStateFromValue returns a pointer to a valid ConnectorNamespaceState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorNamespaceStateFromValue(v string) (*ConnectorNamespaceState, error) { + ev := ConnectorNamespaceState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorNamespaceState: valid values are %v", v, allowedConnectorNamespaceStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorNamespaceState) IsValid() bool { + for _, existing := range allowedConnectorNamespaceStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectorNamespaceState value +func (v ConnectorNamespaceState) Ptr() *ConnectorNamespaceState { + return &v +} + +type NullableConnectorNamespaceState struct { + value *ConnectorNamespaceState + isSet bool +} + +func (v NullableConnectorNamespaceState) Get() *ConnectorNamespaceState { + return v.value +} + +func (v *NullableConnectorNamespaceState) Set(val *ConnectorNamespaceState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceState(val *ConnectorNamespaceState) *NullableConnectorNamespaceState { + return &NullableConnectorNamespaceState{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_status.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_status.go new file mode 100644 index 00000000..2900ef05 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_status.go @@ -0,0 +1,210 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceStatus struct for ConnectorNamespaceStatus +type ConnectorNamespaceStatus struct { + State ConnectorNamespaceState `json:"state"` + Version *string `json:"version,omitempty"` + ConnectorsDeployed int32 `json:"connectors_deployed"` + Error *string `json:"error,omitempty"` +} + +// NewConnectorNamespaceStatus instantiates a new ConnectorNamespaceStatus 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 NewConnectorNamespaceStatus(state ConnectorNamespaceState, connectorsDeployed int32) *ConnectorNamespaceStatus { + this := ConnectorNamespaceStatus{} + this.State = state + this.ConnectorsDeployed = connectorsDeployed + return &this +} + +// NewConnectorNamespaceStatusWithDefaults instantiates a new ConnectorNamespaceStatus 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 NewConnectorNamespaceStatusWithDefaults() *ConnectorNamespaceStatus { + this := ConnectorNamespaceStatus{} + return &this +} + +// GetState returns the State field value +func (o *ConnectorNamespaceStatus) GetState() ConnectorNamespaceState { + if o == nil { + var ret ConnectorNamespaceState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceStatus) GetStateOk() (*ConnectorNamespaceState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *ConnectorNamespaceStatus) SetState(v ConnectorNamespaceState) { + o.State = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ConnectorNamespaceStatus) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceStatus) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ConnectorNamespaceStatus) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ConnectorNamespaceStatus) SetVersion(v string) { + o.Version = &v +} + +// GetConnectorsDeployed returns the ConnectorsDeployed field value +func (o *ConnectorNamespaceStatus) GetConnectorsDeployed() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConnectorsDeployed +} + +// GetConnectorsDeployedOk returns a tuple with the ConnectorsDeployed field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceStatus) GetConnectorsDeployedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorsDeployed, true +} + +// SetConnectorsDeployed sets field value +func (o *ConnectorNamespaceStatus) SetConnectorsDeployed(v int32) { + o.ConnectorsDeployed = v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ConnectorNamespaceStatus) GetError() string { + if o == nil || o.Error == nil { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceStatus) GetErrorOk() (*string, bool) { + if o == nil || o.Error == nil { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ConnectorNamespaceStatus) HasError() bool { + if o != nil && o.Error != nil { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ConnectorNamespaceStatus) SetError(v string) { + o.Error = &v +} + +func (o ConnectorNamespaceStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["state"] = o.State + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if true { + toSerialize["connectors_deployed"] = o.ConnectorsDeployed + } + if o.Error != nil { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceStatus struct { + value *ConnectorNamespaceStatus + isSet bool +} + +func (v NullableConnectorNamespaceStatus) Get() *ConnectorNamespaceStatus { + return v.value +} + +func (v *NullableConnectorNamespaceStatus) Set(val *ConnectorNamespaceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceStatus(val *ConnectorNamespaceStatus) *NullableConnectorNamespaceStatus { + return &NullableConnectorNamespaceStatus{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant.go new file mode 100644 index 00000000..f439411c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant.go @@ -0,0 +1,139 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorNamespaceTenant struct for ConnectorNamespaceTenant +type ConnectorNamespaceTenant struct { + Kind ConnectorNamespaceTenantKind `json:"kind"` + // Either user or organisation id depending on the value of kind + Id string `json:"id"` +} + +// NewConnectorNamespaceTenant instantiates a new ConnectorNamespaceTenant 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 NewConnectorNamespaceTenant(kind ConnectorNamespaceTenantKind, id string) *ConnectorNamespaceTenant { + this := ConnectorNamespaceTenant{} + this.Kind = kind + this.Id = id + return &this +} + +// NewConnectorNamespaceTenantWithDefaults instantiates a new ConnectorNamespaceTenant 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 NewConnectorNamespaceTenantWithDefaults() *ConnectorNamespaceTenant { + this := ConnectorNamespaceTenant{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConnectorNamespaceTenant) GetKind() ConnectorNamespaceTenantKind { + if o == nil { + var ret ConnectorNamespaceTenantKind + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorNamespaceTenant) GetKindOk() (*ConnectorNamespaceTenantKind, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorNamespaceTenant) SetKind(v ConnectorNamespaceTenantKind) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *ConnectorNamespaceTenant) 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 *ConnectorNamespaceTenant) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ConnectorNamespaceTenant) SetId(v string) { + o.Id = v +} + +func (o ConnectorNamespaceTenant) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableConnectorNamespaceTenant struct { + value *ConnectorNamespaceTenant + isSet bool +} + +func (v NullableConnectorNamespaceTenant) Get() *ConnectorNamespaceTenant { + return v.value +} + +func (v *NullableConnectorNamespaceTenant) Set(val *ConnectorNamespaceTenant) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceTenant) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceTenant) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceTenant(val *ConnectorNamespaceTenant) *NullableConnectorNamespaceTenant { + return &NullableConnectorNamespaceTenant{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceTenant) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceTenant) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant_kind.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant_kind.go new file mode 100644 index 00000000..3d930305 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_namespace_tenant_kind.go @@ -0,0 +1,111 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ConnectorNamespaceTenantKind the model 'ConnectorNamespaceTenantKind' +type ConnectorNamespaceTenantKind string + +// List of ConnectorNamespaceTenantKind +const ( + CONNECTORNAMESPACETENANTKIND_USER ConnectorNamespaceTenantKind = "user" + CONNECTORNAMESPACETENANTKIND_ORGANISATION ConnectorNamespaceTenantKind = "organisation" +) + +var allowedConnectorNamespaceTenantKindEnumValues = []ConnectorNamespaceTenantKind{ + "user", + "organisation", +} + +func (v *ConnectorNamespaceTenantKind) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorNamespaceTenantKind(value) + for _, existing := range allowedConnectorNamespaceTenantKindEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorNamespaceTenantKind", value) +} + +// NewConnectorNamespaceTenantKindFromValue returns a pointer to a valid ConnectorNamespaceTenantKind +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorNamespaceTenantKindFromValue(v string) (*ConnectorNamespaceTenantKind, error) { + ev := ConnectorNamespaceTenantKind(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorNamespaceTenantKind: valid values are %v", v, allowedConnectorNamespaceTenantKindEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorNamespaceTenantKind) IsValid() bool { + for _, existing := range allowedConnectorNamespaceTenantKindEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectorNamespaceTenantKind value +func (v ConnectorNamespaceTenantKind) Ptr() *ConnectorNamespaceTenantKind { + return &v +} + +type NullableConnectorNamespaceTenantKind struct { + value *ConnectorNamespaceTenantKind + isSet bool +} + +func (v NullableConnectorNamespaceTenantKind) Get() *ConnectorNamespaceTenantKind { + return v.value +} + +func (v *NullableConnectorNamespaceTenantKind) Set(val *ConnectorNamespaceTenantKind) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorNamespaceTenantKind) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorNamespaceTenantKind) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorNamespaceTenantKind(val *ConnectorNamespaceTenantKind) *NullableConnectorNamespaceTenantKind { + return &NullableConnectorNamespaceTenantKind{value: val, isSet: true} +} + +func (v NullableConnectorNamespaceTenantKind) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorNamespaceTenantKind) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request.go new file mode 100644 index 00000000..59e72b8c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request.go @@ -0,0 +1,359 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorRequest struct for ConnectorRequest +type ConnectorRequest struct { + Name string `json:"name"` + ConnectorTypeId string `json:"connector_type_id"` + NamespaceId string `json:"namespace_id"` + Channel *Channel `json:"channel,omitempty"` + DesiredState ConnectorDesiredState `json:"desired_state"` + Kafka KafkaConnectionSettings `json:"kafka"` + ServiceAccount ServiceAccount `json:"service_account"` + SchemaRegistry *SchemaRegistryConnectionSettings `json:"schema_registry,omitempty"` + Connector map[string]interface{} `json:"connector"` +} + +// NewConnectorRequest instantiates a new ConnectorRequest 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 NewConnectorRequest(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState, kafka KafkaConnectionSettings, serviceAccount ServiceAccount, connector map[string]interface{}) *ConnectorRequest { + this := ConnectorRequest{} + this.Name = name + this.ConnectorTypeId = connectorTypeId + this.NamespaceId = namespaceId + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + this.DesiredState = desiredState + this.Kafka = kafka + this.ServiceAccount = serviceAccount + this.Connector = connector + return &this +} + +// NewConnectorRequestWithDefaults instantiates a new ConnectorRequest 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 NewConnectorRequestWithDefaults() *ConnectorRequest { + this := ConnectorRequest{} + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + return &this +} + +// GetName returns the Name field value +func (o *ConnectorRequest) 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 *ConnectorRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorRequest) SetName(v string) { + o.Name = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorRequest) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorRequest) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetNamespaceId returns the NamespaceId field value +func (o *ConnectorRequest) GetNamespaceId() string { + if o == nil { + var ret string + return ret + } + + return o.NamespaceId +} + +// GetNamespaceIdOk returns a tuple with the NamespaceId field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetNamespaceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NamespaceId, true +} + +// SetNamespaceId sets field value +func (o *ConnectorRequest) SetNamespaceId(v string) { + o.NamespaceId = v +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *ConnectorRequest) GetChannel() Channel { + if o == nil || o.Channel == nil { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetChannelOk() (*Channel, bool) { + if o == nil || o.Channel == nil { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *ConnectorRequest) HasChannel() bool { + if o != nil && o.Channel != nil { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *ConnectorRequest) SetChannel(v Channel) { + o.Channel = &v +} + +// GetDesiredState returns the DesiredState field value +func (o *ConnectorRequest) GetDesiredState() ConnectorDesiredState { + if o == nil { + var ret ConnectorDesiredState + return ret + } + + return o.DesiredState +} + +// GetDesiredStateOk returns a tuple with the DesiredState field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetDesiredStateOk() (*ConnectorDesiredState, bool) { + if o == nil { + return nil, false + } + return &o.DesiredState, true +} + +// SetDesiredState sets field value +func (o *ConnectorRequest) SetDesiredState(v ConnectorDesiredState) { + o.DesiredState = v +} + +// GetKafka returns the Kafka field value +func (o *ConnectorRequest) GetKafka() KafkaConnectionSettings { + if o == nil { + var ret KafkaConnectionSettings + return ret + } + + return o.Kafka +} + +// GetKafkaOk returns a tuple with the Kafka field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetKafkaOk() (*KafkaConnectionSettings, bool) { + if o == nil { + return nil, false + } + return &o.Kafka, true +} + +// SetKafka sets field value +func (o *ConnectorRequest) SetKafka(v KafkaConnectionSettings) { + o.Kafka = v +} + +// GetServiceAccount returns the ServiceAccount field value +func (o *ConnectorRequest) GetServiceAccount() ServiceAccount { + if o == nil { + var ret ServiceAccount + return ret + } + + return o.ServiceAccount +} + +// GetServiceAccountOk returns a tuple with the ServiceAccount field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetServiceAccountOk() (*ServiceAccount, bool) { + if o == nil { + return nil, false + } + return &o.ServiceAccount, true +} + +// SetServiceAccount sets field value +func (o *ConnectorRequest) SetServiceAccount(v ServiceAccount) { + o.ServiceAccount = v +} + +// GetSchemaRegistry returns the SchemaRegistry field value if set, zero value otherwise. +func (o *ConnectorRequest) GetSchemaRegistry() SchemaRegistryConnectionSettings { + if o == nil || o.SchemaRegistry == nil { + var ret SchemaRegistryConnectionSettings + return ret + } + return *o.SchemaRegistry +} + +// GetSchemaRegistryOk returns a tuple with the SchemaRegistry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetSchemaRegistryOk() (*SchemaRegistryConnectionSettings, bool) { + if o == nil || o.SchemaRegistry == nil { + return nil, false + } + return o.SchemaRegistry, true +} + +// HasSchemaRegistry returns a boolean if a field has been set. +func (o *ConnectorRequest) HasSchemaRegistry() bool { + if o != nil && o.SchemaRegistry != nil { + return true + } + + return false +} + +// SetSchemaRegistry gets a reference to the given SchemaRegistryConnectionSettings and assigns it to the SchemaRegistry field. +func (o *ConnectorRequest) SetSchemaRegistry(v SchemaRegistryConnectionSettings) { + o.SchemaRegistry = &v +} + +// GetConnector returns the Connector field value +func (o *ConnectorRequest) GetConnector() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Connector +} + +// GetConnectorOk returns a tuple with the Connector field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequest) GetConnectorOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Connector, true +} + +// SetConnector sets field value +func (o *ConnectorRequest) SetConnector(v map[string]interface{}) { + o.Connector = v +} + +func (o ConnectorRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["connector_type_id"] = o.ConnectorTypeId + } + if true { + toSerialize["namespace_id"] = o.NamespaceId + } + if o.Channel != nil { + toSerialize["channel"] = o.Channel + } + if true { + toSerialize["desired_state"] = o.DesiredState + } + if true { + toSerialize["kafka"] = o.Kafka + } + if true { + toSerialize["service_account"] = o.ServiceAccount + } + if o.SchemaRegistry != nil { + toSerialize["schema_registry"] = o.SchemaRegistry + } + if true { + toSerialize["connector"] = o.Connector + } + return json.Marshal(toSerialize) +} + +type NullableConnectorRequest struct { + value *ConnectorRequest + isSet bool +} + +func (v NullableConnectorRequest) Get() *ConnectorRequest { + return v.value +} + +func (v *NullableConnectorRequest) Set(val *ConnectorRequest) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorRequest(val *ConnectorRequest) *NullableConnectorRequest { + return &NullableConnectorRequest{value: val, isSet: true} +} + +func (v NullableConnectorRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request_meta.go new file mode 100644 index 00000000..5e52f2de --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_request_meta.go @@ -0,0 +1,236 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorRequestMeta struct for ConnectorRequestMeta +type ConnectorRequestMeta struct { + Name string `json:"name"` + ConnectorTypeId string `json:"connector_type_id"` + NamespaceId string `json:"namespace_id"` + Channel *Channel `json:"channel,omitempty"` + DesiredState ConnectorDesiredState `json:"desired_state"` +} + +// NewConnectorRequestMeta instantiates a new ConnectorRequestMeta 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 NewConnectorRequestMeta(name string, connectorTypeId string, namespaceId string, desiredState ConnectorDesiredState) *ConnectorRequestMeta { + this := ConnectorRequestMeta{} + this.Name = name + this.ConnectorTypeId = connectorTypeId + this.NamespaceId = namespaceId + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + this.DesiredState = desiredState + return &this +} + +// NewConnectorRequestMetaWithDefaults instantiates a new ConnectorRequestMeta 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 NewConnectorRequestMetaWithDefaults() *ConnectorRequestMeta { + this := ConnectorRequestMeta{} + var channel Channel = CHANNEL_STABLE + this.Channel = &channel + return &this +} + +// GetName returns the Name field value +func (o *ConnectorRequestMeta) 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 *ConnectorRequestMeta) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorRequestMeta) SetName(v string) { + o.Name = v +} + +// GetConnectorTypeId returns the ConnectorTypeId field value +func (o *ConnectorRequestMeta) GetConnectorTypeId() string { + if o == nil { + var ret string + return ret + } + + return o.ConnectorTypeId +} + +// GetConnectorTypeIdOk returns a tuple with the ConnectorTypeId field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequestMeta) GetConnectorTypeIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ConnectorTypeId, true +} + +// SetConnectorTypeId sets field value +func (o *ConnectorRequestMeta) SetConnectorTypeId(v string) { + o.ConnectorTypeId = v +} + +// GetNamespaceId returns the NamespaceId field value +func (o *ConnectorRequestMeta) GetNamespaceId() string { + if o == nil { + var ret string + return ret + } + + return o.NamespaceId +} + +// GetNamespaceIdOk returns a tuple with the NamespaceId field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequestMeta) GetNamespaceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NamespaceId, true +} + +// SetNamespaceId sets field value +func (o *ConnectorRequestMeta) SetNamespaceId(v string) { + o.NamespaceId = v +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *ConnectorRequestMeta) GetChannel() Channel { + if o == nil || o.Channel == nil { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorRequestMeta) GetChannelOk() (*Channel, bool) { + if o == nil || o.Channel == nil { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *ConnectorRequestMeta) HasChannel() bool { + if o != nil && o.Channel != nil { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *ConnectorRequestMeta) SetChannel(v Channel) { + o.Channel = &v +} + +// GetDesiredState returns the DesiredState field value +func (o *ConnectorRequestMeta) GetDesiredState() ConnectorDesiredState { + if o == nil { + var ret ConnectorDesiredState + return ret + } + + return o.DesiredState +} + +// GetDesiredStateOk returns a tuple with the DesiredState field value +// and a boolean to check if the value has been set. +func (o *ConnectorRequestMeta) GetDesiredStateOk() (*ConnectorDesiredState, bool) { + if o == nil { + return nil, false + } + return &o.DesiredState, true +} + +// SetDesiredState sets field value +func (o *ConnectorRequestMeta) SetDesiredState(v ConnectorDesiredState) { + o.DesiredState = v +} + +func (o ConnectorRequestMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["connector_type_id"] = o.ConnectorTypeId + } + if true { + toSerialize["namespace_id"] = o.NamespaceId + } + if o.Channel != nil { + toSerialize["channel"] = o.Channel + } + if true { + toSerialize["desired_state"] = o.DesiredState + } + return json.Marshal(toSerialize) +} + +type NullableConnectorRequestMeta struct { + value *ConnectorRequestMeta + isSet bool +} + +func (v NullableConnectorRequestMeta) Get() *ConnectorRequestMeta { + return v.value +} + +func (v *NullableConnectorRequestMeta) Set(val *ConnectorRequestMeta) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorRequestMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorRequestMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorRequestMeta(val *ConnectorRequestMeta) *NullableConnectorRequestMeta { + return &NullableConnectorRequestMeta{value: val, isSet: true} +} + +func (v NullableConnectorRequestMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorRequestMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_state.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_state.go new file mode 100644 index 00000000..291fc92a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_state.go @@ -0,0 +1,127 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ConnectorState the model 'ConnectorState' +type ConnectorState string + +// List of ConnectorState +const ( + CONNECTORSTATE_ASSIGNING ConnectorState = "assigning" + CONNECTORSTATE_ASSIGNED ConnectorState = "assigned" + CONNECTORSTATE_UPDATING ConnectorState = "updating" + CONNECTORSTATE_READY ConnectorState = "ready" + CONNECTORSTATE_STOPPED ConnectorState = "stopped" + CONNECTORSTATE_FAILED ConnectorState = "failed" + CONNECTORSTATE_DELETING ConnectorState = "deleting" + CONNECTORSTATE_DELETED ConnectorState = "deleted" + CONNECTORSTATE_PROVISIONING ConnectorState = "provisioning" + CONNECTORSTATE_DEPROVISIONING ConnectorState = "deprovisioning" +) + +var allowedConnectorStateEnumValues = []ConnectorState{ + "assigning", + "assigned", + "updating", + "ready", + "stopped", + "failed", + "deleting", + "deleted", + "provisioning", + "deprovisioning", +} + +func (v *ConnectorState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConnectorState(value) + for _, existing := range allowedConnectorStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConnectorState", value) +} + +// NewConnectorStateFromValue returns a pointer to a valid ConnectorState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConnectorStateFromValue(v string) (*ConnectorState, error) { + ev := ConnectorState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConnectorState: valid values are %v", v, allowedConnectorStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConnectorState) IsValid() bool { + for _, existing := range allowedConnectorStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConnectorState value +func (v ConnectorState) Ptr() *ConnectorState { + return &v +} + +type NullableConnectorState struct { + value *ConnectorState + isSet bool +} + +func (v NullableConnectorState) Get() *ConnectorState { + return v.value +} + +func (v *NullableConnectorState) Set(val *ConnectorState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorState(val *ConnectorState) *NullableConnectorState { + return &NullableConnectorState{value: val, isSet: true} +} + +func (v NullableConnectorState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status.go new file mode 100644 index 00000000..91b473c3 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorStatus struct for ConnectorStatus +type ConnectorStatus struct { + Status *ConnectorStatusStatus `json:"status,omitempty"` +} + +// NewConnectorStatus instantiates a new ConnectorStatus 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 NewConnectorStatus() *ConnectorStatus { + this := ConnectorStatus{} + return &this +} + +// NewConnectorStatusWithDefaults instantiates a new ConnectorStatus 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 NewConnectorStatusWithDefaults() *ConnectorStatus { + this := ConnectorStatus{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ConnectorStatus) GetStatus() ConnectorStatusStatus { + if o == nil || o.Status == nil { + var ret ConnectorStatusStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStatus) GetStatusOk() (*ConnectorStatusStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ConnectorStatus) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ConnectorStatusStatus and assigns it to the Status field. +func (o *ConnectorStatus) SetStatus(v ConnectorStatusStatus) { + o.Status = &v +} + +func (o ConnectorStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableConnectorStatus struct { + value *ConnectorStatus + isSet bool +} + +func (v NullableConnectorStatus) Get() *ConnectorStatus { + return v.value +} + +func (v *NullableConnectorStatus) Set(val *ConnectorStatus) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorStatus(val *ConnectorStatus) *NullableConnectorStatus { + return &NullableConnectorStatus{value: val, isSet: true} +} + +func (v NullableConnectorStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status_status.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status_status.go new file mode 100644 index 00000000..03586d0a --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_status_status.go @@ -0,0 +1,152 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorStatusStatus struct for ConnectorStatusStatus +type ConnectorStatusStatus struct { + State *ConnectorState `json:"state,omitempty"` + Error *string `json:"error,omitempty"` +} + +// NewConnectorStatusStatus instantiates a new ConnectorStatusStatus 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 NewConnectorStatusStatus() *ConnectorStatusStatus { + this := ConnectorStatusStatus{} + return &this +} + +// NewConnectorStatusStatusWithDefaults instantiates a new ConnectorStatusStatus 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 NewConnectorStatusStatusWithDefaults() *ConnectorStatusStatus { + this := ConnectorStatusStatus{} + return &this +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ConnectorStatusStatus) GetState() ConnectorState { + if o == nil || o.State == nil { + var ret ConnectorState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStatusStatus) GetStateOk() (*ConnectorState, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ConnectorStatusStatus) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given ConnectorState and assigns it to the State field. +func (o *ConnectorStatusStatus) SetState(v ConnectorState) { + o.State = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ConnectorStatusStatus) GetError() string { + if o == nil || o.Error == nil { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStatusStatus) GetErrorOk() (*string, bool) { + if o == nil || o.Error == nil { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ConnectorStatusStatus) HasError() bool { + if o != nil && o.Error != nil { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ConnectorStatusStatus) SetError(v string) { + o.Error = &v +} + +func (o ConnectorStatusStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.State != nil { + toSerialize["state"] = o.State + } + if o.Error != nil { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullableConnectorStatusStatus struct { + value *ConnectorStatusStatus + isSet bool +} + +func (v NullableConnectorStatusStatus) Get() *ConnectorStatusStatus { + return v.value +} + +func (v *NullableConnectorStatusStatus) Set(val *ConnectorStatusStatus) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorStatusStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorStatusStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorStatusStatus(val *ConnectorStatusStatus) *NullableConnectorStatusStatus { + return &NullableConnectorStatusStatus{value: val, isSet: true} +} + +func (v NullableConnectorStatusStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorStatusStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type.go new file mode 100644 index 00000000..5b7e8108 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type.go @@ -0,0 +1,500 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorType Represents a connector type supported by the API +type ConnectorType struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + // Name of the connector type. + Name string `json:"name"` + // Version of the connector type. + Version string `json:"version"` + // Channels of the connector type. + Channels *[]Channel `json:"channels,omitempty"` + // A description of the connector. + Description *string `json:"description,omitempty"` + // URL to an icon of the connector. + IconHref *string `json:"icon_href,omitempty"` + // Labels used to categorize the connector + Labels *[]string `json:"labels,omitempty"` + // Ranking for featured connectors + FeaturedRank *int32 `json:"featured_rank,omitempty"` + // The capabilities supported by the conenctor + Capabilities *[]string `json:"capabilities,omitempty"` + // A json schema that can be used to validate a ConnectorRequest connector field. + Schema map[string]interface{} `json:"schema"` +} + +// NewConnectorType instantiates a new ConnectorType 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 NewConnectorType(name string, version string, schema map[string]interface{}) *ConnectorType { + this := ConnectorType{} + this.Name = name + this.Version = version + this.Schema = schema + return &this +} + +// NewConnectorTypeWithDefaults instantiates a new ConnectorType 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 NewConnectorTypeWithDefaults() *ConnectorType { + this := ConnectorType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ConnectorType) GetId() string { + if o == nil || o.Id == nil { + 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 *ConnectorType) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ConnectorType) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ConnectorType) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConnectorType) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConnectorType) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConnectorType) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ConnectorType) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ConnectorType) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ConnectorType) SetHref(v string) { + o.Href = &v +} + +// GetName returns the Name field value +func (o *ConnectorType) 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 *ConnectorType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConnectorType) SetName(v string) { + o.Name = v +} + +// GetVersion returns the Version field value +func (o *ConnectorType) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *ConnectorType) SetVersion(v string) { + o.Version = v +} + +// GetChannels returns the Channels field value if set, zero value otherwise. +func (o *ConnectorType) GetChannels() []Channel { + if o == nil || o.Channels == nil { + var ret []Channel + return ret + } + return *o.Channels +} + +// GetChannelsOk returns a tuple with the Channels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetChannelsOk() (*[]Channel, bool) { + if o == nil || o.Channels == nil { + return nil, false + } + return o.Channels, true +} + +// HasChannels returns a boolean if a field has been set. +func (o *ConnectorType) HasChannels() bool { + if o != nil && o.Channels != nil { + return true + } + + return false +} + +// SetChannels gets a reference to the given []Channel and assigns it to the Channels field. +func (o *ConnectorType) SetChannels(v []Channel) { + o.Channels = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ConnectorType) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ConnectorType) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ConnectorType) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ConnectorType) SetDescription(v string) { + o.Description = &v +} + +// GetIconHref returns the IconHref field value if set, zero value otherwise. +func (o *ConnectorType) GetIconHref() string { + if o == nil || o.IconHref == nil { + var ret string + return ret + } + return *o.IconHref +} + +// GetIconHrefOk returns a tuple with the IconHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetIconHrefOk() (*string, bool) { + if o == nil || o.IconHref == nil { + return nil, false + } + return o.IconHref, true +} + +// HasIconHref returns a boolean if a field has been set. +func (o *ConnectorType) HasIconHref() bool { + if o != nil && o.IconHref != nil { + return true + } + + return false +} + +// SetIconHref gets a reference to the given string and assigns it to the IconHref field. +func (o *ConnectorType) SetIconHref(v string) { + o.IconHref = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ConnectorType) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ConnectorType) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *ConnectorType) SetLabels(v []string) { + o.Labels = &v +} + +// GetFeaturedRank returns the FeaturedRank field value if set, zero value otherwise. +func (o *ConnectorType) GetFeaturedRank() int32 { + if o == nil || o.FeaturedRank == nil { + var ret int32 + return ret + } + return *o.FeaturedRank +} + +// GetFeaturedRankOk returns a tuple with the FeaturedRank field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetFeaturedRankOk() (*int32, bool) { + if o == nil || o.FeaturedRank == nil { + return nil, false + } + return o.FeaturedRank, true +} + +// HasFeaturedRank returns a boolean if a field has been set. +func (o *ConnectorType) HasFeaturedRank() bool { + if o != nil && o.FeaturedRank != nil { + return true + } + + return false +} + +// SetFeaturedRank gets a reference to the given int32 and assigns it to the FeaturedRank field. +func (o *ConnectorType) SetFeaturedRank(v int32) { + o.FeaturedRank = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *ConnectorType) GetCapabilities() []string { + if o == nil || o.Capabilities == nil { + var ret []string + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetCapabilitiesOk() (*[]string, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *ConnectorType) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field. +func (o *ConnectorType) SetCapabilities(v []string) { + o.Capabilities = &v +} + +// GetSchema returns the Schema field value +func (o *ConnectorType) GetSchema() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value +// and a boolean to check if the value has been set. +func (o *ConnectorType) GetSchemaOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Schema, true +} + +// SetSchema sets field value +func (o *ConnectorType) SetSchema(v map[string]interface{}) { + o.Schema = v +} + +func (o ConnectorType) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["version"] = o.Version + } + if o.Channels != nil { + toSerialize["channels"] = o.Channels + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.IconHref != nil { + toSerialize["icon_href"] = o.IconHref + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.FeaturedRank != nil { + toSerialize["featured_rank"] = o.FeaturedRank + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if true { + toSerialize["schema"] = o.Schema + } + return json.Marshal(toSerialize) +} + +type NullableConnectorType struct { + value *ConnectorType + isSet bool +} + +func (v NullableConnectorType) Get() *ConnectorType { + return v.value +} + +func (v *NullableConnectorType) Set(val *ConnectorType) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorType) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorType(val *ConnectorType) *NullableConnectorType { + return &NullableConnectorType{value: val, isSet: true} +} + +func (v NullableConnectorType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_all_of.go new file mode 100644 index 00000000..7756c1be --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_all_of.go @@ -0,0 +1,413 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorTypeAllOf struct for ConnectorTypeAllOf +type ConnectorTypeAllOf struct { + // Name of the connector type. + Name *string `json:"name,omitempty"` + // Version of the connector type. + Version *string `json:"version,omitempty"` + // Channels of the connector type. + Channels *[]Channel `json:"channels,omitempty"` + // A description of the connector. + Description *string `json:"description,omitempty"` + // URL to an icon of the connector. + IconHref *string `json:"icon_href,omitempty"` + // Labels used to categorize the connector + Labels *[]string `json:"labels,omitempty"` + // Ranking for featured connectors + FeaturedRank *int32 `json:"featured_rank,omitempty"` + // The capabilities supported by the conenctor + Capabilities *[]string `json:"capabilities,omitempty"` + // A json schema that can be used to validate a ConnectorRequest connector field. + Schema *map[string]interface{} `json:"schema,omitempty"` +} + +// NewConnectorTypeAllOf instantiates a new ConnectorTypeAllOf 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 NewConnectorTypeAllOf() *ConnectorTypeAllOf { + this := ConnectorTypeAllOf{} + return &this +} + +// NewConnectorTypeAllOfWithDefaults instantiates a new ConnectorTypeAllOf 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 NewConnectorTypeAllOfWithDefaults() *ConnectorTypeAllOf { + this := ConnectorTypeAllOf{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *ConnectorTypeAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorTypeAllOf) SetName(v string) { + o.Name = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ConnectorTypeAllOf) SetVersion(v string) { + o.Version = &v +} + +// GetChannels returns the Channels field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetChannels() []Channel { + if o == nil || o.Channels == nil { + var ret []Channel + return ret + } + return *o.Channels +} + +// GetChannelsOk returns a tuple with the Channels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetChannelsOk() (*[]Channel, bool) { + if o == nil || o.Channels == nil { + return nil, false + } + return o.Channels, true +} + +// HasChannels returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasChannels() bool { + if o != nil && o.Channels != nil { + return true + } + + return false +} + +// SetChannels gets a reference to the given []Channel and assigns it to the Channels field. +func (o *ConnectorTypeAllOf) SetChannels(v []Channel) { + o.Channels = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ConnectorTypeAllOf) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ConnectorTypeAllOf) SetDescription(v string) { + o.Description = &v +} + +// GetIconHref returns the IconHref field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetIconHref() string { + if o == nil || o.IconHref == nil { + var ret string + return ret + } + return *o.IconHref +} + +// GetIconHrefOk returns a tuple with the IconHref field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetIconHrefOk() (*string, bool) { + if o == nil || o.IconHref == nil { + return nil, false + } + return o.IconHref, true +} + +// HasIconHref returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasIconHref() bool { + if o != nil && o.IconHref != nil { + return true + } + + return false +} + +// SetIconHref gets a reference to the given string and assigns it to the IconHref field. +func (o *ConnectorTypeAllOf) SetIconHref(v string) { + o.IconHref = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *ConnectorTypeAllOf) SetLabels(v []string) { + o.Labels = &v +} + +// GetFeaturedRank returns the FeaturedRank field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetFeaturedRank() int32 { + if o == nil || o.FeaturedRank == nil { + var ret int32 + return ret + } + return *o.FeaturedRank +} + +// GetFeaturedRankOk returns a tuple with the FeaturedRank field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetFeaturedRankOk() (*int32, bool) { + if o == nil || o.FeaturedRank == nil { + return nil, false + } + return o.FeaturedRank, true +} + +// HasFeaturedRank returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasFeaturedRank() bool { + if o != nil && o.FeaturedRank != nil { + return true + } + + return false +} + +// SetFeaturedRank gets a reference to the given int32 and assigns it to the FeaturedRank field. +func (o *ConnectorTypeAllOf) SetFeaturedRank(v int32) { + o.FeaturedRank = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetCapabilities() []string { + if o == nil || o.Capabilities == nil { + var ret []string + return ret + } + return *o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetCapabilitiesOk() (*[]string, bool) { + if o == nil || o.Capabilities == nil { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasCapabilities() bool { + if o != nil && o.Capabilities != nil { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field. +func (o *ConnectorTypeAllOf) SetCapabilities(v []string) { + o.Capabilities = &v +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *ConnectorTypeAllOf) GetSchema() map[string]interface{} { + if o == nil || o.Schema == nil { + var ret map[string]interface{} + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeAllOf) GetSchemaOk() (*map[string]interface{}, bool) { + if o == nil || o.Schema == nil { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *ConnectorTypeAllOf) HasSchema() bool { + if o != nil && o.Schema != nil { + return true + } + + return false +} + +// SetSchema gets a reference to the given map[string]interface{} and assigns it to the Schema field. +func (o *ConnectorTypeAllOf) SetSchema(v map[string]interface{}) { + o.Schema = &v +} + +func (o ConnectorTypeAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if o.Channels != nil { + toSerialize["channels"] = o.Channels + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.IconHref != nil { + toSerialize["icon_href"] = o.IconHref + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.FeaturedRank != nil { + toSerialize["featured_rank"] = o.FeaturedRank + } + if o.Capabilities != nil { + toSerialize["capabilities"] = o.Capabilities + } + if o.Schema != nil { + toSerialize["schema"] = o.Schema + } + return json.Marshal(toSerialize) +} + +type NullableConnectorTypeAllOf struct { + value *ConnectorTypeAllOf + isSet bool +} + +func (v NullableConnectorTypeAllOf) Get() *ConnectorTypeAllOf { + return v.value +} + +func (v *NullableConnectorTypeAllOf) Set(val *ConnectorTypeAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypeAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypeAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypeAllOf(val *ConnectorTypeAllOf) *NullableConnectorTypeAllOf { + return &NullableConnectorTypeAllOf{value: val, isSet: true} +} + +func (v NullableConnectorTypeAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypeAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count.go new file mode 100644 index 00000000..24641c99 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count.go @@ -0,0 +1,140 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorTypeLabelCount Represents a connector type label and the number of types with that label +type ConnectorTypeLabelCount struct { + // Name of the connector type label. + Label string `json:"label"` + // Number of connector types with this label. + Count int32 `json:"count"` +} + +// NewConnectorTypeLabelCount instantiates a new ConnectorTypeLabelCount 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 NewConnectorTypeLabelCount(label string, count int32) *ConnectorTypeLabelCount { + this := ConnectorTypeLabelCount{} + this.Label = label + this.Count = count + return &this +} + +// NewConnectorTypeLabelCountWithDefaults instantiates a new ConnectorTypeLabelCount 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 NewConnectorTypeLabelCountWithDefaults() *ConnectorTypeLabelCount { + this := ConnectorTypeLabelCount{} + return &this +} + +// GetLabel returns the Label field value +func (o *ConnectorTypeLabelCount) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeLabelCount) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *ConnectorTypeLabelCount) SetLabel(v string) { + o.Label = v +} + +// GetCount returns the Count field value +func (o *ConnectorTypeLabelCount) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeLabelCount) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ConnectorTypeLabelCount) SetCount(v int32) { + o.Count = v +} + +func (o ConnectorTypeLabelCount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["label"] = o.Label + } + if true { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableConnectorTypeLabelCount struct { + value *ConnectorTypeLabelCount + isSet bool +} + +func (v NullableConnectorTypeLabelCount) Get() *ConnectorTypeLabelCount { + return v.value +} + +func (v *NullableConnectorTypeLabelCount) Set(val *ConnectorTypeLabelCount) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypeLabelCount) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypeLabelCount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypeLabelCount(val *ConnectorTypeLabelCount) *NullableConnectorTypeLabelCount { + return &NullableConnectorTypeLabelCount{value: val, isSet: true} +} + +func (v NullableConnectorTypeLabelCount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypeLabelCount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count_list.go new file mode 100644 index 00000000..77ae6252 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_label_count_list.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorTypeLabelCountList struct for ConnectorTypeLabelCountList +type ConnectorTypeLabelCountList struct { + Items *[]ConnectorTypeLabelCount `json:"items,omitempty"` +} + +// NewConnectorTypeLabelCountList instantiates a new ConnectorTypeLabelCountList 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 NewConnectorTypeLabelCountList() *ConnectorTypeLabelCountList { + this := ConnectorTypeLabelCountList{} + return &this +} + +// NewConnectorTypeLabelCountListWithDefaults instantiates a new ConnectorTypeLabelCountList 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 NewConnectorTypeLabelCountListWithDefaults() *ConnectorTypeLabelCountList { + this := ConnectorTypeLabelCountList{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConnectorTypeLabelCountList) GetItems() []ConnectorTypeLabelCount { + if o == nil || o.Items == nil { + var ret []ConnectorTypeLabelCount + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeLabelCountList) GetItemsOk() (*[]ConnectorTypeLabelCount, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConnectorTypeLabelCountList) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConnectorTypeLabelCount and assigns it to the Items field. +func (o *ConnectorTypeLabelCountList) SetItems(v []ConnectorTypeLabelCount) { + o.Items = &v +} + +func (o ConnectorTypeLabelCountList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorTypeLabelCountList struct { + value *ConnectorTypeLabelCountList + isSet bool +} + +func (v NullableConnectorTypeLabelCountList) Get() *ConnectorTypeLabelCountList { + return v.value +} + +func (v *NullableConnectorTypeLabelCountList) Set(val *ConnectorTypeLabelCountList) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypeLabelCountList) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypeLabelCountList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypeLabelCountList(val *ConnectorTypeLabelCountList) *NullableConnectorTypeLabelCountList { + return &NullableConnectorTypeLabelCountList{value: val, isSet: true} +} + +func (v NullableConnectorTypeLabelCountList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypeLabelCountList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list.go new file mode 100644 index 00000000..796f3814 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorTypeList struct for ConnectorTypeList +type ConnectorTypeList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ConnectorType `json:"items"` +} + +// NewConnectorTypeList instantiates a new ConnectorTypeList 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 NewConnectorTypeList(kind string, page int32, size int32, total int32, items []ConnectorType) *ConnectorTypeList { + this := ConnectorTypeList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewConnectorTypeListWithDefaults instantiates a new ConnectorTypeList 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 NewConnectorTypeListWithDefaults() *ConnectorTypeList { + this := ConnectorTypeList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ConnectorTypeList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ConnectorTypeList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ConnectorTypeList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ConnectorTypeList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ConnectorTypeList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ConnectorTypeList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ConnectorTypeList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConnectorTypeList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ConnectorTypeList) GetItems() []ConnectorType { + if o == nil { + var ret []ConnectorType + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConnectorTypeList) GetItemsOk() (*[]ConnectorType, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConnectorTypeList) SetItems(v []ConnectorType) { + o.Items = v +} + +func (o ConnectorTypeList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorTypeList struct { + value *ConnectorTypeList + isSet bool +} + +func (v NullableConnectorTypeList) Get() *ConnectorTypeList { + return v.value +} + +func (v *NullableConnectorTypeList) Set(val *ConnectorTypeList) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypeList(val *ConnectorTypeList) *NullableConnectorTypeList { + return &NullableConnectorTypeList{value: val, isSet: true} +} + +func (v NullableConnectorTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list_all_of.go new file mode 100644 index 00000000..f1b7bc69 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_connector_type_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ConnectorTypeListAllOf struct for ConnectorTypeListAllOf +type ConnectorTypeListAllOf struct { + Items *[]ConnectorType `json:"items,omitempty"` +} + +// NewConnectorTypeListAllOf instantiates a new ConnectorTypeListAllOf 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 NewConnectorTypeListAllOf() *ConnectorTypeListAllOf { + this := ConnectorTypeListAllOf{} + return &this +} + +// NewConnectorTypeListAllOfWithDefaults instantiates a new ConnectorTypeListAllOf 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 NewConnectorTypeListAllOfWithDefaults() *ConnectorTypeListAllOf { + this := ConnectorTypeListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConnectorTypeListAllOf) GetItems() []ConnectorType { + if o == nil || o.Items == nil { + var ret []ConnectorType + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTypeListAllOf) GetItemsOk() (*[]ConnectorType, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConnectorTypeListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConnectorType and assigns it to the Items field. +func (o *ConnectorTypeListAllOf) SetItems(v []ConnectorType) { + o.Items = &v +} + +func (o ConnectorTypeListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConnectorTypeListAllOf struct { + value *ConnectorTypeListAllOf + isSet bool +} + +func (v NullableConnectorTypeListAllOf) Get() *ConnectorTypeListAllOf { + return v.value +} + +func (v *NullableConnectorTypeListAllOf) Set(val *ConnectorTypeListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTypeListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTypeListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTypeListAllOf(val *ConnectorTypeListAllOf) *NullableConnectorTypeListAllOf { + return &NullableConnectorTypeListAllOf{value: val, isSet: true} +} + +func (v NullableConnectorTypeListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTypeListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_error.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_error.go new file mode 100644 index 00000000..da7fad00 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_error.go @@ -0,0 +1,261 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + Reason string `json:"reason"` + OperationId *string `json:"operation_id,omitempty"` + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + Code string `json:"code"` +} + +// NewError instantiates a new Error 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 NewError(reason string, id string, kind string, href string, code string) *Error { + this := Error{} + this.Reason = reason + this.Id = id + this.Kind = kind + this.Href = href + this.Code = code + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetReason returns the Reason field value +func (o *Error) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Error) SetReason(v string) { + o.Reason = v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *Error) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *Error) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *Error) SetOperationId(v string) { + o.OperationId = &v +} + +// GetId returns the Id field value +func (o *Error) 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 *Error) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Error) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *Error) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *Error) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *Error) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Error) SetHref(v string) { + o.Href = v +} + +// GetCode returns the Code field value +func (o *Error) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *Error) SetCode(v string) { + o.Code = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["reason"] = o.Reason + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_kafka_connection_settings.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_kafka_connection_settings.go new file mode 100644 index 00000000..ebd5e392 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_kafka_connection_settings.go @@ -0,0 +1,138 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// KafkaConnectionSettings Holds the configuration to connect to a Kafka Instance. +type KafkaConnectionSettings struct { + Id string `json:"id"` + Url string `json:"url"` +} + +// NewKafkaConnectionSettings instantiates a new KafkaConnectionSettings 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 NewKafkaConnectionSettings(id string, url string) *KafkaConnectionSettings { + this := KafkaConnectionSettings{} + this.Id = id + this.Url = url + return &this +} + +// NewKafkaConnectionSettingsWithDefaults instantiates a new KafkaConnectionSettings 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 NewKafkaConnectionSettingsWithDefaults() *KafkaConnectionSettings { + this := KafkaConnectionSettings{} + return &this +} + +// GetId returns the Id field value +func (o *KafkaConnectionSettings) 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 *KafkaConnectionSettings) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *KafkaConnectionSettings) SetId(v string) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *KafkaConnectionSettings) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *KafkaConnectionSettings) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *KafkaConnectionSettings) SetUrl(v string) { + o.Url = v +} + +func (o KafkaConnectionSettings) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableKafkaConnectionSettings struct { + value *KafkaConnectionSettings + isSet bool +} + +func (v NullableKafkaConnectionSettings) Get() *KafkaConnectionSettings { + return v.value +} + +func (v *NullableKafkaConnectionSettings) Set(val *KafkaConnectionSettings) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaConnectionSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaConnectionSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaConnectionSettings(val *KafkaConnectionSettings) *NullableKafkaConnectionSettings { + return &NullableKafkaConnectionSettings{value: val, isSet: true} +} + +func (v NullableKafkaConnectionSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaConnectionSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_list.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_list.go new file mode 100644 index 00000000..52d4f11b --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_list.go @@ -0,0 +1,225 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ObjectReference `json:"items"` +} + +// NewList instantiates a new List 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 NewList(kind string, page int32, size int32, total int32, items []ObjectReference) *List { + this := List{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value +func (o *List) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *List) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *List) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *List) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *List) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *List) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *List) GetItems() []ObjectReference { + if o == nil { + var ret []ObjectReference + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *List) GetItemsOk() (*[]ObjectReference, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *List) SetItems(v []ObjectReference) { + o.Items = v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_object_meta.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_object_meta.go new file mode 100644 index 00000000..bdff7abf --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_object_meta.go @@ -0,0 +1,189 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// ObjectMeta struct for ObjectMeta +type ObjectMeta struct { + Owner *string `json:"owner,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` +} + +// NewObjectMeta instantiates a new ObjectMeta 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 NewObjectMeta() *ObjectMeta { + this := ObjectMeta{} + return &this +} + +// NewObjectMetaWithDefaults instantiates a new ObjectMeta 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 NewObjectMetaWithDefaults() *ObjectMeta { + this := ObjectMeta{} + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ObjectMeta) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectMeta) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ObjectMeta) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ObjectMeta) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ObjectMeta) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectMeta) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ObjectMeta) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ObjectMeta) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ObjectMeta) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectMeta) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ObjectMeta) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ObjectMeta) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +func (o ObjectMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + return json.Marshal(toSerialize) +} + +type NullableObjectMeta struct { + value *ObjectMeta + isSet bool +} + +func (v NullableObjectMeta) Get() *ObjectMeta { + return v.value +} + +func (v *NullableObjectMeta) Set(val *ObjectMeta) { + v.value = val + v.isSet = true +} + +func (v NullableObjectMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectMeta(val *ObjectMeta) *NullableObjectMeta { + return &NullableObjectMeta{value: val, isSet: true} +} + +func (v NullableObjectMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_object_reference.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_object_reference.go new file mode 100644 index 00000000..9b29ee8b --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_object_reference.go @@ -0,0 +1,188 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference() *ObjectReference { + this := ObjectReference{} + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ObjectReference) GetId() string { + if o == nil || o.Id == nil { + 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ObjectReference) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ObjectReference) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ObjectReference) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ObjectReference) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ObjectReference) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ObjectReference) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ObjectReference) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ObjectReference) SetHref(v string) { + o.Href = &v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_schema_registry_connection_settings.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_schema_registry_connection_settings.go new file mode 100644 index 00000000..63d75cb1 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_schema_registry_connection_settings.go @@ -0,0 +1,138 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// SchemaRegistryConnectionSettings Holds the configuration to connect to a Schem Registry Instance. +type SchemaRegistryConnectionSettings struct { + Id string `json:"id"` + Url string `json:"url"` +} + +// NewSchemaRegistryConnectionSettings instantiates a new SchemaRegistryConnectionSettings 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 NewSchemaRegistryConnectionSettings(id string, url string) *SchemaRegistryConnectionSettings { + this := SchemaRegistryConnectionSettings{} + this.Id = id + this.Url = url + return &this +} + +// NewSchemaRegistryConnectionSettingsWithDefaults instantiates a new SchemaRegistryConnectionSettings 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 NewSchemaRegistryConnectionSettingsWithDefaults() *SchemaRegistryConnectionSettings { + this := SchemaRegistryConnectionSettings{} + return &this +} + +// GetId returns the Id field value +func (o *SchemaRegistryConnectionSettings) 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 *SchemaRegistryConnectionSettings) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaRegistryConnectionSettings) SetId(v string) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *SchemaRegistryConnectionSettings) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *SchemaRegistryConnectionSettings) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *SchemaRegistryConnectionSettings) SetUrl(v string) { + o.Url = v +} + +func (o SchemaRegistryConnectionSettings) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableSchemaRegistryConnectionSettings struct { + value *SchemaRegistryConnectionSettings + isSet bool +} + +func (v NullableSchemaRegistryConnectionSettings) Get() *SchemaRegistryConnectionSettings { + return v.value +} + +func (v *NullableSchemaRegistryConnectionSettings) Set(val *SchemaRegistryConnectionSettings) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRegistryConnectionSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRegistryConnectionSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRegistryConnectionSettings(val *SchemaRegistryConnectionSettings) *NullableSchemaRegistryConnectionSettings { + return &NullableSchemaRegistryConnectionSettings{value: val, isSet: true} +} + +func (v NullableSchemaRegistryConnectionSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRegistryConnectionSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_service_account.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_service_account.go new file mode 100644 index 00000000..b3be14f9 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_service_account.go @@ -0,0 +1,138 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ServiceAccount struct for ServiceAccount +type ServiceAccount struct { + ClientId string `json:"client_id"` + ClientSecret string `json:"client_secret"` +} + +// NewServiceAccount instantiates a new ServiceAccount 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 NewServiceAccount(clientId string, clientSecret string) *ServiceAccount { + this := ServiceAccount{} + this.ClientId = clientId + this.ClientSecret = clientSecret + return &this +} + +// NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 NewServiceAccountWithDefaults() *ServiceAccount { + this := ServiceAccount{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *ServiceAccount) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *ServiceAccount) SetClientId(v string) { + o.ClientId = v +} + +// GetClientSecret returns the ClientSecret field value +func (o *ServiceAccount) GetClientSecret() string { + if o == nil { + var ret string + return ret + } + + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetClientSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientSecret, true +} + +// SetClientSecret sets field value +func (o *ServiceAccount) SetClientSecret(v string) { + o.ClientSecret = v +} + +func (o ServiceAccount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["client_id"] = o.ClientId + } + if true { + toSerialize["client_secret"] = o.ClientSecret + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccount struct { + value *ServiceAccount + isSet bool +} + +func (v NullableServiceAccount) Get() *ServiceAccount { + return v.value +} + +func (v *NullableServiceAccount) Set(val *ServiceAccount) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccount(val *ServiceAccount) *NullableServiceAccount { + return &NullableServiceAccount{value: val, isSet: true} +} + +func (v NullableServiceAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_service_connection_settings.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_service_connection_settings.go new file mode 100644 index 00000000..86896ee8 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_service_connection_settings.go @@ -0,0 +1,138 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// ServiceConnectionSettings struct for ServiceConnectionSettings +type ServiceConnectionSettings struct { + Id string `json:"id"` + Url string `json:"url"` +} + +// NewServiceConnectionSettings instantiates a new ServiceConnectionSettings 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 NewServiceConnectionSettings(id string, url string) *ServiceConnectionSettings { + this := ServiceConnectionSettings{} + this.Id = id + this.Url = url + return &this +} + +// NewServiceConnectionSettingsWithDefaults instantiates a new ServiceConnectionSettings 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 NewServiceConnectionSettingsWithDefaults() *ServiceConnectionSettings { + this := ServiceConnectionSettings{} + return &this +} + +// GetId returns the Id field value +func (o *ServiceConnectionSettings) 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 *ServiceConnectionSettings) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ServiceConnectionSettings) SetId(v string) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *ServiceConnectionSettings) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *ServiceConnectionSettings) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *ServiceConnectionSettings) SetUrl(v string) { + o.Url = v +} + +func (o ServiceConnectionSettings) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableServiceConnectionSettings struct { + value *ServiceConnectionSettings + isSet bool +} + +func (v NullableServiceConnectionSettings) Get() *ServiceConnectionSettings { + return v.value +} + +func (v *NullableServiceConnectionSettings) Set(val *ServiceConnectionSettings) { + v.value = val + v.isSet = true +} + +func (v NullableServiceConnectionSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceConnectionSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceConnectionSettings(val *ServiceConnectionSettings) *NullableServiceConnectionSettings { + return &NullableServiceConnectionSettings{value: val, isSet: true} +} + +func (v NullableServiceConnectionSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceConnectionSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata.go new file mode 100644 index 00000000..1ce5580c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata.go @@ -0,0 +1,224 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// VersionMetadata struct for VersionMetadata +type VersionMetadata struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + Collections *[]ObjectReference `json:"collections,omitempty"` +} + +// NewVersionMetadata instantiates a new VersionMetadata 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 NewVersionMetadata() *VersionMetadata { + this := VersionMetadata{} + return &this +} + +// NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 NewVersionMetadataWithDefaults() *VersionMetadata { + this := VersionMetadata{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *VersionMetadata) GetId() string { + if o == nil || o.Id == nil { + 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 *VersionMetadata) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *VersionMetadata) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *VersionMetadata) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *VersionMetadata) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *VersionMetadata) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *VersionMetadata) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *VersionMetadata) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *VersionMetadata) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *VersionMetadata) SetHref(v string) { + o.Href = &v +} + +// GetCollections returns the Collections field value if set, zero value otherwise. +func (o *VersionMetadata) GetCollections() []ObjectReference { + if o == nil || o.Collections == nil { + var ret []ObjectReference + return ret + } + return *o.Collections +} + +// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool) { + if o == nil || o.Collections == nil { + return nil, false + } + return o.Collections, true +} + +// HasCollections returns a boolean if a field has been set. +func (o *VersionMetadata) HasCollections() bool { + if o != nil && o.Collections != nil { + return true + } + + return false +} + +// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. +func (o *VersionMetadata) SetCollections(v []ObjectReference) { + o.Collections = &v +} + +func (o VersionMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Collections != nil { + toSerialize["collections"] = o.Collections + } + return json.Marshal(toSerialize) +} + +type NullableVersionMetadata struct { + value *VersionMetadata + isSet bool +} + +func (v NullableVersionMetadata) Get() *VersionMetadata { + return v.value +} + +func (v *NullableVersionMetadata) Set(val *VersionMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableVersionMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionMetadata(val *VersionMetadata) *NullableVersionMetadata { + return &NullableVersionMetadata{value: val, isSet: true} +} + +func (v NullableVersionMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata_all_of.go b/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata_all_of.go new file mode 100644 index 00000000..4de6d272 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/model_version_metadata_all_of.go @@ -0,0 +1,116 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" +) + +// VersionMetadataAllOf struct for VersionMetadataAllOf +type VersionMetadataAllOf struct { + Collections *[]ObjectReference `json:"collections,omitempty"` +} + +// NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOf() *VersionMetadataAllOf { + this := VersionMetadataAllOf{} + return &this +} + +// NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf { + this := VersionMetadataAllOf{} + return &this +} + +// GetCollections returns the Collections field value if set, zero value otherwise. +func (o *VersionMetadataAllOf) GetCollections() []ObjectReference { + if o == nil || o.Collections == nil { + var ret []ObjectReference + return ret + } + return *o.Collections +} + +// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool) { + if o == nil || o.Collections == nil { + return nil, false + } + return o.Collections, true +} + +// HasCollections returns a boolean if a field has been set. +func (o *VersionMetadataAllOf) HasCollections() bool { + if o != nil && o.Collections != nil { + return true + } + + return false +} + +// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. +func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference) { + o.Collections = &v +} + +func (o VersionMetadataAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Collections != nil { + toSerialize["collections"] = o.Collections + } + return json.Marshal(toSerialize) +} + +type NullableVersionMetadataAllOf struct { + value *VersionMetadataAllOf + isSet bool +} + +func (v NullableVersionMetadataAllOf) Get() *VersionMetadataAllOf { + return v.value +} + +func (v *NullableVersionMetadataAllOf) Set(val *VersionMetadataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableVersionMetadataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionMetadataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionMetadataAllOf(val *VersionMetadataAllOf) *NullableVersionMetadataAllOf { + return &NullableVersionMetadataAllOf{value: val, isSet: true} +} + +func (v NullableVersionMetadataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionMetadataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/response.go b/app-services-sdk-go/connectormgmt/apiv1/client/response.go new file mode 100644 index 00000000..41923737 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/response.go @@ -0,0 +1,48 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/client/utils.go b/app-services-sdk-go/connectormgmt/apiv1/client/utils.go new file mode 100644 index 00000000..f8da50d4 --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/client/utils.go @@ -0,0 +1,329 @@ +/* + * Connector Management API + * + * Connector Management API is a REST API to manage connectors. + * + * API version: 0.1.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package connectormgmtclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/connectormgmt/apiv1/error/errors.go b/app-services-sdk-go/connectormgmt/apiv1/error/errors.go new file mode 100644 index 00000000..3504347c --- /dev/null +++ b/app-services-sdk-go/connectormgmt/apiv1/error/errors.go @@ -0,0 +1,126 @@ + +package error +// connectormgmt error codes + +const ( + // Forbidden to perform this action + ERROR_4 string = "CONNECTOR-MGMT-4" + + // Forbidden to create more instances than the maximum allowed + ERROR_5 string = "CONNECTOR-MGMT-5" + + // An entity with the specified unique values already exists + ERROR_6 string = "CONNECTOR-MGMT-6" + + // Resource not found + ERROR_7 string = "CONNECTOR-MGMT-7" + + // General validation failure + ERROR_8 string = "CONNECTOR-MGMT-8" + + // Unspecified error + ERROR_9 string = "CONNECTOR-MGMT-9" + + // HTTP Method not implemented for this endpoint + ERROR_10 string = "CONNECTOR-MGMT-10" + + // Account is unauthorized to perform this action + ERROR_11 string = "CONNECTOR-MGMT-11" + + // Required terms have not been accepted + ERROR_12 string = "CONNECTOR-MGMT-12" + + // Account authentication could not be verified + ERROR_15 string = "CONNECTOR-MGMT-15" + + // Unable to read request body + ERROR_17 string = "CONNECTOR-MGMT-17" + + // Bad request + ERROR_21 string = "CONNECTOR-MGMT-21" + + // Failed to parse search query + ERROR_23 string = "CONNECTOR-MGMT-23" + + // The maximum number of allowed kafka instances has been reached + ERROR_24 string = "CONNECTOR-MGMT-24" + + // Resource gone + ERROR_25 string = "CONNECTOR-MGMT-25" + + // Provider not supported + ERROR_30 string = "CONNECTOR-MGMT-30" + + // Region not supported + ERROR_31 string = "CONNECTOR-MGMT-31" + + // Kafka cluster name is invalid + ERROR_32 string = "CONNECTOR-MGMT-32" + + // Minimum field length not reached + ERROR_33 string = "CONNECTOR-MGMT-33" + + // Maximum field length has been depassed + ERROR_34 string = "CONNECTOR-MGMT-34" + + // Only multiAZ Kafkas are supported, use multi_az=true + ERROR_35 string = "CONNECTOR-MGMT-35" + + // Kafka cluster name is already used + ERROR_36 string = "CONNECTOR-MGMT-36" + + // Field validation failed + ERROR_37 string = "CONNECTOR-MGMT-37" + + // Service account name is invalid + ERROR_38 string = "CONNECTOR-MGMT-38" + + // Service account desc is invalid + ERROR_39 string = "CONNECTOR-MGMT-39" + + // Service account id is invalid + ERROR_40 string = "CONNECTOR-MGMT-40" + + // Instance Type not supported + ERROR_41 string = "CONNECTOR-MGMT-41" + + // Synchronous action is not supported, use async=true parameter + ERROR_103 string = "CONNECTOR-MGMT-103" + + // Failed to create kafka client in the mas sso + ERROR_106 string = "CONNECTOR-MGMT-106" + + // Failed to get kafka client secret from the mas sso + ERROR_107 string = "CONNECTOR-MGMT-107" + + // Failed to get kafka client from the mas sso + ERROR_108 string = "CONNECTOR-MGMT-108" + + // Failed to delete kafka client from the mas sso + ERROR_109 string = "CONNECTOR-MGMT-109" + + // Failed to create service account + ERROR_110 string = "CONNECTOR-MGMT-110" + + // Failed to get service account + ERROR_111 string = "CONNECTOR-MGMT-111" + + // Failed to delete service account + ERROR_112 string = "CONNECTOR-MGMT-112" + + // Failed to find service account + ERROR_113 string = "CONNECTOR-MGMT-113" + + // Insufficient quota + ERROR_120 string = "CONNECTOR-MGMT-120" + + // Failed to check quota + ERROR_121 string = "CONNECTOR-MGMT-121" + + // Too Many requests + ERROR_429 string = "CONNECTOR-MGMT-429" + + // An unexpected error happened, please check the log of the service for details + ERROR_1000 string = "CONNECTOR-MGMT-1000" + +) \ No newline at end of file diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/.gitignore b/app-services-sdk-go/kafkainstance/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..49676053 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,126 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_acls.go +api_errors.go +api_groups.go +api_records.go +api_topics.go +client.go +configuration.go +docs/AclBinding.md +docs/AclBindingAllOf.md +docs/AclBindingListPage.md +docs/AclBindingListPageAllOf.md +docs/AclBindingOrderKey.md +docs/AclOperation.md +docs/AclOperationFilter.md +docs/AclPatternType.md +docs/AclPatternTypeFilter.md +docs/AclPermissionType.md +docs/AclPermissionTypeFilter.md +docs/AclResourceType.md +docs/AclResourceTypeFilter.md +docs/AclsApi.md +docs/ConfigEntry.md +docs/Consumer.md +docs/ConsumerGroup.md +docs/ConsumerGroupAllOf.md +docs/ConsumerGroupDescriptionOrderKey.md +docs/ConsumerGroupList.md +docs/ConsumerGroupListAllOf.md +docs/ConsumerGroupMetrics.md +docs/ConsumerGroupOrderKey.md +docs/ConsumerGroupResetOffsetParameters.md +docs/ConsumerGroupResetOffsetResult.md +docs/ConsumerGroupResetOffsetResultAllOf.md +docs/ConsumerGroupResetOffsetResultItem.md +docs/ConsumerGroupState.md +docs/Error.md +docs/ErrorAllOf.md +docs/ErrorList.md +docs/ErrorListAllOf.md +docs/ErrorsApi.md +docs/GroupsApi.md +docs/List.md +docs/ListDeprecated.md +docs/ListDeprecatedAllOf.md +docs/NewTopicInput.md +docs/Node.md +docs/ObjectReference.md +docs/OffsetType.md +docs/Partition.md +docs/Record.md +docs/RecordAllOf.md +docs/RecordIncludedProperty.md +docs/RecordList.md +docs/RecordListAllOf.md +docs/RecordsApi.md +docs/SortDirection.md +docs/Topic.md +docs/TopicAllOf.md +docs/TopicOrderKey.md +docs/TopicSettings.md +docs/TopicsApi.md +docs/TopicsList.md +docs/TopicsListAllOf.md +docs/TopicsToResetOffset.md +git_push.sh +go.mod +go.sum +model_acl_binding.go +model_acl_binding_all_of.go +model_acl_binding_list_page.go +model_acl_binding_list_page_all_of.go +model_acl_binding_order_key.go +model_acl_operation.go +model_acl_operation_filter.go +model_acl_pattern_type.go +model_acl_pattern_type_filter.go +model_acl_permission_type.go +model_acl_permission_type_filter.go +model_acl_resource_type.go +model_acl_resource_type_filter.go +model_config_entry.go +model_consumer.go +model_consumer_group.go +model_consumer_group_all_of.go +model_consumer_group_description_order_key.go +model_consumer_group_list.go +model_consumer_group_list_all_of.go +model_consumer_group_metrics.go +model_consumer_group_order_key.go +model_consumer_group_reset_offset_parameters.go +model_consumer_group_reset_offset_result.go +model_consumer_group_reset_offset_result_all_of.go +model_consumer_group_reset_offset_result_item.go +model_consumer_group_state.go +model_error.go +model_error_all_of.go +model_error_list.go +model_error_list_all_of.go +model_list.go +model_list_deprecated.go +model_list_deprecated_all_of.go +model_new_topic_input.go +model_node.go +model_object_reference.go +model_offset_type.go +model_partition.go +model_record.go +model_record_all_of.go +model_record_included_property.go +model_record_list.go +model_record_list_all_of.go +model_sort_direction.go +model_topic.go +model_topic_all_of.go +model_topic_order_key.go +model_topic_settings.go +model_topics_list.go +model_topics_list_all_of.go +model_topics_to_reset_offset.go +response.go +utils.go diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/.travis.yml b/app-services-sdk-go/kafkainstance/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/README.md b/app-services-sdk-go/kafkainstance/apiv1/client/README.md new file mode 100644 index 00000000..adf09862 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/README.md @@ -0,0 +1,219 @@ +# Go API client for kafkainstanceclient + +API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.13.0-SNAPSHOT +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./kafkainstanceclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AclsApi* | [**CreateAcl**](docs/AclsApi.md#createacl) | **Post** /api/v1/acls | Create ACL binding +*AclsApi* | [**DeleteAcls**](docs/AclsApi.md#deleteacls) | **Delete** /api/v1/acls | Delete ACL bindings +*AclsApi* | [**GetAclResourceOperations**](docs/AclsApi.md#getaclresourceoperations) | **Get** /api/v1/acls/resource-operations | Retrieve allowed ACL resources and operations +*AclsApi* | [**GetAcls**](docs/AclsApi.md#getacls) | **Get** /api/v1/acls | List ACL bindings +*ErrorsApi* | [**GetError**](docs/ErrorsApi.md#geterror) | **Get** /api/v1/errors/{errorId} | Get an error by its unique ID +*ErrorsApi* | [**GetErrors**](docs/ErrorsApi.md#geterrors) | **Get** /api/v1/errors | Get list of errors +*GroupsApi* | [**DeleteConsumerGroupById**](docs/GroupsApi.md#deleteconsumergroupbyid) | **Delete** /api/v1/consumer-groups/{consumerGroupId} | Delete a consumer group. +*GroupsApi* | [**GetConsumerGroupById**](docs/GroupsApi.md#getconsumergroupbyid) | **Get** /api/v1/consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. +*GroupsApi* | [**GetConsumerGroups**](docs/GroupsApi.md#getconsumergroups) | **Get** /api/v1/consumer-groups | List of consumer groups in the Kafka instance. +*GroupsApi* | [**ResetConsumerGroupOffset**](docs/GroupsApi.md#resetconsumergroupoffset) | **Post** /api/v1/consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. +*RecordsApi* | [**ConsumeRecords**](docs/RecordsApi.md#consumerecords) | **Get** /api/v1/topics/{topicName}/records | Consume records from a topic +*RecordsApi* | [**ProduceRecord**](docs/RecordsApi.md#producerecord) | **Post** /api/v1/topics/{topicName}/records | Send a record to a topic +*TopicsApi* | [**CreateTopic**](docs/TopicsApi.md#createtopic) | **Post** /api/v1/topics | Creates a new topic +*TopicsApi* | [**DeleteTopic**](docs/TopicsApi.md#deletetopic) | **Delete** /api/v1/topics/{topicName} | Deletes a topic +*TopicsApi* | [**GetTopic**](docs/TopicsApi.md#gettopic) | **Get** /api/v1/topics/{topicName} | Retrieves a single topic +*TopicsApi* | [**GetTopics**](docs/TopicsApi.md#gettopics) | **Get** /api/v1/topics | Retrieves a list of topics +*TopicsApi* | [**UpdateTopic**](docs/TopicsApi.md#updatetopic) | **Patch** /api/v1/topics/{topicName} | Updates a single topic + + +## Documentation For Models + + - [AclBinding](docs/AclBinding.md) + - [AclBindingAllOf](docs/AclBindingAllOf.md) + - [AclBindingListPage](docs/AclBindingListPage.md) + - [AclBindingListPageAllOf](docs/AclBindingListPageAllOf.md) + - [AclBindingOrderKey](docs/AclBindingOrderKey.md) + - [AclOperation](docs/AclOperation.md) + - [AclOperationFilter](docs/AclOperationFilter.md) + - [AclPatternType](docs/AclPatternType.md) + - [AclPatternTypeFilter](docs/AclPatternTypeFilter.md) + - [AclPermissionType](docs/AclPermissionType.md) + - [AclPermissionTypeFilter](docs/AclPermissionTypeFilter.md) + - [AclResourceType](docs/AclResourceType.md) + - [AclResourceTypeFilter](docs/AclResourceTypeFilter.md) + - [ConfigEntry](docs/ConfigEntry.md) + - [Consumer](docs/Consumer.md) + - [ConsumerGroup](docs/ConsumerGroup.md) + - [ConsumerGroupAllOf](docs/ConsumerGroupAllOf.md) + - [ConsumerGroupDescriptionOrderKey](docs/ConsumerGroupDescriptionOrderKey.md) + - [ConsumerGroupList](docs/ConsumerGroupList.md) + - [ConsumerGroupListAllOf](docs/ConsumerGroupListAllOf.md) + - [ConsumerGroupMetrics](docs/ConsumerGroupMetrics.md) + - [ConsumerGroupOrderKey](docs/ConsumerGroupOrderKey.md) + - [ConsumerGroupResetOffsetParameters](docs/ConsumerGroupResetOffsetParameters.md) + - [ConsumerGroupResetOffsetResult](docs/ConsumerGroupResetOffsetResult.md) + - [ConsumerGroupResetOffsetResultAllOf](docs/ConsumerGroupResetOffsetResultAllOf.md) + - [ConsumerGroupResetOffsetResultItem](docs/ConsumerGroupResetOffsetResultItem.md) + - [ConsumerGroupState](docs/ConsumerGroupState.md) + - [Error](docs/Error.md) + - [ErrorAllOf](docs/ErrorAllOf.md) + - [ErrorList](docs/ErrorList.md) + - [ErrorListAllOf](docs/ErrorListAllOf.md) + - [List](docs/List.md) + - [ListDeprecated](docs/ListDeprecated.md) + - [ListDeprecatedAllOf](docs/ListDeprecatedAllOf.md) + - [NewTopicInput](docs/NewTopicInput.md) + - [Node](docs/Node.md) + - [ObjectReference](docs/ObjectReference.md) + - [OffsetType](docs/OffsetType.md) + - [Partition](docs/Partition.md) + - [Record](docs/Record.md) + - [RecordAllOf](docs/RecordAllOf.md) + - [RecordIncludedProperty](docs/RecordIncludedProperty.md) + - [RecordList](docs/RecordList.md) + - [RecordListAllOf](docs/RecordListAllOf.md) + - [SortDirection](docs/SortDirection.md) + - [Topic](docs/Topic.md) + - [TopicAllOf](docs/TopicAllOf.md) + - [TopicOrderKey](docs/TopicOrderKey.md) + - [TopicSettings](docs/TopicSettings.md) + - [TopicsList](docs/TopicsList.md) + - [TopicsListAllOf](docs/TopicsListAllOf.md) + - [TopicsToResetOffset](docs/TopicsToResetOffset.md) + + +## Documentation For Authorization + + + +### Bearer + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +### OAuth2 + + +- **Type**: OAuth +- **Flow**: application +- **Authorization URL**: +- **Scopes**: N/A + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + +Or via OAuth2 module to automatically refresh tokens and perform user authentication. + +```golang +import "golang.org/x/oauth2" + +/* Perform OAuth2 round trip request and obtain a token */ + +tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token) +auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource) +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api/openapi.yaml b/app-services-sdk-go/kafkainstance/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..34284099 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api/openapi.yaml @@ -0,0 +1,2382 @@ +openapi: 3.0.3 +info: + description: API for interacting with Kafka Instance. Includes Produce, Consume + and Admin APIs + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + title: Kafka Instance API + version: 0.13.0-SNAPSHOT +servers: +- description: Kafka Admin REST API + url: / +security: +- Bearer: [] +- OAuth2: [] +tags: +- description: Topic Management + name: topics +- description: Consumer Group Management + name: groups +- description: Access Control Management (ACLs) + name: acls +- description: Send and receive records interactively + name: records +- description: Error Type Retrieval + name: errors +paths: + /api/v1/topics: + get: + description: Returns a list of all of the available topics, or the list of topics + that meet the request query parameters. The topics returned are limited to + those records the requestor is authorized to view. + operationId: getTopics + parameters: + - deprecated: true + description: Offset of the first record to return, zero-based + explode: true + in: query + name: offset + required: false + schema: + format: int32 + minimum: 0 + type: integer + style: form + - deprecated: true + description: Maximum number of records to return + explode: true + in: query + name: limit + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Number of records per page + explode: true + in: query + name: size + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Filter to apply when returning the list of topics + explode: true + in: query + name: filter + required: false + schema: + type: string + style: form + - description: Page number + explode: true + in: query + name: page + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Order items are sorted + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortDirection' + style: form + - description: Order key to sort the topics by. + explode: true + in: query + name: orderKey + required: false + schema: + allOf: + - $ref: '#/components/schemas/TopicOrderKey' + - {} + style: form + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TopicsList' + description: List of topics matching the request query parameters. The topics + returned are limited to those records the requestor is authorized to view. + summary: Retrieves a list of topics + tags: + - topics + post: + description: Creates a new topic for Kafka. + operationId: createTopic + requestBody: + content: + application/json: + examples: + NewTopicExample: + $ref: '#/components/examples/NewTopicExample' + schema: + $ref: '#/components/schemas/NewTopicInput' + description: Topic to create. + required: true + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The resource already exists. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Topic' + description: Topic created successfully. + summary: Creates a new topic + tags: + - topics + /api/v1/topics/{topicName}: + delete: + description: Deletes the topic with the specified name. + operationId: deleteTopic + parameters: + - description: Name of the topic to delete + explode: false + in: path + name: topicName + required: true + schema: + type: string + style: simple + responses: + "204": + description: Topic deleted successfully. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: Deletes a topic + tags: + - topics + get: + description: Topic + operationId: getTopic + parameters: + - description: Name of the topic to describe + explode: false + in: path + name: topicName + required: true + schema: + type: string + style: simple + responses: + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Topic' + description: Kafka topic details + summary: Retrieves a single topic + tags: + - topics + patch: + description: Update the configuration settings for a topic. + operationId: updateTopic + parameters: + - description: Name of the topic to update + explode: false + in: path + name: topicName + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TopicSettings' + required: true + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Topic' + description: Topic updated successfully. + summary: Updates a single topic + tags: + - topics + /api/v1/topics/{topicName}/records: + get: + description: Consume a limited number of records from a topic, optionally specifying + a partition and an absolute offset or timestamp as the starting point for + message retrieval. + operationId: consumeRecords + parameters: + - description: List of properties to include for each record in the response + explode: false + in: query + name: include + required: false + schema: + items: + $ref: '#/components/schemas/RecordIncludedProperty' + type: array + style: form + - description: Limit the number of records fetched and returned + explode: true + in: query + name: limit + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Maximum length of string values returned in the response. Values + with a length that exceeds this parameter will be truncated. When this parameter + is not included in the request, the full string values will be returned. + explode: true + in: query + name: maxValueLength + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Retrieve messages with an offset equal to or greater than this + offset. If both `timestamp` and `offset` are requested, `timestamp` is given + preference. + explode: true + in: query + name: offset + required: false + schema: + format: int32 + minimum: 0 + type: integer + style: form + - description: Retrieve messages only from this partition + explode: true + in: query + name: partition + required: false + schema: + format: int32 + type: integer + style: form + - description: Retrieve messages with a timestamp equal to or later than this + timestamp. If both `timestamp` and `offset` are requested, `timestamp` is + given preference. + explode: true + in: query + name: timestamp + required: false + schema: + format: date-time + style: form + - description: Topic name + explode: false + in: path + name: topicName + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RecordList' + description: List of records matching the request query parameters. + summary: Consume records from a topic + tags: + - records + post: + description: Produce (write) a single record to a topic. + operationId: produceRecord + parameters: + - description: Topic name + explode: false + in: path + name: topicName + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + RecordProduceExample: + $ref: '#/components/examples/RecordProduceExample' + schema: + $ref: '#/components/schemas/Record' + required: true + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Record' + description: Record was successfully sent to the topic + summary: Send a record to a topic + tags: + - records + /api/v1/consumer-groups: + get: + description: Returns a list of all consumer groups for a particular Kafka instance. + The consumer groups returned are limited to those records the requestor is + authorized to view. + operationId: getConsumerGroups + parameters: + - deprecated: true + description: Offset of the first record to return, zero-based + explode: true + in: query + name: offset + required: false + schema: + format: int32 + minimum: 0 + type: integer + style: form + - deprecated: true + description: Maximum number of records to return + explode: true + in: query + name: limit + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Number of records per page + explode: true + in: query + name: size + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Page number + explode: true + in: query + name: page + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Return consumer groups where the topic name contains this value + explode: true + in: query + name: topic + required: false + schema: + type: string + style: form + - description: Return the consumer groups where the ID contains this value + explode: true + in: query + name: group-id-filter + required: false + schema: + type: string + style: form + - description: Order items are sorted + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortDirection' + style: form + - explode: true + in: query + name: orderKey + required: false + schema: + allOf: + - $ref: '#/components/schemas/ConsumerGroupOrderKey' + - {} + style: form + responses: + "200": + content: + application/json: + examples: + List of consumer groups: + value: + kind: ConsumerGroupList + count: 1 + limit: 10 + offset: 0 + items: + - id: consumer_group_1 + kind: ConsumerGroup + href: /api/v1/consumer-groups/consumer_group_1 + groupId: consumer_group_1 + consumers: + - groupId: consumer_group_1 + topic: topic-1 + partition: 0 + memberId: consumer_group_member1 + offset: 5 + lag: 0 + logEndOffset: 5 + - groupId: consumer_group_1 + topic: topic-1 + partition: 1 + memberId: consumer_group_member2 + offset: 3 + lag: 0 + logEndOffset: 3 + - groupId: consumer_group_1 + topic: topic-1 + partition: 2 + memberId: consumer_group_member3 + offset: 6 + lag: 1 + logEndOffset: 5 + schema: + $ref: '#/components/schemas/ConsumerGroupList' + description: List of consumer groups matching the request parameters. The + consumer groups returned are limited to those records the requestor is + authorized to view. + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: List of consumer groups in the Kafka instance. + tags: + - groups + /api/v1/consumer-groups/{consumerGroupId}: + delete: + description: Delete a consumer group, along with its consumers. + operationId: deleteConsumerGroupById + parameters: + - description: Consumer group identifier + explode: false + in: path + name: consumerGroupId + required: true + schema: + type: string + style: simple + responses: + "204": + description: The consumer group was deleted successfully. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "423": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User cannot delete consumer group with active members. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: Delete a consumer group. + tags: + - groups + get: + operationId: getConsumerGroupById + parameters: + - description: Consumer group identifier + explode: false + in: path + name: consumerGroupId + required: true + schema: + type: string + style: simple + - description: Order items are sorted + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortDirection' + style: form + - explode: true + in: query + name: orderKey + required: false + schema: + allOf: + - $ref: '#/components/schemas/ConsumerGroupDescriptionOrderKey' + - {} + style: form + - description: Value of partition to include. Value -1 means filter is not active. + explode: true + in: query + name: partitionFilter + required: false + schema: + format: int32 + type: integer + style: form + - description: Filter consumer groups for a specific topic + explode: true + in: query + name: topic + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ConsumerGroupExample: + $ref: '#/components/examples/ConsumerGroupExample' + schema: + $ref: '#/components/schemas/ConsumerGroup' + description: Consumer group details. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: Get a single consumer group by its unique ID. + tags: + - groups + /api/v1/consumer-groups/{consumerGroupId}/reset-offset: + post: + description: Reset the offset for a particular consumer group. + operationId: resetConsumerGroupOffset + parameters: + - description: Consumer group identifier + explode: false + in: path + name: consumerGroupId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + ConsumerGroupOffsetResetExample: + $ref: '#/components/examples/ConsumerGroupOffsetResetExample' + schema: + $ref: '#/components/schemas/ConsumerGroupResetOffsetParameters' + required: true + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConsumerGroupResetOffsetResult' + description: The consumer group offsets have been reset. + summary: Reset the offset for a consumer group. + tags: + - groups + /api/v1/acls: + delete: + description: Deletes ACL bindings that match the query parameters. + operationId: deleteAcls + parameters: + - description: ACL Resource Type Filter + examples: + anything: + summary: Match any ACL binding resource type + value: ANY + group: + summary: Match ACL bindings for consumer groups + value: GROUP + topic: + summary: Match ACL bindings for topics + value: TOPIC + cluster: + summary: Match ACL bindings for the cluster + value: CLUSTER + transactional_id: + summary: Match ACL bindings for transactional IDs + value: TRANSACTIONAL_ID + explode: true + in: query + name: resourceType + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclResourceTypeFilter' + - {} + style: form + - description: ACL Resource Name Filter + explode: true + in: query + name: resourceName + required: false + schema: + type: string + style: form + - description: ACL Pattern Type Filter + examples: + anything: + summary: Match any ACL binding pattern type + value: ANY + literal: + summary: Match a literal resource name or `*` + value: LITERAL + prefixed: + summary: Match a prefixed resource name + value: PREFIXED + explode: true + in: query + name: patternType + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclPatternTypeFilter' + - {} + style: form + - description: |- + ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. + - When fetching by a specific user, the results will also include ACL bindings that apply to all users. + - When deleting, ACL bindings to be delete must match the provided `principal` exactly. + examples: + wildcard: + summary: Match ACL entries that apply to all users + value: User:* + specific: + summary: Match ACL entries for a specific user + value: User:admin-5a1-0c1 + explode: true + in: query + name: principal + required: false + schema: + default: "" + type: string + style: form + - description: ACL Operation Filter. The ACL binding operation provided should + be valid for the resource type in the request, if not `ANY`. + examples: + anything: + summary: Match any ACL binding operation + value: ANY + explode: true + in: query + name: operation + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclOperationFilter' + - {} + style: form + - description: ACL Permission Type Filter + examples: + anything: + summary: Match any ACL binding permission type + value: ANY + allow: + summary: Match only ACL bindings allowing access + value: ALLOW + deny: + summary: Match only ACL bindings denying access + value: DENY + explode: true + in: query + name: permission + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclPermissionTypeFilter' + - {} + style: form + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AclBindingListPage' + description: List of all ACL bindings matching the query parameters that + were deleted. + summary: Delete ACL bindings + tags: + - acls + get: + description: Returns a list of all of the available ACL bindings, or the list + of bindings that meet the user's URL query parameters. If no parameters are + specified, all ACL bindings known to the system will be returned (with paging). + operationId: getAcls + parameters: + - description: ACL Resource Type Filter + examples: + anything: + summary: Match any ACL binding resource type + value: ANY + group: + summary: Match ACL bindings for consumer groups + value: GROUP + topic: + summary: Match ACL bindings for topics + value: TOPIC + cluster: + summary: Match ACL bindings for the cluster + value: CLUSTER + transactional_id: + summary: Match ACL bindings for transactional IDs + value: TRANSACTIONAL_ID + explode: true + in: query + name: resourceType + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclResourceTypeFilter' + - {} + style: form + - description: ACL Resource Name Filter + explode: true + in: query + name: resourceName + required: false + schema: + type: string + style: form + - description: ACL Pattern Type Filter + examples: + anything: + summary: Match any ACL binding pattern type + value: ANY + literal: + summary: Match a literal resource name or `*` + value: LITERAL + prefixed: + summary: Match a prefixed resource name + value: PREFIXED + explode: true + in: query + name: patternType + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclPatternTypeFilter' + - {} + style: form + - description: |- + ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. + - When fetching by a specific user, the results will also include ACL bindings that apply to all users. + - When deleting, ACL bindings to be delete must match the provided `principal` exactly. + examples: + wildcard: + summary: Match ACL entries that apply to all users + value: User:* + specific: + summary: Match ACL entries for a specific user + value: User:admin-5a1-0c1 + explode: true + in: query + name: principal + required: false + schema: + default: "" + type: string + style: form + - description: ACL Operation Filter. The ACL binding operation provided should + be valid for the resource type in the request, if not `ANY`. + examples: + anything: + summary: Match any ACL binding operation + value: ANY + explode: true + in: query + name: operation + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclOperationFilter' + - {} + style: form + - description: ACL Permission Type Filter + examples: + anything: + summary: Match any ACL binding permission type + value: ANY + allow: + summary: Match only ACL bindings allowing access + value: ALLOW + deny: + summary: Match only ACL bindings denying access + value: DENY + explode: true + in: query + name: permission + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclPermissionTypeFilter' + - {} + style: form + - description: Page number + explode: true + in: query + name: page + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Number of records per page + explode: true + in: query + name: size + required: false + schema: + format: int32 + minimum: 1 + type: integer + style: form + - description: Order items are sorted + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortDirection' + style: form + - explode: true + in: query + name: orderKey + required: false + schema: + allOf: + - $ref: '#/components/schemas/AclBindingOrderKey' + - {} + style: form + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AclBindingListPage' + description: List of ACL bindings matching the query parameters. + summary: List ACL bindings + tags: + - acls + post: + description: Creates a new ACL binding for a Kafka instance. + operationId: createAcl + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AclBinding' + description: ACL to create. + required: true + responses: + "201": + description: ACL created successfully. + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: Create ACL binding + tags: + - acls + /api/v1/acls/resource-operations: + get: + description: Retrieve the resources and associated operations that may have + ACLs configured. + operationId: getAclResourceOperations + responses: + "200": + content: + application/json: + examples: + success: + summary: Map of resources to allowed ACL operations + value: |- + { + "cluster": [ "describe", "alter" ], + "group": [ "all", "delete", "describe", "read" ], + "topic": [ "all", "alter", "alter_configs", "create", "delete", "describe", "describe_configs", "read", "write" ], + "transactional_id": [ "all", "describe", "write" ] + } + disabled: + summary: No configuration of ACL bindings is allowed + value: '{}' + schema: + additionalProperties: + items: + type: string + type: array + type: object + description: Map of allowed resources and operations for ACL creation + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + security: + - {} + summary: Retrieve allowed ACL resources and operations + tags: + - acls + /api/v1/errors: + get: + operationId: getErrors + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorList' + description: Error listing + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + security: + - {} + summary: Get list of errors + tags: + - errors + /api/v1/errors/{errorId}: + get: + operationId: getError + parameters: + - description: Error identifier + explode: false + in: path + name: errorId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Error details + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + security: + - {} + summary: Get an error by its unique ID + tags: + - errors +components: + examples: + NewTopicExample: + description: Sample new topic with 3 partitions + value: + name: my-topic + settings: + numPartitions: 3 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + ConsumerGroupExample: + description: Sample consumer group with 3 partitions and 3 active consumers + value: + id: consumer_group_1 + kind: ConsumerGroup + href: /api/v1/consumer-groups/consumer_group_1 + groupId: consumer_group_1 + state: STABLE + consumers: + - groupId: consumer_group_1 + topic: topic-1 + partition: 0 + offset: 5 + logEndOffset: 5 + lag: 0 + memberId: consumer_group_member1 + - groupId: consumer_group_1 + topic: topic-1 + partition: 1 + offset: 3 + logEndOffset: 3 + lag: 0 + memberId: consumer_group_member2 + - groupId: consumer_group_1 + topic: topic-1 + partition: 2 + offset: 5 + logEndOffset: 6 + lag: 1 + memberId: consumer_group_member3 + metrics: + laggingPartitions: 0 + activeConsumers: 3 + unassignedPartitions: 0 + ConsumerGroupOffsetResetExample: + description: Sample request to reset partition `0` of topic `my-topic` to offset + `4` + value: + offset: absolute + value: "4" + topics: + - topic: my-topic + partitions: + - 0 + RecordProduceExample: + description: Sample record to produce a record to partition 1, including a custom + header + value: + kind: Record + partition: 1 + headers: + X-Custom-Header: header-value-1 + value: '{ "examplekey": "example-value" }' + responses: + BadRequest: + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + NotAuthorized: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + Forbidden: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + NotFound: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + Conflict: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The resource already exists. + ServerError: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + ServiceUnavailable: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + schemas: + AclBinding: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/AclBinding_allOf' + example: + kind: AclBinding + resourceType: TOPIC + resourceName: '*' + patternType: LITERAL + principal: User:user123 + operation: READ + permission: ALLOW + AclBindingListPage: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/AclBindingListPage_allOf' + AclBindingOrderKey: + enum: + - resourceType + - resourceName + - patternType + - principal + - operation + - permission + type: string + AclOperation: + enum: + - ALL + - READ + - WRITE + - CREATE + - DELETE + - ALTER + - DESCRIBE + - DESCRIBE_CONFIGS + - ALTER_CONFIGS + type: string + AclOperationFilter: + enum: + - ALL + - READ + - WRITE + - CREATE + - DELETE + - ALTER + - DESCRIBE + - DESCRIBE_CONFIGS + - ALTER_CONFIGS + - ANY + type: string + AclPatternType: + enum: + - LITERAL + - PREFIXED + type: string + AclPatternTypeFilter: + description: Use value 'MATCH' to perform pattern matching. + enum: + - LITERAL + - PREFIXED + - ANY + - MATCH + type: string + AclPermissionType: + enum: + - ALLOW + - DENY + type: string + AclPermissionTypeFilter: + enum: + - ALLOW + - DENY + - ANY + type: string + AclResourceType: + enum: + - GROUP + - TOPIC + - CLUSTER + - TRANSACTIONAL_ID + type: string + AclResourceTypeFilter: + enum: + - ANY + - GROUP + - TOPIC + - CLUSTER + - TRANSACTIONAL_ID + type: string + ConfigEntry: + description: Key value pair indicating possible configuration options for a + topic. + example: + key: min.insync.replicas + value: "1" + properties: + key: + description: The key indicating what configuration entry you would like + to set for the topic. + nullable: false + pattern: \S + type: string + value: + description: Value to indicate the setting on the topic configuration entry. + nullable: false + pattern: \S + type: string + required: + - key + - value + type: object + Consumer: + description: A Kafka consumer is responsible for reading records from one or + more topics and one or more partitions of a topic. + example: + groupId: consumer_group_1 + topic: topic-1 + partition: 0 + memberId: consumer_group_1-0 + offset: 5 + lag: 0 + logEndOffset: 5 + properties: + groupId: + description: Unique identifier for the consumer group to which this consumer + belongs. + nullable: false + type: string + topic: + description: The unique topic name to which this consumer belongs + nullable: false + type: string + partition: + description: The partition number to which this consumer group is assigned + to. + format: int32 + nullable: false + type: integer + offset: + description: Offset denotes the position of the consumer in a partition. + format: int64 + type: integer + logEndOffset: + description: The log end offset is the offset of the last message written + to a log. + format: int64 + type: integer + lag: + description: Offset Lag is the delta between the last produced message and + the last consumer's committed offset. + format: int64 + type: integer + memberId: + description: The member ID is a unique identifier given to a consumer by + the coordinator upon initially joining the group. + type: string + required: + - groupId + - lag + - offset + - partition + - topic + type: object + ConsumerGroup: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ConsumerGroup_allOf' + ConsumerGroupDescriptionOrderKey: + enum: + - offset + - endOffset + - lag + - partition + type: string + ConsumerGroupList: + allOf: + - $ref: '#/components/schemas/ListDeprecated' + - $ref: '#/components/schemas/ConsumerGroupList_allOf' + example: + kind: ConsumerGroupList + count: 1 + limit: 10 + offset: 0 + items: + - id: consumer_group_1 + kind: ConsumerGroup + href: /api/v1/consumer-groups/consumer_group_1 + groupId: consumer_group_1 + consumers: + - groupId: consumer_group_1 + topic: topic-1 + partition: 0 + memberId: consumer_group_member1 + offset: 5 + lag: 0 + logEndOffset: 5 + - groupId: consumer_group_1 + topic: topic-1 + partition: 1 + memberId: consumer_group_member2 + offset: 3 + lag: 0 + logEndOffset: 3 + - groupId: consumer_group_1 + topic: topic-1 + partition: 2 + memberId: consumer_group_member3 + offset: 6 + lag: 1 + logEndOffset: 5 + ConsumerGroupMetrics: + properties: + laggingPartitions: + format: int32 + type: integer + activeConsumers: + format: int32 + type: integer + unassignedPartitions: + format: int32 + type: integer + type: object + ConsumerGroupOrderKey: + enum: + - name + type: string + ConsumerGroupResetOffsetParameters: + example: + topics: + - partitions: + - 0 + - 0 + topic: topic + - partitions: + - 0 + - 0 + topic: topic + value: value + properties: + offset: + $ref: '#/components/schemas/OffsetType' + value: + description: Value associated with the given `offset`. Not used for `offset` + values `earliest` and `latest`. When `offset` is `timestamp` then `value` + must be a valid timestamp representing the point in time to reset the + consumer group. When `offset` is `absolute` then `value` must be the integer + offset to which the consumer group will be reset. + type: string + topics: + items: + $ref: '#/components/schemas/TopicsToResetOffset' + type: array + required: + - offset + type: object + ConsumerGroupResetOffsetResult: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ConsumerGroupResetOffsetResult_allOf' + example: + total: 2 + page: 1 + size: 10 + items: + - topic: your-topic + partition: 0 + offset: 4 + - topic: my-topic + partition: 0 + offset: 0 + ConsumerGroupResetOffsetResultItem: + example: + topic: your-topic + partition: 0 + offset: 4 + properties: + topic: + type: string + partition: + format: int32 + type: integer + offset: + format: int64 + type: integer + type: object + ConsumerGroupState: + enum: + - UNKNOWN + - PREPARING_REBALANCE + - COMPLETING_REBALANCE + - STABLE + - DEAD + - EMPTY + type: string + Error: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Error_allOf' + ErrorList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ErrorList_allOf' + List: + properties: + kind: + type: string + items: + items: + type: object + nullable: false + type: array + total: + description: Total number of entries in the full result set + format: int32 + nullable: false + type: integer + size: + description: Number of entries per page (returned for fetch requests) + format: int32 + type: integer + page: + description: Current page number (returned for fetch requests) + format: int32 + type: integer + required: + - items + - total + type: object + ListDeprecated: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ListDeprecated_allOf' + NewTopicInput: + description: Input object to create a new topic. + example: + name: my-topic + settings: + numPartitions: 3 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + properties: + name: + description: The topic name, this value must be unique. + nullable: false + pattern: \S + type: string + settings: + $ref: '#/components/schemas/TopicSettings' + required: + - name + - settings + type: object + Node: + description: Identifier for a Kafka server / broker. + properties: + id: + format: int32 + type: integer + type: object + ObjectReference: + properties: + id: + description: Unique identifier for the object. Not supported for all object + kinds. + type: string + kind: + readOnly: true + type: string + href: + description: Link path to request the object. Not supported for all object + kinds. + type: string + type: object + OffsetType: + enum: + - timestamp + - absolute + - latest + - earliest + type: string + Partition: + description: Kafka topic partition + example: + id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 + properties: + partition: + description: The partition id, unique among partitions of the same topic + format: int32 + nullable: false + type: integer + replicas: + description: List of replicas for the partition + items: + $ref: '#/components/schemas/Node' + type: array + isr: + description: List in-sync replicas for this partition. + items: + $ref: '#/components/schemas/Node' + type: array + leader: + allOf: + - $ref: '#/components/schemas/Node' + - description: Node that is the leader for this partition. + id: + deprecated: true + description: Unique id for the partition (deprecated, use `partition` instead) + format: int32 + type: integer + required: + - partition + type: object + Record: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Record_allOf' + RecordIncludedProperty: + enum: + - partition + - offset + - timestamp + - timestampType + - headers + - key + - value + type: string + RecordList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RecordList_allOf' + SortDirection: + enum: + - asc + - desc + type: string + Topic: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Topic_allOf' + example: + id: my-topic + kind: Topic + href: /api/v1/topics/my-topic + name: my-topic + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + partitions: + - id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 0 + - id: 1 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 + TopicOrderKey: + enum: + - name + - partitions + - retention.ms + - retention.bytes + type: string + TopicSettings: + description: The settings that are applicable to this topic. This includes partitions, + configuration information, and number of replicas. + example: + numPartitions: 2 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + properties: + numPartitions: + description: Number of partitions for this topic. If not specified, the + default for new topics is `1`. Number of partitions may not be reduced + when updating existing topics + format: int32 + maximum: 100 + minimum: 1 + type: integer + config: + description: Topic configuration entries. + items: + $ref: '#/components/schemas/ConfigEntry' + type: array + type: object + TopicsList: + allOf: + - $ref: '#/components/schemas/ListDeprecated' + - $ref: '#/components/schemas/TopicsList_allOf' + example: + kind: TopicList + items: + - id: my-topic + kind: Topic + href: /api/v1/topics/my-topic + name: my-topic + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + partitions: + - id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 0 + - id: 1 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 + offset: 25 + limit: 90 + count: 94 + TopicsToResetOffset: + example: + partitions: + - 0 + - 0 + topic: topic + properties: + topic: + nullable: false + type: string + partitions: + items: + format: int32 + type: integer + type: array + required: + - topic + type: object + AclBinding_allOf: + description: Represents a binding between a resource pattern and an access control + entry + properties: + resourceType: + $ref: '#/components/schemas/AclResourceType' + resourceName: + nullable: false + pattern: \S + type: string + patternType: + $ref: '#/components/schemas/AclPatternType' + principal: + description: Identifies the user or service account to which an ACL entry + is bound. The literal prefix value of `User:` is required. May be used + to specify all users with value `User:*`. + example: User:user-123-abc + nullable: false + pattern: \S + type: string + operation: + $ref: '#/components/schemas/AclOperation' + permission: + $ref: '#/components/schemas/AclPermissionType' + required: + - operation + - patternType + - permission + - principal + - resourceName + - resourceType + type: object + AclBindingListPage_allOf: + description: A page of ACL binding entries + properties: + items: + items: + $ref: '#/components/schemas/AclBinding' + type: array + type: object + ConsumerGroup_allOf: + description: A group of Kafka consumers + properties: + groupId: + description: Unique identifier for the consumer group + nullable: false + pattern: \S + type: string + state: + $ref: '#/components/schemas/ConsumerGroupState' + consumers: + description: The list of consumers associated with this consumer group + items: + $ref: '#/components/schemas/Consumer' + nullable: false + type: array + metrics: + $ref: '#/components/schemas/ConsumerGroupMetrics' + required: + - consumers + - groupId + type: object + ConsumerGroupList_allOf: + description: A list of consumer groups + properties: + items: + items: + $ref: '#/components/schemas/ConsumerGroup' + type: array + type: object + ConsumerGroupResetOffsetResult_allOf: + properties: + items: + items: + $ref: '#/components/schemas/ConsumerGroupResetOffsetResultItem' + type: array + type: object + Error_allOf: + description: General error response + properties: + reason: + description: General reason for the error. Does not change between specific + occurrences. + type: string + detail: + description: Detail specific to an error occurrence. May be different depending + on the condition(s) that trigger the error. + type: string + code: + format: int32 + type: integer + error_message: + deprecated: true + type: string + class: + deprecated: true + type: string + type: object + ErrorList_allOf: + description: List of errors + properties: + items: + items: + $ref: '#/components/schemas/Error' + type: array + total: + description: Total number of errors returned in this request + format: int32 + type: integer + type: object + ListDeprecated_allOf: + properties: + offset: + deprecated: true + description: Offset of the first record returned, zero-based + format: int32 + type: integer + limit: + deprecated: true + description: Maximum number of records to return, from request + format: int32 + type: integer + count: + deprecated: true + description: Total number of entries in the full result set + format: int32 + type: integer + type: object + Record_allOf: + description: An individual record consumed from a topic or produced to a topic + properties: + partition: + description: The record's partition within the topic + format: int32 + type: integer + offset: + description: The record's offset within the topic partition + format: int64 + readOnly: true + type: integer + timestamp: + description: Timestamp associated with the record. The type is indicated + by `timestampType`. When producing a record, this value will be used as + the record's `CREATE_TIME`. + format: date-time + type: string + timestampType: + description: Type of timestamp associated with the record + readOnly: true + type: string + headers: + additionalProperties: + type: string + description: Record headers, key/value pairs + type: object + key: + description: Record key + type: string + value: + description: Record value + nullable: false + type: string + required: + - value + type: object + RecordList_allOf: + description: A page of records consumed from a topic + properties: + items: + items: + $ref: '#/components/schemas/Record' + type: array + total: + description: Total number of records returned in this request. This value + does not indicate the total number of records in the topic. + format: int32 + type: integer + size: + description: Not used + format: int32 + type: integer + page: + description: Not used + format: int32 + type: integer + type: object + Topic_allOf: + description: Kafka Topic (A feed where records are stored and published) + properties: + name: + description: The name of the topic. + type: string + isInternal: + type: boolean + partitions: + description: Partitions for this topic. + items: + $ref: '#/components/schemas/Partition' + type: array + config: + description: Topic configuration entry. + items: + $ref: '#/components/schemas/ConfigEntry' + type: array + type: object + TopicsList_allOf: + description: A list of topics. + properties: + items: + items: + $ref: '#/components/schemas/Topic' + type: array + type: object + securitySchemes: + Bearer: + bearerFormat: JWT + description: JWT used with HTTP Bearer authentication + scheme: bearer + type: http + OAuth2: + description: Client credentials used to obtain an OAuth 2.0 access token + flows: + clientCredentials: + scopes: {} + tokenUrl: /token + type: oauth2 diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api_acls.go b/app-services-sdk-go/kafkainstance/apiv1/client/api_acls.go new file mode 100644 index 00000000..4d6a9bc9 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api_acls.go @@ -0,0 +1,788 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type AclsApi interface { + + /* + * CreateAcl Create ACL binding + * Creates a new ACL binding for a Kafka instance. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateAclRequest + */ + CreateAcl(ctx _context.Context) ApiCreateAclRequest + + /* + * CreateAclExecute executes the request + */ + CreateAclExecute(r ApiCreateAclRequest) (*_nethttp.Response, error) + + /* + * DeleteAcls Delete ACL bindings + * Deletes ACL bindings that match the query parameters. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteAclsRequest + */ + DeleteAcls(ctx _context.Context) ApiDeleteAclsRequest + + /* + * DeleteAclsExecute executes the request + * @return AclBindingListPage + */ + DeleteAclsExecute(r ApiDeleteAclsRequest) (AclBindingListPage, *_nethttp.Response, error) + + /* + * GetAclResourceOperations Retrieve allowed ACL resources and operations + * Retrieve the resources and associated operations that may have ACLs configured. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetAclResourceOperationsRequest + */ + GetAclResourceOperations(ctx _context.Context) ApiGetAclResourceOperationsRequest + + /* + * GetAclResourceOperationsExecute executes the request + * @return map[string][]string + */ + GetAclResourceOperationsExecute(r ApiGetAclResourceOperationsRequest) (map[string][]string, *_nethttp.Response, error) + + /* + * GetAcls List ACL bindings + * Returns a list of all of the available ACL bindings, or the list of bindings that meet the user's URL query parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetAclsRequest + */ + GetAcls(ctx _context.Context) ApiGetAclsRequest + + /* + * GetAclsExecute executes the request + * @return AclBindingListPage + */ + GetAclsExecute(r ApiGetAclsRequest) (AclBindingListPage, *_nethttp.Response, error) +} + +// AclsApiService AclsApi service +type AclsApiService service + +type ApiCreateAclRequest struct { + ctx _context.Context + ApiService AclsApi + aclBinding *AclBinding +} + +func (r ApiCreateAclRequest) AclBinding(aclBinding AclBinding) ApiCreateAclRequest { + r.aclBinding = &aclBinding + return r +} + +func (r ApiCreateAclRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateAclExecute(r) +} + +/* + * CreateAcl Create ACL binding + * Creates a new ACL binding for a Kafka instance. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateAclRequest + */ +func (a *AclsApiService) CreateAcl(ctx _context.Context) ApiCreateAclRequest { + return ApiCreateAclRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *AclsApiService) CreateAclExecute(r ApiCreateAclRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AclsApiService.CreateAcl") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/acls" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.aclBinding == nil { + return nil, reportError("aclBinding is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aclBinding + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteAclsRequest struct { + ctx _context.Context + ApiService AclsApi + resourceType *AclResourceTypeFilter + resourceName *string + patternType *AclPatternTypeFilter + principal *string + operation *AclOperationFilter + permission *AclPermissionTypeFilter +} + +func (r ApiDeleteAclsRequest) ResourceType(resourceType AclResourceTypeFilter) ApiDeleteAclsRequest { + r.resourceType = &resourceType + return r +} +func (r ApiDeleteAclsRequest) ResourceName(resourceName string) ApiDeleteAclsRequest { + r.resourceName = &resourceName + return r +} +func (r ApiDeleteAclsRequest) PatternType(patternType AclPatternTypeFilter) ApiDeleteAclsRequest { + r.patternType = &patternType + return r +} +func (r ApiDeleteAclsRequest) Principal(principal string) ApiDeleteAclsRequest { + r.principal = &principal + return r +} +func (r ApiDeleteAclsRequest) Operation(operation AclOperationFilter) ApiDeleteAclsRequest { + r.operation = &operation + return r +} +func (r ApiDeleteAclsRequest) Permission(permission AclPermissionTypeFilter) ApiDeleteAclsRequest { + r.permission = &permission + return r +} + +func (r ApiDeleteAclsRequest) Execute() (AclBindingListPage, *_nethttp.Response, error) { + return r.ApiService.DeleteAclsExecute(r) +} + +/* + * DeleteAcls Delete ACL bindings + * Deletes ACL bindings that match the query parameters. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteAclsRequest + */ +func (a *AclsApiService) DeleteAcls(ctx _context.Context) ApiDeleteAclsRequest { + return ApiDeleteAclsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AclBindingListPage + */ +func (a *AclsApiService) DeleteAclsExecute(r ApiDeleteAclsRequest) (AclBindingListPage, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AclBindingListPage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AclsApiService.DeleteAcls") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/acls" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.resourceType != nil { + localVarQueryParams.Add("resourceType", parameterToString(*r.resourceType, "")) + } + if r.resourceName != nil { + localVarQueryParams.Add("resourceName", parameterToString(*r.resourceName, "")) + } + if r.patternType != nil { + localVarQueryParams.Add("patternType", parameterToString(*r.patternType, "")) + } + if r.principal != nil { + localVarQueryParams.Add("principal", parameterToString(*r.principal, "")) + } + if r.operation != nil { + localVarQueryParams.Add("operation", parameterToString(*r.operation, "")) + } + if r.permission != nil { + localVarQueryParams.Add("permission", parameterToString(*r.permission, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAclResourceOperationsRequest struct { + ctx _context.Context + ApiService AclsApi +} + + +func (r ApiGetAclResourceOperationsRequest) Execute() (map[string][]string, *_nethttp.Response, error) { + return r.ApiService.GetAclResourceOperationsExecute(r) +} + +/* + * GetAclResourceOperations Retrieve allowed ACL resources and operations + * Retrieve the resources and associated operations that may have ACLs configured. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetAclResourceOperationsRequest + */ +func (a *AclsApiService) GetAclResourceOperations(ctx _context.Context) ApiGetAclResourceOperationsRequest { + return ApiGetAclResourceOperationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return map[string][]string + */ +func (a *AclsApiService) GetAclResourceOperationsExecute(r ApiGetAclResourceOperationsRequest) (map[string][]string, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string][]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AclsApiService.GetAclResourceOperations") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/acls/resource-operations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAclsRequest struct { + ctx _context.Context + ApiService AclsApi + resourceType *AclResourceTypeFilter + resourceName *string + patternType *AclPatternTypeFilter + principal *string + operation *AclOperationFilter + permission *AclPermissionTypeFilter + page *int32 + size *int32 + order *SortDirection + orderKey *AclBindingOrderKey +} + +func (r ApiGetAclsRequest) ResourceType(resourceType AclResourceTypeFilter) ApiGetAclsRequest { + r.resourceType = &resourceType + return r +} +func (r ApiGetAclsRequest) ResourceName(resourceName string) ApiGetAclsRequest { + r.resourceName = &resourceName + return r +} +func (r ApiGetAclsRequest) PatternType(patternType AclPatternTypeFilter) ApiGetAclsRequest { + r.patternType = &patternType + return r +} +func (r ApiGetAclsRequest) Principal(principal string) ApiGetAclsRequest { + r.principal = &principal + return r +} +func (r ApiGetAclsRequest) Operation(operation AclOperationFilter) ApiGetAclsRequest { + r.operation = &operation + return r +} +func (r ApiGetAclsRequest) Permission(permission AclPermissionTypeFilter) ApiGetAclsRequest { + r.permission = &permission + return r +} +func (r ApiGetAclsRequest) Page(page int32) ApiGetAclsRequest { + r.page = &page + return r +} +func (r ApiGetAclsRequest) Size(size int32) ApiGetAclsRequest { + r.size = &size + return r +} +func (r ApiGetAclsRequest) Order(order SortDirection) ApiGetAclsRequest { + r.order = &order + return r +} +func (r ApiGetAclsRequest) OrderKey(orderKey AclBindingOrderKey) ApiGetAclsRequest { + r.orderKey = &orderKey + return r +} + +func (r ApiGetAclsRequest) Execute() (AclBindingListPage, *_nethttp.Response, error) { + return r.ApiService.GetAclsExecute(r) +} + +/* + * GetAcls List ACL bindings + * Returns a list of all of the available ACL bindings, or the list of bindings that meet the user's URL query parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetAclsRequest + */ +func (a *AclsApiService) GetAcls(ctx _context.Context) ApiGetAclsRequest { + return ApiGetAclsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return AclBindingListPage + */ +func (a *AclsApiService) GetAclsExecute(r ApiGetAclsRequest) (AclBindingListPage, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AclBindingListPage + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AclsApiService.GetAcls") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/acls" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.resourceType != nil { + localVarQueryParams.Add("resourceType", parameterToString(*r.resourceType, "")) + } + if r.resourceName != nil { + localVarQueryParams.Add("resourceName", parameterToString(*r.resourceName, "")) + } + if r.patternType != nil { + localVarQueryParams.Add("patternType", parameterToString(*r.patternType, "")) + } + if r.principal != nil { + localVarQueryParams.Add("principal", parameterToString(*r.principal, "")) + } + if r.operation != nil { + localVarQueryParams.Add("operation", parameterToString(*r.operation, "")) + } + if r.permission != nil { + localVarQueryParams.Add("permission", parameterToString(*r.permission, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderKey != nil { + localVarQueryParams.Add("orderKey", parameterToString(*r.orderKey, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api_errors.go b/app-services-sdk-go/kafkainstance/apiv1/client/api_errors.go new file mode 100644 index 00000000..fbc021b0 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api_errors.go @@ -0,0 +1,292 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ErrorsApi interface { + + /* + * GetError Get an error by its unique ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param errorId Error identifier + * @return ApiGetErrorRequest + */ + GetError(ctx _context.Context, errorId string) ApiGetErrorRequest + + /* + * GetErrorExecute executes the request + * @return Error + */ + GetErrorExecute(r ApiGetErrorRequest) (Error, *_nethttp.Response, error) + + /* + * GetErrors Get list of errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ + GetErrors(ctx _context.Context) ApiGetErrorsRequest + + /* + * GetErrorsExecute executes the request + * @return ErrorList + */ + GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) +} + +// ErrorsApiService ErrorsApi service +type ErrorsApiService service + +type ApiGetErrorRequest struct { + ctx _context.Context + ApiService ErrorsApi + errorId string +} + + +func (r ApiGetErrorRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.GetErrorExecute(r) +} + +/* + * GetError Get an error by its unique ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param errorId Error identifier + * @return ApiGetErrorRequest + */ +func (a *ErrorsApiService) GetError(ctx _context.Context, errorId string) ApiGetErrorRequest { + return ApiGetErrorRequest{ + ApiService: a, + ctx: ctx, + errorId: errorId, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *ErrorsApiService) GetErrorExecute(r ApiGetErrorRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetError") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/errors/{errorId}" + localVarPath = strings.Replace(localVarPath, "{"+"errorId"+"}", _neturl.PathEscape(parameterToString(r.errorId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetErrorsRequest struct { + ctx _context.Context + ApiService ErrorsApi +} + + +func (r ApiGetErrorsRequest) Execute() (ErrorList, *_nethttp.Response, error) { + return r.ApiService.GetErrorsExecute(r) +} + +/* + * GetErrors Get list of errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ +func (a *ErrorsApiService) GetErrors(ctx _context.Context) ApiGetErrorsRequest { + return ApiGetErrorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrorList + */ +func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ErrorList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api_groups.go b/app-services-sdk-go/kafkainstance/apiv1/client/api_groups.go new file mode 100644 index 00000000..913b4dfb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api_groups.go @@ -0,0 +1,809 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type GroupsApi interface { + + /* + * DeleteConsumerGroupById Delete a consumer group. + * Delete a consumer group, along with its consumers. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiDeleteConsumerGroupByIdRequest + */ + DeleteConsumerGroupById(ctx _context.Context, consumerGroupId string) ApiDeleteConsumerGroupByIdRequest + + /* + * DeleteConsumerGroupByIdExecute executes the request + */ + DeleteConsumerGroupByIdExecute(r ApiDeleteConsumerGroupByIdRequest) (*_nethttp.Response, error) + + /* + * GetConsumerGroupById Get a single consumer group by its unique ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiGetConsumerGroupByIdRequest + */ + GetConsumerGroupById(ctx _context.Context, consumerGroupId string) ApiGetConsumerGroupByIdRequest + + /* + * GetConsumerGroupByIdExecute executes the request + * @return ConsumerGroup + */ + GetConsumerGroupByIdExecute(r ApiGetConsumerGroupByIdRequest) (ConsumerGroup, *_nethttp.Response, error) + + /* + * GetConsumerGroups List of consumer groups in the Kafka instance. + * Returns a list of all consumer groups for a particular Kafka instance. The consumer groups returned are limited to those records the requestor is authorized to view. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConsumerGroupsRequest + */ + GetConsumerGroups(ctx _context.Context) ApiGetConsumerGroupsRequest + + /* + * GetConsumerGroupsExecute executes the request + * @return ConsumerGroupList + */ + GetConsumerGroupsExecute(r ApiGetConsumerGroupsRequest) (ConsumerGroupList, *_nethttp.Response, error) + + /* + * ResetConsumerGroupOffset Reset the offset for a consumer group. + * Reset the offset for a particular consumer group. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiResetConsumerGroupOffsetRequest + */ + ResetConsumerGroupOffset(ctx _context.Context, consumerGroupId string) ApiResetConsumerGroupOffsetRequest + + /* + * ResetConsumerGroupOffsetExecute executes the request + * @return ConsumerGroupResetOffsetResult + */ + ResetConsumerGroupOffsetExecute(r ApiResetConsumerGroupOffsetRequest) (ConsumerGroupResetOffsetResult, *_nethttp.Response, error) +} + +// GroupsApiService GroupsApi service +type GroupsApiService service + +type ApiDeleteConsumerGroupByIdRequest struct { + ctx _context.Context + ApiService GroupsApi + consumerGroupId string +} + + +func (r ApiDeleteConsumerGroupByIdRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteConsumerGroupByIdExecute(r) +} + +/* + * DeleteConsumerGroupById Delete a consumer group. + * Delete a consumer group, along with its consumers. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiDeleteConsumerGroupByIdRequest + */ +func (a *GroupsApiService) DeleteConsumerGroupById(ctx _context.Context, consumerGroupId string) ApiDeleteConsumerGroupByIdRequest { + return ApiDeleteConsumerGroupByIdRequest{ + ApiService: a, + ctx: ctx, + consumerGroupId: consumerGroupId, + } +} + +/* + * Execute executes the request + */ +func (a *GroupsApiService) DeleteConsumerGroupByIdExecute(r ApiDeleteConsumerGroupByIdRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.DeleteConsumerGroupById") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/consumer-groups/{consumerGroupId}" + localVarPath = strings.Replace(localVarPath, "{"+"consumerGroupId"+"}", _neturl.PathEscape(parameterToString(r.consumerGroupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 423 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetConsumerGroupByIdRequest struct { + ctx _context.Context + ApiService GroupsApi + consumerGroupId string + order *SortDirection + orderKey *ConsumerGroupDescriptionOrderKey + partitionFilter *int32 + topic *string +} + +func (r ApiGetConsumerGroupByIdRequest) Order(order SortDirection) ApiGetConsumerGroupByIdRequest { + r.order = &order + return r +} +func (r ApiGetConsumerGroupByIdRequest) OrderKey(orderKey ConsumerGroupDescriptionOrderKey) ApiGetConsumerGroupByIdRequest { + r.orderKey = &orderKey + return r +} +func (r ApiGetConsumerGroupByIdRequest) PartitionFilter(partitionFilter int32) ApiGetConsumerGroupByIdRequest { + r.partitionFilter = &partitionFilter + return r +} +func (r ApiGetConsumerGroupByIdRequest) Topic(topic string) ApiGetConsumerGroupByIdRequest { + r.topic = &topic + return r +} + +func (r ApiGetConsumerGroupByIdRequest) Execute() (ConsumerGroup, *_nethttp.Response, error) { + return r.ApiService.GetConsumerGroupByIdExecute(r) +} + +/* + * GetConsumerGroupById Get a single consumer group by its unique ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiGetConsumerGroupByIdRequest + */ +func (a *GroupsApiService) GetConsumerGroupById(ctx _context.Context, consumerGroupId string) ApiGetConsumerGroupByIdRequest { + return ApiGetConsumerGroupByIdRequest{ + ApiService: a, + ctx: ctx, + consumerGroupId: consumerGroupId, + } +} + +/* + * Execute executes the request + * @return ConsumerGroup + */ +func (a *GroupsApiService) GetConsumerGroupByIdExecute(r ApiGetConsumerGroupByIdRequest) (ConsumerGroup, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConsumerGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.GetConsumerGroupById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/consumer-groups/{consumerGroupId}" + localVarPath = strings.Replace(localVarPath, "{"+"consumerGroupId"+"}", _neturl.PathEscape(parameterToString(r.consumerGroupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderKey != nil { + localVarQueryParams.Add("orderKey", parameterToString(*r.orderKey, "")) + } + if r.partitionFilter != nil { + localVarQueryParams.Add("partitionFilter", parameterToString(*r.partitionFilter, "")) + } + if r.topic != nil { + localVarQueryParams.Add("topic", parameterToString(*r.topic, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConsumerGroupsRequest struct { + ctx _context.Context + ApiService GroupsApi + offset *int32 + limit *int32 + size *int32 + page *int32 + topic *string + groupIdFilter *string + order *SortDirection + orderKey *ConsumerGroupOrderKey +} + +func (r ApiGetConsumerGroupsRequest) Offset(offset int32) ApiGetConsumerGroupsRequest { + r.offset = &offset + return r +} +func (r ApiGetConsumerGroupsRequest) Limit(limit int32) ApiGetConsumerGroupsRequest { + r.limit = &limit + return r +} +func (r ApiGetConsumerGroupsRequest) Size(size int32) ApiGetConsumerGroupsRequest { + r.size = &size + return r +} +func (r ApiGetConsumerGroupsRequest) Page(page int32) ApiGetConsumerGroupsRequest { + r.page = &page + return r +} +func (r ApiGetConsumerGroupsRequest) Topic(topic string) ApiGetConsumerGroupsRequest { + r.topic = &topic + return r +} +func (r ApiGetConsumerGroupsRequest) GroupIdFilter(groupIdFilter string) ApiGetConsumerGroupsRequest { + r.groupIdFilter = &groupIdFilter + return r +} +func (r ApiGetConsumerGroupsRequest) Order(order SortDirection) ApiGetConsumerGroupsRequest { + r.order = &order + return r +} +func (r ApiGetConsumerGroupsRequest) OrderKey(orderKey ConsumerGroupOrderKey) ApiGetConsumerGroupsRequest { + r.orderKey = &orderKey + return r +} + +func (r ApiGetConsumerGroupsRequest) Execute() (ConsumerGroupList, *_nethttp.Response, error) { + return r.ApiService.GetConsumerGroupsExecute(r) +} + +/* + * GetConsumerGroups List of consumer groups in the Kafka instance. + * Returns a list of all consumer groups for a particular Kafka instance. The consumer groups returned are limited to those records the requestor is authorized to view. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetConsumerGroupsRequest + */ +func (a *GroupsApiService) GetConsumerGroups(ctx _context.Context) ApiGetConsumerGroupsRequest { + return ApiGetConsumerGroupsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ConsumerGroupList + */ +func (a *GroupsApiService) GetConsumerGroupsExecute(r ApiGetConsumerGroupsRequest) (ConsumerGroupList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConsumerGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.GetConsumerGroups") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/consumer-groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.topic != nil { + localVarQueryParams.Add("topic", parameterToString(*r.topic, "")) + } + if r.groupIdFilter != nil { + localVarQueryParams.Add("group-id-filter", parameterToString(*r.groupIdFilter, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderKey != nil { + localVarQueryParams.Add("orderKey", parameterToString(*r.orderKey, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResetConsumerGroupOffsetRequest struct { + ctx _context.Context + ApiService GroupsApi + consumerGroupId string + consumerGroupResetOffsetParameters *ConsumerGroupResetOffsetParameters +} + +func (r ApiResetConsumerGroupOffsetRequest) ConsumerGroupResetOffsetParameters(consumerGroupResetOffsetParameters ConsumerGroupResetOffsetParameters) ApiResetConsumerGroupOffsetRequest { + r.consumerGroupResetOffsetParameters = &consumerGroupResetOffsetParameters + return r +} + +func (r ApiResetConsumerGroupOffsetRequest) Execute() (ConsumerGroupResetOffsetResult, *_nethttp.Response, error) { + return r.ApiService.ResetConsumerGroupOffsetExecute(r) +} + +/* + * ResetConsumerGroupOffset Reset the offset for a consumer group. + * Reset the offset for a particular consumer group. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param consumerGroupId Consumer group identifier + * @return ApiResetConsumerGroupOffsetRequest + */ +func (a *GroupsApiService) ResetConsumerGroupOffset(ctx _context.Context, consumerGroupId string) ApiResetConsumerGroupOffsetRequest { + return ApiResetConsumerGroupOffsetRequest{ + ApiService: a, + ctx: ctx, + consumerGroupId: consumerGroupId, + } +} + +/* + * Execute executes the request + * @return ConsumerGroupResetOffsetResult + */ +func (a *GroupsApiService) ResetConsumerGroupOffsetExecute(r ApiResetConsumerGroupOffsetRequest) (ConsumerGroupResetOffsetResult, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConsumerGroupResetOffsetResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsApiService.ResetConsumerGroupOffset") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/consumer-groups/{consumerGroupId}/reset-offset" + localVarPath = strings.Replace(localVarPath, "{"+"consumerGroupId"+"}", _neturl.PathEscape(parameterToString(r.consumerGroupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.consumerGroupResetOffsetParameters == nil { + return localVarReturnValue, nil, reportError("consumerGroupResetOffsetParameters is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.consumerGroupResetOffsetParameters + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api_records.go b/app-services-sdk-go/kafkainstance/apiv1/client/api_records.go new file mode 100644 index 00000000..3b0ad868 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api_records.go @@ -0,0 +1,431 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type RecordsApi interface { + + /* + * ConsumeRecords Consume records from a topic + * Consume a limited number of records from a topic, optionally specifying a partition and an absolute offset or timestamp as the starting point for message retrieval. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Topic name + * @return ApiConsumeRecordsRequest + */ + ConsumeRecords(ctx _context.Context, topicName string) ApiConsumeRecordsRequest + + /* + * ConsumeRecordsExecute executes the request + * @return RecordList + */ + ConsumeRecordsExecute(r ApiConsumeRecordsRequest) (RecordList, *_nethttp.Response, error) + + /* + * ProduceRecord Send a record to a topic + * Produce (write) a single record to a topic. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Topic name + * @return ApiProduceRecordRequest + */ + ProduceRecord(ctx _context.Context, topicName string) ApiProduceRecordRequest + + /* + * ProduceRecordExecute executes the request + * @return Record + */ + ProduceRecordExecute(r ApiProduceRecordRequest) (Record, *_nethttp.Response, error) +} + +// RecordsApiService RecordsApi service +type RecordsApiService service + +type ApiConsumeRecordsRequest struct { + ctx _context.Context + ApiService RecordsApi + topicName string + include *[]RecordIncludedProperty + limit *int32 + maxValueLength *int32 + offset *int32 + partition *int32 + timestamp *interface{} +} + +func (r ApiConsumeRecordsRequest) Include(include []RecordIncludedProperty) ApiConsumeRecordsRequest { + r.include = &include + return r +} +func (r ApiConsumeRecordsRequest) Limit(limit int32) ApiConsumeRecordsRequest { + r.limit = &limit + return r +} +func (r ApiConsumeRecordsRequest) MaxValueLength(maxValueLength int32) ApiConsumeRecordsRequest { + r.maxValueLength = &maxValueLength + return r +} +func (r ApiConsumeRecordsRequest) Offset(offset int32) ApiConsumeRecordsRequest { + r.offset = &offset + return r +} +func (r ApiConsumeRecordsRequest) Partition(partition int32) ApiConsumeRecordsRequest { + r.partition = &partition + return r +} +func (r ApiConsumeRecordsRequest) Timestamp(timestamp interface{}) ApiConsumeRecordsRequest { + r.timestamp = ×tamp + return r +} + +func (r ApiConsumeRecordsRequest) Execute() (RecordList, *_nethttp.Response, error) { + return r.ApiService.ConsumeRecordsExecute(r) +} + +/* + * ConsumeRecords Consume records from a topic + * Consume a limited number of records from a topic, optionally specifying a partition and an absolute offset or timestamp as the starting point for message retrieval. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Topic name + * @return ApiConsumeRecordsRequest + */ +func (a *RecordsApiService) ConsumeRecords(ctx _context.Context, topicName string) ApiConsumeRecordsRequest { + return ApiConsumeRecordsRequest{ + ApiService: a, + ctx: ctx, + topicName: topicName, + } +} + +/* + * Execute executes the request + * @return RecordList + */ +func (a *RecordsApiService) ConsumeRecordsExecute(r ApiConsumeRecordsRequest) (RecordList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RecordList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecordsApiService.ConsumeRecords") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics/{topicName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"topicName"+"}", _neturl.PathEscape(parameterToString(r.topicName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "csv")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.maxValueLength != nil { + localVarQueryParams.Add("maxValueLength", parameterToString(*r.maxValueLength, "")) + } + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.partition != nil { + localVarQueryParams.Add("partition", parameterToString(*r.partition, "")) + } + if r.timestamp != nil { + localVarQueryParams.Add("timestamp", parameterToString(*r.timestamp, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiProduceRecordRequest struct { + ctx _context.Context + ApiService RecordsApi + topicName string + record *Record +} + +func (r ApiProduceRecordRequest) Record(record Record) ApiProduceRecordRequest { + r.record = &record + return r +} + +func (r ApiProduceRecordRequest) Execute() (Record, *_nethttp.Response, error) { + return r.ApiService.ProduceRecordExecute(r) +} + +/* + * ProduceRecord Send a record to a topic + * Produce (write) a single record to a topic. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Topic name + * @return ApiProduceRecordRequest + */ +func (a *RecordsApiService) ProduceRecord(ctx _context.Context, topicName string) ApiProduceRecordRequest { + return ApiProduceRecordRequest{ + ApiService: a, + ctx: ctx, + topicName: topicName, + } +} + +/* + * Execute executes the request + * @return Record + */ +func (a *RecordsApiService) ProduceRecordExecute(r ApiProduceRecordRequest) (Record, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Record + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RecordsApiService.ProduceRecord") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics/{topicName}/records" + localVarPath = strings.Replace(localVarPath, "{"+"topicName"+"}", _neturl.PathEscape(parameterToString(r.topicName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.record == nil { + return localVarReturnValue, nil, reportError("record is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.record + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/api_topics.go b/app-services-sdk-go/kafkainstance/apiv1/client/api_topics.go new file mode 100644 index 00000000..4657e602 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/api_topics.go @@ -0,0 +1,939 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type TopicsApi interface { + + /* + * CreateTopic Creates a new topic + * Creates a new topic for Kafka. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateTopicRequest + */ + CreateTopic(ctx _context.Context) ApiCreateTopicRequest + + /* + * CreateTopicExecute executes the request + * @return Topic + */ + CreateTopicExecute(r ApiCreateTopicRequest) (Topic, *_nethttp.Response, error) + + /* + * DeleteTopic Deletes a topic + * Deletes the topic with the specified name. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to delete + * @return ApiDeleteTopicRequest + */ + DeleteTopic(ctx _context.Context, topicName string) ApiDeleteTopicRequest + + /* + * DeleteTopicExecute executes the request + */ + DeleteTopicExecute(r ApiDeleteTopicRequest) (*_nethttp.Response, error) + + /* + * GetTopic Retrieves a single topic + * Topic + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to describe + * @return ApiGetTopicRequest + */ + GetTopic(ctx _context.Context, topicName string) ApiGetTopicRequest + + /* + * GetTopicExecute executes the request + * @return Topic + */ + GetTopicExecute(r ApiGetTopicRequest) (Topic, *_nethttp.Response, error) + + /* + * GetTopics Retrieves a list of topics + * Returns a list of all of the available topics, or the list of topics that meet the request query parameters. The topics returned are limited to those records the requestor is authorized to view. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetTopicsRequest + */ + GetTopics(ctx _context.Context) ApiGetTopicsRequest + + /* + * GetTopicsExecute executes the request + * @return TopicsList + */ + GetTopicsExecute(r ApiGetTopicsRequest) (TopicsList, *_nethttp.Response, error) + + /* + * UpdateTopic Updates a single topic + * Update the configuration settings for a topic. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to update + * @return ApiUpdateTopicRequest + */ + UpdateTopic(ctx _context.Context, topicName string) ApiUpdateTopicRequest + + /* + * UpdateTopicExecute executes the request + * @return Topic + */ + UpdateTopicExecute(r ApiUpdateTopicRequest) (Topic, *_nethttp.Response, error) +} + +// TopicsApiService TopicsApi service +type TopicsApiService service + +type ApiCreateTopicRequest struct { + ctx _context.Context + ApiService TopicsApi + newTopicInput *NewTopicInput +} + +func (r ApiCreateTopicRequest) NewTopicInput(newTopicInput NewTopicInput) ApiCreateTopicRequest { + r.newTopicInput = &newTopicInput + return r +} + +func (r ApiCreateTopicRequest) Execute() (Topic, *_nethttp.Response, error) { + return r.ApiService.CreateTopicExecute(r) +} + +/* + * CreateTopic Creates a new topic + * Creates a new topic for Kafka. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateTopicRequest + */ +func (a *TopicsApiService) CreateTopic(ctx _context.Context) ApiCreateTopicRequest { + return ApiCreateTopicRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Topic + */ +func (a *TopicsApiService) CreateTopicExecute(r ApiCreateTopicRequest) (Topic, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Topic + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TopicsApiService.CreateTopic") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.newTopicInput == nil { + return localVarReturnValue, nil, reportError("newTopicInput is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.newTopicInput + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteTopicRequest struct { + ctx _context.Context + ApiService TopicsApi + topicName string +} + + +func (r ApiDeleteTopicRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteTopicExecute(r) +} + +/* + * DeleteTopic Deletes a topic + * Deletes the topic with the specified name. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to delete + * @return ApiDeleteTopicRequest + */ +func (a *TopicsApiService) DeleteTopic(ctx _context.Context, topicName string) ApiDeleteTopicRequest { + return ApiDeleteTopicRequest{ + ApiService: a, + ctx: ctx, + topicName: topicName, + } +} + +/* + * Execute executes the request + */ +func (a *TopicsApiService) DeleteTopicExecute(r ApiDeleteTopicRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TopicsApiService.DeleteTopic") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics/{topicName}" + localVarPath = strings.Replace(localVarPath, "{"+"topicName"+"}", _neturl.PathEscape(parameterToString(r.topicName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetTopicRequest struct { + ctx _context.Context + ApiService TopicsApi + topicName string +} + + +func (r ApiGetTopicRequest) Execute() (Topic, *_nethttp.Response, error) { + return r.ApiService.GetTopicExecute(r) +} + +/* + * GetTopic Retrieves a single topic + * Topic + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to describe + * @return ApiGetTopicRequest + */ +func (a *TopicsApiService) GetTopic(ctx _context.Context, topicName string) ApiGetTopicRequest { + return ApiGetTopicRequest{ + ApiService: a, + ctx: ctx, + topicName: topicName, + } +} + +/* + * Execute executes the request + * @return Topic + */ +func (a *TopicsApiService) GetTopicExecute(r ApiGetTopicRequest) (Topic, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Topic + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TopicsApiService.GetTopic") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics/{topicName}" + localVarPath = strings.Replace(localVarPath, "{"+"topicName"+"}", _neturl.PathEscape(parameterToString(r.topicName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTopicsRequest struct { + ctx _context.Context + ApiService TopicsApi + offset *int32 + limit *int32 + size *int32 + filter *string + page *int32 + order *SortDirection + orderKey *TopicOrderKey +} + +func (r ApiGetTopicsRequest) Offset(offset int32) ApiGetTopicsRequest { + r.offset = &offset + return r +} +func (r ApiGetTopicsRequest) Limit(limit int32) ApiGetTopicsRequest { + r.limit = &limit + return r +} +func (r ApiGetTopicsRequest) Size(size int32) ApiGetTopicsRequest { + r.size = &size + return r +} +func (r ApiGetTopicsRequest) Filter(filter string) ApiGetTopicsRequest { + r.filter = &filter + return r +} +func (r ApiGetTopicsRequest) Page(page int32) ApiGetTopicsRequest { + r.page = &page + return r +} +func (r ApiGetTopicsRequest) Order(order SortDirection) ApiGetTopicsRequest { + r.order = &order + return r +} +func (r ApiGetTopicsRequest) OrderKey(orderKey TopicOrderKey) ApiGetTopicsRequest { + r.orderKey = &orderKey + return r +} + +func (r ApiGetTopicsRequest) Execute() (TopicsList, *_nethttp.Response, error) { + return r.ApiService.GetTopicsExecute(r) +} + +/* + * GetTopics Retrieves a list of topics + * Returns a list of all of the available topics, or the list of topics that meet the request query parameters. The topics returned are limited to those records the requestor is authorized to view. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetTopicsRequest + */ +func (a *TopicsApiService) GetTopics(ctx _context.Context) ApiGetTopicsRequest { + return ApiGetTopicsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return TopicsList + */ +func (a *TopicsApiService) GetTopicsExecute(r ApiGetTopicsRequest) (TopicsList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue TopicsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TopicsApiService.GetTopics") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.filter != nil { + localVarQueryParams.Add("filter", parameterToString(*r.filter, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderKey != nil { + localVarQueryParams.Add("orderKey", parameterToString(*r.orderKey, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateTopicRequest struct { + ctx _context.Context + ApiService TopicsApi + topicName string + topicSettings *TopicSettings +} + +func (r ApiUpdateTopicRequest) TopicSettings(topicSettings TopicSettings) ApiUpdateTopicRequest { + r.topicSettings = &topicSettings + return r +} + +func (r ApiUpdateTopicRequest) Execute() (Topic, *_nethttp.Response, error) { + return r.ApiService.UpdateTopicExecute(r) +} + +/* + * UpdateTopic Updates a single topic + * Update the configuration settings for a topic. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param topicName Name of the topic to update + * @return ApiUpdateTopicRequest + */ +func (a *TopicsApiService) UpdateTopic(ctx _context.Context, topicName string) ApiUpdateTopicRequest { + return ApiUpdateTopicRequest{ + ApiService: a, + ctx: ctx, + topicName: topicName, + } +} + +/* + * Execute executes the request + * @return Topic + */ +func (a *TopicsApiService) UpdateTopicExecute(r ApiUpdateTopicRequest) (Topic, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Topic + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TopicsApiService.UpdateTopic") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/topics/{topicName}" + localVarPath = strings.Replace(localVarPath, "{"+"topicName"+"}", _neturl.PathEscape(parameterToString(r.topicName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.topicSettings == nil { + return localVarReturnValue, nil, reportError("topicSettings is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.topicSettings + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/client.go b/app-services-sdk-go/kafkainstance/apiv1/client/client.go new file mode 100644 index 00000000..7e1ff51d --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/client.go @@ -0,0 +1,557 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Kafka Instance API API v0.13.0-SNAPSHOT +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AclsApi AclsApi + + ErrorsApi ErrorsApi + + GroupsApi GroupsApi + + RecordsApi RecordsApi + + TopicsApi TopicsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AclsApi = (*AclsApiService)(&c.common) + c.ErrorsApi = (*ErrorsApiService)(&c.common) + c.GroupsApi = (*GroupsApiService)(&c.common) + c.RecordsApi = (*RecordsApiService)(&c.common) + c.TopicsApi = (*TopicsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/configuration.go b/app-services-sdk-go/kafkainstance/apiv1/client/configuration.go new file mode 100644 index 00000000..d77199fb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/configuration.go @@ -0,0 +1,230 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "Kafka Admin REST API", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBinding.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBinding.md new file mode 100644 index 00000000..8bc4ee42 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBinding.md @@ -0,0 +1,234 @@ +# AclBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] +**ResourceType** | [**AclResourceType**](AclResourceType.md) | | +**ResourceName** | **string** | | +**PatternType** | [**AclPatternType**](AclPatternType.md) | | +**Principal** | **string** | Identifies the user or service account to which an ACL entry is bound. The literal prefix value of `User:` is required. May be used to specify all users with value `User:*`. | +**Operation** | [**AclOperation**](AclOperation.md) | | +**Permission** | [**AclPermissionType**](AclPermissionType.md) | | + +## Methods + +### NewAclBinding + +`func NewAclBinding(resourceType AclResourceType, resourceName string, patternType AclPatternType, principal string, operation AclOperation, permission AclPermissionType, ) *AclBinding` + +NewAclBinding instantiates a new AclBinding 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 + +### NewAclBindingWithDefaults + +`func NewAclBindingWithDefaults() *AclBinding` + +NewAclBindingWithDefaults instantiates a new AclBinding 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 *AclBinding) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AclBinding) 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 *AclBinding) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AclBinding) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *AclBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AclBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AclBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AclBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *AclBinding) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *AclBinding) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *AclBinding) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *AclBinding) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetResourceType + +`func (o *AclBinding) GetResourceType() AclResourceType` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *AclBinding) GetResourceTypeOk() (*AclResourceType, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *AclBinding) SetResourceType(v AclResourceType)` + +SetResourceType sets ResourceType field to given value. + + +### GetResourceName + +`func (o *AclBinding) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *AclBinding) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *AclBinding) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + + +### GetPatternType + +`func (o *AclBinding) GetPatternType() AclPatternType` + +GetPatternType returns the PatternType field if non-nil, zero value otherwise. + +### GetPatternTypeOk + +`func (o *AclBinding) GetPatternTypeOk() (*AclPatternType, bool)` + +GetPatternTypeOk returns a tuple with the PatternType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPatternType + +`func (o *AclBinding) SetPatternType(v AclPatternType)` + +SetPatternType sets PatternType field to given value. + + +### GetPrincipal + +`func (o *AclBinding) GetPrincipal() string` + +GetPrincipal returns the Principal field if non-nil, zero value otherwise. + +### GetPrincipalOk + +`func (o *AclBinding) GetPrincipalOk() (*string, bool)` + +GetPrincipalOk returns a tuple with the Principal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipal + +`func (o *AclBinding) SetPrincipal(v string)` + +SetPrincipal sets Principal field to given value. + + +### GetOperation + +`func (o *AclBinding) GetOperation() AclOperation` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *AclBinding) GetOperationOk() (*AclOperation, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *AclBinding) SetOperation(v AclOperation)` + +SetOperation sets Operation field to given value. + + +### GetPermission + +`func (o *AclBinding) GetPermission() AclPermissionType` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *AclBinding) GetPermissionOk() (*AclPermissionType, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *AclBinding) SetPermission(v AclPermissionType)` + +SetPermission sets Permission 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingAllOf.md new file mode 100644 index 00000000..eca4d482 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingAllOf.md @@ -0,0 +1,156 @@ +# AclBindingAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceType** | [**AclResourceType**](AclResourceType.md) | | +**ResourceName** | **string** | | +**PatternType** | [**AclPatternType**](AclPatternType.md) | | +**Principal** | **string** | Identifies the user or service account to which an ACL entry is bound. The literal prefix value of `User:` is required. May be used to specify all users with value `User:*`. | +**Operation** | [**AclOperation**](AclOperation.md) | | +**Permission** | [**AclPermissionType**](AclPermissionType.md) | | + +## Methods + +### NewAclBindingAllOf + +`func NewAclBindingAllOf(resourceType AclResourceType, resourceName string, patternType AclPatternType, principal string, operation AclOperation, permission AclPermissionType, ) *AclBindingAllOf` + +NewAclBindingAllOf instantiates a new AclBindingAllOf 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 + +### NewAclBindingAllOfWithDefaults + +`func NewAclBindingAllOfWithDefaults() *AclBindingAllOf` + +NewAclBindingAllOfWithDefaults instantiates a new AclBindingAllOf 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 + +### GetResourceType + +`func (o *AclBindingAllOf) GetResourceType() AclResourceType` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *AclBindingAllOf) GetResourceTypeOk() (*AclResourceType, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *AclBindingAllOf) SetResourceType(v AclResourceType)` + +SetResourceType sets ResourceType field to given value. + + +### GetResourceName + +`func (o *AclBindingAllOf) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *AclBindingAllOf) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *AclBindingAllOf) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + + +### GetPatternType + +`func (o *AclBindingAllOf) GetPatternType() AclPatternType` + +GetPatternType returns the PatternType field if non-nil, zero value otherwise. + +### GetPatternTypeOk + +`func (o *AclBindingAllOf) GetPatternTypeOk() (*AclPatternType, bool)` + +GetPatternTypeOk returns a tuple with the PatternType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPatternType + +`func (o *AclBindingAllOf) SetPatternType(v AclPatternType)` + +SetPatternType sets PatternType field to given value. + + +### GetPrincipal + +`func (o *AclBindingAllOf) GetPrincipal() string` + +GetPrincipal returns the Principal field if non-nil, zero value otherwise. + +### GetPrincipalOk + +`func (o *AclBindingAllOf) GetPrincipalOk() (*string, bool)` + +GetPrincipalOk returns a tuple with the Principal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipal + +`func (o *AclBindingAllOf) SetPrincipal(v string)` + +SetPrincipal sets Principal field to given value. + + +### GetOperation + +`func (o *AclBindingAllOf) GetOperation() AclOperation` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *AclBindingAllOf) GetOperationOk() (*AclOperation, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *AclBindingAllOf) SetOperation(v AclOperation)` + +SetOperation sets Operation field to given value. + + +### GetPermission + +`func (o *AclBindingAllOf) GetPermission() AclPermissionType` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *AclBindingAllOf) GetPermissionOk() (*AclPermissionType, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *AclBindingAllOf) SetPermission(v AclPermissionType)` + +SetPermission sets Permission 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPage.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPage.md new file mode 100644 index 00000000..64113995 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPage.md @@ -0,0 +1,150 @@ +# AclBindingListPage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]AclBinding**](AclBinding.md) | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] + +## Methods + +### NewAclBindingListPage + +`func NewAclBindingListPage(items []AclBinding, total int32, ) *AclBindingListPage` + +NewAclBindingListPage instantiates a new AclBindingListPage 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 + +### NewAclBindingListPageWithDefaults + +`func NewAclBindingListPageWithDefaults() *AclBindingListPage` + +NewAclBindingListPageWithDefaults instantiates a new AclBindingListPage 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 + +### GetKind + +`func (o *AclBindingListPage) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *AclBindingListPage) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *AclBindingListPage) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *AclBindingListPage) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *AclBindingListPage) GetItems() []AclBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AclBindingListPage) GetItemsOk() (*[]AclBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AclBindingListPage) SetItems(v []AclBinding)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *AclBindingListPage) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *AclBindingListPage) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *AclBindingListPage) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *AclBindingListPage) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *AclBindingListPage) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *AclBindingListPage) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *AclBindingListPage) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *AclBindingListPage) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *AclBindingListPage) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *AclBindingListPage) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *AclBindingListPage) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPageAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPageAllOf.md new file mode 100644 index 00000000..7699b47a --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingListPageAllOf.md @@ -0,0 +1,56 @@ +# AclBindingListPageAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]AclBinding**](AclBinding.md) | | [optional] + +## Methods + +### NewAclBindingListPageAllOf + +`func NewAclBindingListPageAllOf() *AclBindingListPageAllOf` + +NewAclBindingListPageAllOf instantiates a new AclBindingListPageAllOf 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 + +### NewAclBindingListPageAllOfWithDefaults + +`func NewAclBindingListPageAllOfWithDefaults() *AclBindingListPageAllOf` + +NewAclBindingListPageAllOfWithDefaults instantiates a new AclBindingListPageAllOf 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 + +### GetItems + +`func (o *AclBindingListPageAllOf) GetItems() []AclBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *AclBindingListPageAllOf) GetItemsOk() (*[]AclBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *AclBindingListPageAllOf) SetItems(v []AclBinding)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *AclBindingListPageAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingOrderKey.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingOrderKey.md new file mode 100644 index 00000000..37c46880 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclBindingOrderKey.md @@ -0,0 +1,21 @@ +# AclBindingOrderKey + +## Enum + + +* `RESOURCE_TYPE` (value: `"resourceType"`) + +* `RESOURCE_NAME` (value: `"resourceName"`) + +* `PATTERN_TYPE` (value: `"patternType"`) + +* `PRINCIPAL` (value: `"principal"`) + +* `OPERATION` (value: `"operation"`) + +* `PERMISSION` (value: `"permission"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperation.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperation.md new file mode 100644 index 00000000..48d3791b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperation.md @@ -0,0 +1,27 @@ +# AclOperation + +## Enum + + +* `ALL` (value: `"ALL"`) + +* `READ` (value: `"READ"`) + +* `WRITE` (value: `"WRITE"`) + +* `CREATE` (value: `"CREATE"`) + +* `DELETE` (value: `"DELETE"`) + +* `ALTER` (value: `"ALTER"`) + +* `DESCRIBE` (value: `"DESCRIBE"`) + +* `DESCRIBE_CONFIGS` (value: `"DESCRIBE_CONFIGS"`) + +* `ALTER_CONFIGS` (value: `"ALTER_CONFIGS"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperationFilter.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperationFilter.md new file mode 100644 index 00000000..fbbf057c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclOperationFilter.md @@ -0,0 +1,29 @@ +# AclOperationFilter + +## Enum + + +* `ALL` (value: `"ALL"`) + +* `READ` (value: `"READ"`) + +* `WRITE` (value: `"WRITE"`) + +* `CREATE` (value: `"CREATE"`) + +* `DELETE` (value: `"DELETE"`) + +* `ALTER` (value: `"ALTER"`) + +* `DESCRIBE` (value: `"DESCRIBE"`) + +* `DESCRIBE_CONFIGS` (value: `"DESCRIBE_CONFIGS"`) + +* `ALTER_CONFIGS` (value: `"ALTER_CONFIGS"`) + +* `ANY` (value: `"ANY"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternType.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternType.md new file mode 100644 index 00000000..544a5237 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternType.md @@ -0,0 +1,13 @@ +# AclPatternType + +## Enum + + +* `LITERAL` (value: `"LITERAL"`) + +* `PREFIXED` (value: `"PREFIXED"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternTypeFilter.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternTypeFilter.md new file mode 100644 index 00000000..d8a0b8fc --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPatternTypeFilter.md @@ -0,0 +1,17 @@ +# AclPatternTypeFilter + +## Enum + + +* `LITERAL` (value: `"LITERAL"`) + +* `PREFIXED` (value: `"PREFIXED"`) + +* `ANY` (value: `"ANY"`) + +* `MATCH` (value: `"MATCH"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionType.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionType.md new file mode 100644 index 00000000..f2e2d3ca --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionType.md @@ -0,0 +1,13 @@ +# AclPermissionType + +## Enum + + +* `ALLOW` (value: `"ALLOW"`) + +* `DENY` (value: `"DENY"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionTypeFilter.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionTypeFilter.md new file mode 100644 index 00000000..9a29a6de --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclPermissionTypeFilter.md @@ -0,0 +1,15 @@ +# AclPermissionTypeFilter + +## Enum + + +* `ALLOW` (value: `"ALLOW"`) + +* `DENY` (value: `"DENY"`) + +* `ANY` (value: `"ANY"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceType.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceType.md new file mode 100644 index 00000000..6755d691 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceType.md @@ -0,0 +1,17 @@ +# AclResourceType + +## Enum + + +* `GROUP` (value: `"GROUP"`) + +* `TOPIC` (value: `"TOPIC"`) + +* `CLUSTER` (value: `"CLUSTER"`) + +* `TRANSACTIONAL_ID` (value: `"TRANSACTIONAL_ID"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceTypeFilter.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceTypeFilter.md new file mode 100644 index 00000000..1e93df2b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclResourceTypeFilter.md @@ -0,0 +1,19 @@ +# AclResourceTypeFilter + +## Enum + + +* `ANY` (value: `"ANY"`) + +* `GROUP` (value: `"GROUP"`) + +* `TOPIC` (value: `"TOPIC"`) + +* `CLUSTER` (value: `"CLUSTER"`) + +* `TRANSACTIONAL_ID` (value: `"TRANSACTIONAL_ID"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclsApi.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclsApi.md new file mode 100644 index 00000000..e0f1f8ec --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/AclsApi.md @@ -0,0 +1,297 @@ +# \AclsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAcl**](AclsApi.md#CreateAcl) | **Post** /api/v1/acls | Create ACL binding +[**DeleteAcls**](AclsApi.md#DeleteAcls) | **Delete** /api/v1/acls | Delete ACL bindings +[**GetAclResourceOperations**](AclsApi.md#GetAclResourceOperations) | **Get** /api/v1/acls/resource-operations | Retrieve allowed ACL resources and operations +[**GetAcls**](AclsApi.md#GetAcls) | **Get** /api/v1/acls | List ACL bindings + + + +## CreateAcl + +> CreateAcl(ctx).AclBinding(aclBinding).Execute() + +Create ACL binding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + aclBinding := *openapiclient.NewAclBinding(openapiclient.AclResourceType("GROUP"), "ResourceName_example", openapiclient.AclPatternType("LITERAL"), "User:user-123-abc", openapiclient.AclOperation("ALL"), openapiclient.AclPermissionType("ALLOW")) // AclBinding | ACL to create. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AclsApi.CreateAcl(context.Background()).AclBinding(aclBinding).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AclsApi.CreateAcl``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAclRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aclBinding** | [**AclBinding**](AclBinding.md) | ACL to create. | + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAcls + +> AclBindingListPage DeleteAcls(ctx).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Execute() + +Delete ACL bindings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + resourceType := openapiclient.AclResourceTypeFilter("ANY") // AclResourceTypeFilter | ACL Resource Type Filter (optional) + resourceName := "resourceName_example" // string | ACL Resource Name Filter (optional) + patternType := openapiclient.AclPatternTypeFilter("LITERAL") // AclPatternTypeFilter | ACL Pattern Type Filter (optional) + principal := "User:*" // string | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional) (default to "") + operation := openapiclient.AclOperationFilter("ALL") // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional) + permission := openapiclient.AclPermissionTypeFilter("ALLOW") // AclPermissionTypeFilter | ACL Permission Type Filter (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AclsApi.DeleteAcls(context.Background()).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AclsApi.DeleteAcls``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAcls`: AclBindingListPage + fmt.Fprintf(os.Stdout, "Response from `AclsApi.DeleteAcls`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAclsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceType** | [**AclResourceTypeFilter**](AclResourceTypeFilter.md) | ACL Resource Type Filter | + **resourceName** | **string** | ACL Resource Name Filter | + **patternType** | [**AclPatternTypeFilter**](AclPatternTypeFilter.md) | ACL Pattern Type Filter | + **principal** | **string** | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [default to ""] + **operation** | [**AclOperationFilter**](AclOperationFilter.md) | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | + **permission** | [**AclPermissionTypeFilter**](AclPermissionTypeFilter.md) | ACL Permission Type Filter | + +### Return type + +[**AclBindingListPage**](AclBindingListPage.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAclResourceOperations + +> map[string][]string GetAclResourceOperations(ctx).Execute() + +Retrieve allowed ACL resources and operations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AclsApi.GetAclResourceOperations(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AclsApi.GetAclResourceOperations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAclResourceOperations`: map[string][]string + fmt.Fprintf(os.Stdout, "Response from `AclsApi.GetAclResourceOperations`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAclResourceOperationsRequest struct via the builder pattern + + +### Return type + +[**map[string][]string**](array.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAcls + +> AclBindingListPage GetAcls(ctx).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Order(order).OrderKey(orderKey).Execute() + +List ACL bindings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + resourceType := openapiclient.AclResourceTypeFilter("ANY") // AclResourceTypeFilter | ACL Resource Type Filter (optional) + resourceName := "resourceName_example" // string | ACL Resource Name Filter (optional) + patternType := openapiclient.AclPatternTypeFilter("LITERAL") // AclPatternTypeFilter | ACL Pattern Type Filter (optional) + principal := "User:*" // string | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional) (default to "") + operation := openapiclient.AclOperationFilter("ALL") // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional) + permission := openapiclient.AclPermissionTypeFilter("ALLOW") // AclPermissionTypeFilter | ACL Permission Type Filter (optional) + page := int32(56) // int32 | Page number (optional) + size := int32(56) // int32 | Number of records per page (optional) + order := openapiclient.SortDirection("asc") // SortDirection | Order items are sorted (optional) + orderKey := openapiclient.AclBindingOrderKey("resourceType") // AclBindingOrderKey | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AclsApi.GetAcls(context.Background()).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Order(order).OrderKey(orderKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AclsApi.GetAcls``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAcls`: AclBindingListPage + fmt.Fprintf(os.Stdout, "Response from `AclsApi.GetAcls`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAclsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceType** | [**AclResourceTypeFilter**](AclResourceTypeFilter.md) | ACL Resource Type Filter | + **resourceName** | **string** | ACL Resource Name Filter | + **patternType** | [**AclPatternTypeFilter**](AclPatternTypeFilter.md) | ACL Pattern Type Filter | + **principal** | **string** | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [default to ""] + **operation** | [**AclOperationFilter**](AclOperationFilter.md) | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | + **permission** | [**AclPermissionTypeFilter**](AclPermissionTypeFilter.md) | ACL Permission Type Filter | + **page** | **int32** | Page number | + **size** | **int32** | Number of records per page | + **order** | [**SortDirection**](SortDirection.md) | Order items are sorted | + **orderKey** | [**AclBindingOrderKey**](AclBindingOrderKey.md) | | + +### Return type + +[**AclBindingListPage**](AclBindingListPage.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConfigEntry.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConfigEntry.md new file mode 100644 index 00000000..89e7ca8e --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConfigEntry.md @@ -0,0 +1,72 @@ +# ConfigEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key indicating what configuration entry you would like to set for the topic. | +**Value** | **string** | Value to indicate the setting on the topic configuration entry. | + +## Methods + +### NewConfigEntry + +`func NewConfigEntry(key string, value string, ) *ConfigEntry` + +NewConfigEntry instantiates a new ConfigEntry 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 + +### NewConfigEntryWithDefaults + +`func NewConfigEntryWithDefaults() *ConfigEntry` + +NewConfigEntryWithDefaults instantiates a new ConfigEntry 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 + +### GetKey + +`func (o *ConfigEntry) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ConfigEntry) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ConfigEntry) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *ConfigEntry) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ConfigEntry) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ConfigEntry) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Consumer.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Consumer.md new file mode 100644 index 00000000..f2710bf6 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Consumer.md @@ -0,0 +1,187 @@ +# Consumer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | Unique identifier for the consumer group to which this consumer belongs. | +**Topic** | **string** | The unique topic name to which this consumer belongs | +**Partition** | **int32** | The partition number to which this consumer group is assigned to. | +**Offset** | **int64** | Offset denotes the position of the consumer in a partition. | +**LogEndOffset** | Pointer to **int64** | The log end offset is the offset of the last message written to a log. | [optional] +**Lag** | **int64** | Offset Lag is the delta between the last produced message and the last consumer's committed offset. | +**MemberId** | Pointer to **string** | The member ID is a unique identifier given to a consumer by the coordinator upon initially joining the group. | [optional] + +## Methods + +### NewConsumer + +`func NewConsumer(groupId string, topic string, partition int32, offset int64, lag int64, ) *Consumer` + +NewConsumer instantiates a new Consumer 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 + +### NewConsumerWithDefaults + +`func NewConsumerWithDefaults() *Consumer` + +NewConsumerWithDefaults instantiates a new Consumer 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 + +### GetGroupId + +`func (o *Consumer) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *Consumer) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *Consumer) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + + +### GetTopic + +`func (o *Consumer) GetTopic() string` + +GetTopic returns the Topic field if non-nil, zero value otherwise. + +### GetTopicOk + +`func (o *Consumer) GetTopicOk() (*string, bool)` + +GetTopicOk returns a tuple with the Topic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopic + +`func (o *Consumer) SetTopic(v string)` + +SetTopic sets Topic field to given value. + + +### GetPartition + +`func (o *Consumer) GetPartition() int32` + +GetPartition returns the Partition field if non-nil, zero value otherwise. + +### GetPartitionOk + +`func (o *Consumer) GetPartitionOk() (*int32, bool)` + +GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartition + +`func (o *Consumer) SetPartition(v int32)` + +SetPartition sets Partition field to given value. + + +### GetOffset + +`func (o *Consumer) GetOffset() int64` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *Consumer) GetOffsetOk() (*int64, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *Consumer) SetOffset(v int64)` + +SetOffset sets Offset field to given value. + + +### GetLogEndOffset + +`func (o *Consumer) GetLogEndOffset() int64` + +GetLogEndOffset returns the LogEndOffset field if non-nil, zero value otherwise. + +### GetLogEndOffsetOk + +`func (o *Consumer) GetLogEndOffsetOk() (*int64, bool)` + +GetLogEndOffsetOk returns a tuple with the LogEndOffset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogEndOffset + +`func (o *Consumer) SetLogEndOffset(v int64)` + +SetLogEndOffset sets LogEndOffset field to given value. + +### HasLogEndOffset + +`func (o *Consumer) HasLogEndOffset() bool` + +HasLogEndOffset returns a boolean if a field has been set. + +### GetLag + +`func (o *Consumer) GetLag() int64` + +GetLag returns the Lag field if non-nil, zero value otherwise. + +### GetLagOk + +`func (o *Consumer) GetLagOk() (*int64, bool)` + +GetLagOk returns a tuple with the Lag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLag + +`func (o *Consumer) SetLag(v int64)` + +SetLag sets Lag field to given value. + + +### GetMemberId + +`func (o *Consumer) GetMemberId() string` + +GetMemberId returns the MemberId field if non-nil, zero value otherwise. + +### GetMemberIdOk + +`func (o *Consumer) GetMemberIdOk() (*string, bool)` + +GetMemberIdOk returns a tuple with the MemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberId + +`func (o *Consumer) SetMemberId(v string)` + +SetMemberId sets MemberId field to given value. + +### HasMemberId + +`func (o *Consumer) HasMemberId() bool` + +HasMemberId 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroup.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroup.md new file mode 100644 index 00000000..01c58245 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroup.md @@ -0,0 +1,202 @@ +# ConsumerGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] +**GroupId** | **string** | Unique identifier for the consumer group | +**State** | Pointer to [**ConsumerGroupState**](ConsumerGroupState.md) | | [optional] +**Consumers** | [**[]Consumer**](Consumer.md) | The list of consumers associated with this consumer group | +**Metrics** | Pointer to [**ConsumerGroupMetrics**](ConsumerGroupMetrics.md) | | [optional] + +## Methods + +### NewConsumerGroup + +`func NewConsumerGroup(groupId string, consumers []Consumer, ) *ConsumerGroup` + +NewConsumerGroup instantiates a new ConsumerGroup 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 + +### NewConsumerGroupWithDefaults + +`func NewConsumerGroupWithDefaults() *ConsumerGroup` + +NewConsumerGroupWithDefaults instantiates a new ConsumerGroup 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 *ConsumerGroup) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ConsumerGroup) 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 *ConsumerGroup) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ConsumerGroup) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ConsumerGroup) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConsumerGroup) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConsumerGroup) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConsumerGroup) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ConsumerGroup) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ConsumerGroup) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ConsumerGroup) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ConsumerGroup) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetGroupId + +`func (o *ConsumerGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ConsumerGroup) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ConsumerGroup) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + + +### GetState + +`func (o *ConsumerGroup) GetState() ConsumerGroupState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConsumerGroup) GetStateOk() (*ConsumerGroupState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConsumerGroup) SetState(v ConsumerGroupState)` + +SetState sets State field to given value. + +### HasState + +`func (o *ConsumerGroup) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetConsumers + +`func (o *ConsumerGroup) GetConsumers() []Consumer` + +GetConsumers returns the Consumers field if non-nil, zero value otherwise. + +### GetConsumersOk + +`func (o *ConsumerGroup) GetConsumersOk() (*[]Consumer, bool)` + +GetConsumersOk returns a tuple with the Consumers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumers + +`func (o *ConsumerGroup) SetConsumers(v []Consumer)` + +SetConsumers sets Consumers field to given value. + + +### GetMetrics + +`func (o *ConsumerGroup) GetMetrics() ConsumerGroupMetrics` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *ConsumerGroup) GetMetricsOk() (*ConsumerGroupMetrics, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *ConsumerGroup) SetMetrics(v ConsumerGroupMetrics)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *ConsumerGroup) HasMetrics() bool` + +HasMetrics 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupAllOf.md new file mode 100644 index 00000000..06350f7c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupAllOf.md @@ -0,0 +1,124 @@ +# ConsumerGroupAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | Unique identifier for the consumer group | +**State** | Pointer to [**ConsumerGroupState**](ConsumerGroupState.md) | | [optional] +**Consumers** | [**[]Consumer**](Consumer.md) | The list of consumers associated with this consumer group | +**Metrics** | Pointer to [**ConsumerGroupMetrics**](ConsumerGroupMetrics.md) | | [optional] + +## Methods + +### NewConsumerGroupAllOf + +`func NewConsumerGroupAllOf(groupId string, consumers []Consumer, ) *ConsumerGroupAllOf` + +NewConsumerGroupAllOf instantiates a new ConsumerGroupAllOf 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 + +### NewConsumerGroupAllOfWithDefaults + +`func NewConsumerGroupAllOfWithDefaults() *ConsumerGroupAllOf` + +NewConsumerGroupAllOfWithDefaults instantiates a new ConsumerGroupAllOf 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 + +### GetGroupId + +`func (o *ConsumerGroupAllOf) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ConsumerGroupAllOf) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ConsumerGroupAllOf) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + + +### GetState + +`func (o *ConsumerGroupAllOf) GetState() ConsumerGroupState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ConsumerGroupAllOf) GetStateOk() (*ConsumerGroupState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ConsumerGroupAllOf) SetState(v ConsumerGroupState)` + +SetState sets State field to given value. + +### HasState + +`func (o *ConsumerGroupAllOf) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetConsumers + +`func (o *ConsumerGroupAllOf) GetConsumers() []Consumer` + +GetConsumers returns the Consumers field if non-nil, zero value otherwise. + +### GetConsumersOk + +`func (o *ConsumerGroupAllOf) GetConsumersOk() (*[]Consumer, bool)` + +GetConsumersOk returns a tuple with the Consumers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsumers + +`func (o *ConsumerGroupAllOf) SetConsumers(v []Consumer)` + +SetConsumers sets Consumers field to given value. + + +### GetMetrics + +`func (o *ConsumerGroupAllOf) GetMetrics() ConsumerGroupMetrics` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *ConsumerGroupAllOf) GetMetricsOk() (*ConsumerGroupMetrics, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *ConsumerGroupAllOf) SetMetrics(v ConsumerGroupMetrics)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *ConsumerGroupAllOf) HasMetrics() bool` + +HasMetrics 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupDescriptionOrderKey.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupDescriptionOrderKey.md new file mode 100644 index 00000000..51dd851c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupDescriptionOrderKey.md @@ -0,0 +1,17 @@ +# ConsumerGroupDescriptionOrderKey + +## Enum + + +* `OFFSET` (value: `"offset"`) + +* `END_OFFSET` (value: `"endOffset"`) + +* `LAG` (value: `"lag"`) + +* `PARTITION` (value: `"partition"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupList.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupList.md new file mode 100644 index 00000000..af23c1b9 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupList.md @@ -0,0 +1,228 @@ +# ConsumerGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]ConsumerGroup**](ConsumerGroup.md) | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] +**Offset** | Pointer to **int32** | Offset of the first record returned, zero-based | [optional] +**Limit** | Pointer to **int32** | Maximum number of records to return, from request | [optional] +**Count** | Pointer to **int32** | Total number of entries in the full result set | [optional] + +## Methods + +### NewConsumerGroupList + +`func NewConsumerGroupList(items []ConsumerGroup, total int32, ) *ConsumerGroupList` + +NewConsumerGroupList instantiates a new ConsumerGroupList 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 + +### NewConsumerGroupListWithDefaults + +`func NewConsumerGroupListWithDefaults() *ConsumerGroupList` + +NewConsumerGroupListWithDefaults instantiates a new ConsumerGroupList 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 + +### GetKind + +`func (o *ConsumerGroupList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConsumerGroupList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConsumerGroupList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConsumerGroupList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *ConsumerGroupList) GetItems() []ConsumerGroup` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumerGroupList) GetItemsOk() (*[]ConsumerGroup, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumerGroupList) SetItems(v []ConsumerGroup)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *ConsumerGroupList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConsumerGroupList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConsumerGroupList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *ConsumerGroupList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConsumerGroupList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConsumerGroupList) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ConsumerGroupList) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *ConsumerGroupList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConsumerGroupList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConsumerGroupList) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ConsumerGroupList) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetOffset + +`func (o *ConsumerGroupList) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ConsumerGroupList) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ConsumerGroupList) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *ConsumerGroupList) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetLimit + +`func (o *ConsumerGroupList) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ConsumerGroupList) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ConsumerGroupList) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *ConsumerGroupList) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetCount + +`func (o *ConsumerGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ConsumerGroupList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ConsumerGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ConsumerGroupList) HasCount() bool` + +HasCount 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupListAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupListAllOf.md new file mode 100644 index 00000000..6be58658 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupListAllOf.md @@ -0,0 +1,56 @@ +# ConsumerGroupListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConsumerGroup**](ConsumerGroup.md) | | [optional] + +## Methods + +### NewConsumerGroupListAllOf + +`func NewConsumerGroupListAllOf() *ConsumerGroupListAllOf` + +NewConsumerGroupListAllOf instantiates a new ConsumerGroupListAllOf 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 + +### NewConsumerGroupListAllOfWithDefaults + +`func NewConsumerGroupListAllOfWithDefaults() *ConsumerGroupListAllOf` + +NewConsumerGroupListAllOfWithDefaults instantiates a new ConsumerGroupListAllOf 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 + +### GetItems + +`func (o *ConsumerGroupListAllOf) GetItems() []ConsumerGroup` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumerGroupListAllOf) GetItemsOk() (*[]ConsumerGroup, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumerGroupListAllOf) SetItems(v []ConsumerGroup)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConsumerGroupListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupMetrics.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupMetrics.md new file mode 100644 index 00000000..c54c0889 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupMetrics.md @@ -0,0 +1,108 @@ +# ConsumerGroupMetrics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LaggingPartitions** | Pointer to **int32** | | [optional] +**ActiveConsumers** | Pointer to **int32** | | [optional] +**UnassignedPartitions** | Pointer to **int32** | | [optional] + +## Methods + +### NewConsumerGroupMetrics + +`func NewConsumerGroupMetrics() *ConsumerGroupMetrics` + +NewConsumerGroupMetrics instantiates a new ConsumerGroupMetrics 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 + +### NewConsumerGroupMetricsWithDefaults + +`func NewConsumerGroupMetricsWithDefaults() *ConsumerGroupMetrics` + +NewConsumerGroupMetricsWithDefaults instantiates a new ConsumerGroupMetrics 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 + +### GetLaggingPartitions + +`func (o *ConsumerGroupMetrics) GetLaggingPartitions() int32` + +GetLaggingPartitions returns the LaggingPartitions field if non-nil, zero value otherwise. + +### GetLaggingPartitionsOk + +`func (o *ConsumerGroupMetrics) GetLaggingPartitionsOk() (*int32, bool)` + +GetLaggingPartitionsOk returns a tuple with the LaggingPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLaggingPartitions + +`func (o *ConsumerGroupMetrics) SetLaggingPartitions(v int32)` + +SetLaggingPartitions sets LaggingPartitions field to given value. + +### HasLaggingPartitions + +`func (o *ConsumerGroupMetrics) HasLaggingPartitions() bool` + +HasLaggingPartitions returns a boolean if a field has been set. + +### GetActiveConsumers + +`func (o *ConsumerGroupMetrics) GetActiveConsumers() int32` + +GetActiveConsumers returns the ActiveConsumers field if non-nil, zero value otherwise. + +### GetActiveConsumersOk + +`func (o *ConsumerGroupMetrics) GetActiveConsumersOk() (*int32, bool)` + +GetActiveConsumersOk returns a tuple with the ActiveConsumers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActiveConsumers + +`func (o *ConsumerGroupMetrics) SetActiveConsumers(v int32)` + +SetActiveConsumers sets ActiveConsumers field to given value. + +### HasActiveConsumers + +`func (o *ConsumerGroupMetrics) HasActiveConsumers() bool` + +HasActiveConsumers returns a boolean if a field has been set. + +### GetUnassignedPartitions + +`func (o *ConsumerGroupMetrics) GetUnassignedPartitions() int32` + +GetUnassignedPartitions returns the UnassignedPartitions field if non-nil, zero value otherwise. + +### GetUnassignedPartitionsOk + +`func (o *ConsumerGroupMetrics) GetUnassignedPartitionsOk() (*int32, bool)` + +GetUnassignedPartitionsOk returns a tuple with the UnassignedPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnassignedPartitions + +`func (o *ConsumerGroupMetrics) SetUnassignedPartitions(v int32)` + +SetUnassignedPartitions sets UnassignedPartitions field to given value. + +### HasUnassignedPartitions + +`func (o *ConsumerGroupMetrics) HasUnassignedPartitions() bool` + +HasUnassignedPartitions 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupOrderKey.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupOrderKey.md new file mode 100644 index 00000000..075dff64 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupOrderKey.md @@ -0,0 +1,11 @@ +# ConsumerGroupOrderKey + +## Enum + + +* `NAME` (value: `"name"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetParameters.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetParameters.md new file mode 100644 index 00000000..26a438cb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetParameters.md @@ -0,0 +1,103 @@ +# ConsumerGroupResetOffsetParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Offset** | [**OffsetType**](OffsetType.md) | | +**Value** | Pointer to **string** | Value associated with the given `offset`. Not used for `offset` values `earliest` and `latest`. When `offset` is `timestamp` then `value` must be a valid timestamp representing the point in time to reset the consumer group. When `offset` is `absolute` then `value` must be the integer offset to which the consumer group will be reset. | [optional] +**Topics** | Pointer to [**[]TopicsToResetOffset**](TopicsToResetOffset.md) | | [optional] + +## Methods + +### NewConsumerGroupResetOffsetParameters + +`func NewConsumerGroupResetOffsetParameters(offset OffsetType, ) *ConsumerGroupResetOffsetParameters` + +NewConsumerGroupResetOffsetParameters instantiates a new ConsumerGroupResetOffsetParameters 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 + +### NewConsumerGroupResetOffsetParametersWithDefaults + +`func NewConsumerGroupResetOffsetParametersWithDefaults() *ConsumerGroupResetOffsetParameters` + +NewConsumerGroupResetOffsetParametersWithDefaults instantiates a new ConsumerGroupResetOffsetParameters 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 + +### GetOffset + +`func (o *ConsumerGroupResetOffsetParameters) GetOffset() OffsetType` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ConsumerGroupResetOffsetParameters) GetOffsetOk() (*OffsetType, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ConsumerGroupResetOffsetParameters) SetOffset(v OffsetType)` + +SetOffset sets Offset field to given value. + + +### GetValue + +`func (o *ConsumerGroupResetOffsetParameters) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ConsumerGroupResetOffsetParameters) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ConsumerGroupResetOffsetParameters) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ConsumerGroupResetOffsetParameters) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetTopics + +`func (o *ConsumerGroupResetOffsetParameters) GetTopics() []TopicsToResetOffset` + +GetTopics returns the Topics field if non-nil, zero value otherwise. + +### GetTopicsOk + +`func (o *ConsumerGroupResetOffsetParameters) GetTopicsOk() (*[]TopicsToResetOffset, bool)` + +GetTopicsOk returns a tuple with the Topics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopics + +`func (o *ConsumerGroupResetOffsetParameters) SetTopics(v []TopicsToResetOffset)` + +SetTopics sets Topics field to given value. + +### HasTopics + +`func (o *ConsumerGroupResetOffsetParameters) HasTopics() bool` + +HasTopics 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResult.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResult.md new file mode 100644 index 00000000..d3802f56 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResult.md @@ -0,0 +1,150 @@ +# ConsumerGroupResetOffsetResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]ConsumerGroupResetOffsetResultItem**](ConsumerGroupResetOffsetResultItem.md) | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] + +## Methods + +### NewConsumerGroupResetOffsetResult + +`func NewConsumerGroupResetOffsetResult(items []ConsumerGroupResetOffsetResultItem, total int32, ) *ConsumerGroupResetOffsetResult` + +NewConsumerGroupResetOffsetResult instantiates a new ConsumerGroupResetOffsetResult 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 + +### NewConsumerGroupResetOffsetResultWithDefaults + +`func NewConsumerGroupResetOffsetResultWithDefaults() *ConsumerGroupResetOffsetResult` + +NewConsumerGroupResetOffsetResultWithDefaults instantiates a new ConsumerGroupResetOffsetResult 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 + +### GetKind + +`func (o *ConsumerGroupResetOffsetResult) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ConsumerGroupResetOffsetResult) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ConsumerGroupResetOffsetResult) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ConsumerGroupResetOffsetResult) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *ConsumerGroupResetOffsetResult) GetItems() []ConsumerGroupResetOffsetResultItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumerGroupResetOffsetResult) GetItemsOk() (*[]ConsumerGroupResetOffsetResultItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumerGroupResetOffsetResult) SetItems(v []ConsumerGroupResetOffsetResultItem)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *ConsumerGroupResetOffsetResult) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ConsumerGroupResetOffsetResult) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ConsumerGroupResetOffsetResult) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *ConsumerGroupResetOffsetResult) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ConsumerGroupResetOffsetResult) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ConsumerGroupResetOffsetResult) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ConsumerGroupResetOffsetResult) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *ConsumerGroupResetOffsetResult) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ConsumerGroupResetOffsetResult) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ConsumerGroupResetOffsetResult) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ConsumerGroupResetOffsetResult) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultAllOf.md new file mode 100644 index 00000000..fea87f8c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultAllOf.md @@ -0,0 +1,56 @@ +# ConsumerGroupResetOffsetResultAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ConsumerGroupResetOffsetResultItem**](ConsumerGroupResetOffsetResultItem.md) | | [optional] + +## Methods + +### NewConsumerGroupResetOffsetResultAllOf + +`func NewConsumerGroupResetOffsetResultAllOf() *ConsumerGroupResetOffsetResultAllOf` + +NewConsumerGroupResetOffsetResultAllOf instantiates a new ConsumerGroupResetOffsetResultAllOf 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 + +### NewConsumerGroupResetOffsetResultAllOfWithDefaults + +`func NewConsumerGroupResetOffsetResultAllOfWithDefaults() *ConsumerGroupResetOffsetResultAllOf` + +NewConsumerGroupResetOffsetResultAllOfWithDefaults instantiates a new ConsumerGroupResetOffsetResultAllOf 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 + +### GetItems + +`func (o *ConsumerGroupResetOffsetResultAllOf) GetItems() []ConsumerGroupResetOffsetResultItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ConsumerGroupResetOffsetResultAllOf) GetItemsOk() (*[]ConsumerGroupResetOffsetResultItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ConsumerGroupResetOffsetResultAllOf) SetItems(v []ConsumerGroupResetOffsetResultItem)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ConsumerGroupResetOffsetResultAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultItem.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultItem.md new file mode 100644 index 00000000..afdd85f5 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupResetOffsetResultItem.md @@ -0,0 +1,108 @@ +# ConsumerGroupResetOffsetResultItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Topic** | Pointer to **string** | | [optional] +**Partition** | Pointer to **int32** | | [optional] +**Offset** | Pointer to **int64** | | [optional] + +## Methods + +### NewConsumerGroupResetOffsetResultItem + +`func NewConsumerGroupResetOffsetResultItem() *ConsumerGroupResetOffsetResultItem` + +NewConsumerGroupResetOffsetResultItem instantiates a new ConsumerGroupResetOffsetResultItem 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 + +### NewConsumerGroupResetOffsetResultItemWithDefaults + +`func NewConsumerGroupResetOffsetResultItemWithDefaults() *ConsumerGroupResetOffsetResultItem` + +NewConsumerGroupResetOffsetResultItemWithDefaults instantiates a new ConsumerGroupResetOffsetResultItem 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 + +### GetTopic + +`func (o *ConsumerGroupResetOffsetResultItem) GetTopic() string` + +GetTopic returns the Topic field if non-nil, zero value otherwise. + +### GetTopicOk + +`func (o *ConsumerGroupResetOffsetResultItem) GetTopicOk() (*string, bool)` + +GetTopicOk returns a tuple with the Topic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopic + +`func (o *ConsumerGroupResetOffsetResultItem) SetTopic(v string)` + +SetTopic sets Topic field to given value. + +### HasTopic + +`func (o *ConsumerGroupResetOffsetResultItem) HasTopic() bool` + +HasTopic returns a boolean if a field has been set. + +### GetPartition + +`func (o *ConsumerGroupResetOffsetResultItem) GetPartition() int32` + +GetPartition returns the Partition field if non-nil, zero value otherwise. + +### GetPartitionOk + +`func (o *ConsumerGroupResetOffsetResultItem) GetPartitionOk() (*int32, bool)` + +GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartition + +`func (o *ConsumerGroupResetOffsetResultItem) SetPartition(v int32)` + +SetPartition sets Partition field to given value. + +### HasPartition + +`func (o *ConsumerGroupResetOffsetResultItem) HasPartition() bool` + +HasPartition returns a boolean if a field has been set. + +### GetOffset + +`func (o *ConsumerGroupResetOffsetResultItem) GetOffset() int64` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ConsumerGroupResetOffsetResultItem) GetOffsetOk() (*int64, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ConsumerGroupResetOffsetResultItem) SetOffset(v int64)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *ConsumerGroupResetOffsetResultItem) HasOffset() bool` + +HasOffset 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupState.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupState.md new file mode 100644 index 00000000..832de45c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ConsumerGroupState.md @@ -0,0 +1,21 @@ +# ConsumerGroupState + +## Enum + + +* `UNKNOWN` (value: `"UNKNOWN"`) + +* `PREPARING_REBALANCE` (value: `"PREPARING_REBALANCE"`) + +* `COMPLETING_REBALANCE` (value: `"COMPLETING_REBALANCE"`) + +* `STABLE` (value: `"STABLE"`) + +* `DEAD` (value: `"DEAD"`) + +* `EMPTY` (value: `"EMPTY"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Error.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Error.md new file mode 100644 index 00000000..0d69572c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Error.md @@ -0,0 +1,238 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] +**Reason** | Pointer to **string** | General reason for the error. Does not change between specific occurrences. | [optional] +**Detail** | Pointer to **string** | Detail specific to an error occurrence. May be different depending on the condition(s) that trigger the error. | [optional] +**Code** | Pointer to **int32** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**Class** | Pointer to **string** | | [optional] + +## Methods + +### NewError + +`func NewError() *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Error) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Error) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Error) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *Error) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetDetail + +`func (o *Error) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *Error) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *Error) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *Error) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetCode + +`func (o *Error) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *Error) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *Error) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *Error) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *Error) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *Error) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetClass + +`func (o *Error) GetClass() string` + +GetClass returns the Class field if non-nil, zero value otherwise. + +### GetClassOk + +`func (o *Error) GetClassOk() (*string, bool)` + +GetClassOk returns a tuple with the Class field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClass + +`func (o *Error) SetClass(v string)` + +SetClass sets Class field to given value. + +### HasClass + +`func (o *Error) HasClass() bool` + +HasClass 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorAllOf.md new file mode 100644 index 00000000..2854680b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorAllOf.md @@ -0,0 +1,160 @@ +# ErrorAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | Pointer to **string** | General reason for the error. Does not change between specific occurrences. | [optional] +**Detail** | Pointer to **string** | Detail specific to an error occurrence. May be different depending on the condition(s) that trigger the error. | [optional] +**Code** | Pointer to **int32** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**Class** | Pointer to **string** | | [optional] + +## Methods + +### NewErrorAllOf + +`func NewErrorAllOf() *ErrorAllOf` + +NewErrorAllOf instantiates a new ErrorAllOf 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 + +### NewErrorAllOfWithDefaults + +`func NewErrorAllOfWithDefaults() *ErrorAllOf` + +NewErrorAllOfWithDefaults instantiates a new ErrorAllOf 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 + +### GetReason + +`func (o *ErrorAllOf) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ErrorAllOf) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ErrorAllOf) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ErrorAllOf) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetDetail + +`func (o *ErrorAllOf) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *ErrorAllOf) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *ErrorAllOf) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *ErrorAllOf) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetCode + +`func (o *ErrorAllOf) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *ErrorAllOf) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *ErrorAllOf) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *ErrorAllOf) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *ErrorAllOf) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *ErrorAllOf) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *ErrorAllOf) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *ErrorAllOf) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetClass + +`func (o *ErrorAllOf) GetClass() string` + +GetClass returns the Class field if non-nil, zero value otherwise. + +### GetClassOk + +`func (o *ErrorAllOf) GetClassOk() (*string, bool)` + +GetClassOk returns a tuple with the Class field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClass + +`func (o *ErrorAllOf) SetClass(v string)` + +SetClass sets Class field to given value. + +### HasClass + +`func (o *ErrorAllOf) HasClass() bool` + +HasClass 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorList.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorList.md new file mode 100644 index 00000000..14408432 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorList.md @@ -0,0 +1,150 @@ +# ErrorList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]Error**](Error.md) | | +**Total** | **int32** | Total number of errors returned in this request | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] + +## Methods + +### NewErrorList + +`func NewErrorList(items []Error, total int32, ) *ErrorList` + +NewErrorList instantiates a new ErrorList 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 + +### NewErrorListWithDefaults + +`func NewErrorListWithDefaults() *ErrorList` + +NewErrorListWithDefaults instantiates a new ErrorList 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 + +### GetKind + +`func (o *ErrorList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ErrorList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *ErrorList) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorList) SetItems(v []Error)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *ErrorList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *ErrorList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ErrorList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ErrorList) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ErrorList) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *ErrorList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrorList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrorList) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ErrorList) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorListAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorListAllOf.md new file mode 100644 index 00000000..2ec2606d --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorListAllOf.md @@ -0,0 +1,82 @@ +# ErrorListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] +**Total** | Pointer to **int32** | Total number of errors returned in this request | [optional] + +## Methods + +### NewErrorListAllOf + +`func NewErrorListAllOf() *ErrorListAllOf` + +NewErrorListAllOf instantiates a new ErrorListAllOf 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 + +### NewErrorListAllOfWithDefaults + +`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` + +NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 + +### GetItems + +`func (o *ErrorListAllOf) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorListAllOf) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorListAllOf) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetTotal + +`func (o *ErrorListAllOf) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorListAllOf) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorListAllOf) SetTotal(v int32)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *ErrorListAllOf) HasTotal() bool` + +HasTotal 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorsApi.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorsApi.md new file mode 100644 index 00000000..78a19faf --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ErrorsApi.md @@ -0,0 +1,137 @@ +# \ErrorsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetError**](ErrorsApi.md#GetError) | **Get** /api/v1/errors/{errorId} | Get an error by its unique ID +[**GetErrors**](ErrorsApi.md#GetErrors) | **Get** /api/v1/errors | Get list of errors + + + +## GetError + +> Error GetError(ctx, errorId).Execute() + +Get an error by its unique ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + errorId := "errorId_example" // string | Error identifier + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetError(context.Background(), errorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetError``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetError`: Error + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetError`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**errorId** | **string** | Error identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetErrors + +> ErrorList GetErrors(ctx).Execute() + +Get list of errors + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetErrors(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetErrors`: ErrorList + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrors`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorsRequest struct via the builder pattern + + +### Return type + +[**ErrorList**](ErrorList.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/GroupsApi.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/GroupsApi.md new file mode 100644 index 00000000..79210cbd --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/GroupsApi.md @@ -0,0 +1,308 @@ +# \GroupsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteConsumerGroupById**](GroupsApi.md#DeleteConsumerGroupById) | **Delete** /api/v1/consumer-groups/{consumerGroupId} | Delete a consumer group. +[**GetConsumerGroupById**](GroupsApi.md#GetConsumerGroupById) | **Get** /api/v1/consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. +[**GetConsumerGroups**](GroupsApi.md#GetConsumerGroups) | **Get** /api/v1/consumer-groups | List of consumer groups in the Kafka instance. +[**ResetConsumerGroupOffset**](GroupsApi.md#ResetConsumerGroupOffset) | **Post** /api/v1/consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. + + + +## DeleteConsumerGroupById + +> DeleteConsumerGroupById(ctx, consumerGroupId).Execute() + +Delete a consumer group. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + consumerGroupId := "consumerGroupId_example" // string | Consumer group identifier + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.DeleteConsumerGroupById(context.Background(), consumerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.DeleteConsumerGroupById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**consumerGroupId** | **string** | Consumer group identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteConsumerGroupByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConsumerGroupById + +> ConsumerGroup GetConsumerGroupById(ctx, consumerGroupId).Order(order).OrderKey(orderKey).PartitionFilter(partitionFilter).Topic(topic).Execute() + +Get a single consumer group by its unique ID. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + consumerGroupId := "consumerGroupId_example" // string | Consumer group identifier + order := openapiclient.SortDirection("asc") // SortDirection | Order items are sorted (optional) + orderKey := openapiclient.ConsumerGroupDescriptionOrderKey("offset") // ConsumerGroupDescriptionOrderKey | (optional) + partitionFilter := int32(56) // int32 | Value of partition to include. Value -1 means filter is not active. (optional) + topic := "topic_example" // string | Filter consumer groups for a specific topic (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.GetConsumerGroupById(context.Background(), consumerGroupId).Order(order).OrderKey(orderKey).PartitionFilter(partitionFilter).Topic(topic).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.GetConsumerGroupById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConsumerGroupById`: ConsumerGroup + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.GetConsumerGroupById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**consumerGroupId** | **string** | Consumer group identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConsumerGroupByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **order** | [**SortDirection**](SortDirection.md) | Order items are sorted | + **orderKey** | [**ConsumerGroupDescriptionOrderKey**](ConsumerGroupDescriptionOrderKey.md) | | + **partitionFilter** | **int32** | Value of partition to include. Value -1 means filter is not active. | + **topic** | **string** | Filter consumer groups for a specific topic | + +### Return type + +[**ConsumerGroup**](ConsumerGroup.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConsumerGroups + +> ConsumerGroupList GetConsumerGroups(ctx).Offset(offset).Limit(limit).Size(size).Page(page).Topic(topic).GroupIdFilter(groupIdFilter).Order(order).OrderKey(orderKey).Execute() + +List of consumer groups in the Kafka instance. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + offset := int32(56) // int32 | Offset of the first record to return, zero-based (optional) + limit := int32(56) // int32 | Maximum number of records to return (optional) + size := int32(56) // int32 | Number of records per page (optional) + page := int32(56) // int32 | Page number (optional) + topic := "topic_example" // string | Return consumer groups where the topic name contains this value (optional) + groupIdFilter := "groupIdFilter_example" // string | Return the consumer groups where the ID contains this value (optional) + order := openapiclient.SortDirection("asc") // SortDirection | Order items are sorted (optional) + orderKey := openapiclient.ConsumerGroupOrderKey("name") // ConsumerGroupOrderKey | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.GetConsumerGroups(context.Background()).Offset(offset).Limit(limit).Size(size).Page(page).Topic(topic).GroupIdFilter(groupIdFilter).Order(order).OrderKey(orderKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.GetConsumerGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConsumerGroups`: ConsumerGroupList + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.GetConsumerGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConsumerGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **offset** | **int32** | Offset of the first record to return, zero-based | + **limit** | **int32** | Maximum number of records to return | + **size** | **int32** | Number of records per page | + **page** | **int32** | Page number | + **topic** | **string** | Return consumer groups where the topic name contains this value | + **groupIdFilter** | **string** | Return the consumer groups where the ID contains this value | + **order** | [**SortDirection**](SortDirection.md) | Order items are sorted | + **orderKey** | [**ConsumerGroupOrderKey**](ConsumerGroupOrderKey.md) | | + +### Return type + +[**ConsumerGroupList**](ConsumerGroupList.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetConsumerGroupOffset + +> ConsumerGroupResetOffsetResult ResetConsumerGroupOffset(ctx, consumerGroupId).ConsumerGroupResetOffsetParameters(consumerGroupResetOffsetParameters).Execute() + +Reset the offset for a consumer group. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + consumerGroupId := "consumerGroupId_example" // string | Consumer group identifier + consumerGroupResetOffsetParameters := *openapiclient.NewConsumerGroupResetOffsetParameters(openapiclient.OffsetType("timestamp")) // ConsumerGroupResetOffsetParameters | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GroupsApi.ResetConsumerGroupOffset(context.Background(), consumerGroupId).ConsumerGroupResetOffsetParameters(consumerGroupResetOffsetParameters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.ResetConsumerGroupOffset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetConsumerGroupOffset`: ConsumerGroupResetOffsetResult + fmt.Fprintf(os.Stdout, "Response from `GroupsApi.ResetConsumerGroupOffset`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**consumerGroupId** | **string** | Consumer group identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetConsumerGroupOffsetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **consumerGroupResetOffsetParameters** | [**ConsumerGroupResetOffsetParameters**](ConsumerGroupResetOffsetParameters.md) | | + +### Return type + +[**ConsumerGroupResetOffsetResult**](ConsumerGroupResetOffsetResult.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/List.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/List.md new file mode 100644 index 00000000..9b17c4e9 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/List.md @@ -0,0 +1,150 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | **[]map[string]interface{}** | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] + +## Methods + +### NewList + +`func NewList(items []map[string]interface{}, total int32, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *List) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *List) GetItems() []map[string]interface{}` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *List) GetItemsOk() (*[]map[string]interface{}, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *List) SetItems(v []map[string]interface{})` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *List) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *List) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *List) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *List) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecated.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecated.md new file mode 100644 index 00000000..b17f8a02 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecated.md @@ -0,0 +1,228 @@ +# ListDeprecated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | **[]map[string]interface{}** | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] +**Offset** | Pointer to **int32** | Offset of the first record returned, zero-based | [optional] +**Limit** | Pointer to **int32** | Maximum number of records to return, from request | [optional] +**Count** | Pointer to **int32** | Total number of entries in the full result set | [optional] + +## Methods + +### NewListDeprecated + +`func NewListDeprecated(items []map[string]interface{}, total int32, ) *ListDeprecated` + +NewListDeprecated instantiates a new ListDeprecated 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 + +### NewListDeprecatedWithDefaults + +`func NewListDeprecatedWithDefaults() *ListDeprecated` + +NewListDeprecatedWithDefaults instantiates a new ListDeprecated 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 + +### GetKind + +`func (o *ListDeprecated) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ListDeprecated) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ListDeprecated) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ListDeprecated) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *ListDeprecated) GetItems() []map[string]interface{}` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ListDeprecated) GetItemsOk() (*[]map[string]interface{}, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ListDeprecated) SetItems(v []map[string]interface{})` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *ListDeprecated) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ListDeprecated) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ListDeprecated) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *ListDeprecated) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ListDeprecated) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ListDeprecated) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ListDeprecated) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *ListDeprecated) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ListDeprecated) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ListDeprecated) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ListDeprecated) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetOffset + +`func (o *ListDeprecated) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ListDeprecated) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ListDeprecated) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *ListDeprecated) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetLimit + +`func (o *ListDeprecated) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ListDeprecated) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ListDeprecated) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *ListDeprecated) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetCount + +`func (o *ListDeprecated) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ListDeprecated) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ListDeprecated) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ListDeprecated) HasCount() bool` + +HasCount 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecatedAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecatedAllOf.md new file mode 100644 index 00000000..b1eeeee3 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ListDeprecatedAllOf.md @@ -0,0 +1,108 @@ +# ListDeprecatedAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Offset** | Pointer to **int32** | Offset of the first record returned, zero-based | [optional] +**Limit** | Pointer to **int32** | Maximum number of records to return, from request | [optional] +**Count** | Pointer to **int32** | Total number of entries in the full result set | [optional] + +## Methods + +### NewListDeprecatedAllOf + +`func NewListDeprecatedAllOf() *ListDeprecatedAllOf` + +NewListDeprecatedAllOf instantiates a new ListDeprecatedAllOf 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 + +### NewListDeprecatedAllOfWithDefaults + +`func NewListDeprecatedAllOfWithDefaults() *ListDeprecatedAllOf` + +NewListDeprecatedAllOfWithDefaults instantiates a new ListDeprecatedAllOf 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 + +### GetOffset + +`func (o *ListDeprecatedAllOf) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ListDeprecatedAllOf) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ListDeprecatedAllOf) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *ListDeprecatedAllOf) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetLimit + +`func (o *ListDeprecatedAllOf) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ListDeprecatedAllOf) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ListDeprecatedAllOf) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *ListDeprecatedAllOf) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetCount + +`func (o *ListDeprecatedAllOf) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ListDeprecatedAllOf) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ListDeprecatedAllOf) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ListDeprecatedAllOf) HasCount() bool` + +HasCount 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/NewTopicInput.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/NewTopicInput.md new file mode 100644 index 00000000..a13f622a --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/NewTopicInput.md @@ -0,0 +1,72 @@ +# NewTopicInput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The topic name, this value must be unique. | +**Settings** | [**TopicSettings**](TopicSettings.md) | | + +## Methods + +### NewNewTopicInput + +`func NewNewTopicInput(name string, settings TopicSettings, ) *NewTopicInput` + +NewNewTopicInput instantiates a new NewTopicInput 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 + +### NewNewTopicInputWithDefaults + +`func NewNewTopicInputWithDefaults() *NewTopicInput` + +NewNewTopicInputWithDefaults instantiates a new NewTopicInput 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 *NewTopicInput) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NewTopicInput) 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 *NewTopicInput) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSettings + +`func (o *NewTopicInput) GetSettings() TopicSettings` + +GetSettings returns the Settings field if non-nil, zero value otherwise. + +### GetSettingsOk + +`func (o *NewTopicInput) GetSettingsOk() (*TopicSettings, bool)` + +GetSettingsOk returns a tuple with the Settings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettings + +`func (o *NewTopicInput) SetSettings(v TopicSettings)` + +SetSettings sets Settings 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Node.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Node.md new file mode 100644 index 00000000..9032fba6 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Node.md @@ -0,0 +1,56 @@ +# Node + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] + +## Methods + +### NewNode + +`func NewNode() *Node` + +NewNode instantiates a new Node 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 + +### NewNodeWithDefaults + +`func NewNodeWithDefaults() *Node` + +NewNodeWithDefaults instantiates a new Node 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 *Node) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Node) GetIdOk() (*int32, 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 *Node) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Node) 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ObjectReference.md new file mode 100644 index 00000000..93e43e47 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/ObjectReference.md @@ -0,0 +1,108 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] + +## Methods + +### NewObjectReference + +`func NewObjectReference() *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ObjectReference) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ObjectReference) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *ObjectReference) HasHref() bool` + +HasHref 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/OffsetType.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/OffsetType.md new file mode 100644 index 00000000..9a2602e3 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/OffsetType.md @@ -0,0 +1,17 @@ +# OffsetType + +## Enum + + +* `TIMESTAMP` (value: `"timestamp"`) + +* `ABSOLUTE` (value: `"absolute"`) + +* `LATEST` (value: `"latest"`) + +* `EARLIEST` (value: `"earliest"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Partition.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Partition.md new file mode 100644 index 00000000..43f3d23b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Partition.md @@ -0,0 +1,155 @@ +# Partition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Partition** | **int32** | The partition id, unique among partitions of the same topic | +**Replicas** | Pointer to [**[]Node**](Node.md) | List of replicas for the partition | [optional] +**Isr** | Pointer to [**[]Node**](Node.md) | List in-sync replicas for this partition. | [optional] +**Leader** | Pointer to [**Node**](Node.md) | | [optional] +**Id** | Pointer to **int32** | Unique id for the partition (deprecated, use `partition` instead) | [optional] + +## Methods + +### NewPartition + +`func NewPartition(partition int32, ) *Partition` + +NewPartition instantiates a new Partition 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 + +### NewPartitionWithDefaults + +`func NewPartitionWithDefaults() *Partition` + +NewPartitionWithDefaults instantiates a new Partition 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 + +### GetPartition + +`func (o *Partition) GetPartition() int32` + +GetPartition returns the Partition field if non-nil, zero value otherwise. + +### GetPartitionOk + +`func (o *Partition) GetPartitionOk() (*int32, bool)` + +GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartition + +`func (o *Partition) SetPartition(v int32)` + +SetPartition sets Partition field to given value. + + +### GetReplicas + +`func (o *Partition) GetReplicas() []Node` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *Partition) GetReplicasOk() (*[]Node, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *Partition) SetReplicas(v []Node)` + +SetReplicas sets Replicas field to given value. + +### HasReplicas + +`func (o *Partition) HasReplicas() bool` + +HasReplicas returns a boolean if a field has been set. + +### GetIsr + +`func (o *Partition) GetIsr() []Node` + +GetIsr returns the Isr field if non-nil, zero value otherwise. + +### GetIsrOk + +`func (o *Partition) GetIsrOk() (*[]Node, bool)` + +GetIsrOk returns a tuple with the Isr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsr + +`func (o *Partition) SetIsr(v []Node)` + +SetIsr sets Isr field to given value. + +### HasIsr + +`func (o *Partition) HasIsr() bool` + +HasIsr returns a boolean if a field has been set. + +### GetLeader + +`func (o *Partition) GetLeader() Node` + +GetLeader returns the Leader field if non-nil, zero value otherwise. + +### GetLeaderOk + +`func (o *Partition) GetLeaderOk() (*Node, bool)` + +GetLeaderOk returns a tuple with the Leader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLeader + +`func (o *Partition) SetLeader(v Node)` + +SetLeader sets Leader field to given value. + +### HasLeader + +`func (o *Partition) HasLeader() bool` + +HasLeader returns a boolean if a field has been set. + +### GetId + +`func (o *Partition) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Partition) GetIdOk() (*int32, 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 *Partition) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Partition) 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Record.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Record.md new file mode 100644 index 00000000..766a7c75 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Record.md @@ -0,0 +1,285 @@ +# Record + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] +**Partition** | Pointer to **int32** | The record's partition within the topic | [optional] +**Offset** | Pointer to **int64** | The record's offset within the topic partition | [optional] [readonly] +**Timestamp** | Pointer to **time.Time** | Timestamp associated with the record. The type is indicated by `timestampType`. When producing a record, this value will be used as the record's `CREATE_TIME`. | [optional] +**TimestampType** | Pointer to **string** | Type of timestamp associated with the record | [optional] [readonly] +**Headers** | Pointer to **map[string]string** | Record headers, key/value pairs | [optional] +**Key** | Pointer to **string** | Record key | [optional] +**Value** | **string** | Record value | + +## Methods + +### NewRecord + +`func NewRecord(value string, ) *Record` + +NewRecord instantiates a new Record 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 + +### NewRecordWithDefaults + +`func NewRecordWithDefaults() *Record` + +NewRecordWithDefaults instantiates a new Record 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 *Record) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Record) 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 *Record) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Record) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Record) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Record) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Record) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Record) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *Record) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Record) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Record) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Record) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetPartition + +`func (o *Record) GetPartition() int32` + +GetPartition returns the Partition field if non-nil, zero value otherwise. + +### GetPartitionOk + +`func (o *Record) GetPartitionOk() (*int32, bool)` + +GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartition + +`func (o *Record) SetPartition(v int32)` + +SetPartition sets Partition field to given value. + +### HasPartition + +`func (o *Record) HasPartition() bool` + +HasPartition returns a boolean if a field has been set. + +### GetOffset + +`func (o *Record) GetOffset() int64` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *Record) GetOffsetOk() (*int64, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *Record) SetOffset(v int64)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *Record) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *Record) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *Record) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *Record) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *Record) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetTimestampType + +`func (o *Record) GetTimestampType() string` + +GetTimestampType returns the TimestampType field if non-nil, zero value otherwise. + +### GetTimestampTypeOk + +`func (o *Record) GetTimestampTypeOk() (*string, bool)` + +GetTimestampTypeOk returns a tuple with the TimestampType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestampType + +`func (o *Record) SetTimestampType(v string)` + +SetTimestampType sets TimestampType field to given value. + +### HasTimestampType + +`func (o *Record) HasTimestampType() bool` + +HasTimestampType returns a boolean if a field has been set. + +### GetHeaders + +`func (o *Record) GetHeaders() map[string]string` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *Record) GetHeadersOk() (*map[string]string, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *Record) SetHeaders(v map[string]string)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *Record) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetKey + +`func (o *Record) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *Record) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *Record) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *Record) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetValue + +`func (o *Record) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Record) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Record) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordAllOf.md new file mode 100644 index 00000000..9d830ca0 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordAllOf.md @@ -0,0 +1,207 @@ +# RecordAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Partition** | Pointer to **int32** | The record's partition within the topic | [optional] +**Offset** | Pointer to **int64** | The record's offset within the topic partition | [optional] [readonly] +**Timestamp** | Pointer to **time.Time** | Timestamp associated with the record. The type is indicated by `timestampType`. When producing a record, this value will be used as the record's `CREATE_TIME`. | [optional] +**TimestampType** | Pointer to **string** | Type of timestamp associated with the record | [optional] [readonly] +**Headers** | Pointer to **map[string]string** | Record headers, key/value pairs | [optional] +**Key** | Pointer to **string** | Record key | [optional] +**Value** | **string** | Record value | + +## Methods + +### NewRecordAllOf + +`func NewRecordAllOf(value string, ) *RecordAllOf` + +NewRecordAllOf instantiates a new RecordAllOf 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 + +### NewRecordAllOfWithDefaults + +`func NewRecordAllOfWithDefaults() *RecordAllOf` + +NewRecordAllOfWithDefaults instantiates a new RecordAllOf 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 + +### GetPartition + +`func (o *RecordAllOf) GetPartition() int32` + +GetPartition returns the Partition field if non-nil, zero value otherwise. + +### GetPartitionOk + +`func (o *RecordAllOf) GetPartitionOk() (*int32, bool)` + +GetPartitionOk returns a tuple with the Partition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartition + +`func (o *RecordAllOf) SetPartition(v int32)` + +SetPartition sets Partition field to given value. + +### HasPartition + +`func (o *RecordAllOf) HasPartition() bool` + +HasPartition returns a boolean if a field has been set. + +### GetOffset + +`func (o *RecordAllOf) GetOffset() int64` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *RecordAllOf) GetOffsetOk() (*int64, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *RecordAllOf) SetOffset(v int64)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *RecordAllOf) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *RecordAllOf) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *RecordAllOf) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *RecordAllOf) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *RecordAllOf) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetTimestampType + +`func (o *RecordAllOf) GetTimestampType() string` + +GetTimestampType returns the TimestampType field if non-nil, zero value otherwise. + +### GetTimestampTypeOk + +`func (o *RecordAllOf) GetTimestampTypeOk() (*string, bool)` + +GetTimestampTypeOk returns a tuple with the TimestampType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestampType + +`func (o *RecordAllOf) SetTimestampType(v string)` + +SetTimestampType sets TimestampType field to given value. + +### HasTimestampType + +`func (o *RecordAllOf) HasTimestampType() bool` + +HasTimestampType returns a boolean if a field has been set. + +### GetHeaders + +`func (o *RecordAllOf) GetHeaders() map[string]string` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *RecordAllOf) GetHeadersOk() (*map[string]string, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *RecordAllOf) SetHeaders(v map[string]string)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *RecordAllOf) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetKey + +`func (o *RecordAllOf) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *RecordAllOf) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *RecordAllOf) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *RecordAllOf) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetValue + +`func (o *RecordAllOf) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RecordAllOf) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RecordAllOf) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordIncludedProperty.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordIncludedProperty.md new file mode 100644 index 00000000..03c47155 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordIncludedProperty.md @@ -0,0 +1,23 @@ +# RecordIncludedProperty + +## Enum + + +* `PARTITION` (value: `"partition"`) + +* `OFFSET` (value: `"offset"`) + +* `TIMESTAMP` (value: `"timestamp"`) + +* `TIMESTAMP_TYPE` (value: `"timestampType"`) + +* `HEADERS` (value: `"headers"`) + +* `KEY` (value: `"key"`) + +* `VALUE` (value: `"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/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordList.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordList.md new file mode 100644 index 00000000..9f1c3803 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordList.md @@ -0,0 +1,150 @@ +# RecordList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]Record**](Record.md) | | +**Total** | **int32** | Total number of records returned in this request. This value does not indicate the total number of records in the topic. | +**Size** | Pointer to **int32** | Not used | [optional] +**Page** | Pointer to **int32** | Not used | [optional] + +## Methods + +### NewRecordList + +`func NewRecordList(items []Record, total int32, ) *RecordList` + +NewRecordList instantiates a new RecordList 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 + +### NewRecordListWithDefaults + +`func NewRecordListWithDefaults() *RecordList` + +NewRecordListWithDefaults instantiates a new RecordList 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 + +### GetKind + +`func (o *RecordList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RecordList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RecordList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *RecordList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *RecordList) GetItems() []Record` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RecordList) GetItemsOk() (*[]Record, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RecordList) SetItems(v []Record)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *RecordList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RecordList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RecordList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *RecordList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RecordList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RecordList) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *RecordList) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *RecordList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RecordList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RecordList) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *RecordList) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordListAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordListAllOf.md new file mode 100644 index 00000000..fdf53792 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordListAllOf.md @@ -0,0 +1,134 @@ +# RecordListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Record**](Record.md) | | [optional] +**Total** | Pointer to **int32** | Total number of records returned in this request. This value does not indicate the total number of records in the topic. | [optional] +**Size** | Pointer to **int32** | Not used | [optional] +**Page** | Pointer to **int32** | Not used | [optional] + +## Methods + +### NewRecordListAllOf + +`func NewRecordListAllOf() *RecordListAllOf` + +NewRecordListAllOf instantiates a new RecordListAllOf 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 + +### NewRecordListAllOfWithDefaults + +`func NewRecordListAllOfWithDefaults() *RecordListAllOf` + +NewRecordListAllOfWithDefaults instantiates a new RecordListAllOf 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 + +### GetItems + +`func (o *RecordListAllOf) GetItems() []Record` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RecordListAllOf) GetItemsOk() (*[]Record, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RecordListAllOf) SetItems(v []Record)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *RecordListAllOf) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetTotal + +`func (o *RecordListAllOf) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RecordListAllOf) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RecordListAllOf) SetTotal(v int32)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *RecordListAllOf) HasTotal() bool` + +HasTotal returns a boolean if a field has been set. + +### GetSize + +`func (o *RecordListAllOf) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RecordListAllOf) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RecordListAllOf) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *RecordListAllOf) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *RecordListAllOf) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RecordListAllOf) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RecordListAllOf) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *RecordListAllOf) HasPage() bool` + +HasPage 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordsApi.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordsApi.md new file mode 100644 index 00000000..d87f7265 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/RecordsApi.md @@ -0,0 +1,164 @@ +# \RecordsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ConsumeRecords**](RecordsApi.md#ConsumeRecords) | **Get** /api/v1/topics/{topicName}/records | Consume records from a topic +[**ProduceRecord**](RecordsApi.md#ProduceRecord) | **Post** /api/v1/topics/{topicName}/records | Send a record to a topic + + + +## ConsumeRecords + +> RecordList ConsumeRecords(ctx, topicName).Include(include).Limit(limit).MaxValueLength(maxValueLength).Offset(offset).Partition(partition).Timestamp(timestamp).Execute() + +Consume records from a topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + topicName := "topicName_example" // string | Topic name + include := []openapiclient.RecordIncludedProperty{openapiclient.RecordIncludedProperty("partition")} // []RecordIncludedProperty | List of properties to include for each record in the response (optional) + limit := int32(56) // int32 | Limit the number of records fetched and returned (optional) + maxValueLength := int32(56) // int32 | Maximum length of string values returned in the response. Values with a length that exceeds this parameter will be truncated. When this parameter is not included in the request, the full string values will be returned. (optional) + offset := int32(56) // int32 | Retrieve messages with an offset equal to or greater than this offset. If both `timestamp` and `offset` are requested, `timestamp` is given preference. (optional) + partition := int32(56) // int32 | Retrieve messages only from this partition (optional) + timestamp := TODO // interface{} | Retrieve messages with a timestamp equal to or later than this timestamp. If both `timestamp` and `offset` are requested, `timestamp` is given preference. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RecordsApi.ConsumeRecords(context.Background(), topicName).Include(include).Limit(limit).MaxValueLength(maxValueLength).Offset(offset).Partition(partition).Timestamp(timestamp).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RecordsApi.ConsumeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ConsumeRecords`: RecordList + fmt.Fprintf(os.Stdout, "Response from `RecordsApi.ConsumeRecords`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**topicName** | **string** | Topic name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiConsumeRecordsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **include** | [**[]RecordIncludedProperty**](RecordIncludedProperty.md) | List of properties to include for each record in the response | + **limit** | **int32** | Limit the number of records fetched and returned | + **maxValueLength** | **int32** | Maximum length of string values returned in the response. Values with a length that exceeds this parameter will be truncated. When this parameter is not included in the request, the full string values will be returned. | + **offset** | **int32** | Retrieve messages with an offset equal to or greater than this offset. If both `timestamp` and `offset` are requested, `timestamp` is given preference. | + **partition** | **int32** | Retrieve messages only from this partition | + **timestamp** | [**interface{}**](interface{}.md) | Retrieve messages with a timestamp equal to or later than this timestamp. If both `timestamp` and `offset` are requested, `timestamp` is given preference. | + +### Return type + +[**RecordList**](RecordList.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ProduceRecord + +> Record ProduceRecord(ctx, topicName).Record(record).Execute() + +Send a record to a topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + topicName := "topicName_example" // string | Topic name + record := *openapiclient.NewRecord("Value_example") // Record | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RecordsApi.ProduceRecord(context.Background(), topicName).Record(record).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RecordsApi.ProduceRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProduceRecord`: Record + fmt.Fprintf(os.Stdout, "Response from `RecordsApi.ProduceRecord`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**topicName** | **string** | Topic name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProduceRecordRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **record** | [**Record**](Record.md) | | + +### Return type + +[**Record**](Record.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/SortDirection.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/SortDirection.md new file mode 100644 index 00000000..10b68c9f --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/SortDirection.md @@ -0,0 +1,13 @@ +# SortDirection + +## Enum + + +* `ASC` (value: `"asc"`) + +* `DESC` (value: `"desc"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/Topic.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Topic.md new file mode 100644 index 00000000..6170c688 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/Topic.md @@ -0,0 +1,212 @@ +# Topic + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier for the object. Not supported for all object kinds. | [optional] +**Kind** | Pointer to **string** | | [optional] [readonly] +**Href** | Pointer to **string** | Link path to request the object. Not supported for all object kinds. | [optional] +**Name** | Pointer to **string** | The name of the topic. | [optional] +**IsInternal** | Pointer to **bool** | | [optional] +**Partitions** | Pointer to [**[]Partition**](Partition.md) | Partitions for this topic. | [optional] +**Config** | Pointer to [**[]ConfigEntry**](ConfigEntry.md) | Topic configuration entry. | [optional] + +## Methods + +### NewTopic + +`func NewTopic() *Topic` + +NewTopic instantiates a new Topic 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 + +### NewTopicWithDefaults + +`func NewTopicWithDefaults() *Topic` + +NewTopicWithDefaults instantiates a new Topic 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 *Topic) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Topic) 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 *Topic) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Topic) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKind + +`func (o *Topic) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Topic) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Topic) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *Topic) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetHref + +`func (o *Topic) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Topic) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Topic) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *Topic) HasHref() bool` + +HasHref returns a boolean if a field has been set. + +### GetName + +`func (o *Topic) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Topic) 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 *Topic) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Topic) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetIsInternal + +`func (o *Topic) GetIsInternal() bool` + +GetIsInternal returns the IsInternal field if non-nil, zero value otherwise. + +### GetIsInternalOk + +`func (o *Topic) GetIsInternalOk() (*bool, bool)` + +GetIsInternalOk returns a tuple with the IsInternal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsInternal + +`func (o *Topic) SetIsInternal(v bool)` + +SetIsInternal sets IsInternal field to given value. + +### HasIsInternal + +`func (o *Topic) HasIsInternal() bool` + +HasIsInternal returns a boolean if a field has been set. + +### GetPartitions + +`func (o *Topic) GetPartitions() []Partition` + +GetPartitions returns the Partitions field if non-nil, zero value otherwise. + +### GetPartitionsOk + +`func (o *Topic) GetPartitionsOk() (*[]Partition, bool)` + +GetPartitionsOk returns a tuple with the Partitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartitions + +`func (o *Topic) SetPartitions(v []Partition)` + +SetPartitions sets Partitions field to given value. + +### HasPartitions + +`func (o *Topic) HasPartitions() bool` + +HasPartitions returns a boolean if a field has been set. + +### GetConfig + +`func (o *Topic) GetConfig() []ConfigEntry` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *Topic) GetConfigOk() (*[]ConfigEntry, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *Topic) SetConfig(v []ConfigEntry)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *Topic) HasConfig() bool` + +HasConfig 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicAllOf.md new file mode 100644 index 00000000..195e66ef --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicAllOf.md @@ -0,0 +1,134 @@ +# TopicAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the topic. | [optional] +**IsInternal** | Pointer to **bool** | | [optional] +**Partitions** | Pointer to [**[]Partition**](Partition.md) | Partitions for this topic. | [optional] +**Config** | Pointer to [**[]ConfigEntry**](ConfigEntry.md) | Topic configuration entry. | [optional] + +## Methods + +### NewTopicAllOf + +`func NewTopicAllOf() *TopicAllOf` + +NewTopicAllOf instantiates a new TopicAllOf 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 + +### NewTopicAllOfWithDefaults + +`func NewTopicAllOfWithDefaults() *TopicAllOf` + +NewTopicAllOfWithDefaults instantiates a new TopicAllOf 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 *TopicAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TopicAllOf) 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 *TopicAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *TopicAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetIsInternal + +`func (o *TopicAllOf) GetIsInternal() bool` + +GetIsInternal returns the IsInternal field if non-nil, zero value otherwise. + +### GetIsInternalOk + +`func (o *TopicAllOf) GetIsInternalOk() (*bool, bool)` + +GetIsInternalOk returns a tuple with the IsInternal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsInternal + +`func (o *TopicAllOf) SetIsInternal(v bool)` + +SetIsInternal sets IsInternal field to given value. + +### HasIsInternal + +`func (o *TopicAllOf) HasIsInternal() bool` + +HasIsInternal returns a boolean if a field has been set. + +### GetPartitions + +`func (o *TopicAllOf) GetPartitions() []Partition` + +GetPartitions returns the Partitions field if non-nil, zero value otherwise. + +### GetPartitionsOk + +`func (o *TopicAllOf) GetPartitionsOk() (*[]Partition, bool)` + +GetPartitionsOk returns a tuple with the Partitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartitions + +`func (o *TopicAllOf) SetPartitions(v []Partition)` + +SetPartitions sets Partitions field to given value. + +### HasPartitions + +`func (o *TopicAllOf) HasPartitions() bool` + +HasPartitions returns a boolean if a field has been set. + +### GetConfig + +`func (o *TopicAllOf) GetConfig() []ConfigEntry` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *TopicAllOf) GetConfigOk() (*[]ConfigEntry, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *TopicAllOf) SetConfig(v []ConfigEntry)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *TopicAllOf) HasConfig() bool` + +HasConfig 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicOrderKey.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicOrderKey.md new file mode 100644 index 00000000..d88a797c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicOrderKey.md @@ -0,0 +1,17 @@ +# TopicOrderKey + +## Enum + + +* `NAME` (value: `"name"`) + +* `PARTITIONS` (value: `"partitions"`) + +* `RETENTION_MS` (value: `"retention.ms"`) + +* `RETENTION_BYTES` (value: `"retention.bytes"`) + + +[[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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicSettings.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicSettings.md new file mode 100644 index 00000000..6f76a2ad --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicSettings.md @@ -0,0 +1,82 @@ +# TopicSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NumPartitions** | Pointer to **int32** | Number of partitions for this topic. If not specified, the default for new topics is `1`. Number of partitions may not be reduced when updating existing topics | [optional] +**Config** | Pointer to [**[]ConfigEntry**](ConfigEntry.md) | Topic configuration entries. | [optional] + +## Methods + +### NewTopicSettings + +`func NewTopicSettings() *TopicSettings` + +NewTopicSettings instantiates a new TopicSettings 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 + +### NewTopicSettingsWithDefaults + +`func NewTopicSettingsWithDefaults() *TopicSettings` + +NewTopicSettingsWithDefaults instantiates a new TopicSettings 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 + +### GetNumPartitions + +`func (o *TopicSettings) GetNumPartitions() int32` + +GetNumPartitions returns the NumPartitions field if non-nil, zero value otherwise. + +### GetNumPartitionsOk + +`func (o *TopicSettings) GetNumPartitionsOk() (*int32, bool)` + +GetNumPartitionsOk returns a tuple with the NumPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumPartitions + +`func (o *TopicSettings) SetNumPartitions(v int32)` + +SetNumPartitions sets NumPartitions field to given value. + +### HasNumPartitions + +`func (o *TopicSettings) HasNumPartitions() bool` + +HasNumPartitions returns a boolean if a field has been set. + +### GetConfig + +`func (o *TopicSettings) GetConfig() []ConfigEntry` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *TopicSettings) GetConfigOk() (*[]ConfigEntry, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *TopicSettings) SetConfig(v []ConfigEntry)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *TopicSettings) HasConfig() bool` + +HasConfig 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsApi.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsApi.md new file mode 100644 index 00000000..4f8c65d7 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsApi.md @@ -0,0 +1,367 @@ +# \TopicsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateTopic**](TopicsApi.md#CreateTopic) | **Post** /api/v1/topics | Creates a new topic +[**DeleteTopic**](TopicsApi.md#DeleteTopic) | **Delete** /api/v1/topics/{topicName} | Deletes a topic +[**GetTopic**](TopicsApi.md#GetTopic) | **Get** /api/v1/topics/{topicName} | Retrieves a single topic +[**GetTopics**](TopicsApi.md#GetTopics) | **Get** /api/v1/topics | Retrieves a list of topics +[**UpdateTopic**](TopicsApi.md#UpdateTopic) | **Patch** /api/v1/topics/{topicName} | Updates a single topic + + + +## CreateTopic + +> Topic CreateTopic(ctx).NewTopicInput(newTopicInput).Execute() + +Creates a new topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + newTopicInput := *openapiclient.NewNewTopicInput("Name_example", *openapiclient.NewTopicSettings()) // NewTopicInput | Topic to create. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.TopicsApi.CreateTopic(context.Background()).NewTopicInput(newTopicInput).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.CreateTopic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTopic`: Topic + fmt.Fprintf(os.Stdout, "Response from `TopicsApi.CreateTopic`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateTopicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **newTopicInput** | [**NewTopicInput**](NewTopicInput.md) | Topic to create. | + +### Return type + +[**Topic**](Topic.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteTopic + +> DeleteTopic(ctx, topicName).Execute() + +Deletes a topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + topicName := "topicName_example" // string | Name of the topic to delete + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.TopicsApi.DeleteTopic(context.Background(), topicName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.DeleteTopic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**topicName** | **string** | Name of the topic to delete | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteTopicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTopic + +> Topic GetTopic(ctx, topicName).Execute() + +Retrieves a single topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + topicName := "topicName_example" // string | Name of the topic to describe + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.TopicsApi.GetTopic(context.Background(), topicName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.GetTopic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTopic`: Topic + fmt.Fprintf(os.Stdout, "Response from `TopicsApi.GetTopic`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**topicName** | **string** | Name of the topic to describe | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTopicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Topic**](Topic.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetTopics + +> TopicsList GetTopics(ctx).Offset(offset).Limit(limit).Size(size).Filter(filter).Page(page).Order(order).OrderKey(orderKey).Execute() + +Retrieves a list of topics + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + offset := int32(56) // int32 | Offset of the first record to return, zero-based (optional) + limit := int32(56) // int32 | Maximum number of records to return (optional) + size := int32(56) // int32 | Number of records per page (optional) + filter := "filter_example" // string | Filter to apply when returning the list of topics (optional) + page := int32(56) // int32 | Page number (optional) + order := openapiclient.SortDirection("asc") // SortDirection | Order items are sorted (optional) + orderKey := openapiclient.TopicOrderKey("name") // TopicOrderKey | Order key to sort the topics by. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.TopicsApi.GetTopics(context.Background()).Offset(offset).Limit(limit).Size(size).Filter(filter).Page(page).Order(order).OrderKey(orderKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.GetTopics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTopics`: TopicsList + fmt.Fprintf(os.Stdout, "Response from `TopicsApi.GetTopics`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTopicsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **offset** | **int32** | Offset of the first record to return, zero-based | + **limit** | **int32** | Maximum number of records to return | + **size** | **int32** | Number of records per page | + **filter** | **string** | Filter to apply when returning the list of topics | + **page** | **int32** | Page number | + **order** | [**SortDirection**](SortDirection.md) | Order items are sorted | + **orderKey** | [**TopicOrderKey**](TopicOrderKey.md) | Order key to sort the topics by. | + +### Return type + +[**TopicsList**](TopicsList.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateTopic + +> Topic UpdateTopic(ctx, topicName).TopicSettings(topicSettings).Execute() + +Updates a single topic + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + topicName := "topicName_example" // string | Name of the topic to update + topicSettings := *openapiclient.NewTopicSettings() // TopicSettings | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.TopicsApi.UpdateTopic(context.Background(), topicName).TopicSettings(topicSettings).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TopicsApi.UpdateTopic``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTopic`: Topic + fmt.Fprintf(os.Stdout, "Response from `TopicsApi.UpdateTopic`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**topicName** | **string** | Name of the topic to update | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateTopicRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **topicSettings** | [**TopicSettings**](TopicSettings.md) | | + +### Return type + +[**Topic**](Topic.md) + +### Authorization + +[Bearer](../README.md#Bearer), [OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsList.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsList.md new file mode 100644 index 00000000..b1d29957 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsList.md @@ -0,0 +1,228 @@ +# TopicsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Items** | [**[]Topic**](Topic.md) | | +**Total** | **int32** | Total number of entries in the full result set | +**Size** | Pointer to **int32** | Number of entries per page (returned for fetch requests) | [optional] +**Page** | Pointer to **int32** | Current page number (returned for fetch requests) | [optional] +**Offset** | Pointer to **int32** | Offset of the first record returned, zero-based | [optional] +**Limit** | Pointer to **int32** | Maximum number of records to return, from request | [optional] +**Count** | Pointer to **int32** | Total number of entries in the full result set | [optional] + +## Methods + +### NewTopicsList + +`func NewTopicsList(items []Topic, total int32, ) *TopicsList` + +NewTopicsList instantiates a new TopicsList 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 + +### NewTopicsListWithDefaults + +`func NewTopicsListWithDefaults() *TopicsList` + +NewTopicsListWithDefaults instantiates a new TopicsList 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 + +### GetKind + +`func (o *TopicsList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *TopicsList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *TopicsList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *TopicsList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetItems + +`func (o *TopicsList) GetItems() []Topic` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *TopicsList) GetItemsOk() (*[]Topic, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *TopicsList) SetItems(v []Topic)` + +SetItems sets Items field to given value. + + +### GetTotal + +`func (o *TopicsList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *TopicsList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *TopicsList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetSize + +`func (o *TopicsList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *TopicsList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *TopicsList) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *TopicsList) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetPage + +`func (o *TopicsList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *TopicsList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *TopicsList) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *TopicsList) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetOffset + +`func (o *TopicsList) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *TopicsList) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *TopicsList) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *TopicsList) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetLimit + +`func (o *TopicsList) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *TopicsList) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *TopicsList) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *TopicsList) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetCount + +`func (o *TopicsList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *TopicsList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *TopicsList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *TopicsList) HasCount() bool` + +HasCount 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsListAllOf.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsListAllOf.md new file mode 100644 index 00000000..6deb19fa --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsListAllOf.md @@ -0,0 +1,56 @@ +# TopicsListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Topic**](Topic.md) | | [optional] + +## Methods + +### NewTopicsListAllOf + +`func NewTopicsListAllOf() *TopicsListAllOf` + +NewTopicsListAllOf instantiates a new TopicsListAllOf 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 + +### NewTopicsListAllOfWithDefaults + +`func NewTopicsListAllOfWithDefaults() *TopicsListAllOf` + +NewTopicsListAllOfWithDefaults instantiates a new TopicsListAllOf 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 + +### GetItems + +`func (o *TopicsListAllOf) GetItems() []Topic` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *TopicsListAllOf) GetItemsOk() (*[]Topic, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *TopicsListAllOf) SetItems(v []Topic)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *TopicsListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsToResetOffset.md b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsToResetOffset.md new file mode 100644 index 00000000..74c44899 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/docs/TopicsToResetOffset.md @@ -0,0 +1,77 @@ +# TopicsToResetOffset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Topic** | **string** | | +**Partitions** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewTopicsToResetOffset + +`func NewTopicsToResetOffset(topic string, ) *TopicsToResetOffset` + +NewTopicsToResetOffset instantiates a new TopicsToResetOffset 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 + +### NewTopicsToResetOffsetWithDefaults + +`func NewTopicsToResetOffsetWithDefaults() *TopicsToResetOffset` + +NewTopicsToResetOffsetWithDefaults instantiates a new TopicsToResetOffset 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 + +### GetTopic + +`func (o *TopicsToResetOffset) GetTopic() string` + +GetTopic returns the Topic field if non-nil, zero value otherwise. + +### GetTopicOk + +`func (o *TopicsToResetOffset) GetTopicOk() (*string, bool)` + +GetTopicOk returns a tuple with the Topic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopic + +`func (o *TopicsToResetOffset) SetTopic(v string)` + +SetTopic sets Topic field to given value. + + +### GetPartitions + +`func (o *TopicsToResetOffset) GetPartitions() []int32` + +GetPartitions returns the Partitions field if non-nil, zero value otherwise. + +### GetPartitionsOk + +`func (o *TopicsToResetOffset) GetPartitionsOk() (*[]int32, bool)` + +GetPartitionsOk returns a tuple with the Partitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartitions + +`func (o *TopicsToResetOffset) SetPartitions(v []int32)` + +SetPartitions sets Partitions field to given value. + +### HasPartitions + +`func (o *TopicsToResetOffset) HasPartitions() bool` + +HasPartitions 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/app-services-sdk-go/kafkainstance/apiv1/client/git_push.sh b/app-services-sdk-go/kafkainstance/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/go.mod b/app-services-sdk-go/kafkainstance/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/go.sum b/app-services-sdk-go/kafkainstance/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding.go new file mode 100644 index 00000000..7b85ec9d --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding.go @@ -0,0 +1,364 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// AclBinding struct for AclBinding +type AclBinding struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` + ResourceType AclResourceType `json:"resourceType"` + ResourceName string `json:"resourceName"` + PatternType AclPatternType `json:"patternType"` + // Identifies the user or service account to which an ACL entry is bound. The literal prefix value of `User:` is required. May be used to specify all users with value `User:*`. + Principal string `json:"principal"` + Operation AclOperation `json:"operation"` + Permission AclPermissionType `json:"permission"` +} + +// NewAclBinding instantiates a new AclBinding 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 NewAclBinding(resourceType AclResourceType, resourceName string, patternType AclPatternType, principal string, operation AclOperation, permission AclPermissionType) *AclBinding { + this := AclBinding{} + this.ResourceType = resourceType + this.ResourceName = resourceName + this.PatternType = patternType + this.Principal = principal + this.Operation = operation + this.Permission = permission + return &this +} + +// NewAclBindingWithDefaults instantiates a new AclBinding 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 NewAclBindingWithDefaults() *AclBinding { + this := AclBinding{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AclBinding) GetId() string { + if o == nil || o.Id == nil { + 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 *AclBinding) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AclBinding) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AclBinding) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AclBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AclBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AclBinding) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *AclBinding) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBinding) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *AclBinding) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *AclBinding) SetHref(v string) { + o.Href = &v +} + +// GetResourceType returns the ResourceType field value +func (o *AclBinding) GetResourceType() AclResourceType { + if o == nil { + var ret AclResourceType + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetResourceTypeOk() (*AclResourceType, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *AclBinding) SetResourceType(v AclResourceType) { + o.ResourceType = v +} + +// GetResourceName returns the ResourceName field value +func (o *AclBinding) GetResourceName() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetResourceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceName, true +} + +// SetResourceName sets field value +func (o *AclBinding) SetResourceName(v string) { + o.ResourceName = v +} + +// GetPatternType returns the PatternType field value +func (o *AclBinding) GetPatternType() AclPatternType { + if o == nil { + var ret AclPatternType + return ret + } + + return o.PatternType +} + +// GetPatternTypeOk returns a tuple with the PatternType field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetPatternTypeOk() (*AclPatternType, bool) { + if o == nil { + return nil, false + } + return &o.PatternType, true +} + +// SetPatternType sets field value +func (o *AclBinding) SetPatternType(v AclPatternType) { + o.PatternType = v +} + +// GetPrincipal returns the Principal field value +func (o *AclBinding) GetPrincipal() string { + if o == nil { + var ret string + return ret + } + + return o.Principal +} + +// GetPrincipalOk returns a tuple with the Principal field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetPrincipalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Principal, true +} + +// SetPrincipal sets field value +func (o *AclBinding) SetPrincipal(v string) { + o.Principal = v +} + +// GetOperation returns the Operation field value +func (o *AclBinding) GetOperation() AclOperation { + if o == nil { + var ret AclOperation + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetOperationOk() (*AclOperation, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *AclBinding) SetOperation(v AclOperation) { + o.Operation = v +} + +// GetPermission returns the Permission field value +func (o *AclBinding) GetPermission() AclPermissionType { + if o == nil { + var ret AclPermissionType + return ret + } + + return o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value +// and a boolean to check if the value has been set. +func (o *AclBinding) GetPermissionOk() (*AclPermissionType, bool) { + if o == nil { + return nil, false + } + return &o.Permission, true +} + +// SetPermission sets field value +func (o *AclBinding) SetPermission(v AclPermissionType) { + o.Permission = v +} + +func (o AclBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if true { + toSerialize["resourceType"] = o.ResourceType + } + if true { + toSerialize["resourceName"] = o.ResourceName + } + if true { + toSerialize["patternType"] = o.PatternType + } + if true { + toSerialize["principal"] = o.Principal + } + if true { + toSerialize["operation"] = o.Operation + } + if true { + toSerialize["permission"] = o.Permission + } + return json.Marshal(toSerialize) +} + +type NullableAclBinding struct { + value *AclBinding + isSet bool +} + +func (v NullableAclBinding) Get() *AclBinding { + return v.value +} + +func (v *NullableAclBinding) Set(val *AclBinding) { + v.value = val + v.isSet = true +} + +func (v NullableAclBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableAclBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclBinding(val *AclBinding) *NullableAclBinding { + return &NullableAclBinding{value: val, isSet: true} +} + +func (v NullableAclBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_all_of.go new file mode 100644 index 00000000..ba8767bf --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_all_of.go @@ -0,0 +1,254 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// AclBindingAllOf Represents a binding between a resource pattern and an access control entry +type AclBindingAllOf struct { + ResourceType AclResourceType `json:"resourceType"` + ResourceName string `json:"resourceName"` + PatternType AclPatternType `json:"patternType"` + // Identifies the user or service account to which an ACL entry is bound. The literal prefix value of `User:` is required. May be used to specify all users with value `User:*`. + Principal string `json:"principal"` + Operation AclOperation `json:"operation"` + Permission AclPermissionType `json:"permission"` +} + +// NewAclBindingAllOf instantiates a new AclBindingAllOf 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 NewAclBindingAllOf(resourceType AclResourceType, resourceName string, patternType AclPatternType, principal string, operation AclOperation, permission AclPermissionType) *AclBindingAllOf { + this := AclBindingAllOf{} + this.ResourceType = resourceType + this.ResourceName = resourceName + this.PatternType = patternType + this.Principal = principal + this.Operation = operation + this.Permission = permission + return &this +} + +// NewAclBindingAllOfWithDefaults instantiates a new AclBindingAllOf 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 NewAclBindingAllOfWithDefaults() *AclBindingAllOf { + this := AclBindingAllOf{} + return &this +} + +// GetResourceType returns the ResourceType field value +func (o *AclBindingAllOf) GetResourceType() AclResourceType { + if o == nil { + var ret AclResourceType + return ret + } + + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetResourceTypeOk() (*AclResourceType, bool) { + if o == nil { + return nil, false + } + return &o.ResourceType, true +} + +// SetResourceType sets field value +func (o *AclBindingAllOf) SetResourceType(v AclResourceType) { + o.ResourceType = v +} + +// GetResourceName returns the ResourceName field value +func (o *AclBindingAllOf) GetResourceName() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetResourceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceName, true +} + +// SetResourceName sets field value +func (o *AclBindingAllOf) SetResourceName(v string) { + o.ResourceName = v +} + +// GetPatternType returns the PatternType field value +func (o *AclBindingAllOf) GetPatternType() AclPatternType { + if o == nil { + var ret AclPatternType + return ret + } + + return o.PatternType +} + +// GetPatternTypeOk returns a tuple with the PatternType field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetPatternTypeOk() (*AclPatternType, bool) { + if o == nil { + return nil, false + } + return &o.PatternType, true +} + +// SetPatternType sets field value +func (o *AclBindingAllOf) SetPatternType(v AclPatternType) { + o.PatternType = v +} + +// GetPrincipal returns the Principal field value +func (o *AclBindingAllOf) GetPrincipal() string { + if o == nil { + var ret string + return ret + } + + return o.Principal +} + +// GetPrincipalOk returns a tuple with the Principal field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetPrincipalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Principal, true +} + +// SetPrincipal sets field value +func (o *AclBindingAllOf) SetPrincipal(v string) { + o.Principal = v +} + +// GetOperation returns the Operation field value +func (o *AclBindingAllOf) GetOperation() AclOperation { + if o == nil { + var ret AclOperation + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetOperationOk() (*AclOperation, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *AclBindingAllOf) SetOperation(v AclOperation) { + o.Operation = v +} + +// GetPermission returns the Permission field value +func (o *AclBindingAllOf) GetPermission() AclPermissionType { + if o == nil { + var ret AclPermissionType + return ret + } + + return o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value +// and a boolean to check if the value has been set. +func (o *AclBindingAllOf) GetPermissionOk() (*AclPermissionType, bool) { + if o == nil { + return nil, false + } + return &o.Permission, true +} + +// SetPermission sets field value +func (o *AclBindingAllOf) SetPermission(v AclPermissionType) { + o.Permission = v +} + +func (o AclBindingAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["resourceType"] = o.ResourceType + } + if true { + toSerialize["resourceName"] = o.ResourceName + } + if true { + toSerialize["patternType"] = o.PatternType + } + if true { + toSerialize["principal"] = o.Principal + } + if true { + toSerialize["operation"] = o.Operation + } + if true { + toSerialize["permission"] = o.Permission + } + return json.Marshal(toSerialize) +} + +type NullableAclBindingAllOf struct { + value *AclBindingAllOf + isSet bool +} + +func (v NullableAclBindingAllOf) Get() *AclBindingAllOf { + return v.value +} + +func (v *NullableAclBindingAllOf) Set(val *AclBindingAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAclBindingAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAclBindingAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclBindingAllOf(val *AclBindingAllOf) *NullableAclBindingAllOf { + return &NullableAclBindingAllOf{value: val, isSet: true} +} + +func (v NullableAclBindingAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclBindingAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page.go new file mode 100644 index 00000000..a3c469cb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page.go @@ -0,0 +1,248 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// AclBindingListPage struct for AclBindingListPage +type AclBindingListPage struct { + Kind *string `json:"kind,omitempty"` + Items []AclBinding `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` +} + +// NewAclBindingListPage instantiates a new AclBindingListPage 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 NewAclBindingListPage(items []AclBinding, total int32) *AclBindingListPage { + this := AclBindingListPage{} + this.Items = items + this.Total = total + return &this +} + +// NewAclBindingListPageWithDefaults instantiates a new AclBindingListPage 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 NewAclBindingListPageWithDefaults() *AclBindingListPage { + this := AclBindingListPage{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *AclBindingListPage) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBindingListPage) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *AclBindingListPage) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *AclBindingListPage) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *AclBindingListPage) GetItems() []AclBinding { + if o == nil { + var ret []AclBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *AclBindingListPage) GetItemsOk() (*[]AclBinding, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *AclBindingListPage) SetItems(v []AclBinding) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *AclBindingListPage) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *AclBindingListPage) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *AclBindingListPage) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *AclBindingListPage) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBindingListPage) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *AclBindingListPage) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *AclBindingListPage) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *AclBindingListPage) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBindingListPage) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *AclBindingListPage) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *AclBindingListPage) SetPage(v int32) { + o.Page = &v +} + +func (o AclBindingListPage) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableAclBindingListPage struct { + value *AclBindingListPage + isSet bool +} + +func (v NullableAclBindingListPage) Get() *AclBindingListPage { + return v.value +} + +func (v *NullableAclBindingListPage) Set(val *AclBindingListPage) { + v.value = val + v.isSet = true +} + +func (v NullableAclBindingListPage) IsSet() bool { + return v.isSet +} + +func (v *NullableAclBindingListPage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclBindingListPage(val *AclBindingListPage) *NullableAclBindingListPage { + return &NullableAclBindingListPage{value: val, isSet: true} +} + +func (v NullableAclBindingListPage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclBindingListPage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page_all_of.go new file mode 100644 index 00000000..01335522 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_list_page_all_of.go @@ -0,0 +1,115 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// AclBindingListPageAllOf A page of ACL binding entries +type AclBindingListPageAllOf struct { + Items *[]AclBinding `json:"items,omitempty"` +} + +// NewAclBindingListPageAllOf instantiates a new AclBindingListPageAllOf 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 NewAclBindingListPageAllOf() *AclBindingListPageAllOf { + this := AclBindingListPageAllOf{} + return &this +} + +// NewAclBindingListPageAllOfWithDefaults instantiates a new AclBindingListPageAllOf 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 NewAclBindingListPageAllOfWithDefaults() *AclBindingListPageAllOf { + this := AclBindingListPageAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *AclBindingListPageAllOf) GetItems() []AclBinding { + if o == nil || o.Items == nil { + var ret []AclBinding + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AclBindingListPageAllOf) GetItemsOk() (*[]AclBinding, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *AclBindingListPageAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []AclBinding and assigns it to the Items field. +func (o *AclBindingListPageAllOf) SetItems(v []AclBinding) { + o.Items = &v +} + +func (o AclBindingListPageAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableAclBindingListPageAllOf struct { + value *AclBindingListPageAllOf + isSet bool +} + +func (v NullableAclBindingListPageAllOf) Get() *AclBindingListPageAllOf { + return v.value +} + +func (v *NullableAclBindingListPageAllOf) Set(val *AclBindingListPageAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAclBindingListPageAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAclBindingListPageAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclBindingListPageAllOf(val *AclBindingListPageAllOf) *NullableAclBindingListPageAllOf { + return &NullableAclBindingListPageAllOf{value: val, isSet: true} +} + +func (v NullableAclBindingListPageAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclBindingListPageAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_order_key.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_order_key.go new file mode 100644 index 00000000..08f1eb90 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_binding_order_key.go @@ -0,0 +1,118 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclBindingOrderKey the model 'AclBindingOrderKey' +type AclBindingOrderKey string + +// List of AclBindingOrderKey +const ( + ACLBINDINGORDERKEY_RESOURCE_TYPE AclBindingOrderKey = "resourceType" + ACLBINDINGORDERKEY_RESOURCE_NAME AclBindingOrderKey = "resourceName" + ACLBINDINGORDERKEY_PATTERN_TYPE AclBindingOrderKey = "patternType" + ACLBINDINGORDERKEY_PRINCIPAL AclBindingOrderKey = "principal" + ACLBINDINGORDERKEY_OPERATION AclBindingOrderKey = "operation" + ACLBINDINGORDERKEY_PERMISSION AclBindingOrderKey = "permission" +) + +var allowedAclBindingOrderKeyEnumValues = []AclBindingOrderKey{ + "resourceType", + "resourceName", + "patternType", + "principal", + "operation", + "permission", +} + +func (v *AclBindingOrderKey) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclBindingOrderKey(value) + for _, existing := range allowedAclBindingOrderKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclBindingOrderKey", value) +} + +// NewAclBindingOrderKeyFromValue returns a pointer to a valid AclBindingOrderKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclBindingOrderKeyFromValue(v string) (*AclBindingOrderKey, error) { + ev := AclBindingOrderKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclBindingOrderKey: valid values are %v", v, allowedAclBindingOrderKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclBindingOrderKey) IsValid() bool { + for _, existing := range allowedAclBindingOrderKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclBindingOrderKey value +func (v AclBindingOrderKey) Ptr() *AclBindingOrderKey { + return &v +} + +type NullableAclBindingOrderKey struct { + value *AclBindingOrderKey + isSet bool +} + +func (v NullableAclBindingOrderKey) Get() *AclBindingOrderKey { + return v.value +} + +func (v *NullableAclBindingOrderKey) Set(val *AclBindingOrderKey) { + v.value = val + v.isSet = true +} + +func (v NullableAclBindingOrderKey) IsSet() bool { + return v.isSet +} + +func (v *NullableAclBindingOrderKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclBindingOrderKey(val *AclBindingOrderKey) *NullableAclBindingOrderKey { + return &NullableAclBindingOrderKey{value: val, isSet: true} +} + +func (v NullableAclBindingOrderKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclBindingOrderKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation.go new file mode 100644 index 00000000..5cc24f24 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation.go @@ -0,0 +1,124 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclOperation the model 'AclOperation' +type AclOperation string + +// List of AclOperation +const ( + ACLOPERATION_ALL AclOperation = "ALL" + ACLOPERATION_READ AclOperation = "READ" + ACLOPERATION_WRITE AclOperation = "WRITE" + ACLOPERATION_CREATE AclOperation = "CREATE" + ACLOPERATION_DELETE AclOperation = "DELETE" + ACLOPERATION_ALTER AclOperation = "ALTER" + ACLOPERATION_DESCRIBE AclOperation = "DESCRIBE" + ACLOPERATION_DESCRIBE_CONFIGS AclOperation = "DESCRIBE_CONFIGS" + ACLOPERATION_ALTER_CONFIGS AclOperation = "ALTER_CONFIGS" +) + +var allowedAclOperationEnumValues = []AclOperation{ + "ALL", + "READ", + "WRITE", + "CREATE", + "DELETE", + "ALTER", + "DESCRIBE", + "DESCRIBE_CONFIGS", + "ALTER_CONFIGS", +} + +func (v *AclOperation) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclOperation(value) + for _, existing := range allowedAclOperationEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclOperation", value) +} + +// NewAclOperationFromValue returns a pointer to a valid AclOperation +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclOperationFromValue(v string) (*AclOperation, error) { + ev := AclOperation(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclOperation: valid values are %v", v, allowedAclOperationEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclOperation) IsValid() bool { + for _, existing := range allowedAclOperationEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclOperation value +func (v AclOperation) Ptr() *AclOperation { + return &v +} + +type NullableAclOperation struct { + value *AclOperation + isSet bool +} + +func (v NullableAclOperation) Get() *AclOperation { + return v.value +} + +func (v *NullableAclOperation) Set(val *AclOperation) { + v.value = val + v.isSet = true +} + +func (v NullableAclOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableAclOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclOperation(val *AclOperation) *NullableAclOperation { + return &NullableAclOperation{value: val, isSet: true} +} + +func (v NullableAclOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation_filter.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation_filter.go new file mode 100644 index 00000000..6c8147ba --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_operation_filter.go @@ -0,0 +1,126 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclOperationFilter the model 'AclOperationFilter' +type AclOperationFilter string + +// List of AclOperationFilter +const ( + ACLOPERATIONFILTER_ALL AclOperationFilter = "ALL" + ACLOPERATIONFILTER_READ AclOperationFilter = "READ" + ACLOPERATIONFILTER_WRITE AclOperationFilter = "WRITE" + ACLOPERATIONFILTER_CREATE AclOperationFilter = "CREATE" + ACLOPERATIONFILTER_DELETE AclOperationFilter = "DELETE" + ACLOPERATIONFILTER_ALTER AclOperationFilter = "ALTER" + ACLOPERATIONFILTER_DESCRIBE AclOperationFilter = "DESCRIBE" + ACLOPERATIONFILTER_DESCRIBE_CONFIGS AclOperationFilter = "DESCRIBE_CONFIGS" + ACLOPERATIONFILTER_ALTER_CONFIGS AclOperationFilter = "ALTER_CONFIGS" + ACLOPERATIONFILTER_ANY AclOperationFilter = "ANY" +) + +var allowedAclOperationFilterEnumValues = []AclOperationFilter{ + "ALL", + "READ", + "WRITE", + "CREATE", + "DELETE", + "ALTER", + "DESCRIBE", + "DESCRIBE_CONFIGS", + "ALTER_CONFIGS", + "ANY", +} + +func (v *AclOperationFilter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclOperationFilter(value) + for _, existing := range allowedAclOperationFilterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclOperationFilter", value) +} + +// NewAclOperationFilterFromValue returns a pointer to a valid AclOperationFilter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclOperationFilterFromValue(v string) (*AclOperationFilter, error) { + ev := AclOperationFilter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclOperationFilter: valid values are %v", v, allowedAclOperationFilterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclOperationFilter) IsValid() bool { + for _, existing := range allowedAclOperationFilterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclOperationFilter value +func (v AclOperationFilter) Ptr() *AclOperationFilter { + return &v +} + +type NullableAclOperationFilter struct { + value *AclOperationFilter + isSet bool +} + +func (v NullableAclOperationFilter) Get() *AclOperationFilter { + return v.value +} + +func (v *NullableAclOperationFilter) Set(val *AclOperationFilter) { + v.value = val + v.isSet = true +} + +func (v NullableAclOperationFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableAclOperationFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclOperationFilter(val *AclOperationFilter) *NullableAclOperationFilter { + return &NullableAclOperationFilter{value: val, isSet: true} +} + +func (v NullableAclOperationFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclOperationFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type.go new file mode 100644 index 00000000..e1b4ed23 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type.go @@ -0,0 +1,110 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclPatternType the model 'AclPatternType' +type AclPatternType string + +// List of AclPatternType +const ( + ACLPATTERNTYPE_LITERAL AclPatternType = "LITERAL" + ACLPATTERNTYPE_PREFIXED AclPatternType = "PREFIXED" +) + +var allowedAclPatternTypeEnumValues = []AclPatternType{ + "LITERAL", + "PREFIXED", +} + +func (v *AclPatternType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclPatternType(value) + for _, existing := range allowedAclPatternTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclPatternType", value) +} + +// NewAclPatternTypeFromValue returns a pointer to a valid AclPatternType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclPatternTypeFromValue(v string) (*AclPatternType, error) { + ev := AclPatternType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclPatternType: valid values are %v", v, allowedAclPatternTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclPatternType) IsValid() bool { + for _, existing := range allowedAclPatternTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclPatternType value +func (v AclPatternType) Ptr() *AclPatternType { + return &v +} + +type NullableAclPatternType struct { + value *AclPatternType + isSet bool +} + +func (v NullableAclPatternType) Get() *AclPatternType { + return v.value +} + +func (v *NullableAclPatternType) Set(val *AclPatternType) { + v.value = val + v.isSet = true +} + +func (v NullableAclPatternType) IsSet() bool { + return v.isSet +} + +func (v *NullableAclPatternType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclPatternType(val *AclPatternType) *NullableAclPatternType { + return &NullableAclPatternType{value: val, isSet: true} +} + +func (v NullableAclPatternType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclPatternType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type_filter.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type_filter.go new file mode 100644 index 00000000..e60c8a9f --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_pattern_type_filter.go @@ -0,0 +1,114 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclPatternTypeFilter Use value 'MATCH' to perform pattern matching. +type AclPatternTypeFilter string + +// List of AclPatternTypeFilter +const ( + ACLPATTERNTYPEFILTER_LITERAL AclPatternTypeFilter = "LITERAL" + ACLPATTERNTYPEFILTER_PREFIXED AclPatternTypeFilter = "PREFIXED" + ACLPATTERNTYPEFILTER_ANY AclPatternTypeFilter = "ANY" + ACLPATTERNTYPEFILTER_MATCH AclPatternTypeFilter = "MATCH" +) + +var allowedAclPatternTypeFilterEnumValues = []AclPatternTypeFilter{ + "LITERAL", + "PREFIXED", + "ANY", + "MATCH", +} + +func (v *AclPatternTypeFilter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclPatternTypeFilter(value) + for _, existing := range allowedAclPatternTypeFilterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclPatternTypeFilter", value) +} + +// NewAclPatternTypeFilterFromValue returns a pointer to a valid AclPatternTypeFilter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclPatternTypeFilterFromValue(v string) (*AclPatternTypeFilter, error) { + ev := AclPatternTypeFilter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclPatternTypeFilter: valid values are %v", v, allowedAclPatternTypeFilterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclPatternTypeFilter) IsValid() bool { + for _, existing := range allowedAclPatternTypeFilterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclPatternTypeFilter value +func (v AclPatternTypeFilter) Ptr() *AclPatternTypeFilter { + return &v +} + +type NullableAclPatternTypeFilter struct { + value *AclPatternTypeFilter + isSet bool +} + +func (v NullableAclPatternTypeFilter) Get() *AclPatternTypeFilter { + return v.value +} + +func (v *NullableAclPatternTypeFilter) Set(val *AclPatternTypeFilter) { + v.value = val + v.isSet = true +} + +func (v NullableAclPatternTypeFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableAclPatternTypeFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclPatternTypeFilter(val *AclPatternTypeFilter) *NullableAclPatternTypeFilter { + return &NullableAclPatternTypeFilter{value: val, isSet: true} +} + +func (v NullableAclPatternTypeFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclPatternTypeFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type.go new file mode 100644 index 00000000..1e406aef --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type.go @@ -0,0 +1,110 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclPermissionType the model 'AclPermissionType' +type AclPermissionType string + +// List of AclPermissionType +const ( + ACLPERMISSIONTYPE_ALLOW AclPermissionType = "ALLOW" + ACLPERMISSIONTYPE_DENY AclPermissionType = "DENY" +) + +var allowedAclPermissionTypeEnumValues = []AclPermissionType{ + "ALLOW", + "DENY", +} + +func (v *AclPermissionType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclPermissionType(value) + for _, existing := range allowedAclPermissionTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclPermissionType", value) +} + +// NewAclPermissionTypeFromValue returns a pointer to a valid AclPermissionType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclPermissionTypeFromValue(v string) (*AclPermissionType, error) { + ev := AclPermissionType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclPermissionType: valid values are %v", v, allowedAclPermissionTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclPermissionType) IsValid() bool { + for _, existing := range allowedAclPermissionTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclPermissionType value +func (v AclPermissionType) Ptr() *AclPermissionType { + return &v +} + +type NullableAclPermissionType struct { + value *AclPermissionType + isSet bool +} + +func (v NullableAclPermissionType) Get() *AclPermissionType { + return v.value +} + +func (v *NullableAclPermissionType) Set(val *AclPermissionType) { + v.value = val + v.isSet = true +} + +func (v NullableAclPermissionType) IsSet() bool { + return v.isSet +} + +func (v *NullableAclPermissionType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclPermissionType(val *AclPermissionType) *NullableAclPermissionType { + return &NullableAclPermissionType{value: val, isSet: true} +} + +func (v NullableAclPermissionType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclPermissionType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type_filter.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type_filter.go new file mode 100644 index 00000000..888d66d9 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_permission_type_filter.go @@ -0,0 +1,112 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclPermissionTypeFilter the model 'AclPermissionTypeFilter' +type AclPermissionTypeFilter string + +// List of AclPermissionTypeFilter +const ( + ACLPERMISSIONTYPEFILTER_ALLOW AclPermissionTypeFilter = "ALLOW" + ACLPERMISSIONTYPEFILTER_DENY AclPermissionTypeFilter = "DENY" + ACLPERMISSIONTYPEFILTER_ANY AclPermissionTypeFilter = "ANY" +) + +var allowedAclPermissionTypeFilterEnumValues = []AclPermissionTypeFilter{ + "ALLOW", + "DENY", + "ANY", +} + +func (v *AclPermissionTypeFilter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclPermissionTypeFilter(value) + for _, existing := range allowedAclPermissionTypeFilterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclPermissionTypeFilter", value) +} + +// NewAclPermissionTypeFilterFromValue returns a pointer to a valid AclPermissionTypeFilter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclPermissionTypeFilterFromValue(v string) (*AclPermissionTypeFilter, error) { + ev := AclPermissionTypeFilter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclPermissionTypeFilter: valid values are %v", v, allowedAclPermissionTypeFilterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclPermissionTypeFilter) IsValid() bool { + for _, existing := range allowedAclPermissionTypeFilterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclPermissionTypeFilter value +func (v AclPermissionTypeFilter) Ptr() *AclPermissionTypeFilter { + return &v +} + +type NullableAclPermissionTypeFilter struct { + value *AclPermissionTypeFilter + isSet bool +} + +func (v NullableAclPermissionTypeFilter) Get() *AclPermissionTypeFilter { + return v.value +} + +func (v *NullableAclPermissionTypeFilter) Set(val *AclPermissionTypeFilter) { + v.value = val + v.isSet = true +} + +func (v NullableAclPermissionTypeFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableAclPermissionTypeFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclPermissionTypeFilter(val *AclPermissionTypeFilter) *NullableAclPermissionTypeFilter { + return &NullableAclPermissionTypeFilter{value: val, isSet: true} +} + +func (v NullableAclPermissionTypeFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclPermissionTypeFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type.go new file mode 100644 index 00000000..e70c5746 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type.go @@ -0,0 +1,114 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclResourceType the model 'AclResourceType' +type AclResourceType string + +// List of AclResourceType +const ( + ACLRESOURCETYPE_GROUP AclResourceType = "GROUP" + ACLRESOURCETYPE_TOPIC AclResourceType = "TOPIC" + ACLRESOURCETYPE_CLUSTER AclResourceType = "CLUSTER" + ACLRESOURCETYPE_TRANSACTIONAL_ID AclResourceType = "TRANSACTIONAL_ID" +) + +var allowedAclResourceTypeEnumValues = []AclResourceType{ + "GROUP", + "TOPIC", + "CLUSTER", + "TRANSACTIONAL_ID", +} + +func (v *AclResourceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclResourceType(value) + for _, existing := range allowedAclResourceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclResourceType", value) +} + +// NewAclResourceTypeFromValue returns a pointer to a valid AclResourceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclResourceTypeFromValue(v string) (*AclResourceType, error) { + ev := AclResourceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclResourceType: valid values are %v", v, allowedAclResourceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclResourceType) IsValid() bool { + for _, existing := range allowedAclResourceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclResourceType value +func (v AclResourceType) Ptr() *AclResourceType { + return &v +} + +type NullableAclResourceType struct { + value *AclResourceType + isSet bool +} + +func (v NullableAclResourceType) Get() *AclResourceType { + return v.value +} + +func (v *NullableAclResourceType) Set(val *AclResourceType) { + v.value = val + v.isSet = true +} + +func (v NullableAclResourceType) IsSet() bool { + return v.isSet +} + +func (v *NullableAclResourceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclResourceType(val *AclResourceType) *NullableAclResourceType { + return &NullableAclResourceType{value: val, isSet: true} +} + +func (v NullableAclResourceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclResourceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type_filter.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type_filter.go new file mode 100644 index 00000000..41ce0285 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_acl_resource_type_filter.go @@ -0,0 +1,116 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// AclResourceTypeFilter the model 'AclResourceTypeFilter' +type AclResourceTypeFilter string + +// List of AclResourceTypeFilter +const ( + ACLRESOURCETYPEFILTER_ANY AclResourceTypeFilter = "ANY" + ACLRESOURCETYPEFILTER_GROUP AclResourceTypeFilter = "GROUP" + ACLRESOURCETYPEFILTER_TOPIC AclResourceTypeFilter = "TOPIC" + ACLRESOURCETYPEFILTER_CLUSTER AclResourceTypeFilter = "CLUSTER" + ACLRESOURCETYPEFILTER_TRANSACTIONAL_ID AclResourceTypeFilter = "TRANSACTIONAL_ID" +) + +var allowedAclResourceTypeFilterEnumValues = []AclResourceTypeFilter{ + "ANY", + "GROUP", + "TOPIC", + "CLUSTER", + "TRANSACTIONAL_ID", +} + +func (v *AclResourceTypeFilter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AclResourceTypeFilter(value) + for _, existing := range allowedAclResourceTypeFilterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AclResourceTypeFilter", value) +} + +// NewAclResourceTypeFilterFromValue returns a pointer to a valid AclResourceTypeFilter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAclResourceTypeFilterFromValue(v string) (*AclResourceTypeFilter, error) { + ev := AclResourceTypeFilter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AclResourceTypeFilter: valid values are %v", v, allowedAclResourceTypeFilterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AclResourceTypeFilter) IsValid() bool { + for _, existing := range allowedAclResourceTypeFilterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AclResourceTypeFilter value +func (v AclResourceTypeFilter) Ptr() *AclResourceTypeFilter { + return &v +} + +type NullableAclResourceTypeFilter struct { + value *AclResourceTypeFilter + isSet bool +} + +func (v NullableAclResourceTypeFilter) Get() *AclResourceTypeFilter { + return v.value +} + +func (v *NullableAclResourceTypeFilter) Set(val *AclResourceTypeFilter) { + v.value = val + v.isSet = true +} + +func (v NullableAclResourceTypeFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableAclResourceTypeFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAclResourceTypeFilter(val *AclResourceTypeFilter) *NullableAclResourceTypeFilter { + return &NullableAclResourceTypeFilter{value: val, isSet: true} +} + +func (v NullableAclResourceTypeFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAclResourceTypeFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_config_entry.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_config_entry.go new file mode 100644 index 00000000..ad0e542c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_config_entry.go @@ -0,0 +1,139 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConfigEntry Key value pair indicating possible configuration options for a topic. +type ConfigEntry struct { + // The key indicating what configuration entry you would like to set for the topic. + Key string `json:"key"` + // Value to indicate the setting on the topic configuration entry. + Value string `json:"value"` +} + +// NewConfigEntry instantiates a new ConfigEntry 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 NewConfigEntry(key string, value string) *ConfigEntry { + this := ConfigEntry{} + this.Key = key + this.Value = value + return &this +} + +// NewConfigEntryWithDefaults instantiates a new ConfigEntry 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 NewConfigEntryWithDefaults() *ConfigEntry { + this := ConfigEntry{} + return &this +} + +// GetKey returns the Key field value +func (o *ConfigEntry) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *ConfigEntry) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *ConfigEntry) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value +func (o *ConfigEntry) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ConfigEntry) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ConfigEntry) SetValue(v string) { + o.Value = v +} + +func (o ConfigEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableConfigEntry struct { + value *ConfigEntry + isSet bool +} + +func (v NullableConfigEntry) Get() *ConfigEntry { + return v.value +} + +func (v *NullableConfigEntry) Set(val *ConfigEntry) { + v.value = val + v.isSet = true +} + +func (v NullableConfigEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigEntry(val *ConfigEntry) *NullableConfigEntry { + return &NullableConfigEntry{value: val, isSet: true} +} + +func (v NullableConfigEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer.go new file mode 100644 index 00000000..7e1a893b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer.go @@ -0,0 +1,303 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// Consumer A Kafka consumer is responsible for reading records from one or more topics and one or more partitions of a topic. +type Consumer struct { + // Unique identifier for the consumer group to which this consumer belongs. + GroupId string `json:"groupId"` + // The unique topic name to which this consumer belongs + Topic string `json:"topic"` + // The partition number to which this consumer group is assigned to. + Partition int32 `json:"partition"` + // Offset denotes the position of the consumer in a partition. + Offset int64 `json:"offset"` + // The log end offset is the offset of the last message written to a log. + LogEndOffset *int64 `json:"logEndOffset,omitempty"` + // Offset Lag is the delta between the last produced message and the last consumer's committed offset. + Lag int64 `json:"lag"` + // The member ID is a unique identifier given to a consumer by the coordinator upon initially joining the group. + MemberId *string `json:"memberId,omitempty"` +} + +// NewConsumer instantiates a new Consumer 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 NewConsumer(groupId string, topic string, partition int32, offset int64, lag int64) *Consumer { + this := Consumer{} + this.GroupId = groupId + this.Topic = topic + this.Partition = partition + this.Offset = offset + this.Lag = lag + return &this +} + +// NewConsumerWithDefaults instantiates a new Consumer 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 NewConsumerWithDefaults() *Consumer { + this := Consumer{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *Consumer) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *Consumer) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *Consumer) SetGroupId(v string) { + o.GroupId = v +} + +// GetTopic returns the Topic field value +func (o *Consumer) GetTopic() string { + if o == nil { + var ret string + return ret + } + + return o.Topic +} + +// GetTopicOk returns a tuple with the Topic field value +// and a boolean to check if the value has been set. +func (o *Consumer) GetTopicOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Topic, true +} + +// SetTopic sets field value +func (o *Consumer) SetTopic(v string) { + o.Topic = v +} + +// GetPartition returns the Partition field value +func (o *Consumer) GetPartition() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value +// and a boolean to check if the value has been set. +func (o *Consumer) GetPartitionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Partition, true +} + +// SetPartition sets field value +func (o *Consumer) SetPartition(v int32) { + o.Partition = v +} + +// GetOffset returns the Offset field value +func (o *Consumer) GetOffset() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *Consumer) GetOffsetOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *Consumer) SetOffset(v int64) { + o.Offset = v +} + +// GetLogEndOffset returns the LogEndOffset field value if set, zero value otherwise. +func (o *Consumer) GetLogEndOffset() int64 { + if o == nil || o.LogEndOffset == nil { + var ret int64 + return ret + } + return *o.LogEndOffset +} + +// GetLogEndOffsetOk returns a tuple with the LogEndOffset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Consumer) GetLogEndOffsetOk() (*int64, bool) { + if o == nil || o.LogEndOffset == nil { + return nil, false + } + return o.LogEndOffset, true +} + +// HasLogEndOffset returns a boolean if a field has been set. +func (o *Consumer) HasLogEndOffset() bool { + if o != nil && o.LogEndOffset != nil { + return true + } + + return false +} + +// SetLogEndOffset gets a reference to the given int64 and assigns it to the LogEndOffset field. +func (o *Consumer) SetLogEndOffset(v int64) { + o.LogEndOffset = &v +} + +// GetLag returns the Lag field value +func (o *Consumer) GetLag() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Lag +} + +// GetLagOk returns a tuple with the Lag field value +// and a boolean to check if the value has been set. +func (o *Consumer) GetLagOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Lag, true +} + +// SetLag sets field value +func (o *Consumer) SetLag(v int64) { + o.Lag = v +} + +// GetMemberId returns the MemberId field value if set, zero value otherwise. +func (o *Consumer) GetMemberId() string { + if o == nil || o.MemberId == nil { + var ret string + return ret + } + return *o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Consumer) GetMemberIdOk() (*string, bool) { + if o == nil || o.MemberId == nil { + return nil, false + } + return o.MemberId, true +} + +// HasMemberId returns a boolean if a field has been set. +func (o *Consumer) HasMemberId() bool { + if o != nil && o.MemberId != nil { + return true + } + + return false +} + +// SetMemberId gets a reference to the given string and assigns it to the MemberId field. +func (o *Consumer) SetMemberId(v string) { + o.MemberId = &v +} + +func (o Consumer) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["groupId"] = o.GroupId + } + if true { + toSerialize["topic"] = o.Topic + } + if true { + toSerialize["partition"] = o.Partition + } + if true { + toSerialize["offset"] = o.Offset + } + if o.LogEndOffset != nil { + toSerialize["logEndOffset"] = o.LogEndOffset + } + if true { + toSerialize["lag"] = o.Lag + } + if o.MemberId != nil { + toSerialize["memberId"] = o.MemberId + } + return json.Marshal(toSerialize) +} + +type NullableConsumer struct { + value *Consumer + isSet bool +} + +func (v NullableConsumer) Get() *Consumer { + return v.value +} + +func (v *NullableConsumer) Set(val *Consumer) { + v.value = val + v.isSet = true +} + +func (v NullableConsumer) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumer(val *Consumer) *NullableConsumer { + return &NullableConsumer{value: val, isSet: true} +} + +func (v NullableConsumer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group.go new file mode 100644 index 00000000..cc28856c --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group.go @@ -0,0 +1,321 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroup struct for ConsumerGroup +type ConsumerGroup struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` + // Unique identifier for the consumer group + GroupId string `json:"groupId"` + State *ConsumerGroupState `json:"state,omitempty"` + // The list of consumers associated with this consumer group + Consumers []Consumer `json:"consumers"` + Metrics *ConsumerGroupMetrics `json:"metrics,omitempty"` +} + +// NewConsumerGroup instantiates a new ConsumerGroup 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 NewConsumerGroup(groupId string, consumers []Consumer) *ConsumerGroup { + this := ConsumerGroup{} + this.GroupId = groupId + this.Consumers = consumers + return &this +} + +// NewConsumerGroupWithDefaults instantiates a new ConsumerGroup 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 NewConsumerGroupWithDefaults() *ConsumerGroup { + this := ConsumerGroup{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ConsumerGroup) GetId() string { + if o == nil || o.Id == nil { + 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 *ConsumerGroup) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ConsumerGroup) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ConsumerGroup) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConsumerGroup) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConsumerGroup) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConsumerGroup) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ConsumerGroup) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ConsumerGroup) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ConsumerGroup) SetHref(v string) { + o.Href = &v +} + +// GetGroupId returns the GroupId field value +func (o *ConsumerGroup) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *ConsumerGroup) SetGroupId(v string) { + o.GroupId = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ConsumerGroup) GetState() ConsumerGroupState { + if o == nil || o.State == nil { + var ret ConsumerGroupState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetStateOk() (*ConsumerGroupState, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ConsumerGroup) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given ConsumerGroupState and assigns it to the State field. +func (o *ConsumerGroup) SetState(v ConsumerGroupState) { + o.State = &v +} + +// GetConsumers returns the Consumers field value +func (o *ConsumerGroup) GetConsumers() []Consumer { + if o == nil { + var ret []Consumer + return ret + } + + return o.Consumers +} + +// GetConsumersOk returns a tuple with the Consumers field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetConsumersOk() (*[]Consumer, bool) { + if o == nil { + return nil, false + } + return &o.Consumers, true +} + +// SetConsumers sets field value +func (o *ConsumerGroup) SetConsumers(v []Consumer) { + o.Consumers = v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *ConsumerGroup) GetMetrics() ConsumerGroupMetrics { + if o == nil || o.Metrics == nil { + var ret ConsumerGroupMetrics + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroup) GetMetricsOk() (*ConsumerGroupMetrics, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *ConsumerGroup) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given ConsumerGroupMetrics and assigns it to the Metrics field. +func (o *ConsumerGroup) SetMetrics(v ConsumerGroupMetrics) { + o.Metrics = &v +} + +func (o ConsumerGroup) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if true { + toSerialize["groupId"] = o.GroupId + } + if o.State != nil { + toSerialize["state"] = o.State + } + if true { + toSerialize["consumers"] = o.Consumers + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroup struct { + value *ConsumerGroup + isSet bool +} + +func (v NullableConsumerGroup) Get() *ConsumerGroup { + return v.value +} + +func (v *NullableConsumerGroup) Set(val *ConsumerGroup) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroup(val *ConsumerGroup) *NullableConsumerGroup { + return &NullableConsumerGroup{value: val, isSet: true} +} + +func (v NullableConsumerGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_all_of.go new file mode 100644 index 00000000..e292c13b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_all_of.go @@ -0,0 +1,211 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupAllOf A group of Kafka consumers +type ConsumerGroupAllOf struct { + // Unique identifier for the consumer group + GroupId string `json:"groupId"` + State *ConsumerGroupState `json:"state,omitempty"` + // The list of consumers associated with this consumer group + Consumers []Consumer `json:"consumers"` + Metrics *ConsumerGroupMetrics `json:"metrics,omitempty"` +} + +// NewConsumerGroupAllOf instantiates a new ConsumerGroupAllOf 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 NewConsumerGroupAllOf(groupId string, consumers []Consumer) *ConsumerGroupAllOf { + this := ConsumerGroupAllOf{} + this.GroupId = groupId + this.Consumers = consumers + return &this +} + +// NewConsumerGroupAllOfWithDefaults instantiates a new ConsumerGroupAllOf 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 NewConsumerGroupAllOfWithDefaults() *ConsumerGroupAllOf { + this := ConsumerGroupAllOf{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *ConsumerGroupAllOf) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupAllOf) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *ConsumerGroupAllOf) SetGroupId(v string) { + o.GroupId = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ConsumerGroupAllOf) GetState() ConsumerGroupState { + if o == nil || o.State == nil { + var ret ConsumerGroupState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupAllOf) GetStateOk() (*ConsumerGroupState, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ConsumerGroupAllOf) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given ConsumerGroupState and assigns it to the State field. +func (o *ConsumerGroupAllOf) SetState(v ConsumerGroupState) { + o.State = &v +} + +// GetConsumers returns the Consumers field value +func (o *ConsumerGroupAllOf) GetConsumers() []Consumer { + if o == nil { + var ret []Consumer + return ret + } + + return o.Consumers +} + +// GetConsumersOk returns a tuple with the Consumers field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupAllOf) GetConsumersOk() (*[]Consumer, bool) { + if o == nil { + return nil, false + } + return &o.Consumers, true +} + +// SetConsumers sets field value +func (o *ConsumerGroupAllOf) SetConsumers(v []Consumer) { + o.Consumers = v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *ConsumerGroupAllOf) GetMetrics() ConsumerGroupMetrics { + if o == nil || o.Metrics == nil { + var ret ConsumerGroupMetrics + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupAllOf) GetMetricsOk() (*ConsumerGroupMetrics, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *ConsumerGroupAllOf) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given ConsumerGroupMetrics and assigns it to the Metrics field. +func (o *ConsumerGroupAllOf) SetMetrics(v ConsumerGroupMetrics) { + o.Metrics = &v +} + +func (o ConsumerGroupAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["groupId"] = o.GroupId + } + if o.State != nil { + toSerialize["state"] = o.State + } + if true { + toSerialize["consumers"] = o.Consumers + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupAllOf struct { + value *ConsumerGroupAllOf + isSet bool +} + +func (v NullableConsumerGroupAllOf) Get() *ConsumerGroupAllOf { + return v.value +} + +func (v *NullableConsumerGroupAllOf) Set(val *ConsumerGroupAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupAllOf(val *ConsumerGroupAllOf) *NullableConsumerGroupAllOf { + return &NullableConsumerGroupAllOf{value: val, isSet: true} +} + +func (v NullableConsumerGroupAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_description_order_key.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_description_order_key.go new file mode 100644 index 00000000..ee43c60a --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_description_order_key.go @@ -0,0 +1,114 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// ConsumerGroupDescriptionOrderKey the model 'ConsumerGroupDescriptionOrderKey' +type ConsumerGroupDescriptionOrderKey string + +// List of ConsumerGroupDescriptionOrderKey +const ( + CONSUMERGROUPDESCRIPTIONORDERKEY_OFFSET ConsumerGroupDescriptionOrderKey = "offset" + CONSUMERGROUPDESCRIPTIONORDERKEY_END_OFFSET ConsumerGroupDescriptionOrderKey = "endOffset" + CONSUMERGROUPDESCRIPTIONORDERKEY_LAG ConsumerGroupDescriptionOrderKey = "lag" + CONSUMERGROUPDESCRIPTIONORDERKEY_PARTITION ConsumerGroupDescriptionOrderKey = "partition" +) + +var allowedConsumerGroupDescriptionOrderKeyEnumValues = []ConsumerGroupDescriptionOrderKey{ + "offset", + "endOffset", + "lag", + "partition", +} + +func (v *ConsumerGroupDescriptionOrderKey) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsumerGroupDescriptionOrderKey(value) + for _, existing := range allowedConsumerGroupDescriptionOrderKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsumerGroupDescriptionOrderKey", value) +} + +// NewConsumerGroupDescriptionOrderKeyFromValue returns a pointer to a valid ConsumerGroupDescriptionOrderKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsumerGroupDescriptionOrderKeyFromValue(v string) (*ConsumerGroupDescriptionOrderKey, error) { + ev := ConsumerGroupDescriptionOrderKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsumerGroupDescriptionOrderKey: valid values are %v", v, allowedConsumerGroupDescriptionOrderKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsumerGroupDescriptionOrderKey) IsValid() bool { + for _, existing := range allowedConsumerGroupDescriptionOrderKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsumerGroupDescriptionOrderKey value +func (v ConsumerGroupDescriptionOrderKey) Ptr() *ConsumerGroupDescriptionOrderKey { + return &v +} + +type NullableConsumerGroupDescriptionOrderKey struct { + value *ConsumerGroupDescriptionOrderKey + isSet bool +} + +func (v NullableConsumerGroupDescriptionOrderKey) Get() *ConsumerGroupDescriptionOrderKey { + return v.value +} + +func (v *NullableConsumerGroupDescriptionOrderKey) Set(val *ConsumerGroupDescriptionOrderKey) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupDescriptionOrderKey) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupDescriptionOrderKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupDescriptionOrderKey(val *ConsumerGroupDescriptionOrderKey) *NullableConsumerGroupDescriptionOrderKey { + return &NullableConsumerGroupDescriptionOrderKey{value: val, isSet: true} +} + +func (v NullableConsumerGroupDescriptionOrderKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupDescriptionOrderKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list.go new file mode 100644 index 00000000..c8d8d4a5 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list.go @@ -0,0 +1,359 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupList struct for ConsumerGroupList +type ConsumerGroupList struct { + Kind *string `json:"kind,omitempty"` + Items []ConsumerGroup `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` + // Offset of the first record returned, zero-based + Offset *int32 `json:"offset,omitempty"` + // Maximum number of records to return, from request + Limit *int32 `json:"limit,omitempty"` + // Total number of entries in the full result set + Count *int32 `json:"count,omitempty"` +} + +// NewConsumerGroupList instantiates a new ConsumerGroupList 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 NewConsumerGroupList(items []ConsumerGroup, total int32) *ConsumerGroupList { + this := ConsumerGroupList{} + this.Items = items + this.Total = total + return &this +} + +// NewConsumerGroupListWithDefaults instantiates a new ConsumerGroupList 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 NewConsumerGroupListWithDefaults() *ConsumerGroupList { + this := ConsumerGroupList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConsumerGroupList) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *ConsumerGroupList) GetItems() []ConsumerGroup { + if o == nil { + var ret []ConsumerGroup + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetItemsOk() (*[]ConsumerGroup, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConsumerGroupList) SetItems(v []ConsumerGroup) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *ConsumerGroupList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConsumerGroupList) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ConsumerGroupList) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *ConsumerGroupList) SetPage(v int32) { + o.Page = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetOffset() int32 { + if o == nil || o.Offset == nil { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetOffsetOk() (*int32, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *ConsumerGroupList) SetOffset(v int32) { + o.Offset = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *ConsumerGroupList) SetLimit(v int32) { + o.Limit = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ConsumerGroupList) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupList) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ConsumerGroupList) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ConsumerGroupList) SetCount(v int32) { + o.Count = &v +} + +func (o ConsumerGroupList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupList struct { + value *ConsumerGroupList + isSet bool +} + +func (v NullableConsumerGroupList) Get() *ConsumerGroupList { + return v.value +} + +func (v *NullableConsumerGroupList) Set(val *ConsumerGroupList) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupList(val *ConsumerGroupList) *NullableConsumerGroupList { + return &NullableConsumerGroupList{value: val, isSet: true} +} + +func (v NullableConsumerGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list_all_of.go new file mode 100644 index 00000000..bfb2d7ea --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupListAllOf A list of consumer groups +type ConsumerGroupListAllOf struct { + Items *[]ConsumerGroup `json:"items,omitempty"` +} + +// NewConsumerGroupListAllOf instantiates a new ConsumerGroupListAllOf 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 NewConsumerGroupListAllOf() *ConsumerGroupListAllOf { + this := ConsumerGroupListAllOf{} + return &this +} + +// NewConsumerGroupListAllOfWithDefaults instantiates a new ConsumerGroupListAllOf 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 NewConsumerGroupListAllOfWithDefaults() *ConsumerGroupListAllOf { + this := ConsumerGroupListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConsumerGroupListAllOf) GetItems() []ConsumerGroup { + if o == nil || o.Items == nil { + var ret []ConsumerGroup + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupListAllOf) GetItemsOk() (*[]ConsumerGroup, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConsumerGroupListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConsumerGroup and assigns it to the Items field. +func (o *ConsumerGroupListAllOf) SetItems(v []ConsumerGroup) { + o.Items = &v +} + +func (o ConsumerGroupListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupListAllOf struct { + value *ConsumerGroupListAllOf + isSet bool +} + +func (v NullableConsumerGroupListAllOf) Get() *ConsumerGroupListAllOf { + return v.value +} + +func (v *NullableConsumerGroupListAllOf) Set(val *ConsumerGroupListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupListAllOf(val *ConsumerGroupListAllOf) *NullableConsumerGroupListAllOf { + return &NullableConsumerGroupListAllOf{value: val, isSet: true} +} + +func (v NullableConsumerGroupListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_metrics.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_metrics.go new file mode 100644 index 00000000..14708551 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_metrics.go @@ -0,0 +1,187 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupMetrics struct for ConsumerGroupMetrics +type ConsumerGroupMetrics struct { + LaggingPartitions *int32 `json:"laggingPartitions,omitempty"` + ActiveConsumers *int32 `json:"activeConsumers,omitempty"` + UnassignedPartitions *int32 `json:"unassignedPartitions,omitempty"` +} + +// NewConsumerGroupMetrics instantiates a new ConsumerGroupMetrics 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 NewConsumerGroupMetrics() *ConsumerGroupMetrics { + this := ConsumerGroupMetrics{} + return &this +} + +// NewConsumerGroupMetricsWithDefaults instantiates a new ConsumerGroupMetrics 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 NewConsumerGroupMetricsWithDefaults() *ConsumerGroupMetrics { + this := ConsumerGroupMetrics{} + return &this +} + +// GetLaggingPartitions returns the LaggingPartitions field value if set, zero value otherwise. +func (o *ConsumerGroupMetrics) GetLaggingPartitions() int32 { + if o == nil || o.LaggingPartitions == nil { + var ret int32 + return ret + } + return *o.LaggingPartitions +} + +// GetLaggingPartitionsOk returns a tuple with the LaggingPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupMetrics) GetLaggingPartitionsOk() (*int32, bool) { + if o == nil || o.LaggingPartitions == nil { + return nil, false + } + return o.LaggingPartitions, true +} + +// HasLaggingPartitions returns a boolean if a field has been set. +func (o *ConsumerGroupMetrics) HasLaggingPartitions() bool { + if o != nil && o.LaggingPartitions != nil { + return true + } + + return false +} + +// SetLaggingPartitions gets a reference to the given int32 and assigns it to the LaggingPartitions field. +func (o *ConsumerGroupMetrics) SetLaggingPartitions(v int32) { + o.LaggingPartitions = &v +} + +// GetActiveConsumers returns the ActiveConsumers field value if set, zero value otherwise. +func (o *ConsumerGroupMetrics) GetActiveConsumers() int32 { + if o == nil || o.ActiveConsumers == nil { + var ret int32 + return ret + } + return *o.ActiveConsumers +} + +// GetActiveConsumersOk returns a tuple with the ActiveConsumers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupMetrics) GetActiveConsumersOk() (*int32, bool) { + if o == nil || o.ActiveConsumers == nil { + return nil, false + } + return o.ActiveConsumers, true +} + +// HasActiveConsumers returns a boolean if a field has been set. +func (o *ConsumerGroupMetrics) HasActiveConsumers() bool { + if o != nil && o.ActiveConsumers != nil { + return true + } + + return false +} + +// SetActiveConsumers gets a reference to the given int32 and assigns it to the ActiveConsumers field. +func (o *ConsumerGroupMetrics) SetActiveConsumers(v int32) { + o.ActiveConsumers = &v +} + +// GetUnassignedPartitions returns the UnassignedPartitions field value if set, zero value otherwise. +func (o *ConsumerGroupMetrics) GetUnassignedPartitions() int32 { + if o == nil || o.UnassignedPartitions == nil { + var ret int32 + return ret + } + return *o.UnassignedPartitions +} + +// GetUnassignedPartitionsOk returns a tuple with the UnassignedPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupMetrics) GetUnassignedPartitionsOk() (*int32, bool) { + if o == nil || o.UnassignedPartitions == nil { + return nil, false + } + return o.UnassignedPartitions, true +} + +// HasUnassignedPartitions returns a boolean if a field has been set. +func (o *ConsumerGroupMetrics) HasUnassignedPartitions() bool { + if o != nil && o.UnassignedPartitions != nil { + return true + } + + return false +} + +// SetUnassignedPartitions gets a reference to the given int32 and assigns it to the UnassignedPartitions field. +func (o *ConsumerGroupMetrics) SetUnassignedPartitions(v int32) { + o.UnassignedPartitions = &v +} + +func (o ConsumerGroupMetrics) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LaggingPartitions != nil { + toSerialize["laggingPartitions"] = o.LaggingPartitions + } + if o.ActiveConsumers != nil { + toSerialize["activeConsumers"] = o.ActiveConsumers + } + if o.UnassignedPartitions != nil { + toSerialize["unassignedPartitions"] = o.UnassignedPartitions + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupMetrics struct { + value *ConsumerGroupMetrics + isSet bool +} + +func (v NullableConsumerGroupMetrics) Get() *ConsumerGroupMetrics { + return v.value +} + +func (v *NullableConsumerGroupMetrics) Set(val *ConsumerGroupMetrics) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupMetrics) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupMetrics) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupMetrics(val *ConsumerGroupMetrics) *NullableConsumerGroupMetrics { + return &NullableConsumerGroupMetrics{value: val, isSet: true} +} + +func (v NullableConsumerGroupMetrics) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupMetrics) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_order_key.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_order_key.go new file mode 100644 index 00000000..bdd14e49 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_order_key.go @@ -0,0 +1,108 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// ConsumerGroupOrderKey the model 'ConsumerGroupOrderKey' +type ConsumerGroupOrderKey string + +// List of ConsumerGroupOrderKey +const ( + CONSUMERGROUPORDERKEY_NAME ConsumerGroupOrderKey = "name" +) + +var allowedConsumerGroupOrderKeyEnumValues = []ConsumerGroupOrderKey{ + "name", +} + +func (v *ConsumerGroupOrderKey) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsumerGroupOrderKey(value) + for _, existing := range allowedConsumerGroupOrderKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsumerGroupOrderKey", value) +} + +// NewConsumerGroupOrderKeyFromValue returns a pointer to a valid ConsumerGroupOrderKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsumerGroupOrderKeyFromValue(v string) (*ConsumerGroupOrderKey, error) { + ev := ConsumerGroupOrderKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsumerGroupOrderKey: valid values are %v", v, allowedConsumerGroupOrderKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsumerGroupOrderKey) IsValid() bool { + for _, existing := range allowedConsumerGroupOrderKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsumerGroupOrderKey value +func (v ConsumerGroupOrderKey) Ptr() *ConsumerGroupOrderKey { + return &v +} + +type NullableConsumerGroupOrderKey struct { + value *ConsumerGroupOrderKey + isSet bool +} + +func (v NullableConsumerGroupOrderKey) Get() *ConsumerGroupOrderKey { + return v.value +} + +func (v *NullableConsumerGroupOrderKey) Set(val *ConsumerGroupOrderKey) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupOrderKey) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupOrderKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupOrderKey(val *ConsumerGroupOrderKey) *NullableConsumerGroupOrderKey { + return &NullableConsumerGroupOrderKey{value: val, isSet: true} +} + +func (v NullableConsumerGroupOrderKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupOrderKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_parameters.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_parameters.go new file mode 100644 index 00000000..87b04f9b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_parameters.go @@ -0,0 +1,181 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupResetOffsetParameters struct for ConsumerGroupResetOffsetParameters +type ConsumerGroupResetOffsetParameters struct { + Offset OffsetType `json:"offset"` + // Value associated with the given `offset`. Not used for `offset` values `earliest` and `latest`. When `offset` is `timestamp` then `value` must be a valid timestamp representing the point in time to reset the consumer group. When `offset` is `absolute` then `value` must be the integer offset to which the consumer group will be reset. + Value *string `json:"value,omitempty"` + Topics *[]TopicsToResetOffset `json:"topics,omitempty"` +} + +// NewConsumerGroupResetOffsetParameters instantiates a new ConsumerGroupResetOffsetParameters 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 NewConsumerGroupResetOffsetParameters(offset OffsetType) *ConsumerGroupResetOffsetParameters { + this := ConsumerGroupResetOffsetParameters{} + this.Offset = offset + return &this +} + +// NewConsumerGroupResetOffsetParametersWithDefaults instantiates a new ConsumerGroupResetOffsetParameters 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 NewConsumerGroupResetOffsetParametersWithDefaults() *ConsumerGroupResetOffsetParameters { + this := ConsumerGroupResetOffsetParameters{} + return &this +} + +// GetOffset returns the Offset field value +func (o *ConsumerGroupResetOffsetParameters) GetOffset() OffsetType { + if o == nil { + var ret OffsetType + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetParameters) GetOffsetOk() (*OffsetType, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *ConsumerGroupResetOffsetParameters) SetOffset(v OffsetType) { + o.Offset = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetParameters) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetParameters) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetParameters) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ConsumerGroupResetOffsetParameters) SetValue(v string) { + o.Value = &v +} + +// GetTopics returns the Topics field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetParameters) GetTopics() []TopicsToResetOffset { + if o == nil || o.Topics == nil { + var ret []TopicsToResetOffset + return ret + } + return *o.Topics +} + +// GetTopicsOk returns a tuple with the Topics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetParameters) GetTopicsOk() (*[]TopicsToResetOffset, bool) { + if o == nil || o.Topics == nil { + return nil, false + } + return o.Topics, true +} + +// HasTopics returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetParameters) HasTopics() bool { + if o != nil && o.Topics != nil { + return true + } + + return false +} + +// SetTopics gets a reference to the given []TopicsToResetOffset and assigns it to the Topics field. +func (o *ConsumerGroupResetOffsetParameters) SetTopics(v []TopicsToResetOffset) { + o.Topics = &v +} + +func (o ConsumerGroupResetOffsetParameters) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["offset"] = o.Offset + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + if o.Topics != nil { + toSerialize["topics"] = o.Topics + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupResetOffsetParameters struct { + value *ConsumerGroupResetOffsetParameters + isSet bool +} + +func (v NullableConsumerGroupResetOffsetParameters) Get() *ConsumerGroupResetOffsetParameters { + return v.value +} + +func (v *NullableConsumerGroupResetOffsetParameters) Set(val *ConsumerGroupResetOffsetParameters) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupResetOffsetParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupResetOffsetParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupResetOffsetParameters(val *ConsumerGroupResetOffsetParameters) *NullableConsumerGroupResetOffsetParameters { + return &NullableConsumerGroupResetOffsetParameters{value: val, isSet: true} +} + +func (v NullableConsumerGroupResetOffsetParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupResetOffsetParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result.go new file mode 100644 index 00000000..6c02f896 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result.go @@ -0,0 +1,248 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupResetOffsetResult struct for ConsumerGroupResetOffsetResult +type ConsumerGroupResetOffsetResult struct { + Kind *string `json:"kind,omitempty"` + Items []ConsumerGroupResetOffsetResultItem `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` +} + +// NewConsumerGroupResetOffsetResult instantiates a new ConsumerGroupResetOffsetResult 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 NewConsumerGroupResetOffsetResult(items []ConsumerGroupResetOffsetResultItem, total int32) *ConsumerGroupResetOffsetResult { + this := ConsumerGroupResetOffsetResult{} + this.Items = items + this.Total = total + return &this +} + +// NewConsumerGroupResetOffsetResultWithDefaults instantiates a new ConsumerGroupResetOffsetResult 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 NewConsumerGroupResetOffsetResultWithDefaults() *ConsumerGroupResetOffsetResult { + this := ConsumerGroupResetOffsetResult{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResult) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResult) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResult) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ConsumerGroupResetOffsetResult) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *ConsumerGroupResetOffsetResult) GetItems() []ConsumerGroupResetOffsetResultItem { + if o == nil { + var ret []ConsumerGroupResetOffsetResultItem + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResult) GetItemsOk() (*[]ConsumerGroupResetOffsetResultItem, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ConsumerGroupResetOffsetResult) SetItems(v []ConsumerGroupResetOffsetResultItem) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *ConsumerGroupResetOffsetResult) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResult) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ConsumerGroupResetOffsetResult) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResult) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResult) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResult) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ConsumerGroupResetOffsetResult) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResult) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResult) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResult) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *ConsumerGroupResetOffsetResult) SetPage(v int32) { + o.Page = &v +} + +func (o ConsumerGroupResetOffsetResult) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupResetOffsetResult struct { + value *ConsumerGroupResetOffsetResult + isSet bool +} + +func (v NullableConsumerGroupResetOffsetResult) Get() *ConsumerGroupResetOffsetResult { + return v.value +} + +func (v *NullableConsumerGroupResetOffsetResult) Set(val *ConsumerGroupResetOffsetResult) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupResetOffsetResult) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupResetOffsetResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupResetOffsetResult(val *ConsumerGroupResetOffsetResult) *NullableConsumerGroupResetOffsetResult { + return &NullableConsumerGroupResetOffsetResult{value: val, isSet: true} +} + +func (v NullableConsumerGroupResetOffsetResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupResetOffsetResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_all_of.go new file mode 100644 index 00000000..aee3f768 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_all_of.go @@ -0,0 +1,115 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupResetOffsetResultAllOf struct for ConsumerGroupResetOffsetResultAllOf +type ConsumerGroupResetOffsetResultAllOf struct { + Items *[]ConsumerGroupResetOffsetResultItem `json:"items,omitempty"` +} + +// NewConsumerGroupResetOffsetResultAllOf instantiates a new ConsumerGroupResetOffsetResultAllOf 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 NewConsumerGroupResetOffsetResultAllOf() *ConsumerGroupResetOffsetResultAllOf { + this := ConsumerGroupResetOffsetResultAllOf{} + return &this +} + +// NewConsumerGroupResetOffsetResultAllOfWithDefaults instantiates a new ConsumerGroupResetOffsetResultAllOf 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 NewConsumerGroupResetOffsetResultAllOfWithDefaults() *ConsumerGroupResetOffsetResultAllOf { + this := ConsumerGroupResetOffsetResultAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResultAllOf) GetItems() []ConsumerGroupResetOffsetResultItem { + if o == nil || o.Items == nil { + var ret []ConsumerGroupResetOffsetResultItem + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResultAllOf) GetItemsOk() (*[]ConsumerGroupResetOffsetResultItem, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResultAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ConsumerGroupResetOffsetResultItem and assigns it to the Items field. +func (o *ConsumerGroupResetOffsetResultAllOf) SetItems(v []ConsumerGroupResetOffsetResultItem) { + o.Items = &v +} + +func (o ConsumerGroupResetOffsetResultAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupResetOffsetResultAllOf struct { + value *ConsumerGroupResetOffsetResultAllOf + isSet bool +} + +func (v NullableConsumerGroupResetOffsetResultAllOf) Get() *ConsumerGroupResetOffsetResultAllOf { + return v.value +} + +func (v *NullableConsumerGroupResetOffsetResultAllOf) Set(val *ConsumerGroupResetOffsetResultAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupResetOffsetResultAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupResetOffsetResultAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupResetOffsetResultAllOf(val *ConsumerGroupResetOffsetResultAllOf) *NullableConsumerGroupResetOffsetResultAllOf { + return &NullableConsumerGroupResetOffsetResultAllOf{value: val, isSet: true} +} + +func (v NullableConsumerGroupResetOffsetResultAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupResetOffsetResultAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_item.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_item.go new file mode 100644 index 00000000..d8f32133 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_reset_offset_result_item.go @@ -0,0 +1,187 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ConsumerGroupResetOffsetResultItem struct for ConsumerGroupResetOffsetResultItem +type ConsumerGroupResetOffsetResultItem struct { + Topic *string `json:"topic,omitempty"` + Partition *int32 `json:"partition,omitempty"` + Offset *int64 `json:"offset,omitempty"` +} + +// NewConsumerGroupResetOffsetResultItem instantiates a new ConsumerGroupResetOffsetResultItem 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 NewConsumerGroupResetOffsetResultItem() *ConsumerGroupResetOffsetResultItem { + this := ConsumerGroupResetOffsetResultItem{} + return &this +} + +// NewConsumerGroupResetOffsetResultItemWithDefaults instantiates a new ConsumerGroupResetOffsetResultItem 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 NewConsumerGroupResetOffsetResultItemWithDefaults() *ConsumerGroupResetOffsetResultItem { + this := ConsumerGroupResetOffsetResultItem{} + return &this +} + +// GetTopic returns the Topic field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResultItem) GetTopic() string { + if o == nil || o.Topic == nil { + var ret string + return ret + } + return *o.Topic +} + +// GetTopicOk returns a tuple with the Topic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResultItem) GetTopicOk() (*string, bool) { + if o == nil || o.Topic == nil { + return nil, false + } + return o.Topic, true +} + +// HasTopic returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResultItem) HasTopic() bool { + if o != nil && o.Topic != nil { + return true + } + + return false +} + +// SetTopic gets a reference to the given string and assigns it to the Topic field. +func (o *ConsumerGroupResetOffsetResultItem) SetTopic(v string) { + o.Topic = &v +} + +// GetPartition returns the Partition field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResultItem) GetPartition() int32 { + if o == nil || o.Partition == nil { + var ret int32 + return ret + } + return *o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResultItem) GetPartitionOk() (*int32, bool) { + if o == nil || o.Partition == nil { + return nil, false + } + return o.Partition, true +} + +// HasPartition returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResultItem) HasPartition() bool { + if o != nil && o.Partition != nil { + return true + } + + return false +} + +// SetPartition gets a reference to the given int32 and assigns it to the Partition field. +func (o *ConsumerGroupResetOffsetResultItem) SetPartition(v int32) { + o.Partition = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ConsumerGroupResetOffsetResultItem) GetOffset() int64 { + if o == nil || o.Offset == nil { + var ret int64 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumerGroupResetOffsetResultItem) GetOffsetOk() (*int64, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ConsumerGroupResetOffsetResultItem) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int64 and assigns it to the Offset field. +func (o *ConsumerGroupResetOffsetResultItem) SetOffset(v int64) { + o.Offset = &v +} + +func (o ConsumerGroupResetOffsetResultItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Topic != nil { + toSerialize["topic"] = o.Topic + } + if o.Partition != nil { + toSerialize["partition"] = o.Partition + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + return json.Marshal(toSerialize) +} + +type NullableConsumerGroupResetOffsetResultItem struct { + value *ConsumerGroupResetOffsetResultItem + isSet bool +} + +func (v NullableConsumerGroupResetOffsetResultItem) Get() *ConsumerGroupResetOffsetResultItem { + return v.value +} + +func (v *NullableConsumerGroupResetOffsetResultItem) Set(val *ConsumerGroupResetOffsetResultItem) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupResetOffsetResultItem) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupResetOffsetResultItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupResetOffsetResultItem(val *ConsumerGroupResetOffsetResultItem) *NullableConsumerGroupResetOffsetResultItem { + return &NullableConsumerGroupResetOffsetResultItem{value: val, isSet: true} +} + +func (v NullableConsumerGroupResetOffsetResultItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupResetOffsetResultItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_state.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_state.go new file mode 100644 index 00000000..b24291bb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_consumer_group_state.go @@ -0,0 +1,118 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// ConsumerGroupState the model 'ConsumerGroupState' +type ConsumerGroupState string + +// List of ConsumerGroupState +const ( + CONSUMERGROUPSTATE_UNKNOWN ConsumerGroupState = "UNKNOWN" + CONSUMERGROUPSTATE_PREPARING_REBALANCE ConsumerGroupState = "PREPARING_REBALANCE" + CONSUMERGROUPSTATE_COMPLETING_REBALANCE ConsumerGroupState = "COMPLETING_REBALANCE" + CONSUMERGROUPSTATE_STABLE ConsumerGroupState = "STABLE" + CONSUMERGROUPSTATE_DEAD ConsumerGroupState = "DEAD" + CONSUMERGROUPSTATE_EMPTY ConsumerGroupState = "EMPTY" +) + +var allowedConsumerGroupStateEnumValues = []ConsumerGroupState{ + "UNKNOWN", + "PREPARING_REBALANCE", + "COMPLETING_REBALANCE", + "STABLE", + "DEAD", + "EMPTY", +} + +func (v *ConsumerGroupState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConsumerGroupState(value) + for _, existing := range allowedConsumerGroupStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConsumerGroupState", value) +} + +// NewConsumerGroupStateFromValue returns a pointer to a valid ConsumerGroupState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConsumerGroupStateFromValue(v string) (*ConsumerGroupState, error) { + ev := ConsumerGroupState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConsumerGroupState: valid values are %v", v, allowedConsumerGroupStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConsumerGroupState) IsValid() bool { + for _, existing := range allowedConsumerGroupStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ConsumerGroupState value +func (v ConsumerGroupState) Ptr() *ConsumerGroupState { + return &v +} + +type NullableConsumerGroupState struct { + value *ConsumerGroupState + isSet bool +} + +func (v NullableConsumerGroupState) Get() *ConsumerGroupState { + return v.value +} + +func (v *NullableConsumerGroupState) Set(val *ConsumerGroupState) { + v.value = val + v.isSet = true +} + +func (v NullableConsumerGroupState) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumerGroupState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumerGroupState(val *ConsumerGroupState) *NullableConsumerGroupState { + return &NullableConsumerGroupState{value: val, isSet: true} +} + +func (v NullableConsumerGroupState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumerGroupState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_error.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_error.go new file mode 100644 index 00000000..5dcd8742 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_error.go @@ -0,0 +1,371 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` + // General reason for the error. Does not change between specific occurrences. + Reason *string `json:"reason,omitempty"` + // Detail specific to an error occurrence. May be different depending on the condition(s) that trigger the error. + Detail *string `json:"detail,omitempty"` + Code *int32 `json:"code,omitempty"` + ErrorMessage *string `json:"error_message,omitempty"` + Class *string `json:"class,omitempty"` +} + +// NewError instantiates a new Error 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 NewError() *Error { + this := Error{} + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Error) GetId() string { + if o == nil || o.Id == nil { + 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 *Error) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Error) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Error) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Error) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Error) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Error) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Error) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Error) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Error) SetHref(v string) { + o.Href = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *Error) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *Error) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *Error) SetReason(v string) { + o.Reason = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *Error) GetDetail() string { + if o == nil || o.Detail == nil { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetDetailOk() (*string, bool) { + if o == nil || o.Detail == nil { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *Error) HasDetail() bool { + if o != nil && o.Detail != nil { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *Error) SetDetail(v string) { + o.Detail = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *Error) GetCode() int32 { + if o == nil || o.Code == nil { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*int32, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *Error) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *Error) SetCode(v int32) { + o.Code = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *Error) GetErrorMessage() string { + if o == nil || o.ErrorMessage == nil { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetErrorMessageOk() (*string, bool) { + if o == nil || o.ErrorMessage == nil { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *Error) HasErrorMessage() bool { + if o != nil && o.ErrorMessage != nil { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *Error) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetClass returns the Class field value if set, zero value otherwise. +func (o *Error) GetClass() string { + if o == nil || o.Class == nil { + var ret string + return ret + } + return *o.Class +} + +// GetClassOk returns a tuple with the Class field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetClassOk() (*string, bool) { + if o == nil || o.Class == nil { + return nil, false + } + return o.Class, true +} + +// HasClass returns a boolean if a field has been set. +func (o *Error) HasClass() bool { + if o != nil && o.Class != nil { + return true + } + + return false +} + +// SetClass gets a reference to the given string and assigns it to the Class field. +func (o *Error) SetClass(v string) { + o.Class = &v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if o.Detail != nil { + toSerialize["detail"] = o.Detail + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.ErrorMessage != nil { + toSerialize["error_message"] = o.ErrorMessage + } + if o.Class != nil { + toSerialize["class"] = o.Class + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_error_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_all_of.go new file mode 100644 index 00000000..0d9d24a3 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_all_of.go @@ -0,0 +1,261 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ErrorAllOf General error response +type ErrorAllOf struct { + // General reason for the error. Does not change between specific occurrences. + Reason *string `json:"reason,omitempty"` + // Detail specific to an error occurrence. May be different depending on the condition(s) that trigger the error. + Detail *string `json:"detail,omitempty"` + Code *int32 `json:"code,omitempty"` + ErrorMessage *string `json:"error_message,omitempty"` + Class *string `json:"class,omitempty"` +} + +// NewErrorAllOf instantiates a new ErrorAllOf 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 NewErrorAllOf() *ErrorAllOf { + this := ErrorAllOf{} + return &this +} + +// NewErrorAllOfWithDefaults instantiates a new ErrorAllOf 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 NewErrorAllOfWithDefaults() *ErrorAllOf { + this := ErrorAllOf{} + return &this +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ErrorAllOf) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ErrorAllOf) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ErrorAllOf) SetReason(v string) { + o.Reason = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *ErrorAllOf) GetDetail() string { + if o == nil || o.Detail == nil { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetDetailOk() (*string, bool) { + if o == nil || o.Detail == nil { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *ErrorAllOf) HasDetail() bool { + if o != nil && o.Detail != nil { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *ErrorAllOf) SetDetail(v string) { + o.Detail = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *ErrorAllOf) GetCode() int32 { + if o == nil || o.Code == nil { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetCodeOk() (*int32, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *ErrorAllOf) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *ErrorAllOf) SetCode(v int32) { + o.Code = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *ErrorAllOf) GetErrorMessage() string { + if o == nil || o.ErrorMessage == nil { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetErrorMessageOk() (*string, bool) { + if o == nil || o.ErrorMessage == nil { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *ErrorAllOf) HasErrorMessage() bool { + if o != nil && o.ErrorMessage != nil { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *ErrorAllOf) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetClass returns the Class field value if set, zero value otherwise. +func (o *ErrorAllOf) GetClass() string { + if o == nil || o.Class == nil { + var ret string + return ret + } + return *o.Class +} + +// GetClassOk returns a tuple with the Class field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetClassOk() (*string, bool) { + if o == nil || o.Class == nil { + return nil, false + } + return o.Class, true +} + +// HasClass returns a boolean if a field has been set. +func (o *ErrorAllOf) HasClass() bool { + if o != nil && o.Class != nil { + return true + } + + return false +} + +// SetClass gets a reference to the given string and assigns it to the Class field. +func (o *ErrorAllOf) SetClass(v string) { + o.Class = &v +} + +func (o ErrorAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if o.Detail != nil { + toSerialize["detail"] = o.Detail + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.ErrorMessage != nil { + toSerialize["error_message"] = o.ErrorMessage + } + if o.Class != nil { + toSerialize["class"] = o.Class + } + return json.Marshal(toSerialize) +} + +type NullableErrorAllOf struct { + value *ErrorAllOf + isSet bool +} + +func (v NullableErrorAllOf) Get() *ErrorAllOf { + return v.value +} + +func (v *NullableErrorAllOf) Set(val *ErrorAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorAllOf(val *ErrorAllOf) *NullableErrorAllOf { + return &NullableErrorAllOf{value: val, isSet: true} +} + +func (v NullableErrorAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list.go new file mode 100644 index 00000000..10d49b98 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list.go @@ -0,0 +1,248 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ErrorList struct for ErrorList +type ErrorList struct { + Kind *string `json:"kind,omitempty"` + Items []Error `json:"items"` + // Total number of errors returned in this request + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` +} + +// NewErrorList instantiates a new ErrorList 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 NewErrorList(items []Error, total int32) *ErrorList { + this := ErrorList{} + this.Items = items + this.Total = total + return &this +} + +// NewErrorListWithDefaults instantiates a new ErrorList 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 NewErrorListWithDefaults() *ErrorList { + this := ErrorList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ErrorList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ErrorList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ErrorList) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *ErrorList) GetItems() []Error { + if o == nil { + var ret []Error + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetItemsOk() (*[]Error, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ErrorList) SetItems(v []Error) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *ErrorList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ErrorList) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ErrorList) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorList) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ErrorList) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ErrorList) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ErrorList) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorList) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ErrorList) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *ErrorList) SetPage(v int32) { + o.Page = &v +} + +func (o ErrorList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableErrorList struct { + value *ErrorList + isSet bool +} + +func (v NullableErrorList) Get() *ErrorList { + return v.value +} + +func (v *NullableErrorList) Set(val *ErrorList) { + v.value = val + v.isSet = true +} + +func (v NullableErrorList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorList(val *ErrorList) *NullableErrorList { + return &NullableErrorList{value: val, isSet: true} +} + +func (v NullableErrorList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list_all_of.go new file mode 100644 index 00000000..0fe61bc4 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_error_list_all_of.go @@ -0,0 +1,152 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ErrorListAllOf List of errors +type ErrorListAllOf struct { + Items *[]Error `json:"items,omitempty"` + // Total number of errors returned in this request + Total *int32 `json:"total,omitempty"` +} + +// NewErrorListAllOf instantiates a new ErrorListAllOf 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 NewErrorListAllOf() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorListAllOf) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorListAllOf) SetItems(v []Error) { + o.Items = &v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *ErrorListAllOf) GetTotal() int32 { + if o == nil || o.Total == nil { + var ret int32 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListAllOf) GetTotalOk() (*int32, bool) { + if o == nil || o.Total == nil { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *ErrorListAllOf) HasTotal() bool { + if o != nil && o.Total != nil { + return true + } + + return false +} + +// SetTotal gets a reference to the given int32 and assigns it to the Total field. +func (o *ErrorListAllOf) SetTotal(v int32) { + o.Total = &v +} + +func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.Total != nil { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableErrorListAllOf struct { + value *ErrorListAllOf + isSet bool +} + +func (v NullableErrorListAllOf) Get() *ErrorListAllOf { + return v.value +} + +func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { + return &NullableErrorListAllOf{value: val, isSet: true} +} + +func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_list.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_list.go new file mode 100644 index 00000000..d79c51da --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_list.go @@ -0,0 +1,248 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind *string `json:"kind,omitempty"` + Items []map[string]interface{} `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` +} + +// NewList instantiates a new List 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 NewList(items []map[string]interface{}, total int32) *List { + this := List{} + this.Items = items + this.Total = total + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *List) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *List) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *List) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *List) GetItems() []map[string]interface{} { + if o == nil { + var ret []map[string]interface{} + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *List) GetItemsOk() (*[]map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *List) SetItems(v []map[string]interface{}) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *List) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *List) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *List) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *List) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *List) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *List) SetPage(v int32) { + o.Page = &v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated.go new file mode 100644 index 00000000..fff6c36b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated.go @@ -0,0 +1,359 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ListDeprecated struct for ListDeprecated +type ListDeprecated struct { + Kind *string `json:"kind,omitempty"` + Items []map[string]interface{} `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` + // Offset of the first record returned, zero-based + Offset *int32 `json:"offset,omitempty"` + // Maximum number of records to return, from request + Limit *int32 `json:"limit,omitempty"` + // Total number of entries in the full result set + Count *int32 `json:"count,omitempty"` +} + +// NewListDeprecated instantiates a new ListDeprecated 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 NewListDeprecated(items []map[string]interface{}, total int32) *ListDeprecated { + this := ListDeprecated{} + this.Items = items + this.Total = total + return &this +} + +// NewListDeprecatedWithDefaults instantiates a new ListDeprecated 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 NewListDeprecatedWithDefaults() *ListDeprecated { + this := ListDeprecated{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ListDeprecated) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ListDeprecated) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ListDeprecated) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *ListDeprecated) GetItems() []map[string]interface{} { + if o == nil { + var ret []map[string]interface{} + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetItemsOk() (*[]map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ListDeprecated) SetItems(v []map[string]interface{}) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *ListDeprecated) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ListDeprecated) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ListDeprecated) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ListDeprecated) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ListDeprecated) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ListDeprecated) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ListDeprecated) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *ListDeprecated) SetPage(v int32) { + o.Page = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ListDeprecated) GetOffset() int32 { + if o == nil || o.Offset == nil { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetOffsetOk() (*int32, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ListDeprecated) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *ListDeprecated) SetOffset(v int32) { + o.Offset = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *ListDeprecated) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *ListDeprecated) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *ListDeprecated) SetLimit(v int32) { + o.Limit = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ListDeprecated) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecated) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ListDeprecated) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ListDeprecated) SetCount(v int32) { + o.Count = &v +} + +func (o ListDeprecated) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableListDeprecated struct { + value *ListDeprecated + isSet bool +} + +func (v NullableListDeprecated) Get() *ListDeprecated { + return v.value +} + +func (v *NullableListDeprecated) Set(val *ListDeprecated) { + v.value = val + v.isSet = true +} + +func (v NullableListDeprecated) IsSet() bool { + return v.isSet +} + +func (v *NullableListDeprecated) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListDeprecated(val *ListDeprecated) *NullableListDeprecated { + return &NullableListDeprecated{value: val, isSet: true} +} + +func (v NullableListDeprecated) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListDeprecated) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated_all_of.go new file mode 100644 index 00000000..92303e92 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_list_deprecated_all_of.go @@ -0,0 +1,190 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ListDeprecatedAllOf struct for ListDeprecatedAllOf +type ListDeprecatedAllOf struct { + // Offset of the first record returned, zero-based + Offset *int32 `json:"offset,omitempty"` + // Maximum number of records to return, from request + Limit *int32 `json:"limit,omitempty"` + // Total number of entries in the full result set + Count *int32 `json:"count,omitempty"` +} + +// NewListDeprecatedAllOf instantiates a new ListDeprecatedAllOf 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 NewListDeprecatedAllOf() *ListDeprecatedAllOf { + this := ListDeprecatedAllOf{} + return &this +} + +// NewListDeprecatedAllOfWithDefaults instantiates a new ListDeprecatedAllOf 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 NewListDeprecatedAllOfWithDefaults() *ListDeprecatedAllOf { + this := ListDeprecatedAllOf{} + return &this +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ListDeprecatedAllOf) GetOffset() int32 { + if o == nil || o.Offset == nil { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecatedAllOf) GetOffsetOk() (*int32, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ListDeprecatedAllOf) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *ListDeprecatedAllOf) SetOffset(v int32) { + o.Offset = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *ListDeprecatedAllOf) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecatedAllOf) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *ListDeprecatedAllOf) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *ListDeprecatedAllOf) SetLimit(v int32) { + o.Limit = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ListDeprecatedAllOf) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListDeprecatedAllOf) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ListDeprecatedAllOf) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ListDeprecatedAllOf) SetCount(v int32) { + o.Count = &v +} + +func (o ListDeprecatedAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableListDeprecatedAllOf struct { + value *ListDeprecatedAllOf + isSet bool +} + +func (v NullableListDeprecatedAllOf) Get() *ListDeprecatedAllOf { + return v.value +} + +func (v *NullableListDeprecatedAllOf) Set(val *ListDeprecatedAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableListDeprecatedAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableListDeprecatedAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListDeprecatedAllOf(val *ListDeprecatedAllOf) *NullableListDeprecatedAllOf { + return &NullableListDeprecatedAllOf{value: val, isSet: true} +} + +func (v NullableListDeprecatedAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListDeprecatedAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_new_topic_input.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_new_topic_input.go new file mode 100644 index 00000000..11293ced --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_new_topic_input.go @@ -0,0 +1,138 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// NewTopicInput Input object to create a new topic. +type NewTopicInput struct { + // The topic name, this value must be unique. + Name string `json:"name"` + Settings TopicSettings `json:"settings"` +} + +// NewNewTopicInput instantiates a new NewTopicInput 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 NewNewTopicInput(name string, settings TopicSettings) *NewTopicInput { + this := NewTopicInput{} + this.Name = name + this.Settings = settings + return &this +} + +// NewNewTopicInputWithDefaults instantiates a new NewTopicInput 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 NewNewTopicInputWithDefaults() *NewTopicInput { + this := NewTopicInput{} + return &this +} + +// GetName returns the Name field value +func (o *NewTopicInput) 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 *NewTopicInput) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NewTopicInput) SetName(v string) { + o.Name = v +} + +// GetSettings returns the Settings field value +func (o *NewTopicInput) GetSettings() TopicSettings { + if o == nil { + var ret TopicSettings + return ret + } + + return o.Settings +} + +// GetSettingsOk returns a tuple with the Settings field value +// and a boolean to check if the value has been set. +func (o *NewTopicInput) GetSettingsOk() (*TopicSettings, bool) { + if o == nil { + return nil, false + } + return &o.Settings, true +} + +// SetSettings sets field value +func (o *NewTopicInput) SetSettings(v TopicSettings) { + o.Settings = v +} + +func (o NewTopicInput) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["settings"] = o.Settings + } + return json.Marshal(toSerialize) +} + +type NullableNewTopicInput struct { + value *NewTopicInput + isSet bool +} + +func (v NullableNewTopicInput) Get() *NewTopicInput { + return v.value +} + +func (v *NullableNewTopicInput) Set(val *NewTopicInput) { + v.value = val + v.isSet = true +} + +func (v NullableNewTopicInput) IsSet() bool { + return v.isSet +} + +func (v *NullableNewTopicInput) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNewTopicInput(val *NewTopicInput) *NullableNewTopicInput { + return &NullableNewTopicInput{value: val, isSet: true} +} + +func (v NullableNewTopicInput) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNewTopicInput) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_node.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_node.go new file mode 100644 index 00000000..185bf814 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_node.go @@ -0,0 +1,115 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// Node Identifier for a Kafka server / broker. +type Node struct { + Id *int32 `json:"id,omitempty"` +} + +// NewNode instantiates a new Node 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 NewNode() *Node { + this := Node{} + return &this +} + +// NewNodeWithDefaults instantiates a new Node 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 NewNodeWithDefaults() *Node { + this := Node{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Node) GetId() int32 { + if o == nil || o.Id == nil { + var ret int32 + 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 *Node) GetIdOk() (*int32, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Node) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *Node) SetId(v int32) { + o.Id = &v +} + +func (o Node) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableNode struct { + value *Node + isSet bool +} + +func (v NullableNode) Get() *Node { + return v.value +} + +func (v *NullableNode) Set(val *Node) { + v.value = val + v.isSet = true +} + +func (v NullableNode) IsSet() bool { + return v.isSet +} + +func (v *NullableNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNode(val *Node) *NullableNode { + return &NullableNode{value: val, isSet: true} +} + +func (v NullableNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_object_reference.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_object_reference.go new file mode 100644 index 00000000..6219a8fa --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_object_reference.go @@ -0,0 +1,189 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference() *ObjectReference { + this := ObjectReference{} + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ObjectReference) GetId() string { + if o == nil || o.Id == nil { + 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ObjectReference) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ObjectReference) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ObjectReference) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ObjectReference) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ObjectReference) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *ObjectReference) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *ObjectReference) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *ObjectReference) SetHref(v string) { + o.Href = &v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_offset_type.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_offset_type.go new file mode 100644 index 00000000..edf21562 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_offset_type.go @@ -0,0 +1,114 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// OffsetType the model 'OffsetType' +type OffsetType string + +// List of OffsetType +const ( + OFFSETTYPE_TIMESTAMP OffsetType = "timestamp" + OFFSETTYPE_ABSOLUTE OffsetType = "absolute" + OFFSETTYPE_LATEST OffsetType = "latest" + OFFSETTYPE_EARLIEST OffsetType = "earliest" +) + +var allowedOffsetTypeEnumValues = []OffsetType{ + "timestamp", + "absolute", + "latest", + "earliest", +} + +func (v *OffsetType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := OffsetType(value) + for _, existing := range allowedOffsetTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid OffsetType", value) +} + +// NewOffsetTypeFromValue returns a pointer to a valid OffsetType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewOffsetTypeFromValue(v string) (*OffsetType, error) { + ev := OffsetType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for OffsetType: valid values are %v", v, allowedOffsetTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v OffsetType) IsValid() bool { + for _, existing := range allowedOffsetTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to OffsetType value +func (v OffsetType) Ptr() *OffsetType { + return &v +} + +type NullableOffsetType struct { + value *OffsetType + isSet bool +} + +func (v NullableOffsetType) Get() *OffsetType { + return v.value +} + +func (v *NullableOffsetType) Set(val *OffsetType) { + v.value = val + v.isSet = true +} + +func (v NullableOffsetType) IsSet() bool { + return v.isSet +} + +func (v *NullableOffsetType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOffsetType(val *OffsetType) *NullableOffsetType { + return &NullableOffsetType{value: val, isSet: true} +} + +func (v NullableOffsetType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOffsetType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_partition.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_partition.go new file mode 100644 index 00000000..7aeb447a --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_partition.go @@ -0,0 +1,256 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// Partition Kafka topic partition +type Partition struct { + // The partition id, unique among partitions of the same topic + Partition int32 `json:"partition"` + // List of replicas for the partition + Replicas *[]Node `json:"replicas,omitempty"` + // List in-sync replicas for this partition. + Isr *[]Node `json:"isr,omitempty"` + Leader *Node `json:"leader,omitempty"` + // Unique id for the partition (deprecated, use `partition` instead) + Id *int32 `json:"id,omitempty"` +} + +// NewPartition instantiates a new Partition 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 NewPartition(partition int32) *Partition { + this := Partition{} + this.Partition = partition + return &this +} + +// NewPartitionWithDefaults instantiates a new Partition 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 NewPartitionWithDefaults() *Partition { + this := Partition{} + return &this +} + +// GetPartition returns the Partition field value +func (o *Partition) GetPartition() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value +// and a boolean to check if the value has been set. +func (o *Partition) GetPartitionOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Partition, true +} + +// SetPartition sets field value +func (o *Partition) SetPartition(v int32) { + o.Partition = v +} + +// GetReplicas returns the Replicas field value if set, zero value otherwise. +func (o *Partition) GetReplicas() []Node { + if o == nil || o.Replicas == nil { + var ret []Node + return ret + } + return *o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Partition) GetReplicasOk() (*[]Node, bool) { + if o == nil || o.Replicas == nil { + return nil, false + } + return o.Replicas, true +} + +// HasReplicas returns a boolean if a field has been set. +func (o *Partition) HasReplicas() bool { + if o != nil && o.Replicas != nil { + return true + } + + return false +} + +// SetReplicas gets a reference to the given []Node and assigns it to the Replicas field. +func (o *Partition) SetReplicas(v []Node) { + o.Replicas = &v +} + +// GetIsr returns the Isr field value if set, zero value otherwise. +func (o *Partition) GetIsr() []Node { + if o == nil || o.Isr == nil { + var ret []Node + return ret + } + return *o.Isr +} + +// GetIsrOk returns a tuple with the Isr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Partition) GetIsrOk() (*[]Node, bool) { + if o == nil || o.Isr == nil { + return nil, false + } + return o.Isr, true +} + +// HasIsr returns a boolean if a field has been set. +func (o *Partition) HasIsr() bool { + if o != nil && o.Isr != nil { + return true + } + + return false +} + +// SetIsr gets a reference to the given []Node and assigns it to the Isr field. +func (o *Partition) SetIsr(v []Node) { + o.Isr = &v +} + +// GetLeader returns the Leader field value if set, zero value otherwise. +func (o *Partition) GetLeader() Node { + if o == nil || o.Leader == nil { + var ret Node + return ret + } + return *o.Leader +} + +// GetLeaderOk returns a tuple with the Leader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Partition) GetLeaderOk() (*Node, bool) { + if o == nil || o.Leader == nil { + return nil, false + } + return o.Leader, true +} + +// HasLeader returns a boolean if a field has been set. +func (o *Partition) HasLeader() bool { + if o != nil && o.Leader != nil { + return true + } + + return false +} + +// SetLeader gets a reference to the given Node and assigns it to the Leader field. +func (o *Partition) SetLeader(v Node) { + o.Leader = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Partition) GetId() int32 { + if o == nil || o.Id == nil { + var ret int32 + 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 *Partition) GetIdOk() (*int32, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Partition) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *Partition) SetId(v int32) { + o.Id = &v +} + +func (o Partition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["partition"] = o.Partition + } + if o.Replicas != nil { + toSerialize["replicas"] = o.Replicas + } + if o.Isr != nil { + toSerialize["isr"] = o.Isr + } + if o.Leader != nil { + toSerialize["leader"] = o.Leader + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullablePartition struct { + value *Partition + isSet bool +} + +func (v NullablePartition) Get() *Partition { + return v.value +} + +func (v *NullablePartition) Set(val *Partition) { + v.value = val + v.isSet = true +} + +func (v NullablePartition) IsSet() bool { + return v.isSet +} + +func (v *NullablePartition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartition(val *Partition) *NullablePartition { + return &NullablePartition{value: val, isSet: true} +} + +func (v NullablePartition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_record.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_record.go new file mode 100644 index 00000000..61315f54 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_record.go @@ -0,0 +1,442 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "time" +) + +// Record struct for Record +type Record struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` + // The record's partition within the topic + Partition *int32 `json:"partition,omitempty"` + // The record's offset within the topic partition + Offset *int64 `json:"offset,omitempty"` + // Timestamp associated with the record. The type is indicated by `timestampType`. When producing a record, this value will be used as the record's `CREATE_TIME`. + Timestamp *time.Time `json:"timestamp,omitempty"` + // Type of timestamp associated with the record + TimestampType *string `json:"timestampType,omitempty"` + // Record headers, key/value pairs + Headers *map[string]string `json:"headers,omitempty"` + // Record key + Key *string `json:"key,omitempty"` + // Record value + Value string `json:"value"` +} + +// NewRecord instantiates a new Record 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 NewRecord(value string) *Record { + this := Record{} + this.Value = value + return &this +} + +// NewRecordWithDefaults instantiates a new Record 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 NewRecordWithDefaults() *Record { + this := Record{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Record) GetId() string { + if o == nil || o.Id == nil { + 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 *Record) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Record) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Record) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Record) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Record) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Record) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Record) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Record) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Record) SetHref(v string) { + o.Href = &v +} + +// GetPartition returns the Partition field value if set, zero value otherwise. +func (o *Record) GetPartition() int32 { + if o == nil || o.Partition == nil { + var ret int32 + return ret + } + return *o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetPartitionOk() (*int32, bool) { + if o == nil || o.Partition == nil { + return nil, false + } + return o.Partition, true +} + +// HasPartition returns a boolean if a field has been set. +func (o *Record) HasPartition() bool { + if o != nil && o.Partition != nil { + return true + } + + return false +} + +// SetPartition gets a reference to the given int32 and assigns it to the Partition field. +func (o *Record) SetPartition(v int32) { + o.Partition = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *Record) GetOffset() int64 { + if o == nil || o.Offset == nil { + var ret int64 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetOffsetOk() (*int64, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *Record) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int64 and assigns it to the Offset field. +func (o *Record) SetOffset(v int64) { + o.Offset = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *Record) GetTimestamp() time.Time { + if o == nil || o.Timestamp == nil { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetTimestampOk() (*time.Time, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *Record) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *Record) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetTimestampType returns the TimestampType field value if set, zero value otherwise. +func (o *Record) GetTimestampType() string { + if o == nil || o.TimestampType == nil { + var ret string + return ret + } + return *o.TimestampType +} + +// GetTimestampTypeOk returns a tuple with the TimestampType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetTimestampTypeOk() (*string, bool) { + if o == nil || o.TimestampType == nil { + return nil, false + } + return o.TimestampType, true +} + +// HasTimestampType returns a boolean if a field has been set. +func (o *Record) HasTimestampType() bool { + if o != nil && o.TimestampType != nil { + return true + } + + return false +} + +// SetTimestampType gets a reference to the given string and assigns it to the TimestampType field. +func (o *Record) SetTimestampType(v string) { + o.TimestampType = &v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *Record) GetHeaders() map[string]string { + if o == nil || o.Headers == nil { + var ret map[string]string + return ret + } + return *o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetHeadersOk() (*map[string]string, bool) { + if o == nil || o.Headers == nil { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *Record) HasHeaders() bool { + if o != nil && o.Headers != nil { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *Record) SetHeaders(v map[string]string) { + o.Headers = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *Record) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Record) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *Record) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *Record) SetKey(v string) { + o.Key = &v +} + +// GetValue returns the Value field value +func (o *Record) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Record) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Record) SetValue(v string) { + o.Value = v +} + +func (o Record) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Partition != nil { + toSerialize["partition"] = o.Partition + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Timestamp != nil { + toSerialize["timestamp"] = o.Timestamp + } + if o.TimestampType != nil { + toSerialize["timestampType"] = o.TimestampType + } + if o.Headers != nil { + toSerialize["headers"] = o.Headers + } + if o.Key != nil { + toSerialize["key"] = o.Key + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableRecord struct { + value *Record + isSet bool +} + +func (v NullableRecord) Get() *Record { + return v.value +} + +func (v *NullableRecord) Set(val *Record) { + v.value = val + v.isSet = true +} + +func (v NullableRecord) IsSet() bool { + return v.isSet +} + +func (v *NullableRecord) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecord(val *Record) *NullableRecord { + return &NullableRecord{value: val, isSet: true} +} + +func (v NullableRecord) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecord) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_record_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_all_of.go new file mode 100644 index 00000000..3e5c18bb --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_all_of.go @@ -0,0 +1,332 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "time" +) + +// RecordAllOf An individual record consumed from a topic or produced to a topic +type RecordAllOf struct { + // The record's partition within the topic + Partition *int32 `json:"partition,omitempty"` + // The record's offset within the topic partition + Offset *int64 `json:"offset,omitempty"` + // Timestamp associated with the record. The type is indicated by `timestampType`. When producing a record, this value will be used as the record's `CREATE_TIME`. + Timestamp *time.Time `json:"timestamp,omitempty"` + // Type of timestamp associated with the record + TimestampType *string `json:"timestampType,omitempty"` + // Record headers, key/value pairs + Headers *map[string]string `json:"headers,omitempty"` + // Record key + Key *string `json:"key,omitempty"` + // Record value + Value string `json:"value"` +} + +// NewRecordAllOf instantiates a new RecordAllOf 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 NewRecordAllOf(value string) *RecordAllOf { + this := RecordAllOf{} + this.Value = value + return &this +} + +// NewRecordAllOfWithDefaults instantiates a new RecordAllOf 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 NewRecordAllOfWithDefaults() *RecordAllOf { + this := RecordAllOf{} + return &this +} + +// GetPartition returns the Partition field value if set, zero value otherwise. +func (o *RecordAllOf) GetPartition() int32 { + if o == nil || o.Partition == nil { + var ret int32 + return ret + } + return *o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetPartitionOk() (*int32, bool) { + if o == nil || o.Partition == nil { + return nil, false + } + return o.Partition, true +} + +// HasPartition returns a boolean if a field has been set. +func (o *RecordAllOf) HasPartition() bool { + if o != nil && o.Partition != nil { + return true + } + + return false +} + +// SetPartition gets a reference to the given int32 and assigns it to the Partition field. +func (o *RecordAllOf) SetPartition(v int32) { + o.Partition = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *RecordAllOf) GetOffset() int64 { + if o == nil || o.Offset == nil { + var ret int64 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetOffsetOk() (*int64, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *RecordAllOf) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int64 and assigns it to the Offset field. +func (o *RecordAllOf) SetOffset(v int64) { + o.Offset = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *RecordAllOf) GetTimestamp() time.Time { + if o == nil || o.Timestamp == nil { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetTimestampOk() (*time.Time, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *RecordAllOf) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *RecordAllOf) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetTimestampType returns the TimestampType field value if set, zero value otherwise. +func (o *RecordAllOf) GetTimestampType() string { + if o == nil || o.TimestampType == nil { + var ret string + return ret + } + return *o.TimestampType +} + +// GetTimestampTypeOk returns a tuple with the TimestampType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetTimestampTypeOk() (*string, bool) { + if o == nil || o.TimestampType == nil { + return nil, false + } + return o.TimestampType, true +} + +// HasTimestampType returns a boolean if a field has been set. +func (o *RecordAllOf) HasTimestampType() bool { + if o != nil && o.TimestampType != nil { + return true + } + + return false +} + +// SetTimestampType gets a reference to the given string and assigns it to the TimestampType field. +func (o *RecordAllOf) SetTimestampType(v string) { + o.TimestampType = &v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *RecordAllOf) GetHeaders() map[string]string { + if o == nil || o.Headers == nil { + var ret map[string]string + return ret + } + return *o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetHeadersOk() (*map[string]string, bool) { + if o == nil || o.Headers == nil { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *RecordAllOf) HasHeaders() bool { + if o != nil && o.Headers != nil { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *RecordAllOf) SetHeaders(v map[string]string) { + o.Headers = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *RecordAllOf) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *RecordAllOf) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *RecordAllOf) SetKey(v string) { + o.Key = &v +} + +// GetValue returns the Value field value +func (o *RecordAllOf) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *RecordAllOf) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *RecordAllOf) SetValue(v string) { + o.Value = v +} + +func (o RecordAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Partition != nil { + toSerialize["partition"] = o.Partition + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Timestamp != nil { + toSerialize["timestamp"] = o.Timestamp + } + if o.TimestampType != nil { + toSerialize["timestampType"] = o.TimestampType + } + if o.Headers != nil { + toSerialize["headers"] = o.Headers + } + if o.Key != nil { + toSerialize["key"] = o.Key + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableRecordAllOf struct { + value *RecordAllOf + isSet bool +} + +func (v NullableRecordAllOf) Get() *RecordAllOf { + return v.value +} + +func (v *NullableRecordAllOf) Set(val *RecordAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRecordAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRecordAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecordAllOf(val *RecordAllOf) *NullableRecordAllOf { + return &NullableRecordAllOf{value: val, isSet: true} +} + +func (v NullableRecordAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecordAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_record_included_property.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_included_property.go new file mode 100644 index 00000000..25ee169b --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_included_property.go @@ -0,0 +1,120 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// RecordIncludedProperty the model 'RecordIncludedProperty' +type RecordIncludedProperty string + +// List of RecordIncludedProperty +const ( + RECORDINCLUDEDPROPERTY_PARTITION RecordIncludedProperty = "partition" + RECORDINCLUDEDPROPERTY_OFFSET RecordIncludedProperty = "offset" + RECORDINCLUDEDPROPERTY_TIMESTAMP RecordIncludedProperty = "timestamp" + RECORDINCLUDEDPROPERTY_TIMESTAMP_TYPE RecordIncludedProperty = "timestampType" + RECORDINCLUDEDPROPERTY_HEADERS RecordIncludedProperty = "headers" + RECORDINCLUDEDPROPERTY_KEY RecordIncludedProperty = "key" + RECORDINCLUDEDPROPERTY_VALUE RecordIncludedProperty = "value" +) + +var allowedRecordIncludedPropertyEnumValues = []RecordIncludedProperty{ + "partition", + "offset", + "timestamp", + "timestampType", + "headers", + "key", + "value", +} + +func (v *RecordIncludedProperty) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RecordIncludedProperty(value) + for _, existing := range allowedRecordIncludedPropertyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RecordIncludedProperty", value) +} + +// NewRecordIncludedPropertyFromValue returns a pointer to a valid RecordIncludedProperty +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRecordIncludedPropertyFromValue(v string) (*RecordIncludedProperty, error) { + ev := RecordIncludedProperty(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RecordIncludedProperty: valid values are %v", v, allowedRecordIncludedPropertyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RecordIncludedProperty) IsValid() bool { + for _, existing := range allowedRecordIncludedPropertyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RecordIncludedProperty value +func (v RecordIncludedProperty) Ptr() *RecordIncludedProperty { + return &v +} + +type NullableRecordIncludedProperty struct { + value *RecordIncludedProperty + isSet bool +} + +func (v NullableRecordIncludedProperty) Get() *RecordIncludedProperty { + return v.value +} + +func (v *NullableRecordIncludedProperty) Set(val *RecordIncludedProperty) { + v.value = val + v.isSet = true +} + +func (v NullableRecordIncludedProperty) IsSet() bool { + return v.isSet +} + +func (v *NullableRecordIncludedProperty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecordIncludedProperty(val *RecordIncludedProperty) *NullableRecordIncludedProperty { + return &NullableRecordIncludedProperty{value: val, isSet: true} +} + +func (v NullableRecordIncludedProperty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecordIncludedProperty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list.go new file mode 100644 index 00000000..945f26e2 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list.go @@ -0,0 +1,248 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// RecordList struct for RecordList +type RecordList struct { + Kind *string `json:"kind,omitempty"` + Items []Record `json:"items"` + // Total number of records returned in this request. This value does not indicate the total number of records in the topic. + Total int32 `json:"total"` + // Not used + Size *int32 `json:"size,omitempty"` + // Not used + Page *int32 `json:"page,omitempty"` +} + +// NewRecordList instantiates a new RecordList 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 NewRecordList(items []Record, total int32) *RecordList { + this := RecordList{} + this.Items = items + this.Total = total + return &this +} + +// NewRecordListWithDefaults instantiates a new RecordList 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 NewRecordListWithDefaults() *RecordList { + this := RecordList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *RecordList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *RecordList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *RecordList) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *RecordList) GetItems() []Record { + if o == nil { + var ret []Record + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RecordList) GetItemsOk() (*[]Record, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RecordList) SetItems(v []Record) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *RecordList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RecordList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RecordList) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *RecordList) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordList) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *RecordList) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *RecordList) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *RecordList) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordList) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *RecordList) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *RecordList) SetPage(v int32) { + o.Page = &v +} + +func (o RecordList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableRecordList struct { + value *RecordList + isSet bool +} + +func (v NullableRecordList) Get() *RecordList { + return v.value +} + +func (v *NullableRecordList) Set(val *RecordList) { + v.value = val + v.isSet = true +} + +func (v NullableRecordList) IsSet() bool { + return v.isSet +} + +func (v *NullableRecordList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecordList(val *RecordList) *NullableRecordList { + return &NullableRecordList{value: val, isSet: true} +} + +func (v NullableRecordList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecordList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list_all_of.go new file mode 100644 index 00000000..34d3a802 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_record_list_all_of.go @@ -0,0 +1,226 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// RecordListAllOf A page of records consumed from a topic +type RecordListAllOf struct { + Items *[]Record `json:"items,omitempty"` + // Total number of records returned in this request. This value does not indicate the total number of records in the topic. + Total *int32 `json:"total,omitempty"` + // Not used + Size *int32 `json:"size,omitempty"` + // Not used + Page *int32 `json:"page,omitempty"` +} + +// NewRecordListAllOf instantiates a new RecordListAllOf 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 NewRecordListAllOf() *RecordListAllOf { + this := RecordListAllOf{} + return &this +} + +// NewRecordListAllOfWithDefaults instantiates a new RecordListAllOf 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 NewRecordListAllOfWithDefaults() *RecordListAllOf { + this := RecordListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *RecordListAllOf) GetItems() []Record { + if o == nil || o.Items == nil { + var ret []Record + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordListAllOf) GetItemsOk() (*[]Record, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *RecordListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Record and assigns it to the Items field. +func (o *RecordListAllOf) SetItems(v []Record) { + o.Items = &v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *RecordListAllOf) GetTotal() int32 { + if o == nil || o.Total == nil { + var ret int32 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordListAllOf) GetTotalOk() (*int32, bool) { + if o == nil || o.Total == nil { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *RecordListAllOf) HasTotal() bool { + if o != nil && o.Total != nil { + return true + } + + return false +} + +// SetTotal gets a reference to the given int32 and assigns it to the Total field. +func (o *RecordListAllOf) SetTotal(v int32) { + o.Total = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *RecordListAllOf) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordListAllOf) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *RecordListAllOf) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *RecordListAllOf) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *RecordListAllOf) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecordListAllOf) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *RecordListAllOf) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *RecordListAllOf) SetPage(v int32) { + o.Page = &v +} + +func (o RecordListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.Total != nil { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + return json.Marshal(toSerialize) +} + +type NullableRecordListAllOf struct { + value *RecordListAllOf + isSet bool +} + +func (v NullableRecordListAllOf) Get() *RecordListAllOf { + return v.value +} + +func (v *NullableRecordListAllOf) Set(val *RecordListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRecordListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRecordListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecordListAllOf(val *RecordListAllOf) *NullableRecordListAllOf { + return &NullableRecordListAllOf{value: val, isSet: true} +} + +func (v NullableRecordListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecordListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_sort_direction.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_sort_direction.go new file mode 100644 index 00000000..51ac4e88 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_sort_direction.go @@ -0,0 +1,110 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// SortDirection the model 'SortDirection' +type SortDirection string + +// List of SortDirection +const ( + SORTDIRECTION_ASC SortDirection = "asc" + SORTDIRECTION_DESC SortDirection = "desc" +) + +var allowedSortDirectionEnumValues = []SortDirection{ + "asc", + "desc", +} + +func (v *SortDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SortDirection(value) + for _, existing := range allowedSortDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SortDirection", value) +} + +// NewSortDirectionFromValue returns a pointer to a valid SortDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSortDirectionFromValue(v string) (*SortDirection, error) { + ev := SortDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SortDirection: valid values are %v", v, allowedSortDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SortDirection) IsValid() bool { + for _, existing := range allowedSortDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SortDirection value +func (v SortDirection) Ptr() *SortDirection { + return &v +} + +type NullableSortDirection struct { + value *SortDirection + isSet bool +} + +func (v NullableSortDirection) Get() *SortDirection { + return v.value +} + +func (v *NullableSortDirection) Set(val *SortDirection) { + v.value = val + v.isSet = true +} + +func (v NullableSortDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableSortDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSortDirection(val *SortDirection) *NullableSortDirection { + return &NullableSortDirection{value: val, isSet: true} +} + +func (v NullableSortDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSortDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topic.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic.go new file mode 100644 index 00000000..49545151 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic.go @@ -0,0 +1,336 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// Topic struct for Topic +type Topic struct { + // Unique identifier for the object. Not supported for all object kinds. + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + // Link path to request the object. Not supported for all object kinds. + Href *string `json:"href,omitempty"` + // The name of the topic. + Name *string `json:"name,omitempty"` + IsInternal *bool `json:"isInternal,omitempty"` + // Partitions for this topic. + Partitions *[]Partition `json:"partitions,omitempty"` + // Topic configuration entry. + Config *[]ConfigEntry `json:"config,omitempty"` +} + +// NewTopic instantiates a new Topic 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 NewTopic() *Topic { + this := Topic{} + return &this +} + +// NewTopicWithDefaults instantiates a new Topic 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 NewTopicWithDefaults() *Topic { + this := Topic{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Topic) GetId() string { + if o == nil || o.Id == nil { + 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 *Topic) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Topic) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Topic) SetId(v string) { + o.Id = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *Topic) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Topic) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *Topic) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *Topic) SetKind(v string) { + o.Kind = &v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *Topic) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Topic) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *Topic) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *Topic) SetHref(v string) { + o.Href = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Topic) GetName() string { + if o == nil || o.Name == nil { + 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 *Topic) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Topic) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Topic) SetName(v string) { + o.Name = &v +} + +// GetIsInternal returns the IsInternal field value if set, zero value otherwise. +func (o *Topic) GetIsInternal() bool { + if o == nil || o.IsInternal == nil { + var ret bool + return ret + } + return *o.IsInternal +} + +// GetIsInternalOk returns a tuple with the IsInternal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Topic) GetIsInternalOk() (*bool, bool) { + if o == nil || o.IsInternal == nil { + return nil, false + } + return o.IsInternal, true +} + +// HasIsInternal returns a boolean if a field has been set. +func (o *Topic) HasIsInternal() bool { + if o != nil && o.IsInternal != nil { + return true + } + + return false +} + +// SetIsInternal gets a reference to the given bool and assigns it to the IsInternal field. +func (o *Topic) SetIsInternal(v bool) { + o.IsInternal = &v +} + +// GetPartitions returns the Partitions field value if set, zero value otherwise. +func (o *Topic) GetPartitions() []Partition { + if o == nil || o.Partitions == nil { + var ret []Partition + return ret + } + return *o.Partitions +} + +// GetPartitionsOk returns a tuple with the Partitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Topic) GetPartitionsOk() (*[]Partition, bool) { + if o == nil || o.Partitions == nil { + return nil, false + } + return o.Partitions, true +} + +// HasPartitions returns a boolean if a field has been set. +func (o *Topic) HasPartitions() bool { + if o != nil && o.Partitions != nil { + return true + } + + return false +} + +// SetPartitions gets a reference to the given []Partition and assigns it to the Partitions field. +func (o *Topic) SetPartitions(v []Partition) { + o.Partitions = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *Topic) GetConfig() []ConfigEntry { + if o == nil || o.Config == nil { + var ret []ConfigEntry + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Topic) GetConfigOk() (*[]ConfigEntry, bool) { + if o == nil || o.Config == nil { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *Topic) HasConfig() bool { + if o != nil && o.Config != nil { + return true + } + + return false +} + +// SetConfig gets a reference to the given []ConfigEntry and assigns it to the Config field. +func (o *Topic) SetConfig(v []ConfigEntry) { + o.Config = &v +} + +func (o Topic) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.IsInternal != nil { + toSerialize["isInternal"] = o.IsInternal + } + if o.Partitions != nil { + toSerialize["partitions"] = o.Partitions + } + if o.Config != nil { + toSerialize["config"] = o.Config + } + return json.Marshal(toSerialize) +} + +type NullableTopic struct { + value *Topic + isSet bool +} + +func (v NullableTopic) Get() *Topic { + return v.value +} + +func (v *NullableTopic) Set(val *Topic) { + v.value = val + v.isSet = true +} + +func (v NullableTopic) IsSet() bool { + return v.isSet +} + +func (v *NullableTopic) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopic(val *Topic) *NullableTopic { + return &NullableTopic{value: val, isSet: true} +} + +func (v NullableTopic) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopic) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_all_of.go new file mode 100644 index 00000000..d0fc76b2 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_all_of.go @@ -0,0 +1,226 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// TopicAllOf Kafka Topic (A feed where records are stored and published) +type TopicAllOf struct { + // The name of the topic. + Name *string `json:"name,omitempty"` + IsInternal *bool `json:"isInternal,omitempty"` + // Partitions for this topic. + Partitions *[]Partition `json:"partitions,omitempty"` + // Topic configuration entry. + Config *[]ConfigEntry `json:"config,omitempty"` +} + +// NewTopicAllOf instantiates a new TopicAllOf 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 NewTopicAllOf() *TopicAllOf { + this := TopicAllOf{} + return &this +} + +// NewTopicAllOfWithDefaults instantiates a new TopicAllOf 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 NewTopicAllOfWithDefaults() *TopicAllOf { + this := TopicAllOf{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *TopicAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *TopicAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *TopicAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *TopicAllOf) SetName(v string) { + o.Name = &v +} + +// GetIsInternal returns the IsInternal field value if set, zero value otherwise. +func (o *TopicAllOf) GetIsInternal() bool { + if o == nil || o.IsInternal == nil { + var ret bool + return ret + } + return *o.IsInternal +} + +// GetIsInternalOk returns a tuple with the IsInternal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicAllOf) GetIsInternalOk() (*bool, bool) { + if o == nil || o.IsInternal == nil { + return nil, false + } + return o.IsInternal, true +} + +// HasIsInternal returns a boolean if a field has been set. +func (o *TopicAllOf) HasIsInternal() bool { + if o != nil && o.IsInternal != nil { + return true + } + + return false +} + +// SetIsInternal gets a reference to the given bool and assigns it to the IsInternal field. +func (o *TopicAllOf) SetIsInternal(v bool) { + o.IsInternal = &v +} + +// GetPartitions returns the Partitions field value if set, zero value otherwise. +func (o *TopicAllOf) GetPartitions() []Partition { + if o == nil || o.Partitions == nil { + var ret []Partition + return ret + } + return *o.Partitions +} + +// GetPartitionsOk returns a tuple with the Partitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicAllOf) GetPartitionsOk() (*[]Partition, bool) { + if o == nil || o.Partitions == nil { + return nil, false + } + return o.Partitions, true +} + +// HasPartitions returns a boolean if a field has been set. +func (o *TopicAllOf) HasPartitions() bool { + if o != nil && o.Partitions != nil { + return true + } + + return false +} + +// SetPartitions gets a reference to the given []Partition and assigns it to the Partitions field. +func (o *TopicAllOf) SetPartitions(v []Partition) { + o.Partitions = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *TopicAllOf) GetConfig() []ConfigEntry { + if o == nil || o.Config == nil { + var ret []ConfigEntry + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicAllOf) GetConfigOk() (*[]ConfigEntry, bool) { + if o == nil || o.Config == nil { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *TopicAllOf) HasConfig() bool { + if o != nil && o.Config != nil { + return true + } + + return false +} + +// SetConfig gets a reference to the given []ConfigEntry and assigns it to the Config field. +func (o *TopicAllOf) SetConfig(v []ConfigEntry) { + o.Config = &v +} + +func (o TopicAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.IsInternal != nil { + toSerialize["isInternal"] = o.IsInternal + } + if o.Partitions != nil { + toSerialize["partitions"] = o.Partitions + } + if o.Config != nil { + toSerialize["config"] = o.Config + } + return json.Marshal(toSerialize) +} + +type NullableTopicAllOf struct { + value *TopicAllOf + isSet bool +} + +func (v NullableTopicAllOf) Get() *TopicAllOf { + return v.value +} + +func (v *NullableTopicAllOf) Set(val *TopicAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableTopicAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicAllOf(val *TopicAllOf) *NullableTopicAllOf { + return &NullableTopicAllOf{value: val, isSet: true} +} + +func (v NullableTopicAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_order_key.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_order_key.go new file mode 100644 index 00000000..822b2494 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_order_key.go @@ -0,0 +1,114 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "fmt" +) + +// TopicOrderKey the model 'TopicOrderKey' +type TopicOrderKey string + +// List of TopicOrderKey +const ( + TOPICORDERKEY_NAME TopicOrderKey = "name" + TOPICORDERKEY_PARTITIONS TopicOrderKey = "partitions" + TOPICORDERKEY_RETENTION_MS TopicOrderKey = "retention.ms" + TOPICORDERKEY_RETENTION_BYTES TopicOrderKey = "retention.bytes" +) + +var allowedTopicOrderKeyEnumValues = []TopicOrderKey{ + "name", + "partitions", + "retention.ms", + "retention.bytes", +} + +func (v *TopicOrderKey) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TopicOrderKey(value) + for _, existing := range allowedTopicOrderKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TopicOrderKey", value) +} + +// NewTopicOrderKeyFromValue returns a pointer to a valid TopicOrderKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTopicOrderKeyFromValue(v string) (*TopicOrderKey, error) { + ev := TopicOrderKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TopicOrderKey: valid values are %v", v, allowedTopicOrderKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TopicOrderKey) IsValid() bool { + for _, existing := range allowedTopicOrderKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TopicOrderKey value +func (v TopicOrderKey) Ptr() *TopicOrderKey { + return &v +} + +type NullableTopicOrderKey struct { + value *TopicOrderKey + isSet bool +} + +func (v NullableTopicOrderKey) Get() *TopicOrderKey { + return v.value +} + +func (v *NullableTopicOrderKey) Set(val *TopicOrderKey) { + v.value = val + v.isSet = true +} + +func (v NullableTopicOrderKey) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicOrderKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicOrderKey(val *TopicOrderKey) *NullableTopicOrderKey { + return &NullableTopicOrderKey{value: val, isSet: true} +} + +func (v NullableTopicOrderKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicOrderKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_settings.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_settings.go new file mode 100644 index 00000000..745c9139 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topic_settings.go @@ -0,0 +1,153 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// TopicSettings The settings that are applicable to this topic. This includes partitions, configuration information, and number of replicas. +type TopicSettings struct { + // Number of partitions for this topic. If not specified, the default for new topics is `1`. Number of partitions may not be reduced when updating existing topics + NumPartitions *int32 `json:"numPartitions,omitempty"` + // Topic configuration entries. + Config *[]ConfigEntry `json:"config,omitempty"` +} + +// NewTopicSettings instantiates a new TopicSettings 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 NewTopicSettings() *TopicSettings { + this := TopicSettings{} + return &this +} + +// NewTopicSettingsWithDefaults instantiates a new TopicSettings 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 NewTopicSettingsWithDefaults() *TopicSettings { + this := TopicSettings{} + return &this +} + +// GetNumPartitions returns the NumPartitions field value if set, zero value otherwise. +func (o *TopicSettings) GetNumPartitions() int32 { + if o == nil || o.NumPartitions == nil { + var ret int32 + return ret + } + return *o.NumPartitions +} + +// GetNumPartitionsOk returns a tuple with the NumPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicSettings) GetNumPartitionsOk() (*int32, bool) { + if o == nil || o.NumPartitions == nil { + return nil, false + } + return o.NumPartitions, true +} + +// HasNumPartitions returns a boolean if a field has been set. +func (o *TopicSettings) HasNumPartitions() bool { + if o != nil && o.NumPartitions != nil { + return true + } + + return false +} + +// SetNumPartitions gets a reference to the given int32 and assigns it to the NumPartitions field. +func (o *TopicSettings) SetNumPartitions(v int32) { + o.NumPartitions = &v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *TopicSettings) GetConfig() []ConfigEntry { + if o == nil || o.Config == nil { + var ret []ConfigEntry + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicSettings) GetConfigOk() (*[]ConfigEntry, bool) { + if o == nil || o.Config == nil { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *TopicSettings) HasConfig() bool { + if o != nil && o.Config != nil { + return true + } + + return false +} + +// SetConfig gets a reference to the given []ConfigEntry and assigns it to the Config field. +func (o *TopicSettings) SetConfig(v []ConfigEntry) { + o.Config = &v +} + +func (o TopicSettings) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NumPartitions != nil { + toSerialize["numPartitions"] = o.NumPartitions + } + if o.Config != nil { + toSerialize["config"] = o.Config + } + return json.Marshal(toSerialize) +} + +type NullableTopicSettings struct { + value *TopicSettings + isSet bool +} + +func (v NullableTopicSettings) Get() *TopicSettings { + return v.value +} + +func (v *NullableTopicSettings) Set(val *TopicSettings) { + v.value = val + v.isSet = true +} + +func (v NullableTopicSettings) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicSettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicSettings(val *TopicSettings) *NullableTopicSettings { + return &NullableTopicSettings{value: val, isSet: true} +} + +func (v NullableTopicSettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicSettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list.go new file mode 100644 index 00000000..abe73c2f --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list.go @@ -0,0 +1,359 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// TopicsList struct for TopicsList +type TopicsList struct { + Kind *string `json:"kind,omitempty"` + Items []Topic `json:"items"` + // Total number of entries in the full result set + Total int32 `json:"total"` + // Number of entries per page (returned for fetch requests) + Size *int32 `json:"size,omitempty"` + // Current page number (returned for fetch requests) + Page *int32 `json:"page,omitempty"` + // Offset of the first record returned, zero-based + Offset *int32 `json:"offset,omitempty"` + // Maximum number of records to return, from request + Limit *int32 `json:"limit,omitempty"` + // Total number of entries in the full result set + Count *int32 `json:"count,omitempty"` +} + +// NewTopicsList instantiates a new TopicsList 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 NewTopicsList(items []Topic, total int32) *TopicsList { + this := TopicsList{} + this.Items = items + this.Total = total + return &this +} + +// NewTopicsListWithDefaults instantiates a new TopicsList 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 NewTopicsListWithDefaults() *TopicsList { + this := TopicsList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *TopicsList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *TopicsList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *TopicsList) SetKind(v string) { + o.Kind = &v +} + +// GetItems returns the Items field value +func (o *TopicsList) GetItems() []Topic { + if o == nil { + var ret []Topic + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *TopicsList) GetItemsOk() (*[]Topic, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *TopicsList) SetItems(v []Topic) { + o.Items = v +} + +// GetTotal returns the Total field value +func (o *TopicsList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *TopicsList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *TopicsList) SetTotal(v int32) { + o.Total = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *TopicsList) GetSize() int32 { + if o == nil || o.Size == nil { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetSizeOk() (*int32, bool) { + if o == nil || o.Size == nil { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *TopicsList) HasSize() bool { + if o != nil && o.Size != nil { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *TopicsList) SetSize(v int32) { + o.Size = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *TopicsList) GetPage() int32 { + if o == nil || o.Page == nil { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetPageOk() (*int32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *TopicsList) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *TopicsList) SetPage(v int32) { + o.Page = &v +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *TopicsList) GetOffset() int32 { + if o == nil || o.Offset == nil { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetOffsetOk() (*int32, bool) { + if o == nil || o.Offset == nil { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *TopicsList) HasOffset() bool { + if o != nil && o.Offset != nil { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *TopicsList) SetOffset(v int32) { + o.Offset = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *TopicsList) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *TopicsList) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *TopicsList) SetLimit(v int32) { + o.Limit = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *TopicsList) GetCount() int32 { + if o == nil || o.Count == nil { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsList) GetCountOk() (*int32, bool) { + if o == nil || o.Count == nil { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *TopicsList) HasCount() bool { + if o != nil && o.Count != nil { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *TopicsList) SetCount(v int32) { + o.Count = &v +} + +func (o TopicsList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + if true { + toSerialize["total"] = o.Total + } + if o.Size != nil { + toSerialize["size"] = o.Size + } + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.Offset != nil { + toSerialize["offset"] = o.Offset + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.Count != nil { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableTopicsList struct { + value *TopicsList + isSet bool +} + +func (v NullableTopicsList) Get() *TopicsList { + return v.value +} + +func (v *NullableTopicsList) Set(val *TopicsList) { + v.value = val + v.isSet = true +} + +func (v NullableTopicsList) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicsList(val *TopicsList) *NullableTopicsList { + return &NullableTopicsList{value: val, isSet: true} +} + +func (v NullableTopicsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list_all_of.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list_all_of.go new file mode 100644 index 00000000..1be52295 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_list_all_of.go @@ -0,0 +1,115 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// TopicsListAllOf A list of topics. +type TopicsListAllOf struct { + Items *[]Topic `json:"items,omitempty"` +} + +// NewTopicsListAllOf instantiates a new TopicsListAllOf 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 NewTopicsListAllOf() *TopicsListAllOf { + this := TopicsListAllOf{} + return &this +} + +// NewTopicsListAllOfWithDefaults instantiates a new TopicsListAllOf 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 NewTopicsListAllOfWithDefaults() *TopicsListAllOf { + this := TopicsListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *TopicsListAllOf) GetItems() []Topic { + if o == nil || o.Items == nil { + var ret []Topic + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsListAllOf) GetItemsOk() (*[]Topic, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *TopicsListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Topic and assigns it to the Items field. +func (o *TopicsListAllOf) SetItems(v []Topic) { + o.Items = &v +} + +func (o TopicsListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableTopicsListAllOf struct { + value *TopicsListAllOf + isSet bool +} + +func (v NullableTopicsListAllOf) Get() *TopicsListAllOf { + return v.value +} + +func (v *NullableTopicsListAllOf) Set(val *TopicsListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableTopicsListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicsListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicsListAllOf(val *TopicsListAllOf) *NullableTopicsListAllOf { + return &NullableTopicsListAllOf{value: val, isSet: true} +} + +func (v NullableTopicsListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicsListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_to_reset_offset.go b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_to_reset_offset.go new file mode 100644 index 00000000..5bd89ec3 --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/model_topics_to_reset_offset.go @@ -0,0 +1,144 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" +) + +// TopicsToResetOffset struct for TopicsToResetOffset +type TopicsToResetOffset struct { + Topic string `json:"topic"` + Partitions *[]int32 `json:"partitions,omitempty"` +} + +// NewTopicsToResetOffset instantiates a new TopicsToResetOffset 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 NewTopicsToResetOffset(topic string) *TopicsToResetOffset { + this := TopicsToResetOffset{} + this.Topic = topic + return &this +} + +// NewTopicsToResetOffsetWithDefaults instantiates a new TopicsToResetOffset 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 NewTopicsToResetOffsetWithDefaults() *TopicsToResetOffset { + this := TopicsToResetOffset{} + return &this +} + +// GetTopic returns the Topic field value +func (o *TopicsToResetOffset) GetTopic() string { + if o == nil { + var ret string + return ret + } + + return o.Topic +} + +// GetTopicOk returns a tuple with the Topic field value +// and a boolean to check if the value has been set. +func (o *TopicsToResetOffset) GetTopicOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Topic, true +} + +// SetTopic sets field value +func (o *TopicsToResetOffset) SetTopic(v string) { + o.Topic = v +} + +// GetPartitions returns the Partitions field value if set, zero value otherwise. +func (o *TopicsToResetOffset) GetPartitions() []int32 { + if o == nil || o.Partitions == nil { + var ret []int32 + return ret + } + return *o.Partitions +} + +// GetPartitionsOk returns a tuple with the Partitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopicsToResetOffset) GetPartitionsOk() (*[]int32, bool) { + if o == nil || o.Partitions == nil { + return nil, false + } + return o.Partitions, true +} + +// HasPartitions returns a boolean if a field has been set. +func (o *TopicsToResetOffset) HasPartitions() bool { + if o != nil && o.Partitions != nil { + return true + } + + return false +} + +// SetPartitions gets a reference to the given []int32 and assigns it to the Partitions field. +func (o *TopicsToResetOffset) SetPartitions(v []int32) { + o.Partitions = &v +} + +func (o TopicsToResetOffset) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["topic"] = o.Topic + } + if o.Partitions != nil { + toSerialize["partitions"] = o.Partitions + } + return json.Marshal(toSerialize) +} + +type NullableTopicsToResetOffset struct { + value *TopicsToResetOffset + isSet bool +} + +func (v NullableTopicsToResetOffset) Get() *TopicsToResetOffset { + return v.value +} + +func (v *NullableTopicsToResetOffset) Set(val *TopicsToResetOffset) { + v.value = val + v.isSet = true +} + +func (v NullableTopicsToResetOffset) IsSet() bool { + return v.isSet +} + +func (v *NullableTopicsToResetOffset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopicsToResetOffset(val *TopicsToResetOffset) *NullableTopicsToResetOffset { + return &NullableTopicsToResetOffset{value: val, isSet: true} +} + +func (v NullableTopicsToResetOffset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopicsToResetOffset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/response.go b/app-services-sdk-go/kafkainstance/apiv1/client/response.go new file mode 100644 index 00000000..0d7a08db --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/response.go @@ -0,0 +1,47 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/kafkainstance/apiv1/client/utils.go b/app-services-sdk-go/kafkainstance/apiv1/client/utils.go new file mode 100644 index 00000000..34f4a18d --- /dev/null +++ b/app-services-sdk-go/kafkainstance/apiv1/client/utils.go @@ -0,0 +1,328 @@ +/* + * Kafka Instance API + * + * API for interacting with Kafka Instance. Includes Produce, Consume and Admin APIs + * + * API version: 0.13.0-SNAPSHOT + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkainstanceclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore b/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..78796d25 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,102 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +api_errors.go +api_security.go +client.go +configuration.go +docs/CloudProvider.md +docs/CloudProviderList.md +docs/CloudProviderListAllOf.md +docs/CloudRegion.md +docs/CloudRegionList.md +docs/CloudRegionListAllOf.md +docs/DefaultApi.md +docs/Error.md +docs/ErrorList.md +docs/ErrorListAllOf.md +docs/ErrorsApi.md +docs/InstantQuery.md +docs/KafkaRequest.md +docs/KafkaRequestAllOf.md +docs/KafkaRequestList.md +docs/KafkaRequestListAllOf.md +docs/KafkaRequestPayload.md +docs/KafkaUpdateRequest.md +docs/List.md +docs/MetricsInstantQueryList.md +docs/MetricsInstantQueryListAllOf.md +docs/MetricsRangeQueryList.md +docs/MetricsRangeQueryListAllOf.md +docs/ObjectReference.md +docs/RangeQuery.md +docs/RegionCapacityListItem.md +docs/SecurityApi.md +docs/ServiceAccount.md +docs/ServiceAccountAllOf.md +docs/ServiceAccountList.md +docs/ServiceAccountListAllOf.md +docs/ServiceAccountListItem.md +docs/ServiceAccountListItemAllOf.md +docs/ServiceAccountRequest.md +docs/SsoProvider.md +docs/SsoProviderAllOf.md +docs/SupportedKafkaBillingModel.md +docs/SupportedKafkaInstanceType.md +docs/SupportedKafkaInstanceTypesList.md +docs/SupportedKafkaInstanceTypesListAllOf.md +docs/SupportedKafkaSize.md +docs/SupportedKafkaSizeBytesValueItem.md +docs/Values.md +docs/VersionMetadata.md +docs/VersionMetadataAllOf.md +git_push.sh +go.mod +go.sum +model_cloud_provider.go +model_cloud_provider_list.go +model_cloud_provider_list_all_of.go +model_cloud_region.go +model_cloud_region_list.go +model_cloud_region_list_all_of.go +model_error.go +model_error_list.go +model_error_list_all_of.go +model_instant_query.go +model_kafka_request.go +model_kafka_request_all_of.go +model_kafka_request_list.go +model_kafka_request_list_all_of.go +model_kafka_request_payload.go +model_kafka_update_request.go +model_list.go +model_metrics_instant_query_list.go +model_metrics_instant_query_list_all_of.go +model_metrics_range_query_list.go +model_metrics_range_query_list_all_of.go +model_object_reference.go +model_range_query.go +model_region_capacity_list_item.go +model_service_account.go +model_service_account_all_of.go +model_service_account_list.go +model_service_account_list_all_of.go +model_service_account_list_item.go +model_service_account_list_item_all_of.go +model_service_account_request.go +model_sso_provider.go +model_sso_provider_all_of.go +model_supported_kafka_billing_model.go +model_supported_kafka_instance_type.go +model_supported_kafka_instance_types_list.go +model_supported_kafka_instance_types_list_all_of.go +model_supported_kafka_size.go +model_supported_kafka_size_bytes_value_item.go +model_values.go +model_version_metadata.go +model_version_metadata_all_of.go +response.go +utils.go diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml b/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/README.md b/app-services-sdk-go/kafkamgmt/apiv1/client/README.md new file mode 100644 index 00000000..9b239729 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/README.md @@ -0,0 +1,184 @@ +# Go API client for kafkamgmtclient + +Kafka Management API is a REST API to manage Kafka instances + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.13.0 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./kafkamgmtclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.openshift.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateKafka**](docs/DefaultApi.md#createkafka) | **Post** /api/kafkas_mgmt/v1/kafkas | +*DefaultApi* | [**DeleteKafkaById**](docs/DefaultApi.md#deletekafkabyid) | **Delete** /api/kafkas_mgmt/v1/kafkas/{id} | +*DefaultApi* | [**FederateMetrics**](docs/DefaultApi.md#federatemetrics) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate | +*DefaultApi* | [**GetCloudProviderRegions**](docs/DefaultApi.md#getcloudproviderregions) | **Get** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | +*DefaultApi* | [**GetCloudProviders**](docs/DefaultApi.md#getcloudproviders) | **Get** /api/kafkas_mgmt/v1/cloud_providers | +*DefaultApi* | [**GetInstanceTypesByCloudProviderAndRegion**](docs/DefaultApi.md#getinstancetypesbycloudproviderandregion) | **Get** /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} | +*DefaultApi* | [**GetKafkaById**](docs/DefaultApi.md#getkafkabyid) | **Get** /api/kafkas_mgmt/v1/kafkas/{id} | +*DefaultApi* | [**GetKafkas**](docs/DefaultApi.md#getkafkas) | **Get** /api/kafkas_mgmt/v1/kafkas | +*DefaultApi* | [**GetMetricsByInstantQuery**](docs/DefaultApi.md#getmetricsbyinstantquery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | +*DefaultApi* | [**GetMetricsByRangeQuery**](docs/DefaultApi.md#getmetricsbyrangequery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | +*DefaultApi* | [**GetVersionMetadata**](docs/DefaultApi.md#getversionmetadata) | **Get** /api/kafkas_mgmt/v1 | +*DefaultApi* | [**UpdateKafkaById**](docs/DefaultApi.md#updatekafkabyid) | **Patch** /api/kafkas_mgmt/v1/kafkas/{id} | +*ErrorsApi* | [**GetErrorById**](docs/ErrorsApi.md#geterrorbyid) | **Get** /api/kafkas_mgmt/v1/errors/{id} | +*ErrorsApi* | [**GetErrors**](docs/ErrorsApi.md#geterrors) | **Get** /api/kafkas_mgmt/v1/errors | +*SecurityApi* | [**CreateServiceAccount**](docs/SecurityApi.md#createserviceaccount) | **Post** /api/kafkas_mgmt/v1/service_accounts | +*SecurityApi* | [**DeleteServiceAccountById**](docs/SecurityApi.md#deleteserviceaccountbyid) | **Delete** /api/kafkas_mgmt/v1/service_accounts/{id} | +*SecurityApi* | [**GetServiceAccountById**](docs/SecurityApi.md#getserviceaccountbyid) | **Get** /api/kafkas_mgmt/v1/service_accounts/{id} | +*SecurityApi* | [**GetServiceAccounts**](docs/SecurityApi.md#getserviceaccounts) | **Get** /api/kafkas_mgmt/v1/service_accounts | +*SecurityApi* | [**GetSsoProviders**](docs/SecurityApi.md#getssoproviders) | **Get** /api/kafkas_mgmt/v1/sso_providers | +*SecurityApi* | [**ResetServiceAccountCreds**](docs/SecurityApi.md#resetserviceaccountcreds) | **Post** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | + + +## Documentation For Models + + - [CloudProvider](docs/CloudProvider.md) + - [CloudProviderList](docs/CloudProviderList.md) + - [CloudProviderListAllOf](docs/CloudProviderListAllOf.md) + - [CloudRegion](docs/CloudRegion.md) + - [CloudRegionList](docs/CloudRegionList.md) + - [CloudRegionListAllOf](docs/CloudRegionListAllOf.md) + - [Error](docs/Error.md) + - [ErrorList](docs/ErrorList.md) + - [ErrorListAllOf](docs/ErrorListAllOf.md) + - [InstantQuery](docs/InstantQuery.md) + - [KafkaRequest](docs/KafkaRequest.md) + - [KafkaRequestAllOf](docs/KafkaRequestAllOf.md) + - [KafkaRequestList](docs/KafkaRequestList.md) + - [KafkaRequestListAllOf](docs/KafkaRequestListAllOf.md) + - [KafkaRequestPayload](docs/KafkaRequestPayload.md) + - [KafkaUpdateRequest](docs/KafkaUpdateRequest.md) + - [List](docs/List.md) + - [MetricsInstantQueryList](docs/MetricsInstantQueryList.md) + - [MetricsInstantQueryListAllOf](docs/MetricsInstantQueryListAllOf.md) + - [MetricsRangeQueryList](docs/MetricsRangeQueryList.md) + - [MetricsRangeQueryListAllOf](docs/MetricsRangeQueryListAllOf.md) + - [ObjectReference](docs/ObjectReference.md) + - [RangeQuery](docs/RangeQuery.md) + - [RegionCapacityListItem](docs/RegionCapacityListItem.md) + - [ServiceAccount](docs/ServiceAccount.md) + - [ServiceAccountAllOf](docs/ServiceAccountAllOf.md) + - [ServiceAccountList](docs/ServiceAccountList.md) + - [ServiceAccountListAllOf](docs/ServiceAccountListAllOf.md) + - [ServiceAccountListItem](docs/ServiceAccountListItem.md) + - [ServiceAccountListItemAllOf](docs/ServiceAccountListItemAllOf.md) + - [ServiceAccountRequest](docs/ServiceAccountRequest.md) + - [SsoProvider](docs/SsoProvider.md) + - [SsoProviderAllOf](docs/SsoProviderAllOf.md) + - [SupportedKafkaBillingModel](docs/SupportedKafkaBillingModel.md) + - [SupportedKafkaInstanceType](docs/SupportedKafkaInstanceType.md) + - [SupportedKafkaInstanceTypesList](docs/SupportedKafkaInstanceTypesList.md) + - [SupportedKafkaInstanceTypesListAllOf](docs/SupportedKafkaInstanceTypesListAllOf.md) + - [SupportedKafkaSize](docs/SupportedKafkaSize.md) + - [SupportedKafkaSizeBytesValueItem](docs/SupportedKafkaSizeBytesValueItem.md) + - [Values](docs/Values.md) + - [VersionMetadata](docs/VersionMetadata.md) + - [VersionMetadataAllOf](docs/VersionMetadataAllOf.md) + + +## Documentation For Authorization + + + +### Bearer + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +rhosak-support@redhat.com + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..150ec9e6 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml @@ -0,0 +1,2383 @@ +openapi: 3.0.0 +info: + contact: + email: rhosak-support@redhat.com + name: Red Hat OpenShift Streams for Apache Kafka Support + description: Kafka Management API is a REST API to manage Kafka instances + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + title: Kafka Management API + version: 1.13.0 +servers: +- description: Main (production) server + url: https://api.openshift.com +- description: Staging server + url: https://api.stage.openshift.com +- description: localhost + url: http://localhost:8000 +- description: current domain + url: / +tags: +- description: Errors returned by the API. + name: errors +- description: Security related endpoints. + name: security +paths: + /api/kafkas_mgmt/v1: + get: + description: Returns the kafka Service Fleet Manager API version metadata + operationId: getVersionMetadata + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VersionMetadata' + description: Version metadata + /api/kafkas_mgmt/v1/errors/{id}: + get: + description: Returns the error by Id + operationId: getErrorById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Get error by Id + tags: + - errors + /api/kafkas_mgmt/v1/errors: + get: + description: Returns the list of possible API errors + operationId: getErrors + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorList' + description: List of possible errors + tags: + - errors + /api/kafkas_mgmt/v1/kafkas/{id}: + delete: + description: Deletes a Kafka request by ID + operationId: deleteKafkaById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Perform the action in an asynchronous manner + explode: true + in: query + name: async + required: true + schema: + type: boolean + style: form + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Deleted + "400": + content: + application/json: + examples: + "400DeletionExample": + $ref: '#/components/examples/400DeletionExample' + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "404": + content: + application/json: + examples: + "404DeleteExample": + $ref: '#/components/examples/404DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: No Kafka request with specified ID exists + "500": + content: + application/json: + examples: + "500DeleteExample": + $ref: '#/components/examples/500DeleteExample' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + get: + description: Returns a Kafka request by ID + operationId: getKafkaById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + KafkaRequestGetResponseExample: + $ref: '#/components/examples/KafkaRequestExample' + KafkaRequestGetResponseWithFailedCreationStatusExample: + $ref: '#/components/examples/KafkaRequestFailedCreationStatusExample' + schema: + $ref: '#/components/schemas/KafkaRequest' + description: Kafka request found by ID + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No Kafka request with specified ID exists + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + patch: + description: Update a Kafka instance by id + operationId: updateKafkaById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KafkaUpdateRequest' + description: Update owner of kafka + required: true + responses: + "200": + content: + application/json: + examples: + KafkaRequestPostResponseExample: + $ref: '#/components/examples/KafkaRequestExample' + schema: + $ref: '#/components/schemas/KafkaRequest' + description: Kafka updated by ID + "400": + content: + application/json: + examples: + MissingParameterExample: + $ref: '#/components/examples/400MissingParameterExample' + schema: + $ref: '#/components/schemas/Error' + description: Bad request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorised to access the service + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No Kafka found with the specified ID + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/kafkas: + get: + description: Returns a list of Kafka requests + operationId: getKafkas + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + - description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the following `kafkaRequests` fields: + + * bootstrap_server_host + * admin_api_server_url + * cloud_provider + * cluster_id + * created_at + * href + * id + * instance_type + * multi_az + * name + * organisation_id + * owner + * reauthentication_enabled + * region + * status + * updated_at + * version + + For example, to return all Kafka instances ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Kafka instances ordered by their name _and_ created date, use the following syntax: + + ```sql + name asc, created_at asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of an + SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. + + Examples: + + To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: + + ``` + name = my-kafka and cloud_provider = aws + ```[p-] + + To return a Kafka instance with a name that starts with `my`, use the following syntax: + + ``` + name like my%25 + ``` + + To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: + + ``` + name ilike %25test%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the Kafka instances + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = my-kafka and cloud_provider = aws + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/KafkaRequestList' + description: A list of Kafka requests + "400": + content: + application/json: + examples: + InvalidQueryExample: + $ref: '#/components/examples/400InvalidQueryExample' + schema: + $ref: '#/components/schemas/Error' + description: Bad request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + post: + description: Creates a Kafka request + operationId: createKafka + parameters: + - description: Perform the action in an asynchronous manner + explode: true + in: query + name: async + required: true + schema: + type: boolean + style: form + requestBody: + content: + application/json: + examples: + USRegion: + $ref: '#/components/examples/USRegionExample' + EURegion: + $ref: '#/components/examples/EURegionExample' + ExplicitSizeExample: + $ref: '#/components/examples/ExplicitSizeExample' + schema: + $ref: '#/components/schemas/KafkaRequestPayload' + description: Kafka data + required: true + responses: + "202": + content: + application/json: + examples: + KafkaRequestPostResponseExample: + $ref: '#/components/examples/KafkaRequestExample' + schema: + $ref: '#/components/schemas/KafkaRequest' + description: Accepted + "400": + content: + application/json: + examples: + "400CreationExample": + $ref: '#/components/examples/400CreationExample' + schema: + $ref: '#/components/schemas/Error' + description: Validation errors occurred + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + "403MaxAllowedInstanceReachedExample": + $ref: '#/components/examples/403MaxAllowedInstanceReachedExample' + "403TermsNotAcceptedExample": + $ref: '#/components/examples/403TermsNotAcceptedExample' + schema: + $ref: '#/components/schemas/Error' + description: User forbidden either because the user is not authorized to + access the service or because the maximum number of instances that can + be created by this user has been reached. + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: The requested resource doesn't exist + "409": + content: + application/json: + examples: + "409NameConflictExample": + $ref: '#/components/examples/409NameConflictExample' + schema: + $ref: '#/components/schemas/Error' + description: A conflict has been detected in the creation of this resource + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: An unexpected error occurred while creating the Kafka request + security: + - Bearer: [] + /api/kafkas_mgmt/v1/cloud_providers: + get: + description: Returns the list of supported cloud providers + operationId: getCloudProviders + parameters: + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudProviderList' + description: Returned list of supported cloud providers + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/cloud_providers/{id}/regions: + get: + description: Returns the list of supported regions of the supported cloud provider + operationId: getCloudProviderRegions + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + - description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CloudRegionList' + description: Returned list of supported cloud provider regions + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}: + get: + description: Returns the list of supported Kafka instance types and sizes filtered + by cloud provider and region + operationId: getInstanceTypesByCloudProviderAndRegion + parameters: + - description: ID of the supported cloud provider + explode: false + in: path + name: cloud_provider + required: true + schema: + type: string + style: simple + - description: Name of the supported cloud provider region + explode: false + in: path + name: cloud_region + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SupportedKafkaInstanceTypesList' + description: Returned list of supported Kafka instance types and sizes filtered + by cloud provider and region + "400": + content: + application/json: + examples: + "400UnsupportedRegionExample": + $ref: '#/components/examples/400UnsupportedRegionExample' + "400UnsupportedProviderExample": + $ref: '#/components/examples/400UnsupportedProviderExample' + schema: + $ref: '#/components/schemas/Error' + description: Cloud provider or region is not supported + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/service_accounts: + get: + description: Returns a list of service accounts + operationId: getServiceAccounts + parameters: + - description: client_id of the service account to be retrieved + explode: true + in: query + name: client_id + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountList' + description: Returned list of service accounts + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + tags: + - security + post: + description: Creates a service account + operationId: createServiceAccount + requestBody: + content: + application/json: + examples: + sa: + $ref: '#/components/examples/ServiceAccountRequestExample' + schema: + $ref: '#/components/schemas/ServiceAccountRequest' + description: Service account request + required: true + responses: + "200": + content: + application/json: + examples: + serviceaccount: + $ref: '#/components/examples/ServiceAccountExample' + schema: + $ref: '#/components/schemas/ServiceAccount' + description: Service account created + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: List of service accounts + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + tags: + - security + /api/kafkas_mgmt/v1/service_accounts/{id}: + delete: + description: Deletes a service account by ID + operationId: deleteServiceAccountById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Deleted + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: {} + description: Unexpected error occurred + security: + - Bearer: [] + tags: + - security + description: Get the service account with the given id + get: + description: Returned service account by ID + operationId: getServiceAccountById + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + sa: + $ref: '#/components/examples/ServiceAccountByIdExample' + schema: + $ref: '#/components/schemas/ServiceAccount' + description: Returns a service account by ID + security: + - Bearer: [] + tags: + - security + /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials: + post: + description: Resets the credentials for a service account by ID + operationId: resetServiceAccountCreds + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + sa-reset: + $ref: '#/components/examples/ServiceAccountExample' + schema: + $ref: '#/components/schemas/ServiceAccount' + description: Reset credentials + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User not authorized to access the service + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: {} + description: Unexpected error occurred + security: + - Bearer: [] + tags: + - security + /api/kafkas_mgmt/v1/sso_providers: + get: + description: Return sso provider info + operationId: getSsoProviders + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SsoProvider' + description: Returned list of supported cloud providers + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + tags: + - security + /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range: + get: + description: Returns metrics with timeseries range query by Kafka ID + operationId: getMetricsByRangeQuery + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: The length of time in minutes for which to return the metrics + examples: + duration: + value: 5 + explode: true + in: query + name: duration + required: true + schema: + default: 5 + format: int64 + maximum: 4320 + minimum: 1 + type: integer + style: form + - description: The interval in seconds between data points + examples: + interval: + value: 30 + explode: true + in: query + name: interval + required: true + schema: + default: 30 + format: int64 + maximum: 10800 + minimum: 1 + type: integer + style: form + - description: List of metrics to fetch. Fetch all metrics when empty. List + entries are Kafka internal metric names. + explode: true + in: query + name: filters + required: false + schema: + default: [] + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MetricsRangeQueryList' + description: Returned JSON array of Prometheus metrics objects from observatorium + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query: + get: + description: Returns metrics with instant query by Kafka ID + operationId: getMetricsByInstantQuery + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + - description: List of metrics to fetch. Fetch all metrics when empty. List + entries are Kafka internal metric names. + explode: true + in: query + name: filters + required: false + schema: + default: [] + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MetricsInstantQueryList' + description: Returned JSON array of Prometheus metrics objects from observatorium + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] + /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate: + get: + description: Returns all metrics in scrapeable format for a given kafka id + operationId: federateMetrics + parameters: + - description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + text/plain: + schema: + type: string + description: Returned Kafka metrics in a Prometheus text format + "400": + content: + application/json: + examples: + MissingParameterExample: + $ref: '#/components/examples/400MissingParameterExample' + schema: + $ref: '#/components/schemas/Error' + description: Bad request + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: Kafka id not found + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + security: + - Bearer: [] +components: + examples: + USRegionExample: + value: + region: us-east-1 + cloud_provider: aws + name: serviceapitest + EURegionExample: + value: + region: eu-west-1 + cloud_provider: aws + name: serviceapitest + ExplicitSizeExample: + value: + region: us-east-1 + cloud_provider: aws + name: test_kafka + plan: standard.x1 + KafkaRequestExample: + value: + id: 1iSY6RQ3JKI8Q0OTmjQFd3ocFRg + kind: kafka + href: /api/kafkas_mgmt/v1/kafkas/1iSY6RQ3JKI8Q0OTmjQFd3ocFRg + status: ready + cloud_provider: aws + multi_az: true + region: us-east-1 + owner: api_kafka_service + name: serviceapi + bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org + admin_api_server_url: https://admin-server-mk-e-e-e-e-c---{}ld{-}-n-vp--bltg.rhcloud.com + created_at: 2020-10-05T12:51:24.053142Z + updated_at: 2020-10-05T12:56:36.362208Z + version: 2.6.0 + instance_type: standard + browser_url: https://console.redhat.com/application-services/streams/kafkas/1isy6rq3jki8q0otmjqfd3ocfrg/dashboard + reauthentication_enabled: true + max_data_retention_size: + bytes: 1073741824000 + size_id: x1 + ingress_throughput_per_sec: 2Mi + egress_throughput_per_sec: 2Mi + total_max_connections: 100 + max_partitions: 100 + max_data_retention_period: P14D + max_connection_attempts_per_sec: 100 + billing_cloud_account_id: "123456789012" + marketplace: aws + billing_model: marketplace + KafkaRequestFailedCreationStatusExample: + value: + id: 1iSY6RQ3JKI8Q0OTmjQFd3ocFRg + kind: kafka + href: /api/kafkas_mgmt/v1/kafkas/1iSY6RQ3JKI8Q0OTmjQFd3ocFRg + status: failed + cloud_provider: aws + multi_az: true + region: us-east-1 + owner: api_kafka_service + name: serviceapi + bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org + admin_api_server_url: https://admin-server-mk-e-e-e-e-c---{}ld{-}-n-vp--bltg.rhcloud.com + created_at: 2020-10-05T12:51:24.053142Z + updated_at: 2020-10-05T12:56:36.362208Z + failed_reason: a reason the Kafka request creation failed + instance_type: standard + reauthentication_enabled: true + SupportedKafkaInstanceTypeListExample: + value: + id: developer + display_name: Trial + supported_billing_models: + - id: trial + ams_resource: rhosak + ams_product: RHOSAKTrial + ams_billing_models: + - standard + sizes: + - id: x1 + display_name: "1" + ingress_throughput_per_sec: + bytes: 31457280 + egress_throughput_per_sec: + bytes: 31457280 + total_max_connections: 3000 + max_data_retention_size: + bytes: 1073741800000 + max_partitions: 1000 + max_data_retention_period: P14D + max_connection_attempts_per_sec: 100 + quota_consumed: 1 + quota_type: rhosak + capacity_consumed: 1 + max_message_size: + bytes: 1048576 + min_in_sync_replicas: 1 + replication_factor: 1 + supported_az_modes: + - single + - multi + maturity_status: stable + CloudProviderExample: + value: + kind: CloudProvider + id: aws + name: aws + display_name: Amazon Web Services + enabled: true + CloudRegionExample: + value: + kind: CloudRegion + id: us-east-1 + display_name: US East, N. Virginia + enabled: true + capacity: + - instance_type: standard + available_sizes: + - x1 + - x2 + ServiceAccountRequestExample: + value: + name: my-app-sa + description: service account for my app + ServiceAccountExample: + value: + id: "1" + kind: ServiceAccount + href: /api/kafkas_mgmt/v1/serviceaccounts/1 + name: my-app-sa + description: service account for my app + client_id: SA-121212 + client_secret: secret + owner: test-user + created_by: test-user + created_at: 2021-04-07T16:24:01+05:30 + SsoProviderExample: + value: + name: mas_sso + base_url: https://identity.api.redhat.com + jwks: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/certs + token_url: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/token + valid_issuer: https://identity.api.openshift.com/auth/realms/rhoas + ServiceAccountByIdExample: + value: + id: "1" + kind: ServiceAccount + href: /api/kafkas_mgmt/v1/serviceaccounts/1 + name: my-app-sa + description: service account for my app + client_id: SA-121212 + owner: test-user + created_by: test-user + created_at: 2021-04-07T16:24:01+05:30 + ServiceAccountListItemExample: + value: + id: "1" + kind: ServiceAccountListItem + href: /api/kafkas_mgmt/v1/serviceaccounts/1 + name: my-app-sa + description: service account for my app + client_id: SA-121212 + owner: test-user + created_by: test-user + created_at: 2021-04-07T16:24:01+05:30 + MetricsRangeQueryExample: + value: + metric: + __name__: kafka_server_brokertopicmetrics_bytes_in_total + strimzi_io_cluster: kafka-service + topic: __consumer_offsets + values: + - timestamp: 1611670230000 + value: 84154 + - timestamp: 1611670260000 + value: 85888 + - timestamp: 1611670290000 + value: 87622 + MetricsInstantQueryExample: + value: + metric: + __name__: kafka_server_brokertopicmetrics_bytes_in_total + strimzi_io_cluster: kafka-service + topic: __consumer_offsets + timestamp: 1611670230000 + value: 84154 + "400DeletionExample": + value: + id: "103" + kind: Error + href: /api/kafkas_mgmt/v1/errors/103 + code: KAFKAS-MGMT-103 + reason: Synchronous action is not supported, use async=true parameter + operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa + "400CreationExample": + value: + id: "103" + kind: Error + href: /api/kafkas_mgmt/v1/errors/103 + code: KAFKAS-MGMT-103 + reason: Synchronous action is not supported, use async=true parameter + operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa + "400InvalidQueryExample": + value: + id: "23" + kind: Error + href: /api/kafkas_mgmt/v1/errors/23 + code: KAFKAS-MGMT-23 + reason: 'Failed to parse search query: Unable to list Kafka requests for api_kafka_service: + KAFKAS-MGMT-23: Failed to parse search query: Unsupported column name for + search: ''id''. Supported column names are: region, name, cloud_provider, + name, status. Query invalid: id = 123' + operation_id: 1lWDGuybIrEnxrAem724gqkkiDv + "400UnsupportedProviderExample": + value: + id: "30" + kind: Error + href: /api/kafkas_mgmt/v1/errors/30 + code: KAFKAS-MGMT-30 + reason: Provider not supported + operation_id: c980htvgvcn9kf51d0n0 + "400UnsupportedRegionExample": + value: + id: "31" + kind: Error + href: /api/kafkas_mgmt/v1/errors/31 + code: KAFKAS-MGMT-31 + reason: Region not supported + operation_id: c980htvgvcn9kf51d0n0 + "400MissingParameterExample": + value: + id: "21" + kind: Error + href: /api/kafkas_mgmt/v1/errors/21 + code: KAFKAS-MGMT-21 + reason: 'missing path parameter: kafka id' + operation_id: 1lWDGuybIrEnxrAem724gqkkiDv + "404Example": + value: + id: "7" + kind: Error + href: /api/kafkas_mgmt/v1/errors/7 + code: KAFKAS-MGMT-7 + reason: The requested resource doesn't exist + "404DeleteExample": + value: + id: "7" + kind: Error + href: /api/kafkas_mgmt/v1/errors/7 + code: KAFKAS-MGMT-7 + reason: KafkaResource with id='1iK3duVYIvv5YvLlyz1mGR3JyqN' not found + operation_id: 1iYO7g2g6HTdUKUa2ksH82kQD3y + "401Example": + value: + id: "11" + kind: Error + href: /api/kafkas_mgmt/v1/errors/11 + code: KAFKAS-MGMT-11 + reason: 'Unable to verify JWT token: Required authorization token not found' + operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD + "403Example": + value: + id: "4" + kind: Error + href: /api/kafkas_mgmt/v1/errors/4 + code: KAFKAS-MGMT-4 + reason: User 'foo-bar' is not authorized to access the service. + operation_id: 1lY3UiEhznXBpWPfI2lNejpd4YC + "403MaxAllowedInstanceReachedExample": + value: + id: "5" + kind: Error + href: /api/kafkas_mgmt/v1/errors/5 + code: KAFKAS-MGMT-5 + reason: User 'foo-bar' has reached a maximum number of 6 allowed streaming + units. + operation_id: 1lY3UiEkxnXBpVPeI2oNejd3XB + "403TermsNotAcceptedExample": + value: + id: "12" + kind: Error + href: /api/kafkas_mgmt/v1/errors/12 + code: KAFKAS-MGMT-12 + reason: Required terms have not been accepted + operation_id: kXCzWPeI2oXBpVPeI2LvF9jMQY + "409NameConflictExample": + value: + id: "36" + kind: Error + href: /api/kafkas_mgmt/v1/errors/36 + code: KAFKAS-MGMT-36 + reason: Kafka cluster name is already used + operation_id: 6kY0UiEkzkXCzWPeI2oYehd3ED + "500Example": + value: + id: "9" + kind: Error + href: /api/kafkas_mgmt/v1/errors/9 + code: KAFKAS-MGMT-9 + reason: Unspecified error + operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW + "500DeleteExample": + value: + id: "9" + kind: Error + href: /api/kafkas_mgmt/v1/errors/9 + code: KAFKAS-MGMT-9 + reason: 'error deleting syncset: OCM-EX-9: failed to delete syncset: ext-serviceapi-1ix03lndlmq0qfc7sita5sljv8e + for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier + is ''404'', code is ''CLUSTERS-MGMT-404'' and operation identifier is ''1g5or50viu07oealuehrkc26dgftj1ac'': + Cluster ''1g5d88q0lrcdv4g7alb7slfgnj3dhbsj'' not found)' + operation_id: 1iYTsWry6nsqb2sNmFj5bXpD7Ca + parameters: + id: + description: The ID of record + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + duration: + description: The length of time in minutes for which to return the metrics + examples: + duration: + value: 5 + explode: true + in: query + name: duration + required: true + schema: + default: 5 + format: int64 + maximum: 4320 + minimum: 1 + type: integer + style: form + interval: + description: The interval in seconds between data points + examples: + interval: + value: 30 + explode: true + in: query + name: interval + required: true + schema: + default: 30 + format: int64 + maximum: 10800 + minimum: 1 + type: integer + style: form + filters: + description: List of metrics to fetch. Fetch all metrics when empty. List entries + are Kafka internal metric names. + explode: true + in: query + name: filters + required: false + schema: + default: [] + items: + type: string + type: array + style: form + page: + description: Page index + examples: + page: + value: "1" + explode: true + in: query + name: page + required: false + schema: + type: string + style: form + size: + description: Number of items in each page + examples: + size: + value: "100" + explode: true + in: query + name: size + required: false + schema: + type: string + style: form + orderBy: + description: |- + Specifies the order by criteria. The syntax of this parameter is + similar to the syntax of the `order by` clause of an SQL statement. + Each query can be ordered by any of the following `kafkaRequests` fields: + + * bootstrap_server_host + * admin_api_server_url + * cloud_provider + * cluster_id + * created_at + * href + * id + * instance_type + * multi_az + * name + * organisation_id + * owner + * reauthentication_enabled + * region + * status + * updated_at + * version + + For example, to return all Kafka instances ordered by their name, use the following syntax: + + ```sql + name asc + ``` + + To return all Kafka instances ordered by their name _and_ created date, use the following syntax: + + ```sql + name asc, created_at asc + ``` + + If the parameter isn't provided, or if the value is empty, then + the results are ordered by name. + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + search: + description: | + Search criteria. + + The syntax of this parameter is similar to the syntax of the `where` clause of an + SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. + Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. + + Examples: + + To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: + + ``` + name = my-kafka and cloud_provider = aws + ```[p-] + + To return a Kafka instance with a name that starts with `my`, use the following syntax: + + ``` + name like my%25 + ``` + + To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: + + ``` + name ilike %25test%25 + ``` + + If the parameter isn't provided, or if the value is empty, then all the Kafka instances + that the user has permission to see are returned. + + Note. If the query is invalid, an error is returned. + examples: + search: + value: name = my-kafka and cloud_provider = aws + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + schemas: + ObjectReference: + properties: + id: + type: string + kind: + type: string + href: + type: string + required: + - href + - id + - kind + type: object + List: + properties: + kind: + type: string + page: + type: integer + size: + type: integer + total: + type: integer + items: + items: + $ref: '#/components/schemas/ObjectReference' + type: array + required: + - items + - kind + - page + - size + - total + type: object + Error: + example: + reason: reason + code: code + kind: kind + operation_id: operation_id + id: id + href: href + properties: + reason: + type: string + operation_id: + type: string + id: + type: string + kind: + type: string + href: + type: string + code: + type: string + required: + - code + - href + - id + - kind + - reason + type: object + ErrorList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ErrorList_allOf' + KafkaRequest: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/KafkaRequest_allOf' + KafkaRequestList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/KafkaRequestList_allOf' + VersionMetadata: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/VersionMetadata_allOf' + KafkaRequestPayload: + description: Schema for the request body sent to /kafkas POST + example: + reauthentication_enabled: true + marketplace: marketplace + billing_model: billing_model + billing_cloud_account_id: billing_cloud_account_id + name: name + cloud_provider: cloud_provider + region: region + plan: plan + properties: + cloud_provider: + description: The cloud provider where the Kafka cluster will be created + in + type: string + name: + description: The name of the Kafka cluster. It must consist of lower-case + alphanumeric characters or '-', start with an alphabetic character, and + end with an alphanumeric character, and can not be longer than 32 characters. + type: string + region: + description: The region where the Kafka cluster will be created in + type: string + reauthentication_enabled: + description: Whether connection reauthentication is enabled or not. If set + to true, connection reauthentication on the Kafka instance will be required + every 5 minutes. The default value is true + nullable: true + type: boolean + plan: + description: kafka plan in a format of . + type: string + billing_cloud_account_id: + description: cloud account id used to purchase the instance + nullable: true + type: string + marketplace: + description: marketplace where the instance is purchased on + nullable: true + type: string + billing_model: + description: billing model to use + nullable: true + type: string + required: + - name + type: object + SupportedKafkaInstanceTypesList: + allOf: + - $ref: '#/components/schemas/SupportedKafkaInstanceTypesList_allOf' + SupportedKafkaInstanceType: + description: Supported Kafka instance type + properties: + id: + description: Unique identifier of the Kafka instance type. + type: string + display_name: + description: Human readable name of the supported Kafka instance type + type: string + supported_billing_models: + description: A list of available kafka billing models for the instance type. + Each kafka billing model item has a unique 'id' + items: + $ref: '#/components/schemas/SupportedKafkaBillingModel' + minItems: 1 + type: array + sizes: + description: A list of Kafka instance sizes available for this instance + type + items: + allOf: + - $ref: '#/components/schemas/SupportedKafkaSize' + type: array + required: + - supported_billing_models + type: object + SupportedKafkaBillingModel: + description: Supported Kafka Billing Model + properties: + id: + description: Identifier for the Kafka billing model + minLength: 1 + type: string + ams_resource: + description: 'AMS resource to be used. Accepted values: [''rhosak'']' + minLength: 1 + type: string + ams_product: + description: 'AMS product to be used. Accepted values: [''RHOSAK'', ''RHOSAKTrial'', + ''RHOSAKEval'']' + minLength: 1 + type: string + ams_billing_models: + description: 'List of AMS available billing models: Accepted values: [''marketplace'', + ''marketplace-rhm'', ''marketplace-aws'']' + items: + minLength: 1 + type: string + minItems: 1 + type: array + required: + - ams_billing_models + - ams_product + - ams_resource + - id + type: object + SupportedKafkaSize: + description: Supported Kafka Size + properties: + id: + description: Unique identifier of this Kafka instance size. + type: string + display_name: + description: Display name of this Kafka instance size. + type: string + ingress_throughput_per_sec: + $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' + egress_throughput_per_sec: + $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' + total_max_connections: + description: Maximum amount of total connections available to this Kafka + instance size. + type: integer + max_data_retention_size: + $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' + max_partitions: + description: Maximum amount of total partitions available to this Kafka + instance size. + type: integer + max_data_retention_period: + description: Maximum data retention period available to this Kafka instance + size. + type: string + max_connection_attempts_per_sec: + description: Maximium connection attempts per second available to this Kafka + instance size. + type: integer + max_message_size: + $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' + min_in_sync_replicas: + description: Minimum number of in-sync replicas. + type: integer + replication_factor: + description: Replication factor available to this Kafka instance size. + type: integer + supported_az_modes: + description: List of Availability Zone modes that this Kafka instance size + supports. The possible values are "single", "multi". + items: + type: string + type: array + lifespan_seconds: + description: The limit lifespan of the kafka instance in seconds. If not + specified then the instance never expires. + nullable: true + type: integer + quota_consumed: + description: Quota consumed by this Kafka instance size. + type: integer + quota_type: + deprecated: true + description: Quota type used by this Kafka instance size. This is now deprecated, + please refer to supported_billing_models at instance-type level instead. + type: string + capacity_consumed: + description: Data plane cluster capacity consumed by this Kafka instance + size. + type: integer + maturity_status: + description: Maturity level of the size. Can be "stable" or "preview". + type: string + type: object + SupportedKafkaSizeBytesValueItem: + properties: + bytes: + format: int64 + type: integer + type: object + CloudProviderList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/CloudProviderList_allOf' + CloudRegionList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/CloudRegionList_allOf' + CloudProvider: + description: Cloud provider. + properties: + kind: + description: Indicates the type of this object. Will be 'CloudProvider' + link. + type: string + id: + description: Unique identifier of the object. + type: string + display_name: + description: Name of the cloud provider for display purposes. + type: string + name: + description: Human friendly identifier of the cloud provider, for example + `aws`. + type: string + enabled: + description: Whether the cloud provider is enabled for deploying an OSD + cluster. + type: boolean + required: + - enabled + CloudRegion: + description: Description of a region of a cloud provider. + properties: + kind: + description: Indicates the type of this object. Will be 'CloudRegion'. + type: string + id: + description: Unique identifier of the object. + type: string + display_name: + description: Name of the region for display purposes, for example `N. Virginia`. + type: string + enabled: + default: false + description: Whether the region is enabled for deploying an OSD cluster. + type: boolean + capacity: + description: Indicates whether there is capacity left per instance type + items: + $ref: '#/components/schemas/RegionCapacityListItem' + type: array + required: + - capacity + - enabled + ServiceAccount: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ServiceAccount_allOf' + description: Service Account created in MAS-SSO for the Kafka Cluster for authentication + ServiceAccountRequest: + description: Schema for the request to create a service account + example: + $ref: '#/components/examples/ServiceAccountRequestExample' + properties: + name: + description: The name of the service account + type: string + description: + description: A description for the service account + type: string + required: + - name + type: object + RegionCapacityListItem: + description: schema for a kafka instance type capacity in region + properties: + instance_type: + description: kafka instance type + type: string + available_sizes: + description: list of available Kafka instance sizes that can be created + in this region when taking account current capacity and regional limits + items: + type: string + type: array + required: + - available_sizes + - instance_type + type: object + ServiceAccountListItem: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ServiceAccountListItem_allOf' + ServiceAccountList: + allOf: + - $ref: '#/components/schemas/ServiceAccountList_allOf' + SsoProvider: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/SsoProvider_allOf' + description: SSO Provider + MetricsRangeQueryList: + allOf: + - $ref: '#/components/schemas/MetricsRangeQueryList_allOf' + RangeQuery: + properties: + metric: + additionalProperties: + type: string + type: object + values: + items: + $ref: '#/components/schemas/Values' + type: array + type: object + Values: + properties: + timestamp: + format: int64 + type: integer + value: + format: double + type: number + required: + - value + type: object + MetricsInstantQueryList: + allOf: + - $ref: '#/components/schemas/MetricsInstantQueryList_allOf' + InstantQuery: + properties: + metric: + additionalProperties: + type: string + type: object + timestamp: + format: int64 + type: integer + value: + format: double + type: number + required: + - value + type: object + KafkaUpdateRequest: + example: + owner: owner + reauthentication_enabled: true + properties: + owner: + nullable: true + type: string + reauthentication_enabled: + description: Whether connection reauthentication is enabled or not. If set + to true, connection reauthentication on the Kafka instance will be required + every 5 minutes. + nullable: true + type: boolean + type: object + ErrorList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Error' + type: array + type: object + KafkaRequest_allOf: + example: + $ref: '#/components/examples/KafkaRequestExample' + properties: + status: + description: 'Values: [accepted, preparing, provisioning, ready, failed, + deprovision, deleting] ' + type: string + cloud_provider: + description: Name of Cloud used to deploy. For example AWS + type: string + multi_az: + type: boolean + region: + description: 'Values will be regions of specific cloud provider. For example: + us-east-1 for AWS' + type: string + owner: + type: string + name: + type: string + bootstrap_server_host: + type: string + admin_api_server_url: + description: The kafka admin server url to perform kafka admin operations + e.g acl management etc. The value will be available when the Kafka has + been fully provisioned i.e it reaches a 'ready' state + type: string + created_at: + format: date-time + type: string + expires_at: + format: date-time + nullable: true + type: string + updated_at: + format: date-time + type: string + failed_reason: + type: string + version: + type: string + instance_type: + type: string + instance_type_name: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: string + reauthentication_enabled: + type: boolean + kafka_storage_size: + deprecated: true + description: Maximum data storage available to this Kafka. This is now deprecated, + please use max_data_retention_size instead. + type: string + max_data_retention_size: + $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' + browser_url: + type: string + size_id: + type: string + ingress_throughput_per_sec: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: string + egress_throughput_per_sec: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: string + total_max_connections: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: integer + max_partitions: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: integer + max_data_retention_period: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: string + max_connection_attempts_per_sec: + deprecated: true + description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} + endpoint to retrieve the field instead. + type: integer + billing_cloud_account_id: + type: string + marketplace: + type: string + billing_model: + type: string + required: + - multi_az + - reauthentication_enabled + type: object + KafkaRequestList_allOf: + example: + kind: KafkaRequestList + page: "1" + size: "1" + total: "1" + item: + $ref: '#/components/examples/KafkaRequestExample' + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/KafkaRequest' + type: array + type: object + VersionMetadata_allOf: + example: + kind: APIVersion + id: v1 + href: /api/kafkas_mgmt/v1 + server_version: 24a263e8631d713b3104c1a70c143644ab91de6f + collections: + - id: kafkas + href: /api/kafkas_mgmt/v1/kafkas + kind: KafkaList + properties: + server_version: + type: string + collections: + items: + allOf: + - $ref: '#/components/schemas/ObjectReference' + type: array + type: object + SupportedKafkaInstanceTypesList_allOf: + example: + instance_types: + $ref: '#/components/examples/SupportedKafkaInstanceTypeListExample' + properties: + instance_types: + items: + allOf: + - $ref: '#/components/schemas/SupportedKafkaInstanceType' + type: array + type: object + CloudProviderList_allOf: + example: + kind: CloudProviderList + page: "1" + size: "1" + total: "1" + item: + $ref: '#/components/examples/CloudProviderExample' + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/CloudProvider' + type: array + type: object + CloudRegionList_allOf: + example: + kind: CloudRegionList + page: "1" + size: "1" + total: "1" + item: + $ref: '#/components/examples/CloudRegionExample' + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/CloudRegion' + type: array + type: object + ServiceAccount_allOf: + example: + $ref: '#/components/examples/ServiceAccountExample' + properties: + id: + description: server generated unique id of the service account + type: string + name: + type: string + description: + type: string + client_id: + type: string + client_secret: + type: string + owner: + deprecated: true + type: string + created_by: + type: string + created_at: + format: date-time + type: string + type: object + ServiceAccountListItem_allOf: + properties: + id: + description: server generated unique id of the service account + type: string + client_id: + description: client id of the service account + type: string + name: + description: name of the service account + type: string + owner: + deprecated: true + description: owner of the service account + type: string + created_by: + description: service account created by the user + type: string + created_at: + description: service account creation timestamp + format: date-time + type: string + description: + description: description of the service account + type: string + type: object + ServiceAccountList_allOf: + example: + kind: ServiceAccountList + items: + - $ref: '#/components/examples/ServiceAccountListItemExample' + properties: + kind: + type: string + items: + items: + allOf: + - $ref: '#/components/schemas/ServiceAccountListItem' + type: array + required: + - items + - kind + type: object + SsoProvider_allOf: + example: + $ref: '#/components/examples/SsoProviderExample' + properties: + name: + description: name of the sso provider + type: string + base_url: + description: base url + type: string + token_url: + type: string + jwks: + type: string + valid_issuer: + type: string + type: object + MetricsRangeQueryList_allOf: + example: + kind: MetricsRangeQueryList + id: 1nbpS70HduPe4l0to8jSg2CLzfu + items: + $ref: '#/components/examples/MetricsRangeQueryExample' + properties: + kind: + type: string + id: + type: string + items: + items: + allOf: + - $ref: '#/components/schemas/RangeQuery' + type: array + type: object + MetricsInstantQueryList_allOf: + example: + kind: MetricsInstantQueryList + id: 1nbpS70HduPe4l0to8jSg2CLzfu + items: + $ref: '#/components/examples/MetricsInstantQueryExample' + properties: + kind: + type: string + id: + type: string + items: + items: + allOf: + - $ref: '#/components/schemas/InstantQuery' + type: array + type: object + securitySchemes: + Bearer: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go new file mode 100644 index 00000000..6d7ea4fe --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go @@ -0,0 +1,2013 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "reflect" +) + +// Linger please +var ( + _ _context.Context +) + +type DefaultApi interface { + + /* + * CreateKafka Method for CreateKafka + * Creates a Kafka request + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateKafkaRequest + */ + CreateKafka(ctx _context.Context) ApiCreateKafkaRequest + + /* + * CreateKafkaExecute executes the request + * @return KafkaRequest + */ + CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) + + /* + * DeleteKafkaById Method for DeleteKafkaById + * Deletes a Kafka request by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteKafkaByIdRequest + */ + DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest + + /* + * DeleteKafkaByIdExecute executes the request + * @return Error + */ + DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) + + /* + * FederateMetrics Method for FederateMetrics + * Returns all metrics in scrapeable format for a given kafka id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiFederateMetricsRequest + */ + FederateMetrics(ctx _context.Context, id string) ApiFederateMetricsRequest + + /* + * FederateMetricsExecute executes the request + * @return string + */ + FederateMetricsExecute(r ApiFederateMetricsRequest) (string, *_nethttp.Response, error) + + /* + * GetCloudProviderRegions Method for GetCloudProviderRegions + * Returns the list of supported regions of the supported cloud provider + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetCloudProviderRegionsRequest + */ + GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest + + /* + * GetCloudProviderRegionsExecute executes the request + * @return CloudRegionList + */ + GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) + + /* + * GetCloudProviders Method for GetCloudProviders + * Returns the list of supported cloud providers + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetCloudProvidersRequest + */ + GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest + + /* + * GetCloudProvidersExecute executes the request + * @return CloudProviderList + */ + GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) + + /* + * GetInstanceTypesByCloudProviderAndRegion Method for GetInstanceTypesByCloudProviderAndRegion + * Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param cloudProvider ID of the supported cloud provider + * @param cloudRegion Name of the supported cloud provider region + * @return ApiGetInstanceTypesByCloudProviderAndRegionRequest + */ + GetInstanceTypesByCloudProviderAndRegion(ctx _context.Context, cloudProvider string, cloudRegion string) ApiGetInstanceTypesByCloudProviderAndRegionRequest + + /* + * GetInstanceTypesByCloudProviderAndRegionExecute executes the request + * @return SupportedKafkaInstanceTypesList + */ + GetInstanceTypesByCloudProviderAndRegionExecute(r ApiGetInstanceTypesByCloudProviderAndRegionRequest) (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) + + /* + * GetKafkaById Method for GetKafkaById + * Returns a Kafka request by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetKafkaByIdRequest + */ + GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest + + /* + * GetKafkaByIdExecute executes the request + * @return KafkaRequest + */ + GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) + + /* + * GetKafkas Method for GetKafkas + * Returns a list of Kafka requests + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetKafkasRequest + */ + GetKafkas(ctx _context.Context) ApiGetKafkasRequest + + /* + * GetKafkasExecute executes the request + * @return KafkaRequestList + */ + GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) + + /* + * GetMetricsByInstantQuery Method for GetMetricsByInstantQuery + * Returns metrics with instant query by Kafka ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetMetricsByInstantQueryRequest + */ + GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest + + /* + * GetMetricsByInstantQueryExecute executes the request + * @return MetricsInstantQueryList + */ + GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) + + /* + * GetMetricsByRangeQuery Method for GetMetricsByRangeQuery + * Returns metrics with timeseries range query by Kafka ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetMetricsByRangeQueryRequest + */ + GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest + + /* + * GetMetricsByRangeQueryExecute executes the request + * @return MetricsRangeQueryList + */ + GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) + + /* + * GetVersionMetadata Method for GetVersionMetadata + * Returns the kafka Service Fleet Manager API version metadata + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetVersionMetadataRequest + */ + GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest + + /* + * GetVersionMetadataExecute executes the request + * @return VersionMetadata + */ + GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) + + /* + * UpdateKafkaById Method for UpdateKafkaById + * Update a Kafka instance by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiUpdateKafkaByIdRequest + */ + UpdateKafkaById(ctx _context.Context, id string) ApiUpdateKafkaByIdRequest + + /* + * UpdateKafkaByIdExecute executes the request + * @return KafkaRequest + */ + UpdateKafkaByIdExecute(r ApiUpdateKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) +} + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiCreateKafkaRequest struct { + ctx _context.Context + ApiService DefaultApi + async *bool + kafkaRequestPayload *KafkaRequestPayload +} + +func (r ApiCreateKafkaRequest) Async(async bool) ApiCreateKafkaRequest { + r.async = &async + return r +} +func (r ApiCreateKafkaRequest) KafkaRequestPayload(kafkaRequestPayload KafkaRequestPayload) ApiCreateKafkaRequest { + r.kafkaRequestPayload = &kafkaRequestPayload + return r +} + +func (r ApiCreateKafkaRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { + return r.ApiService.CreateKafkaExecute(r) +} + +/* + * CreateKafka Method for CreateKafka + * Creates a Kafka request + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateKafkaRequest + */ +func (a *DefaultApiService) CreateKafka(ctx _context.Context) ApiCreateKafkaRequest { + return ApiCreateKafkaRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return KafkaRequest + */ +func (a *DefaultApiService) CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue KafkaRequest + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateKafka") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.async == nil { + return localVarReturnValue, nil, reportError("async is required and must be specified") + } + if r.kafkaRequestPayload == nil { + return localVarReturnValue, nil, reportError("kafkaRequestPayload is required and must be specified") + } + + localVarQueryParams.Add("async", parameterToString(*r.async, "")) + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.kafkaRequestPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteKafkaByIdRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + async *bool +} + +func (r ApiDeleteKafkaByIdRequest) Async(async bool) ApiDeleteKafkaByIdRequest { + r.async = &async + return r +} + +func (r ApiDeleteKafkaByIdRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.DeleteKafkaByIdExecute(r) +} + +/* + * DeleteKafkaById Method for DeleteKafkaById + * Deletes a Kafka request by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteKafkaByIdRequest + */ +func (a *DefaultApiService) DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest { + return ApiDeleteKafkaByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *DefaultApiService) DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKafkaById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.async == nil { + return localVarReturnValue, nil, reportError("async is required and must be specified") + } + + localVarQueryParams.Add("async", parameterToString(*r.async, "")) + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiFederateMetricsRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiFederateMetricsRequest) Execute() (string, *_nethttp.Response, error) { + return r.ApiService.FederateMetricsExecute(r) +} + +/* + * FederateMetrics Method for FederateMetrics + * Returns all metrics in scrapeable format for a given kafka id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiFederateMetricsRequest + */ +func (a *DefaultApiService) FederateMetrics(ctx _context.Context, id string) ApiFederateMetricsRequest { + return ApiFederateMetricsRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return string + */ +func (a *DefaultApiService) FederateMetricsExecute(r ApiFederateMetricsRequest) (string, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.FederateMetrics") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/plain", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCloudProviderRegionsRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + page *string + size *string +} + +func (r ApiGetCloudProviderRegionsRequest) Page(page string) ApiGetCloudProviderRegionsRequest { + r.page = &page + return r +} +func (r ApiGetCloudProviderRegionsRequest) Size(size string) ApiGetCloudProviderRegionsRequest { + r.size = &size + return r +} + +func (r ApiGetCloudProviderRegionsRequest) Execute() (CloudRegionList, *_nethttp.Response, error) { + return r.ApiService.GetCloudProviderRegionsExecute(r) +} + +/* + * GetCloudProviderRegions Method for GetCloudProviderRegions + * Returns the list of supported regions of the supported cloud provider + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetCloudProviderRegionsRequest + */ +func (a *DefaultApiService) GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest { + return ApiGetCloudProviderRegionsRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return CloudRegionList + */ +func (a *DefaultApiService) GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudRegionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCloudProviderRegions") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/cloud_providers/{id}/regions" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCloudProvidersRequest struct { + ctx _context.Context + ApiService DefaultApi + page *string + size *string +} + +func (r ApiGetCloudProvidersRequest) Page(page string) ApiGetCloudProvidersRequest { + r.page = &page + return r +} +func (r ApiGetCloudProvidersRequest) Size(size string) ApiGetCloudProvidersRequest { + r.size = &size + return r +} + +func (r ApiGetCloudProvidersRequest) Execute() (CloudProviderList, *_nethttp.Response, error) { + return r.ApiService.GetCloudProvidersExecute(r) +} + +/* + * GetCloudProviders Method for GetCloudProviders + * Returns the list of supported cloud providers + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetCloudProvidersRequest + */ +func (a *DefaultApiService) GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest { + return ApiGetCloudProvidersRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CloudProviderList + */ +func (a *DefaultApiService) GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudProviderList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCloudProviders") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/cloud_providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetInstanceTypesByCloudProviderAndRegionRequest struct { + ctx _context.Context + ApiService DefaultApi + cloudProvider string + cloudRegion string +} + + +func (r ApiGetInstanceTypesByCloudProviderAndRegionRequest) Execute() (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) { + return r.ApiService.GetInstanceTypesByCloudProviderAndRegionExecute(r) +} + +/* + * GetInstanceTypesByCloudProviderAndRegion Method for GetInstanceTypesByCloudProviderAndRegion + * Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param cloudProvider ID of the supported cloud provider + * @param cloudRegion Name of the supported cloud provider region + * @return ApiGetInstanceTypesByCloudProviderAndRegionRequest + */ +func (a *DefaultApiService) GetInstanceTypesByCloudProviderAndRegion(ctx _context.Context, cloudProvider string, cloudRegion string) ApiGetInstanceTypesByCloudProviderAndRegionRequest { + return ApiGetInstanceTypesByCloudProviderAndRegionRequest{ + ApiService: a, + ctx: ctx, + cloudProvider: cloudProvider, + cloudRegion: cloudRegion, + } +} + +/* + * Execute executes the request + * @return SupportedKafkaInstanceTypesList + */ +func (a *DefaultApiService) GetInstanceTypesByCloudProviderAndRegionExecute(r ApiGetInstanceTypesByCloudProviderAndRegionRequest) (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SupportedKafkaInstanceTypesList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetInstanceTypesByCloudProviderAndRegion") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}" + localVarPath = strings.Replace(localVarPath, "{"+"cloud_provider"+"}", _neturl.PathEscape(parameterToString(r.cloudProvider, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"cloud_region"+"}", _neturl.PathEscape(parameterToString(r.cloudRegion, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKafkaByIdRequest struct { + ctx _context.Context + ApiService DefaultApi + id string +} + + +func (r ApiGetKafkaByIdRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { + return r.ApiService.GetKafkaByIdExecute(r) +} + +/* + * GetKafkaById Method for GetKafkaById + * Returns a Kafka request by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetKafkaByIdRequest + */ +func (a *DefaultApiService) GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest { + return ApiGetKafkaByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return KafkaRequest + */ +func (a *DefaultApiService) GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue KafkaRequest + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKafkaById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetKafkasRequest struct { + ctx _context.Context + ApiService DefaultApi + page *string + size *string + orderBy *string + search *string +} + +func (r ApiGetKafkasRequest) Page(page string) ApiGetKafkasRequest { + r.page = &page + return r +} +func (r ApiGetKafkasRequest) Size(size string) ApiGetKafkasRequest { + r.size = &size + return r +} +func (r ApiGetKafkasRequest) OrderBy(orderBy string) ApiGetKafkasRequest { + r.orderBy = &orderBy + return r +} +func (r ApiGetKafkasRequest) Search(search string) ApiGetKafkasRequest { + r.search = &search + return r +} + +func (r ApiGetKafkasRequest) Execute() (KafkaRequestList, *_nethttp.Response, error) { + return r.ApiService.GetKafkasExecute(r) +} + +/* + * GetKafkas Method for GetKafkas + * Returns a list of Kafka requests + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetKafkasRequest + */ +func (a *DefaultApiService) GetKafkas(ctx _context.Context) ApiGetKafkasRequest { + return ApiGetKafkasRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return KafkaRequestList + */ +func (a *DefaultApiService) GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue KafkaRequestList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKafkas") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetMetricsByInstantQueryRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + filters *[]string +} + +func (r ApiGetMetricsByInstantQueryRequest) Filters(filters []string) ApiGetMetricsByInstantQueryRequest { + r.filters = &filters + return r +} + +func (r ApiGetMetricsByInstantQueryRequest) Execute() (MetricsInstantQueryList, *_nethttp.Response, error) { + return r.ApiService.GetMetricsByInstantQueryExecute(r) +} + +/* + * GetMetricsByInstantQuery Method for GetMetricsByInstantQuery + * Returns metrics with instant query by Kafka ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetMetricsByInstantQueryRequest + */ +func (a *DefaultApiService) GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest { + return ApiGetMetricsByInstantQueryRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return MetricsInstantQueryList + */ +func (a *DefaultApiService) GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue MetricsInstantQueryList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetMetricsByInstantQuery") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.filters != nil { + t := *r.filters + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("filters", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("filters", parameterToString(t, "multi")) + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetMetricsByRangeQueryRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + duration *int64 + interval *int64 + filters *[]string +} + +func (r ApiGetMetricsByRangeQueryRequest) Duration(duration int64) ApiGetMetricsByRangeQueryRequest { + r.duration = &duration + return r +} +func (r ApiGetMetricsByRangeQueryRequest) Interval(interval int64) ApiGetMetricsByRangeQueryRequest { + r.interval = &interval + return r +} +func (r ApiGetMetricsByRangeQueryRequest) Filters(filters []string) ApiGetMetricsByRangeQueryRequest { + r.filters = &filters + return r +} + +func (r ApiGetMetricsByRangeQueryRequest) Execute() (MetricsRangeQueryList, *_nethttp.Response, error) { + return r.ApiService.GetMetricsByRangeQueryExecute(r) +} + +/* + * GetMetricsByRangeQuery Method for GetMetricsByRangeQuery + * Returns metrics with timeseries range query by Kafka ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetMetricsByRangeQueryRequest + */ +func (a *DefaultApiService) GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest { + return ApiGetMetricsByRangeQueryRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return MetricsRangeQueryList + */ +func (a *DefaultApiService) GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue MetricsRangeQueryList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetMetricsByRangeQuery") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.duration == nil { + return localVarReturnValue, nil, reportError("duration is required and must be specified") + } + if *r.duration < 1 { + return localVarReturnValue, nil, reportError("duration must be greater than 1") + } + if *r.duration > 4320 { + return localVarReturnValue, nil, reportError("duration must be less than 4320") + } + if r.interval == nil { + return localVarReturnValue, nil, reportError("interval is required and must be specified") + } + if *r.interval < 1 { + return localVarReturnValue, nil, reportError("interval must be greater than 1") + } + if *r.interval > 10800 { + return localVarReturnValue, nil, reportError("interval must be less than 10800") + } + + localVarQueryParams.Add("duration", parameterToString(*r.duration, "")) + localVarQueryParams.Add("interval", parameterToString(*r.interval, "")) + if r.filters != nil { + t := *r.filters + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("filters", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("filters", parameterToString(t, "multi")) + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetVersionMetadataRequest struct { + ctx _context.Context + ApiService DefaultApi +} + + +func (r ApiGetVersionMetadataRequest) Execute() (VersionMetadata, *_nethttp.Response, error) { + return r.ApiService.GetVersionMetadataExecute(r) +} + +/* + * GetVersionMetadata Method for GetVersionMetadata + * Returns the kafka Service Fleet Manager API version metadata + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetVersionMetadataRequest + */ +func (a *DefaultApiService) GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest { + return ApiGetVersionMetadataRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return VersionMetadata + */ +func (a *DefaultApiService) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionMetadata + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetVersionMetadata") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateKafkaByIdRequest struct { + ctx _context.Context + ApiService DefaultApi + id string + kafkaUpdateRequest *KafkaUpdateRequest +} + +func (r ApiUpdateKafkaByIdRequest) KafkaUpdateRequest(kafkaUpdateRequest KafkaUpdateRequest) ApiUpdateKafkaByIdRequest { + r.kafkaUpdateRequest = &kafkaUpdateRequest + return r +} + +func (r ApiUpdateKafkaByIdRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { + return r.ApiService.UpdateKafkaByIdExecute(r) +} + +/* + * UpdateKafkaById Method for UpdateKafkaById + * Update a Kafka instance by id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiUpdateKafkaByIdRequest + */ +func (a *DefaultApiService) UpdateKafkaById(ctx _context.Context, id string) ApiUpdateKafkaByIdRequest { + return ApiUpdateKafkaByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return KafkaRequest + */ +func (a *DefaultApiService) UpdateKafkaByIdExecute(r ApiUpdateKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue KafkaRequest + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateKafkaById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.kafkaUpdateRequest == nil { + return localVarReturnValue, nil, reportError("kafkaUpdateRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.kafkaUpdateRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go new file mode 100644 index 00000000..87cbc8f6 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go @@ -0,0 +1,269 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ErrorsApi interface { + + /* + * GetErrorById Method for GetErrorById + * Returns the error by Id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetErrorByIdRequest + */ + GetErrorById(ctx _context.Context, id string) ApiGetErrorByIdRequest + + /* + * GetErrorByIdExecute executes the request + * @return Error + */ + GetErrorByIdExecute(r ApiGetErrorByIdRequest) (Error, *_nethttp.Response, error) + + /* + * GetErrors Method for GetErrors + * Returns the list of possible API errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ + GetErrors(ctx _context.Context) ApiGetErrorsRequest + + /* + * GetErrorsExecute executes the request + * @return ErrorList + */ + GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) +} + +// ErrorsApiService ErrorsApi service +type ErrorsApiService service + +type ApiGetErrorByIdRequest struct { + ctx _context.Context + ApiService ErrorsApi + id string +} + + +func (r ApiGetErrorByIdRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.GetErrorByIdExecute(r) +} + +/* + * GetErrorById Method for GetErrorById + * Returns the error by Id + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetErrorByIdRequest + */ +func (a *ErrorsApiService) GetErrorById(ctx _context.Context, id string) ApiGetErrorByIdRequest { + return ApiGetErrorByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *ErrorsApiService) GetErrorByIdExecute(r ApiGetErrorByIdRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrorById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/errors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetErrorsRequest struct { + ctx _context.Context + ApiService ErrorsApi +} + + +func (r ApiGetErrorsRequest) Execute() (ErrorList, *_nethttp.Response, error) { + return r.ApiService.GetErrorsExecute(r) +} + +/* + * GetErrors Method for GetErrors + * Returns the list of possible API errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ +func (a *ErrorsApiService) GetErrors(ctx _context.Context) ApiGetErrorsRequest { + return ApiGetErrorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrorList + */ +func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ErrorList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go new file mode 100644 index 00000000..6c539808 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go @@ -0,0 +1,896 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type SecurityApi interface { + + /* + * CreateServiceAccount Method for CreateServiceAccount + * Creates a service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ + CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest + + /* + * CreateServiceAccountExecute executes the request + * @return ServiceAccount + */ + CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccount, *_nethttp.Response, error) + + /* + * DeleteServiceAccountById Method for DeleteServiceAccountById + * Deletes a service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteServiceAccountByIdRequest + */ + DeleteServiceAccountById(ctx _context.Context, id string) ApiDeleteServiceAccountByIdRequest + + /* + * DeleteServiceAccountByIdExecute executes the request + * @return Error + */ + DeleteServiceAccountByIdExecute(r ApiDeleteServiceAccountByIdRequest) (Error, *_nethttp.Response, error) + + /* + * GetServiceAccountById Method for GetServiceAccountById + * Returned service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetServiceAccountByIdRequest + */ + GetServiceAccountById(ctx _context.Context, id string) ApiGetServiceAccountByIdRequest + + /* + * GetServiceAccountByIdExecute executes the request + * @return ServiceAccount + */ + GetServiceAccountByIdExecute(r ApiGetServiceAccountByIdRequest) (ServiceAccount, *_nethttp.Response, error) + + /* + * GetServiceAccounts Method for GetServiceAccounts + * Returns a list of service accounts + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ + GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest + + /* + * GetServiceAccountsExecute executes the request + * @return ServiceAccountList + */ + GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) (ServiceAccountList, *_nethttp.Response, error) + + /* + * GetSsoProviders Method for GetSsoProviders + * Return sso provider info + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSsoProvidersRequest + */ + GetSsoProviders(ctx _context.Context) ApiGetSsoProvidersRequest + + /* + * GetSsoProvidersExecute executes the request + * @return SsoProvider + */ + GetSsoProvidersExecute(r ApiGetSsoProvidersRequest) (SsoProvider, *_nethttp.Response, error) + + /* + * ResetServiceAccountCreds Method for ResetServiceAccountCreds + * Resets the credentials for a service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiResetServiceAccountCredsRequest + */ + ResetServiceAccountCreds(ctx _context.Context, id string) ApiResetServiceAccountCredsRequest + + /* + * ResetServiceAccountCredsExecute executes the request + * @return ServiceAccount + */ + ResetServiceAccountCredsExecute(r ApiResetServiceAccountCredsRequest) (ServiceAccount, *_nethttp.Response, error) +} + +// SecurityApiService SecurityApi service +type SecurityApiService service + +type ApiCreateServiceAccountRequest struct { + ctx _context.Context + ApiService SecurityApi + serviceAccountRequest *ServiceAccountRequest +} + +func (r ApiCreateServiceAccountRequest) ServiceAccountRequest(serviceAccountRequest ServiceAccountRequest) ApiCreateServiceAccountRequest { + r.serviceAccountRequest = &serviceAccountRequest + return r +} + +func (r ApiCreateServiceAccountRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { + return r.ApiService.CreateServiceAccountExecute(r) +} + +/* + * CreateServiceAccount Method for CreateServiceAccount + * Creates a service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ +func (a *SecurityApiService) CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest { + return ApiCreateServiceAccountRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ServiceAccount + */ +func (a *SecurityApiService) CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccount, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.CreateServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.serviceAccountRequest == nil { + return localVarReturnValue, nil, reportError("serviceAccountRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAccountRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteServiceAccountByIdRequest struct { + ctx _context.Context + ApiService SecurityApi + id string +} + + +func (r ApiDeleteServiceAccountByIdRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.DeleteServiceAccountByIdExecute(r) +} + +/* + * DeleteServiceAccountById Method for DeleteServiceAccountById + * Deletes a service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiDeleteServiceAccountByIdRequest + */ +func (a *SecurityApiService) DeleteServiceAccountById(ctx _context.Context, id string) ApiDeleteServiceAccountByIdRequest { + return ApiDeleteServiceAccountByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *SecurityApiService) DeleteServiceAccountByIdExecute(r ApiDeleteServiceAccountByIdRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.DeleteServiceAccountById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetServiceAccountByIdRequest struct { + ctx _context.Context + ApiService SecurityApi + id string +} + + +func (r ApiGetServiceAccountByIdRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountByIdExecute(r) +} + +/* + * GetServiceAccountById Method for GetServiceAccountById + * Returned service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiGetServiceAccountByIdRequest + */ +func (a *SecurityApiService) GetServiceAccountById(ctx _context.Context, id string) ApiGetServiceAccountByIdRequest { + return ApiGetServiceAccountByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccount + */ +func (a *SecurityApiService) GetServiceAccountByIdExecute(r ApiGetServiceAccountByIdRequest) (ServiceAccount, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetServiceAccountById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetServiceAccountsRequest struct { + ctx _context.Context + ApiService SecurityApi + clientId *string +} + +func (r ApiGetServiceAccountsRequest) ClientId(clientId string) ApiGetServiceAccountsRequest { + r.clientId = &clientId + return r +} + +func (r ApiGetServiceAccountsRequest) Execute() (ServiceAccountList, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountsExecute(r) +} + +/* + * GetServiceAccounts Method for GetServiceAccounts + * Returns a list of service accounts + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ +func (a *SecurityApiService) GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest { + return ApiGetServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ServiceAccountList + */ +func (a *SecurityApiService) GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) (ServiceAccountList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetServiceAccounts") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.clientId != nil { + localVarQueryParams.Add("client_id", parameterToString(*r.clientId, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSsoProvidersRequest struct { + ctx _context.Context + ApiService SecurityApi +} + + +func (r ApiGetSsoProvidersRequest) Execute() (SsoProvider, *_nethttp.Response, error) { + return r.ApiService.GetSsoProvidersExecute(r) +} + +/* + * GetSsoProviders Method for GetSsoProviders + * Return sso provider info + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSsoProvidersRequest + */ +func (a *SecurityApiService) GetSsoProviders(ctx _context.Context) ApiGetSsoProvidersRequest { + return ApiGetSsoProvidersRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SsoProvider + */ +func (a *SecurityApiService) GetSsoProvidersExecute(r ApiGetSsoProvidersRequest) (SsoProvider, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SsoProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetSsoProviders") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/sso_providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResetServiceAccountCredsRequest struct { + ctx _context.Context + ApiService SecurityApi + id string +} + + +func (r ApiResetServiceAccountCredsRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { + return r.ApiService.ResetServiceAccountCredsExecute(r) +} + +/* + * ResetServiceAccountCreds Method for ResetServiceAccountCreds + * Resets the credentials for a service account by ID + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id The ID of record + * @return ApiResetServiceAccountCredsRequest + */ +func (a *SecurityApiService) ResetServiceAccountCreds(ctx _context.Context, id string) ApiResetServiceAccountCredsRequest { + return ApiResetServiceAccountCredsRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccount + */ +func (a *SecurityApiService) ResetServiceAccountCredsExecute(r ApiResetServiceAccountCredsRequest) (ServiceAccount, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.ResetServiceAccountCreds") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/client.go b/app-services-sdk-go/kafkamgmt/apiv1/client/client.go new file mode 100644 index 00000000..e85b685f --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/client.go @@ -0,0 +1,552 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Kafka Management API API v1.13.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi DefaultApi + + ErrorsApi ErrorsApi + + SecurityApi SecurityApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + c.ErrorsApi = (*ErrorsApiService)(&c.common) + c.SecurityApi = (*SecurityApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go b/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go new file mode 100644 index 00000000..a8643f92 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go @@ -0,0 +1,243 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.openshift.com", + Description: "Main (production) server", + }, + { + URL: "https://api.stage.openshift.com", + Description: "Staging server", + }, + { + URL: "http://localhost:8000", + Description: "localhost", + }, + { + URL: "", + Description: "current domain", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md new file mode 100644 index 00000000..c4e3770e --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md @@ -0,0 +1,155 @@ +# CloudProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | Indicates the type of this object. Will be 'CloudProvider' link. | [optional] +**Id** | Pointer to **string** | Unique identifier of the object. | [optional] +**DisplayName** | Pointer to **string** | Name of the cloud provider for display purposes. | [optional] +**Name** | Pointer to **string** | Human friendly identifier of the cloud provider, for example `aws`. | [optional] +**Enabled** | **bool** | Whether the cloud provider is enabled for deploying an OSD cluster. | + +## Methods + +### NewCloudProvider + +`func NewCloudProvider(enabled bool, ) *CloudProvider` + +NewCloudProvider instantiates a new CloudProvider 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 + +### NewCloudProviderWithDefaults + +`func NewCloudProviderWithDefaults() *CloudProvider` + +NewCloudProviderWithDefaults instantiates a new CloudProvider 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 + +### GetKind + +`func (o *CloudProvider) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudProvider) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudProvider) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *CloudProvider) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *CloudProvider) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CloudProvider) 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 *CloudProvider) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CloudProvider) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CloudProvider) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CloudProvider) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CloudProvider) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CloudProvider) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetName + +`func (o *CloudProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CloudProvider) 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 *CloudProvider) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CloudProvider) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *CloudProvider) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CloudProvider) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CloudProvider) SetEnabled(v bool)` + +SetEnabled sets Enabled 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md new file mode 100644 index 00000000..d3a6d065 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md @@ -0,0 +1,135 @@ +# CloudProviderList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]CloudProvider**](CloudProvider.md) | | + +## Methods + +### NewCloudProviderList + +`func NewCloudProviderList(kind string, page int32, size int32, total int32, items []CloudProvider, ) *CloudProviderList` + +NewCloudProviderList instantiates a new CloudProviderList 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 + +### NewCloudProviderListWithDefaults + +`func NewCloudProviderListWithDefaults() *CloudProviderList` + +NewCloudProviderListWithDefaults instantiates a new CloudProviderList 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 + +### GetKind + +`func (o *CloudProviderList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudProviderList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudProviderList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *CloudProviderList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CloudProviderList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CloudProviderList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *CloudProviderList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *CloudProviderList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *CloudProviderList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *CloudProviderList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CloudProviderList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CloudProviderList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *CloudProviderList) GetItems() []CloudProvider` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudProviderList) GetItemsOk() (*[]CloudProvider, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudProviderList) SetItems(v []CloudProvider)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md new file mode 100644 index 00000000..1b3b1c02 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md @@ -0,0 +1,56 @@ +# CloudProviderListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]CloudProvider**](CloudProvider.md) | | [optional] + +## Methods + +### NewCloudProviderListAllOf + +`func NewCloudProviderListAllOf() *CloudProviderListAllOf` + +NewCloudProviderListAllOf instantiates a new CloudProviderListAllOf 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 + +### NewCloudProviderListAllOfWithDefaults + +`func NewCloudProviderListAllOfWithDefaults() *CloudProviderListAllOf` + +NewCloudProviderListAllOfWithDefaults instantiates a new CloudProviderListAllOf 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 + +### GetItems + +`func (o *CloudProviderListAllOf) GetItems() []CloudProvider` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudProviderListAllOf) GetItemsOk() (*[]CloudProvider, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudProviderListAllOf) SetItems(v []CloudProvider)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CloudProviderListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md new file mode 100644 index 00000000..9de5e725 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md @@ -0,0 +1,150 @@ +# CloudRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | Indicates the type of this object. Will be 'CloudRegion'. | [optional] +**Id** | Pointer to **string** | Unique identifier of the object. | [optional] +**DisplayName** | Pointer to **string** | Name of the region for display purposes, for example `N. Virginia`. | [optional] +**Enabled** | **bool** | Whether the region is enabled for deploying an OSD cluster. | [default to false] +**Capacity** | [**[]RegionCapacityListItem**](RegionCapacityListItem.md) | Indicates whether there is capacity left per instance type | + +## Methods + +### NewCloudRegion + +`func NewCloudRegion(enabled bool, capacity []RegionCapacityListItem, ) *CloudRegion` + +NewCloudRegion instantiates a new CloudRegion 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 + +### NewCloudRegionWithDefaults + +`func NewCloudRegionWithDefaults() *CloudRegion` + +NewCloudRegionWithDefaults instantiates a new CloudRegion 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 + +### GetKind + +`func (o *CloudRegion) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudRegion) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudRegion) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *CloudRegion) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *CloudRegion) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CloudRegion) 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 *CloudRegion) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CloudRegion) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CloudRegion) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CloudRegion) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CloudRegion) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CloudRegion) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *CloudRegion) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CloudRegion) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CloudRegion) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetCapacity + +`func (o *CloudRegion) GetCapacity() []RegionCapacityListItem` + +GetCapacity returns the Capacity field if non-nil, zero value otherwise. + +### GetCapacityOk + +`func (o *CloudRegion) GetCapacityOk() (*[]RegionCapacityListItem, bool)` + +GetCapacityOk returns a tuple with the Capacity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapacity + +`func (o *CloudRegion) SetCapacity(v []RegionCapacityListItem)` + +SetCapacity sets Capacity 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md new file mode 100644 index 00000000..38cee096 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md @@ -0,0 +1,135 @@ +# CloudRegionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]CloudRegion**](CloudRegion.md) | | + +## Methods + +### NewCloudRegionList + +`func NewCloudRegionList(kind string, page int32, size int32, total int32, items []CloudRegion, ) *CloudRegionList` + +NewCloudRegionList instantiates a new CloudRegionList 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 + +### NewCloudRegionListWithDefaults + +`func NewCloudRegionListWithDefaults() *CloudRegionList` + +NewCloudRegionListWithDefaults instantiates a new CloudRegionList 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 + +### GetKind + +`func (o *CloudRegionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudRegionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudRegionList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *CloudRegionList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CloudRegionList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CloudRegionList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *CloudRegionList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *CloudRegionList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *CloudRegionList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *CloudRegionList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CloudRegionList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CloudRegionList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *CloudRegionList) GetItems() []CloudRegion` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudRegionList) GetItemsOk() (*[]CloudRegion, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudRegionList) SetItems(v []CloudRegion)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md new file mode 100644 index 00000000..8152ef15 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md @@ -0,0 +1,56 @@ +# CloudRegionListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]CloudRegion**](CloudRegion.md) | | [optional] + +## Methods + +### NewCloudRegionListAllOf + +`func NewCloudRegionListAllOf() *CloudRegionListAllOf` + +NewCloudRegionListAllOf instantiates a new CloudRegionListAllOf 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 + +### NewCloudRegionListAllOfWithDefaults + +`func NewCloudRegionListAllOfWithDefaults() *CloudRegionListAllOf` + +NewCloudRegionListAllOfWithDefaults instantiates a new CloudRegionListAllOf 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 + +### GetItems + +`func (o *CloudRegionListAllOf) GetItems() []CloudRegion` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudRegionListAllOf) GetItemsOk() (*[]CloudRegion, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudRegionListAllOf) SetItems(v []CloudRegion)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CloudRegionListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md new file mode 100644 index 00000000..67264f32 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md @@ -0,0 +1,868 @@ +# \DefaultApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateKafka**](DefaultApi.md#CreateKafka) | **Post** /api/kafkas_mgmt/v1/kafkas | +[**DeleteKafkaById**](DefaultApi.md#DeleteKafkaById) | **Delete** /api/kafkas_mgmt/v1/kafkas/{id} | +[**FederateMetrics**](DefaultApi.md#FederateMetrics) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate | +[**GetCloudProviderRegions**](DefaultApi.md#GetCloudProviderRegions) | **Get** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | +[**GetCloudProviders**](DefaultApi.md#GetCloudProviders) | **Get** /api/kafkas_mgmt/v1/cloud_providers | +[**GetInstanceTypesByCloudProviderAndRegion**](DefaultApi.md#GetInstanceTypesByCloudProviderAndRegion) | **Get** /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} | +[**GetKafkaById**](DefaultApi.md#GetKafkaById) | **Get** /api/kafkas_mgmt/v1/kafkas/{id} | +[**GetKafkas**](DefaultApi.md#GetKafkas) | **Get** /api/kafkas_mgmt/v1/kafkas | +[**GetMetricsByInstantQuery**](DefaultApi.md#GetMetricsByInstantQuery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | +[**GetMetricsByRangeQuery**](DefaultApi.md#GetMetricsByRangeQuery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | +[**GetVersionMetadata**](DefaultApi.md#GetVersionMetadata) | **Get** /api/kafkas_mgmt/v1 | +[**UpdateKafkaById**](DefaultApi.md#UpdateKafkaById) | **Patch** /api/kafkas_mgmt/v1/kafkas/{id} | + + + +## CreateKafka + +> KafkaRequest CreateKafka(ctx).Async(async).KafkaRequestPayload(kafkaRequestPayload).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + async := true // bool | Perform the action in an asynchronous manner + kafkaRequestPayload := *openapiclient.NewKafkaRequestPayload("Name_example") // KafkaRequestPayload | Kafka data + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.CreateKafka(context.Background()).Async(async).KafkaRequestPayload(kafkaRequestPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateKafka``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateKafka`: KafkaRequest + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateKafka`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateKafkaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **async** | **bool** | Perform the action in an asynchronous manner | + **kafkaRequestPayload** | [**KafkaRequestPayload**](KafkaRequestPayload.md) | Kafka data | + +### Return type + +[**KafkaRequest**](KafkaRequest.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteKafkaById + +> Error DeleteKafkaById(ctx, id).Async(async).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + async := true // bool | Perform the action in an asynchronous manner + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.DeleteKafkaById(context.Background(), id).Async(async).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKafkaById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteKafkaById`: Error + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKafkaById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteKafkaByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **async** | **bool** | Perform the action in an asynchronous manner | + +### Return type + +[**Error**](Error.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## FederateMetrics + +> string FederateMetrics(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.FederateMetrics(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FederateMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `FederateMetrics`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FederateMetrics`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiFederateMetricsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**string** + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCloudProviderRegions + +> CloudRegionList GetCloudProviderRegions(ctx, id).Page(page).Size(size).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetCloudProviderRegions(context.Background(), id).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetCloudProviderRegions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudProviderRegions`: CloudRegionList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetCloudProviderRegions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudProviderRegionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + +### Return type + +[**CloudRegionList**](CloudRegionList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCloudProviders + +> CloudProviderList GetCloudProviders(ctx).Page(page).Size(size).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetCloudProviders(context.Background()).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetCloudProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudProviders`: CloudProviderList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetCloudProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + +### Return type + +[**CloudProviderList**](CloudProviderList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetInstanceTypesByCloudProviderAndRegion + +> SupportedKafkaInstanceTypesList GetInstanceTypesByCloudProviderAndRegion(ctx, cloudProvider, cloudRegion).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + cloudProvider := "cloudProvider_example" // string | ID of the supported cloud provider + cloudRegion := "cloudRegion_example" // string | Name of the supported cloud provider region + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetInstanceTypesByCloudProviderAndRegion(context.Background(), cloudProvider, cloudRegion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetInstanceTypesByCloudProviderAndRegion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetInstanceTypesByCloudProviderAndRegion`: SupportedKafkaInstanceTypesList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetInstanceTypesByCloudProviderAndRegion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**cloudProvider** | **string** | ID of the supported cloud provider | +**cloudRegion** | **string** | Name of the supported cloud provider region | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetInstanceTypesByCloudProviderAndRegionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**SupportedKafkaInstanceTypesList**](SupportedKafkaInstanceTypesList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKafkaById + +> KafkaRequest GetKafkaById(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetKafkaById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKafkaById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKafkaById`: KafkaRequest + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKafkaById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKafkaByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**KafkaRequest**](KafkaRequest.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetKafkas + +> KafkaRequestList GetKafkas(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := "1" // string | Page index (optional) + size := "100" // string | Number of items in each page (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the following `kafkaRequests` fields: * bootstrap_server_host * admin_api_server_url * cloud_provider * cluster_id * created_at * href * id * instance_type * multi_az * name * organisation_id * owner * reauthentication_enabled * region * status * updated_at * version For example, to return all Kafka instances ordered by their name, use the following syntax: ```sql name asc ``` To return all Kafka instances ordered by their name _and_ created date, use the following syntax: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) + search := "name = my-kafka and cloud_provider = aws" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of an SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. Examples: To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: ``` name = my-kafka and cloud_provider = aws ```[p-] To return a Kafka instance with a name that starts with `my`, use the following syntax: ``` name like my%25 ``` To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: ``` name ilike %25test%25 ``` If the parameter isn't provided, or if the value is empty, then all the Kafka instances that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetKafkas(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKafkas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetKafkas`: KafkaRequestList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKafkas`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetKafkasRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | Page index | + **size** | **string** | Number of items in each page | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the following `kafkaRequests` fields: * bootstrap_server_host * admin_api_server_url * cloud_provider * cluster_id * created_at * href * id * instance_type * multi_az * name * organisation_id * owner * reauthentication_enabled * region * status * updated_at * version For example, to return all Kafka instances ordered by their name, use the following syntax: ```sql name asc ``` To return all Kafka instances ordered by their name _and_ created date, use the following syntax: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of an SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. Examples: To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: ``` name = my-kafka and cloud_provider = aws ```[p-] To return a Kafka instance with a name that starts with `my`, use the following syntax: ``` name like my%25 ``` To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: ``` name ilike %25test%25 ``` If the parameter isn't provided, or if the value is empty, then all the Kafka instances that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | + +### Return type + +[**KafkaRequestList**](KafkaRequestList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetricsByInstantQuery + +> MetricsInstantQueryList GetMetricsByInstantQuery(ctx, id).Filters(filters).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + filters := []string{"Inner_example"} // []string | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. (optional) (default to []) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetMetricsByInstantQuery(context.Background(), id).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetMetricsByInstantQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetricsByInstantQuery`: MetricsInstantQueryList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetMetricsByInstantQuery`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetricsByInstantQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filters** | **[]string** | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. | [default to []] + +### Return type + +[**MetricsInstantQueryList**](MetricsInstantQueryList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetMetricsByRangeQuery + +> MetricsRangeQueryList GetMetricsByRangeQuery(ctx, id).Duration(duration).Interval(interval).Filters(filters).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + duration := int64(5) // int64 | The length of time in minutes for which to return the metrics (default to 5) + interval := int64(30) // int64 | The interval in seconds between data points (default to 30) + filters := []string{"Inner_example"} // []string | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. (optional) (default to []) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetMetricsByRangeQuery(context.Background(), id).Duration(duration).Interval(interval).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetMetricsByRangeQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMetricsByRangeQuery`: MetricsRangeQueryList + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetMetricsByRangeQuery`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMetricsByRangeQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **duration** | **int64** | The length of time in minutes for which to return the metrics | [default to 5] + **interval** | **int64** | The interval in seconds between data points | [default to 30] + **filters** | **[]string** | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. | [default to []] + +### Return type + +[**MetricsRangeQueryList**](MetricsRangeQueryList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetVersionMetadata + +> VersionMetadata GetVersionMetadata(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetVersionMetadata(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetVersionMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVersionMetadata`: VersionMetadata + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetVersionMetadata`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetVersionMetadataRequest struct via the builder pattern + + +### Return type + +[**VersionMetadata**](VersionMetadata.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateKafkaById + +> KafkaRequest UpdateKafkaById(ctx, id).KafkaUpdateRequest(kafkaUpdateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + kafkaUpdateRequest := *openapiclient.NewKafkaUpdateRequest() // KafkaUpdateRequest | Update owner of kafka + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.UpdateKafkaById(context.Background(), id).KafkaUpdateRequest(kafkaUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateKafkaById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateKafkaById`: KafkaRequest + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateKafkaById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateKafkaByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **kafkaUpdateRequest** | [**KafkaUpdateRequest**](KafkaUpdateRequest.md) | Update owner of kafka | + +### Return type + +[**KafkaRequest**](KafkaRequest.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md new file mode 100644 index 00000000..112031e0 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md @@ -0,0 +1,161 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | | +**OperationId** | Pointer to **string** | | [optional] +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Code** | **string** | | + +## Methods + +### NewError + +`func NewError(reason string, id string, kind string, href string, code string, ) *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetOperationId + +`func (o *Error) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *Error) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *Error) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *Error) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetId + +`func (o *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetCode + +`func (o *Error) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v string)` + +SetCode sets Code 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md new file mode 100644 index 00000000..02e7e299 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md @@ -0,0 +1,135 @@ +# ErrorList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Error**](Error.md) | | + +## Methods + +### NewErrorList + +`func NewErrorList(kind string, page int32, size int32, total int32, items []Error, ) *ErrorList` + +NewErrorList instantiates a new ErrorList 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 + +### NewErrorListWithDefaults + +`func NewErrorListWithDefaults() *ErrorList` + +NewErrorListWithDefaults instantiates a new ErrorList 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 + +### GetKind + +`func (o *ErrorList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ErrorList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrorList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrorList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ErrorList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ErrorList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ErrorList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ErrorList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ErrorList) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorList) SetItems(v []Error)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md new file mode 100644 index 00000000..5cd69e9b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md @@ -0,0 +1,56 @@ +# ErrorListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] + +## Methods + +### NewErrorListAllOf + +`func NewErrorListAllOf() *ErrorListAllOf` + +NewErrorListAllOf instantiates a new ErrorListAllOf 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 + +### NewErrorListAllOfWithDefaults + +`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` + +NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 + +### GetItems + +`func (o *ErrorListAllOf) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorListAllOf) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md new file mode 100644 index 00000000..8ce2d28e --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md @@ -0,0 +1,141 @@ +# \ErrorsApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetErrorById**](ErrorsApi.md#GetErrorById) | **Get** /api/kafkas_mgmt/v1/errors/{id} | +[**GetErrors**](ErrorsApi.md#GetErrors) | **Get** /api/kafkas_mgmt/v1/errors | + + + +## GetErrorById + +> Error GetErrorById(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetErrorById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrorById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetErrorById`: Error + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrorById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetErrors + +> ErrorList GetErrors(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetErrors(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetErrors`: ErrorList + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrors`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorsRequest struct via the builder pattern + + +### Return type + +[**ErrorList**](ErrorList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md new file mode 100644 index 00000000..6201f262 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md @@ -0,0 +1,103 @@ +# InstantQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metric** | Pointer to **map[string]string** | | [optional] +**Timestamp** | Pointer to **int64** | | [optional] +**Value** | **float64** | | + +## Methods + +### NewInstantQuery + +`func NewInstantQuery(value float64, ) *InstantQuery` + +NewInstantQuery instantiates a new InstantQuery 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 + +### NewInstantQueryWithDefaults + +`func NewInstantQueryWithDefaults() *InstantQuery` + +NewInstantQueryWithDefaults instantiates a new InstantQuery 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 + +### GetMetric + +`func (o *InstantQuery) GetMetric() map[string]string` + +GetMetric returns the Metric field if non-nil, zero value otherwise. + +### GetMetricOk + +`func (o *InstantQuery) GetMetricOk() (*map[string]string, bool)` + +GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetric + +`func (o *InstantQuery) SetMetric(v map[string]string)` + +SetMetric sets Metric field to given value. + +### HasMetric + +`func (o *InstantQuery) HasMetric() bool` + +HasMetric returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *InstantQuery) GetTimestamp() int64` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *InstantQuery) GetTimestampOk() (*int64, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *InstantQuery) SetTimestamp(v int64)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *InstantQuery) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetValue + +`func (o *InstantQuery) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InstantQuery) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InstantQuery) SetValue(v float64)` + +SetValue sets Value 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md new file mode 100644 index 00000000..af4112e1 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md @@ -0,0 +1,847 @@ +# KafkaRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Status** | Pointer to **string** | Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] | [optional] +**CloudProvider** | Pointer to **string** | Name of Cloud used to deploy. For example AWS | [optional] +**MultiAz** | **bool** | | +**Region** | Pointer to **string** | Values will be regions of specific cloud provider. For example: us-east-1 for AWS | [optional] +**Owner** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**BootstrapServerHost** | Pointer to **string** | | [optional] +**AdminApiServerUrl** | Pointer to **string** | The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**FailedReason** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**InstanceType** | Pointer to **string** | | [optional] +**InstanceTypeName** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**ReauthenticationEnabled** | **bool** | | +**KafkaStorageSize** | Pointer to **string** | Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. | [optional] +**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**BrowserUrl** | Pointer to **string** | | [optional] +**SizeId** | Pointer to **string** | | [optional] +**IngressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**EgressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**TotalMaxConnections** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxPartitions** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxDataRetentionPeriod** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxConnectionAttemptsPerSec** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**BillingCloudAccountId** | Pointer to **string** | | [optional] +**Marketplace** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] + +## Methods + +### NewKafkaRequest + +`func NewKafkaRequest(id string, kind string, href string, multiAz bool, reauthenticationEnabled bool, ) *KafkaRequest` + +NewKafkaRequest instantiates a new KafkaRequest 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 + +### NewKafkaRequestWithDefaults + +`func NewKafkaRequestWithDefaults() *KafkaRequest` + +NewKafkaRequestWithDefaults instantiates a new KafkaRequest 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 *KafkaRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KafkaRequest) 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 *KafkaRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *KafkaRequest) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *KafkaRequest) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *KafkaRequest) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *KafkaRequest) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *KafkaRequest) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *KafkaRequest) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetStatus + +`func (o *KafkaRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KafkaRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KafkaRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KafkaRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *KafkaRequest) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *KafkaRequest) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *KafkaRequest) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *KafkaRequest) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetMultiAz + +`func (o *KafkaRequest) GetMultiAz() bool` + +GetMultiAz returns the MultiAz field if non-nil, zero value otherwise. + +### GetMultiAzOk + +`func (o *KafkaRequest) GetMultiAzOk() (*bool, bool)` + +GetMultiAzOk returns a tuple with the MultiAz field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultiAz + +`func (o *KafkaRequest) SetMultiAz(v bool)` + +SetMultiAz sets MultiAz field to given value. + + +### GetRegion + +`func (o *KafkaRequest) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *KafkaRequest) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *KafkaRequest) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *KafkaRequest) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetOwner + +`func (o *KafkaRequest) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *KafkaRequest) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *KafkaRequest) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *KafkaRequest) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetName + +`func (o *KafkaRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KafkaRequest) 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 *KafkaRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KafkaRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetBootstrapServerHost + +`func (o *KafkaRequest) GetBootstrapServerHost() string` + +GetBootstrapServerHost returns the BootstrapServerHost field if non-nil, zero value otherwise. + +### GetBootstrapServerHostOk + +`func (o *KafkaRequest) GetBootstrapServerHostOk() (*string, bool)` + +GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBootstrapServerHost + +`func (o *KafkaRequest) SetBootstrapServerHost(v string)` + +SetBootstrapServerHost sets BootstrapServerHost field to given value. + +### HasBootstrapServerHost + +`func (o *KafkaRequest) HasBootstrapServerHost() bool` + +HasBootstrapServerHost returns a boolean if a field has been set. + +### GetAdminApiServerUrl + +`func (o *KafkaRequest) GetAdminApiServerUrl() string` + +GetAdminApiServerUrl returns the AdminApiServerUrl field if non-nil, zero value otherwise. + +### GetAdminApiServerUrlOk + +`func (o *KafkaRequest) GetAdminApiServerUrlOk() (*string, bool)` + +GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminApiServerUrl + +`func (o *KafkaRequest) SetAdminApiServerUrl(v string)` + +SetAdminApiServerUrl sets AdminApiServerUrl field to given value. + +### HasAdminApiServerUrl + +`func (o *KafkaRequest) HasAdminApiServerUrl() bool` + +HasAdminApiServerUrl returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *KafkaRequest) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *KafkaRequest) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *KafkaRequest) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *KafkaRequest) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *KafkaRequest) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *KafkaRequest) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *KafkaRequest) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *KafkaRequest) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *KafkaRequest) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *KafkaRequest) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetUpdatedAt + +`func (o *KafkaRequest) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *KafkaRequest) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *KafkaRequest) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *KafkaRequest) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetFailedReason + +`func (o *KafkaRequest) GetFailedReason() string` + +GetFailedReason returns the FailedReason field if non-nil, zero value otherwise. + +### GetFailedReasonOk + +`func (o *KafkaRequest) GetFailedReasonOk() (*string, bool)` + +GetFailedReasonOk returns a tuple with the FailedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedReason + +`func (o *KafkaRequest) SetFailedReason(v string)` + +SetFailedReason sets FailedReason field to given value. + +### HasFailedReason + +`func (o *KafkaRequest) HasFailedReason() bool` + +HasFailedReason returns a boolean if a field has been set. + +### GetVersion + +`func (o *KafkaRequest) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *KafkaRequest) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *KafkaRequest) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *KafkaRequest) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetInstanceType + +`func (o *KafkaRequest) GetInstanceType() string` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *KafkaRequest) GetInstanceTypeOk() (*string, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *KafkaRequest) SetInstanceType(v string)` + +SetInstanceType sets InstanceType field to given value. + +### HasInstanceType + +`func (o *KafkaRequest) HasInstanceType() bool` + +HasInstanceType returns a boolean if a field has been set. + +### GetInstanceTypeName + +`func (o *KafkaRequest) GetInstanceTypeName() string` + +GetInstanceTypeName returns the InstanceTypeName field if non-nil, zero value otherwise. + +### GetInstanceTypeNameOk + +`func (o *KafkaRequest) GetInstanceTypeNameOk() (*string, bool)` + +GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceTypeName + +`func (o *KafkaRequest) SetInstanceTypeName(v string)` + +SetInstanceTypeName sets InstanceTypeName field to given value. + +### HasInstanceTypeName + +`func (o *KafkaRequest) HasInstanceTypeName() bool` + +HasInstanceTypeName returns a boolean if a field has been set. + +### GetReauthenticationEnabled + +`func (o *KafkaRequest) GetReauthenticationEnabled() bool` + +GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. + +### GetReauthenticationEnabledOk + +`func (o *KafkaRequest) GetReauthenticationEnabledOk() (*bool, bool)` + +GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthenticationEnabled + +`func (o *KafkaRequest) SetReauthenticationEnabled(v bool)` + +SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. + + +### GetKafkaStorageSize + +`func (o *KafkaRequest) GetKafkaStorageSize() string` + +GetKafkaStorageSize returns the KafkaStorageSize field if non-nil, zero value otherwise. + +### GetKafkaStorageSizeOk + +`func (o *KafkaRequest) GetKafkaStorageSizeOk() (*string, bool)` + +GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafkaStorageSize + +`func (o *KafkaRequest) SetKafkaStorageSize(v string)` + +SetKafkaStorageSize sets KafkaStorageSize field to given value. + +### HasKafkaStorageSize + +`func (o *KafkaRequest) HasKafkaStorageSize() bool` + +HasKafkaStorageSize returns a boolean if a field has been set. + +### GetMaxDataRetentionSize + +`func (o *KafkaRequest) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` + +GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. + +### GetMaxDataRetentionSizeOk + +`func (o *KafkaRequest) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionSize + +`func (o *KafkaRequest) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` + +SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. + +### HasMaxDataRetentionSize + +`func (o *KafkaRequest) HasMaxDataRetentionSize() bool` + +HasMaxDataRetentionSize returns a boolean if a field has been set. + +### GetBrowserUrl + +`func (o *KafkaRequest) GetBrowserUrl() string` + +GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. + +### GetBrowserUrlOk + +`func (o *KafkaRequest) GetBrowserUrlOk() (*string, bool)` + +GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserUrl + +`func (o *KafkaRequest) SetBrowserUrl(v string)` + +SetBrowserUrl sets BrowserUrl field to given value. + +### HasBrowserUrl + +`func (o *KafkaRequest) HasBrowserUrl() bool` + +HasBrowserUrl returns a boolean if a field has been set. + +### GetSizeId + +`func (o *KafkaRequest) GetSizeId() string` + +GetSizeId returns the SizeId field if non-nil, zero value otherwise. + +### GetSizeIdOk + +`func (o *KafkaRequest) GetSizeIdOk() (*string, bool)` + +GetSizeIdOk returns a tuple with the SizeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizeId + +`func (o *KafkaRequest) SetSizeId(v string)` + +SetSizeId sets SizeId field to given value. + +### HasSizeId + +`func (o *KafkaRequest) HasSizeId() bool` + +HasSizeId returns a boolean if a field has been set. + +### GetIngressThroughputPerSec + +`func (o *KafkaRequest) GetIngressThroughputPerSec() string` + +GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. + +### GetIngressThroughputPerSecOk + +`func (o *KafkaRequest) GetIngressThroughputPerSecOk() (*string, bool)` + +GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIngressThroughputPerSec + +`func (o *KafkaRequest) SetIngressThroughputPerSec(v string)` + +SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. + +### HasIngressThroughputPerSec + +`func (o *KafkaRequest) HasIngressThroughputPerSec() bool` + +HasIngressThroughputPerSec returns a boolean if a field has been set. + +### GetEgressThroughputPerSec + +`func (o *KafkaRequest) GetEgressThroughputPerSec() string` + +GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. + +### GetEgressThroughputPerSecOk + +`func (o *KafkaRequest) GetEgressThroughputPerSecOk() (*string, bool)` + +GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEgressThroughputPerSec + +`func (o *KafkaRequest) SetEgressThroughputPerSec(v string)` + +SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. + +### HasEgressThroughputPerSec + +`func (o *KafkaRequest) HasEgressThroughputPerSec() bool` + +HasEgressThroughputPerSec returns a boolean if a field has been set. + +### GetTotalMaxConnections + +`func (o *KafkaRequest) GetTotalMaxConnections() int32` + +GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. + +### GetTotalMaxConnectionsOk + +`func (o *KafkaRequest) GetTotalMaxConnectionsOk() (*int32, bool)` + +GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMaxConnections + +`func (o *KafkaRequest) SetTotalMaxConnections(v int32)` + +SetTotalMaxConnections sets TotalMaxConnections field to given value. + +### HasTotalMaxConnections + +`func (o *KafkaRequest) HasTotalMaxConnections() bool` + +HasTotalMaxConnections returns a boolean if a field has been set. + +### GetMaxPartitions + +`func (o *KafkaRequest) GetMaxPartitions() int32` + +GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. + +### GetMaxPartitionsOk + +`func (o *KafkaRequest) GetMaxPartitionsOk() (*int32, bool)` + +GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPartitions + +`func (o *KafkaRequest) SetMaxPartitions(v int32)` + +SetMaxPartitions sets MaxPartitions field to given value. + +### HasMaxPartitions + +`func (o *KafkaRequest) HasMaxPartitions() bool` + +HasMaxPartitions returns a boolean if a field has been set. + +### GetMaxDataRetentionPeriod + +`func (o *KafkaRequest) GetMaxDataRetentionPeriod() string` + +GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. + +### GetMaxDataRetentionPeriodOk + +`func (o *KafkaRequest) GetMaxDataRetentionPeriodOk() (*string, bool)` + +GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionPeriod + +`func (o *KafkaRequest) SetMaxDataRetentionPeriod(v string)` + +SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. + +### HasMaxDataRetentionPeriod + +`func (o *KafkaRequest) HasMaxDataRetentionPeriod() bool` + +HasMaxDataRetentionPeriod returns a boolean if a field has been set. + +### GetMaxConnectionAttemptsPerSec + +`func (o *KafkaRequest) GetMaxConnectionAttemptsPerSec() int32` + +GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. + +### GetMaxConnectionAttemptsPerSecOk + +`func (o *KafkaRequest) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` + +GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxConnectionAttemptsPerSec + +`func (o *KafkaRequest) SetMaxConnectionAttemptsPerSec(v int32)` + +SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. + +### HasMaxConnectionAttemptsPerSec + +`func (o *KafkaRequest) HasMaxConnectionAttemptsPerSec() bool` + +HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. + +### GetBillingCloudAccountId + +`func (o *KafkaRequest) GetBillingCloudAccountId() string` + +GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. + +### GetBillingCloudAccountIdOk + +`func (o *KafkaRequest) GetBillingCloudAccountIdOk() (*string, bool)` + +GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingCloudAccountId + +`func (o *KafkaRequest) SetBillingCloudAccountId(v string)` + +SetBillingCloudAccountId sets BillingCloudAccountId field to given value. + +### HasBillingCloudAccountId + +`func (o *KafkaRequest) HasBillingCloudAccountId() bool` + +HasBillingCloudAccountId returns a boolean if a field has been set. + +### GetMarketplace + +`func (o *KafkaRequest) GetMarketplace() string` + +GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. + +### GetMarketplaceOk + +`func (o *KafkaRequest) GetMarketplaceOk() (*string, bool)` + +GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarketplace + +`func (o *KafkaRequest) SetMarketplace(v string)` + +SetMarketplace sets Marketplace field to given value. + +### HasMarketplace + +`func (o *KafkaRequest) HasMarketplace() bool` + +HasMarketplace returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *KafkaRequest) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *KafkaRequest) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *KafkaRequest) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *KafkaRequest) HasBillingModel() bool` + +HasBillingModel 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md new file mode 100644 index 00000000..1edbb452 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md @@ -0,0 +1,784 @@ +# KafkaRequestAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] | [optional] +**CloudProvider** | Pointer to **string** | Name of Cloud used to deploy. For example AWS | [optional] +**MultiAz** | **bool** | | +**Region** | Pointer to **string** | Values will be regions of specific cloud provider. For example: us-east-1 for AWS | [optional] +**Owner** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**BootstrapServerHost** | Pointer to **string** | | [optional] +**AdminApiServerUrl** | Pointer to **string** | The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] +**ExpiresAt** | Pointer to **NullableTime** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**FailedReason** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**InstanceType** | Pointer to **string** | | [optional] +**InstanceTypeName** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**ReauthenticationEnabled** | **bool** | | +**KafkaStorageSize** | Pointer to **string** | Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. | [optional] +**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**BrowserUrl** | Pointer to **string** | | [optional] +**SizeId** | Pointer to **string** | | [optional] +**IngressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**EgressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**TotalMaxConnections** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxPartitions** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxDataRetentionPeriod** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**MaxConnectionAttemptsPerSec** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] +**BillingCloudAccountId** | Pointer to **string** | | [optional] +**Marketplace** | Pointer to **string** | | [optional] +**BillingModel** | Pointer to **string** | | [optional] + +## Methods + +### NewKafkaRequestAllOf + +`func NewKafkaRequestAllOf(multiAz bool, reauthenticationEnabled bool, ) *KafkaRequestAllOf` + +NewKafkaRequestAllOf instantiates a new KafkaRequestAllOf 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 + +### NewKafkaRequestAllOfWithDefaults + +`func NewKafkaRequestAllOfWithDefaults() *KafkaRequestAllOf` + +NewKafkaRequestAllOfWithDefaults instantiates a new KafkaRequestAllOf 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 + +### GetStatus + +`func (o *KafkaRequestAllOf) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KafkaRequestAllOf) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KafkaRequestAllOf) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KafkaRequestAllOf) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *KafkaRequestAllOf) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *KafkaRequestAllOf) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *KafkaRequestAllOf) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *KafkaRequestAllOf) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetMultiAz + +`func (o *KafkaRequestAllOf) GetMultiAz() bool` + +GetMultiAz returns the MultiAz field if non-nil, zero value otherwise. + +### GetMultiAzOk + +`func (o *KafkaRequestAllOf) GetMultiAzOk() (*bool, bool)` + +GetMultiAzOk returns a tuple with the MultiAz field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMultiAz + +`func (o *KafkaRequestAllOf) SetMultiAz(v bool)` + +SetMultiAz sets MultiAz field to given value. + + +### GetRegion + +`func (o *KafkaRequestAllOf) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *KafkaRequestAllOf) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *KafkaRequestAllOf) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *KafkaRequestAllOf) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetOwner + +`func (o *KafkaRequestAllOf) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *KafkaRequestAllOf) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *KafkaRequestAllOf) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *KafkaRequestAllOf) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetName + +`func (o *KafkaRequestAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KafkaRequestAllOf) 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 *KafkaRequestAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KafkaRequestAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetBootstrapServerHost + +`func (o *KafkaRequestAllOf) GetBootstrapServerHost() string` + +GetBootstrapServerHost returns the BootstrapServerHost field if non-nil, zero value otherwise. + +### GetBootstrapServerHostOk + +`func (o *KafkaRequestAllOf) GetBootstrapServerHostOk() (*string, bool)` + +GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBootstrapServerHost + +`func (o *KafkaRequestAllOf) SetBootstrapServerHost(v string)` + +SetBootstrapServerHost sets BootstrapServerHost field to given value. + +### HasBootstrapServerHost + +`func (o *KafkaRequestAllOf) HasBootstrapServerHost() bool` + +HasBootstrapServerHost returns a boolean if a field has been set. + +### GetAdminApiServerUrl + +`func (o *KafkaRequestAllOf) GetAdminApiServerUrl() string` + +GetAdminApiServerUrl returns the AdminApiServerUrl field if non-nil, zero value otherwise. + +### GetAdminApiServerUrlOk + +`func (o *KafkaRequestAllOf) GetAdminApiServerUrlOk() (*string, bool)` + +GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminApiServerUrl + +`func (o *KafkaRequestAllOf) SetAdminApiServerUrl(v string)` + +SetAdminApiServerUrl sets AdminApiServerUrl field to given value. + +### HasAdminApiServerUrl + +`func (o *KafkaRequestAllOf) HasAdminApiServerUrl() bool` + +HasAdminApiServerUrl returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *KafkaRequestAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *KafkaRequestAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *KafkaRequestAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *KafkaRequestAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *KafkaRequestAllOf) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *KafkaRequestAllOf) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *KafkaRequestAllOf) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *KafkaRequestAllOf) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *KafkaRequestAllOf) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *KafkaRequestAllOf) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetUpdatedAt + +`func (o *KafkaRequestAllOf) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *KafkaRequestAllOf) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *KafkaRequestAllOf) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *KafkaRequestAllOf) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetFailedReason + +`func (o *KafkaRequestAllOf) GetFailedReason() string` + +GetFailedReason returns the FailedReason field if non-nil, zero value otherwise. + +### GetFailedReasonOk + +`func (o *KafkaRequestAllOf) GetFailedReasonOk() (*string, bool)` + +GetFailedReasonOk returns a tuple with the FailedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedReason + +`func (o *KafkaRequestAllOf) SetFailedReason(v string)` + +SetFailedReason sets FailedReason field to given value. + +### HasFailedReason + +`func (o *KafkaRequestAllOf) HasFailedReason() bool` + +HasFailedReason returns a boolean if a field has been set. + +### GetVersion + +`func (o *KafkaRequestAllOf) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *KafkaRequestAllOf) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *KafkaRequestAllOf) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *KafkaRequestAllOf) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetInstanceType + +`func (o *KafkaRequestAllOf) GetInstanceType() string` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *KafkaRequestAllOf) GetInstanceTypeOk() (*string, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *KafkaRequestAllOf) SetInstanceType(v string)` + +SetInstanceType sets InstanceType field to given value. + +### HasInstanceType + +`func (o *KafkaRequestAllOf) HasInstanceType() bool` + +HasInstanceType returns a boolean if a field has been set. + +### GetInstanceTypeName + +`func (o *KafkaRequestAllOf) GetInstanceTypeName() string` + +GetInstanceTypeName returns the InstanceTypeName field if non-nil, zero value otherwise. + +### GetInstanceTypeNameOk + +`func (o *KafkaRequestAllOf) GetInstanceTypeNameOk() (*string, bool)` + +GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceTypeName + +`func (o *KafkaRequestAllOf) SetInstanceTypeName(v string)` + +SetInstanceTypeName sets InstanceTypeName field to given value. + +### HasInstanceTypeName + +`func (o *KafkaRequestAllOf) HasInstanceTypeName() bool` + +HasInstanceTypeName returns a boolean if a field has been set. + +### GetReauthenticationEnabled + +`func (o *KafkaRequestAllOf) GetReauthenticationEnabled() bool` + +GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. + +### GetReauthenticationEnabledOk + +`func (o *KafkaRequestAllOf) GetReauthenticationEnabledOk() (*bool, bool)` + +GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthenticationEnabled + +`func (o *KafkaRequestAllOf) SetReauthenticationEnabled(v bool)` + +SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. + + +### GetKafkaStorageSize + +`func (o *KafkaRequestAllOf) GetKafkaStorageSize() string` + +GetKafkaStorageSize returns the KafkaStorageSize field if non-nil, zero value otherwise. + +### GetKafkaStorageSizeOk + +`func (o *KafkaRequestAllOf) GetKafkaStorageSizeOk() (*string, bool)` + +GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafkaStorageSize + +`func (o *KafkaRequestAllOf) SetKafkaStorageSize(v string)` + +SetKafkaStorageSize sets KafkaStorageSize field to given value. + +### HasKafkaStorageSize + +`func (o *KafkaRequestAllOf) HasKafkaStorageSize() bool` + +HasKafkaStorageSize returns a boolean if a field has been set. + +### GetMaxDataRetentionSize + +`func (o *KafkaRequestAllOf) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` + +GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. + +### GetMaxDataRetentionSizeOk + +`func (o *KafkaRequestAllOf) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionSize + +`func (o *KafkaRequestAllOf) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` + +SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. + +### HasMaxDataRetentionSize + +`func (o *KafkaRequestAllOf) HasMaxDataRetentionSize() bool` + +HasMaxDataRetentionSize returns a boolean if a field has been set. + +### GetBrowserUrl + +`func (o *KafkaRequestAllOf) GetBrowserUrl() string` + +GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. + +### GetBrowserUrlOk + +`func (o *KafkaRequestAllOf) GetBrowserUrlOk() (*string, bool)` + +GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserUrl + +`func (o *KafkaRequestAllOf) SetBrowserUrl(v string)` + +SetBrowserUrl sets BrowserUrl field to given value. + +### HasBrowserUrl + +`func (o *KafkaRequestAllOf) HasBrowserUrl() bool` + +HasBrowserUrl returns a boolean if a field has been set. + +### GetSizeId + +`func (o *KafkaRequestAllOf) GetSizeId() string` + +GetSizeId returns the SizeId field if non-nil, zero value otherwise. + +### GetSizeIdOk + +`func (o *KafkaRequestAllOf) GetSizeIdOk() (*string, bool)` + +GetSizeIdOk returns a tuple with the SizeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizeId + +`func (o *KafkaRequestAllOf) SetSizeId(v string)` + +SetSizeId sets SizeId field to given value. + +### HasSizeId + +`func (o *KafkaRequestAllOf) HasSizeId() bool` + +HasSizeId returns a boolean if a field has been set. + +### GetIngressThroughputPerSec + +`func (o *KafkaRequestAllOf) GetIngressThroughputPerSec() string` + +GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. + +### GetIngressThroughputPerSecOk + +`func (o *KafkaRequestAllOf) GetIngressThroughputPerSecOk() (*string, bool)` + +GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIngressThroughputPerSec + +`func (o *KafkaRequestAllOf) SetIngressThroughputPerSec(v string)` + +SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. + +### HasIngressThroughputPerSec + +`func (o *KafkaRequestAllOf) HasIngressThroughputPerSec() bool` + +HasIngressThroughputPerSec returns a boolean if a field has been set. + +### GetEgressThroughputPerSec + +`func (o *KafkaRequestAllOf) GetEgressThroughputPerSec() string` + +GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. + +### GetEgressThroughputPerSecOk + +`func (o *KafkaRequestAllOf) GetEgressThroughputPerSecOk() (*string, bool)` + +GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEgressThroughputPerSec + +`func (o *KafkaRequestAllOf) SetEgressThroughputPerSec(v string)` + +SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. + +### HasEgressThroughputPerSec + +`func (o *KafkaRequestAllOf) HasEgressThroughputPerSec() bool` + +HasEgressThroughputPerSec returns a boolean if a field has been set. + +### GetTotalMaxConnections + +`func (o *KafkaRequestAllOf) GetTotalMaxConnections() int32` + +GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. + +### GetTotalMaxConnectionsOk + +`func (o *KafkaRequestAllOf) GetTotalMaxConnectionsOk() (*int32, bool)` + +GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMaxConnections + +`func (o *KafkaRequestAllOf) SetTotalMaxConnections(v int32)` + +SetTotalMaxConnections sets TotalMaxConnections field to given value. + +### HasTotalMaxConnections + +`func (o *KafkaRequestAllOf) HasTotalMaxConnections() bool` + +HasTotalMaxConnections returns a boolean if a field has been set. + +### GetMaxPartitions + +`func (o *KafkaRequestAllOf) GetMaxPartitions() int32` + +GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. + +### GetMaxPartitionsOk + +`func (o *KafkaRequestAllOf) GetMaxPartitionsOk() (*int32, bool)` + +GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPartitions + +`func (o *KafkaRequestAllOf) SetMaxPartitions(v int32)` + +SetMaxPartitions sets MaxPartitions field to given value. + +### HasMaxPartitions + +`func (o *KafkaRequestAllOf) HasMaxPartitions() bool` + +HasMaxPartitions returns a boolean if a field has been set. + +### GetMaxDataRetentionPeriod + +`func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriod() string` + +GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. + +### GetMaxDataRetentionPeriodOk + +`func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriodOk() (*string, bool)` + +GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionPeriod + +`func (o *KafkaRequestAllOf) SetMaxDataRetentionPeriod(v string)` + +SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. + +### HasMaxDataRetentionPeriod + +`func (o *KafkaRequestAllOf) HasMaxDataRetentionPeriod() bool` + +HasMaxDataRetentionPeriod returns a boolean if a field has been set. + +### GetMaxConnectionAttemptsPerSec + +`func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSec() int32` + +GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. + +### GetMaxConnectionAttemptsPerSecOk + +`func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` + +GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxConnectionAttemptsPerSec + +`func (o *KafkaRequestAllOf) SetMaxConnectionAttemptsPerSec(v int32)` + +SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. + +### HasMaxConnectionAttemptsPerSec + +`func (o *KafkaRequestAllOf) HasMaxConnectionAttemptsPerSec() bool` + +HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. + +### GetBillingCloudAccountId + +`func (o *KafkaRequestAllOf) GetBillingCloudAccountId() string` + +GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. + +### GetBillingCloudAccountIdOk + +`func (o *KafkaRequestAllOf) GetBillingCloudAccountIdOk() (*string, bool)` + +GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingCloudAccountId + +`func (o *KafkaRequestAllOf) SetBillingCloudAccountId(v string)` + +SetBillingCloudAccountId sets BillingCloudAccountId field to given value. + +### HasBillingCloudAccountId + +`func (o *KafkaRequestAllOf) HasBillingCloudAccountId() bool` + +HasBillingCloudAccountId returns a boolean if a field has been set. + +### GetMarketplace + +`func (o *KafkaRequestAllOf) GetMarketplace() string` + +GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. + +### GetMarketplaceOk + +`func (o *KafkaRequestAllOf) GetMarketplaceOk() (*string, bool)` + +GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarketplace + +`func (o *KafkaRequestAllOf) SetMarketplace(v string)` + +SetMarketplace sets Marketplace field to given value. + +### HasMarketplace + +`func (o *KafkaRequestAllOf) HasMarketplace() bool` + +HasMarketplace returns a boolean if a field has been set. + +### GetBillingModel + +`func (o *KafkaRequestAllOf) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *KafkaRequestAllOf) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *KafkaRequestAllOf) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *KafkaRequestAllOf) HasBillingModel() bool` + +HasBillingModel 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md new file mode 100644 index 00000000..25e15d56 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md @@ -0,0 +1,135 @@ +# KafkaRequestList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]KafkaRequest**](KafkaRequest.md) | | + +## Methods + +### NewKafkaRequestList + +`func NewKafkaRequestList(kind string, page int32, size int32, total int32, items []KafkaRequest, ) *KafkaRequestList` + +NewKafkaRequestList instantiates a new KafkaRequestList 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 + +### NewKafkaRequestListWithDefaults + +`func NewKafkaRequestListWithDefaults() *KafkaRequestList` + +NewKafkaRequestListWithDefaults instantiates a new KafkaRequestList 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 + +### GetKind + +`func (o *KafkaRequestList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *KafkaRequestList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *KafkaRequestList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *KafkaRequestList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *KafkaRequestList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *KafkaRequestList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *KafkaRequestList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *KafkaRequestList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *KafkaRequestList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *KafkaRequestList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *KafkaRequestList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *KafkaRequestList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *KafkaRequestList) GetItems() []KafkaRequest` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *KafkaRequestList) GetItemsOk() (*[]KafkaRequest, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *KafkaRequestList) SetItems(v []KafkaRequest)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md new file mode 100644 index 00000000..06bc4107 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md @@ -0,0 +1,56 @@ +# KafkaRequestListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]KafkaRequest**](KafkaRequest.md) | | [optional] + +## Methods + +### NewKafkaRequestListAllOf + +`func NewKafkaRequestListAllOf() *KafkaRequestListAllOf` + +NewKafkaRequestListAllOf instantiates a new KafkaRequestListAllOf 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 + +### NewKafkaRequestListAllOfWithDefaults + +`func NewKafkaRequestListAllOfWithDefaults() *KafkaRequestListAllOf` + +NewKafkaRequestListAllOfWithDefaults instantiates a new KafkaRequestListAllOf 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 + +### GetItems + +`func (o *KafkaRequestListAllOf) GetItems() []KafkaRequest` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *KafkaRequestListAllOf) GetItemsOk() (*[]KafkaRequest, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *KafkaRequestListAllOf) SetItems(v []KafkaRequest)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *KafkaRequestListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md new file mode 100644 index 00000000..ff430c93 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md @@ -0,0 +1,273 @@ +# KafkaRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudProvider** | Pointer to **string** | The cloud provider where the Kafka cluster will be created in | [optional] +**Name** | **string** | The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. | +**Region** | Pointer to **string** | The region where the Kafka cluster will be created in | [optional] +**ReauthenticationEnabled** | Pointer to **NullableBool** | Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. The default value is true | [optional] +**Plan** | Pointer to **string** | kafka plan in a format of <instance_type>.<size_id> | [optional] +**BillingCloudAccountId** | Pointer to **NullableString** | cloud account id used to purchase the instance | [optional] +**Marketplace** | Pointer to **NullableString** | marketplace where the instance is purchased on | [optional] +**BillingModel** | Pointer to **NullableString** | billing model to use | [optional] + +## Methods + +### NewKafkaRequestPayload + +`func NewKafkaRequestPayload(name string, ) *KafkaRequestPayload` + +NewKafkaRequestPayload instantiates a new KafkaRequestPayload 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 + +### NewKafkaRequestPayloadWithDefaults + +`func NewKafkaRequestPayloadWithDefaults() *KafkaRequestPayload` + +NewKafkaRequestPayloadWithDefaults instantiates a new KafkaRequestPayload 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 + +### GetCloudProvider + +`func (o *KafkaRequestPayload) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *KafkaRequestPayload) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *KafkaRequestPayload) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *KafkaRequestPayload) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetName + +`func (o *KafkaRequestPayload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KafkaRequestPayload) 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 *KafkaRequestPayload) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRegion + +`func (o *KafkaRequestPayload) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *KafkaRequestPayload) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *KafkaRequestPayload) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *KafkaRequestPayload) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetReauthenticationEnabled + +`func (o *KafkaRequestPayload) GetReauthenticationEnabled() bool` + +GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. + +### GetReauthenticationEnabledOk + +`func (o *KafkaRequestPayload) GetReauthenticationEnabledOk() (*bool, bool)` + +GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthenticationEnabled + +`func (o *KafkaRequestPayload) SetReauthenticationEnabled(v bool)` + +SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. + +### HasReauthenticationEnabled + +`func (o *KafkaRequestPayload) HasReauthenticationEnabled() bool` + +HasReauthenticationEnabled returns a boolean if a field has been set. + +### SetReauthenticationEnabledNil + +`func (o *KafkaRequestPayload) SetReauthenticationEnabledNil(b bool)` + + SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil + +### UnsetReauthenticationEnabled +`func (o *KafkaRequestPayload) UnsetReauthenticationEnabled()` + +UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil +### GetPlan + +`func (o *KafkaRequestPayload) GetPlan() string` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *KafkaRequestPayload) GetPlanOk() (*string, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *KafkaRequestPayload) SetPlan(v string)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *KafkaRequestPayload) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetBillingCloudAccountId + +`func (o *KafkaRequestPayload) GetBillingCloudAccountId() string` + +GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. + +### GetBillingCloudAccountIdOk + +`func (o *KafkaRequestPayload) GetBillingCloudAccountIdOk() (*string, bool)` + +GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingCloudAccountId + +`func (o *KafkaRequestPayload) SetBillingCloudAccountId(v string)` + +SetBillingCloudAccountId sets BillingCloudAccountId field to given value. + +### HasBillingCloudAccountId + +`func (o *KafkaRequestPayload) HasBillingCloudAccountId() bool` + +HasBillingCloudAccountId returns a boolean if a field has been set. + +### SetBillingCloudAccountIdNil + +`func (o *KafkaRequestPayload) SetBillingCloudAccountIdNil(b bool)` + + SetBillingCloudAccountIdNil sets the value for BillingCloudAccountId to be an explicit nil + +### UnsetBillingCloudAccountId +`func (o *KafkaRequestPayload) UnsetBillingCloudAccountId()` + +UnsetBillingCloudAccountId ensures that no value is present for BillingCloudAccountId, not even an explicit nil +### GetMarketplace + +`func (o *KafkaRequestPayload) GetMarketplace() string` + +GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. + +### GetMarketplaceOk + +`func (o *KafkaRequestPayload) GetMarketplaceOk() (*string, bool)` + +GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarketplace + +`func (o *KafkaRequestPayload) SetMarketplace(v string)` + +SetMarketplace sets Marketplace field to given value. + +### HasMarketplace + +`func (o *KafkaRequestPayload) HasMarketplace() bool` + +HasMarketplace returns a boolean if a field has been set. + +### SetMarketplaceNil + +`func (o *KafkaRequestPayload) SetMarketplaceNil(b bool)` + + SetMarketplaceNil sets the value for Marketplace to be an explicit nil + +### UnsetMarketplace +`func (o *KafkaRequestPayload) UnsetMarketplace()` + +UnsetMarketplace ensures that no value is present for Marketplace, not even an explicit nil +### GetBillingModel + +`func (o *KafkaRequestPayload) GetBillingModel() string` + +GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. + +### GetBillingModelOk + +`func (o *KafkaRequestPayload) GetBillingModelOk() (*string, bool)` + +GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingModel + +`func (o *KafkaRequestPayload) SetBillingModel(v string)` + +SetBillingModel sets BillingModel field to given value. + +### HasBillingModel + +`func (o *KafkaRequestPayload) HasBillingModel() bool` + +HasBillingModel returns a boolean if a field has been set. + +### SetBillingModelNil + +`func (o *KafkaRequestPayload) SetBillingModelNil(b bool)` + + SetBillingModelNil sets the value for BillingModel to be an explicit nil + +### UnsetBillingModel +`func (o *KafkaRequestPayload) UnsetBillingModel()` + +UnsetBillingModel ensures that no value is present for BillingModel, not even an explicit nil + +[[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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md new file mode 100644 index 00000000..60f92268 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md @@ -0,0 +1,102 @@ +# KafkaUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **NullableString** | | [optional] +**ReauthenticationEnabled** | Pointer to **NullableBool** | Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. | [optional] + +## Methods + +### NewKafkaUpdateRequest + +`func NewKafkaUpdateRequest() *KafkaUpdateRequest` + +NewKafkaUpdateRequest instantiates a new KafkaUpdateRequest 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 + +### NewKafkaUpdateRequestWithDefaults + +`func NewKafkaUpdateRequestWithDefaults() *KafkaUpdateRequest` + +NewKafkaUpdateRequestWithDefaults instantiates a new KafkaUpdateRequest 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 + +### GetOwner + +`func (o *KafkaUpdateRequest) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *KafkaUpdateRequest) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *KafkaUpdateRequest) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *KafkaUpdateRequest) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### SetOwnerNil + +`func (o *KafkaUpdateRequest) SetOwnerNil(b bool)` + + SetOwnerNil sets the value for Owner to be an explicit nil + +### UnsetOwner +`func (o *KafkaUpdateRequest) UnsetOwner()` + +UnsetOwner ensures that no value is present for Owner, not even an explicit nil +### GetReauthenticationEnabled + +`func (o *KafkaUpdateRequest) GetReauthenticationEnabled() bool` + +GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. + +### GetReauthenticationEnabledOk + +`func (o *KafkaUpdateRequest) GetReauthenticationEnabledOk() (*bool, bool)` + +GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthenticationEnabled + +`func (o *KafkaUpdateRequest) SetReauthenticationEnabled(v bool)` + +SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. + +### HasReauthenticationEnabled + +`func (o *KafkaUpdateRequest) HasReauthenticationEnabled() bool` + +HasReauthenticationEnabled returns a boolean if a field has been set. + +### SetReauthenticationEnabledNil + +`func (o *KafkaUpdateRequest) SetReauthenticationEnabledNil(b bool)` + + SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil + +### UnsetReauthenticationEnabled +`func (o *KafkaUpdateRequest) UnsetReauthenticationEnabled()` + +UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil + +[[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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md new file mode 100644 index 00000000..df93b0c7 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md @@ -0,0 +1,135 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ObjectReference**](ObjectReference.md) | | + +## Methods + +### NewList + +`func NewList(kind string, page int32, size int32, total int32, items []ObjectReference, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *List) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *List) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *List) GetItems() []ObjectReference` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *List) GetItemsOk() (*[]ObjectReference, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *List) SetItems(v []ObjectReference)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md new file mode 100644 index 00000000..8cd26d88 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md @@ -0,0 +1,108 @@ +# MetricsInstantQueryList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] + +## Methods + +### NewMetricsInstantQueryList + +`func NewMetricsInstantQueryList() *MetricsInstantQueryList` + +NewMetricsInstantQueryList instantiates a new MetricsInstantQueryList 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 + +### NewMetricsInstantQueryListWithDefaults + +`func NewMetricsInstantQueryListWithDefaults() *MetricsInstantQueryList` + +NewMetricsInstantQueryListWithDefaults instantiates a new MetricsInstantQueryList 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 + +### GetKind + +`func (o *MetricsInstantQueryList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *MetricsInstantQueryList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *MetricsInstantQueryList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *MetricsInstantQueryList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *MetricsInstantQueryList) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetricsInstantQueryList) 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 *MetricsInstantQueryList) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetricsInstantQueryList) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetItems + +`func (o *MetricsInstantQueryList) GetItems() []InstantQuery` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsInstantQueryList) GetItemsOk() (*[]InstantQuery, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsInstantQueryList) SetItems(v []InstantQuery)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *MetricsInstantQueryList) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md new file mode 100644 index 00000000..0195b076 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md @@ -0,0 +1,108 @@ +# MetricsInstantQueryListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] + +## Methods + +### NewMetricsInstantQueryListAllOf + +`func NewMetricsInstantQueryListAllOf() *MetricsInstantQueryListAllOf` + +NewMetricsInstantQueryListAllOf instantiates a new MetricsInstantQueryListAllOf 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 + +### NewMetricsInstantQueryListAllOfWithDefaults + +`func NewMetricsInstantQueryListAllOfWithDefaults() *MetricsInstantQueryListAllOf` + +NewMetricsInstantQueryListAllOfWithDefaults instantiates a new MetricsInstantQueryListAllOf 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 + +### GetKind + +`func (o *MetricsInstantQueryListAllOf) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *MetricsInstantQueryListAllOf) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *MetricsInstantQueryListAllOf) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *MetricsInstantQueryListAllOf) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *MetricsInstantQueryListAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetricsInstantQueryListAllOf) 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 *MetricsInstantQueryListAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetricsInstantQueryListAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetItems + +`func (o *MetricsInstantQueryListAllOf) GetItems() []InstantQuery` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsInstantQueryListAllOf) GetItemsOk() (*[]InstantQuery, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsInstantQueryListAllOf) SetItems(v []InstantQuery)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *MetricsInstantQueryListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md new file mode 100644 index 00000000..341963b4 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md @@ -0,0 +1,108 @@ +# MetricsRangeQueryList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] + +## Methods + +### NewMetricsRangeQueryList + +`func NewMetricsRangeQueryList() *MetricsRangeQueryList` + +NewMetricsRangeQueryList instantiates a new MetricsRangeQueryList 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 + +### NewMetricsRangeQueryListWithDefaults + +`func NewMetricsRangeQueryListWithDefaults() *MetricsRangeQueryList` + +NewMetricsRangeQueryListWithDefaults instantiates a new MetricsRangeQueryList 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 + +### GetKind + +`func (o *MetricsRangeQueryList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *MetricsRangeQueryList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *MetricsRangeQueryList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *MetricsRangeQueryList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *MetricsRangeQueryList) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetricsRangeQueryList) 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 *MetricsRangeQueryList) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetricsRangeQueryList) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetItems + +`func (o *MetricsRangeQueryList) GetItems() []RangeQuery` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsRangeQueryList) GetItemsOk() (*[]RangeQuery, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsRangeQueryList) SetItems(v []RangeQuery)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *MetricsRangeQueryList) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md new file mode 100644 index 00000000..34e1204b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md @@ -0,0 +1,108 @@ +# MetricsRangeQueryListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] + +## Methods + +### NewMetricsRangeQueryListAllOf + +`func NewMetricsRangeQueryListAllOf() *MetricsRangeQueryListAllOf` + +NewMetricsRangeQueryListAllOf instantiates a new MetricsRangeQueryListAllOf 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 + +### NewMetricsRangeQueryListAllOfWithDefaults + +`func NewMetricsRangeQueryListAllOfWithDefaults() *MetricsRangeQueryListAllOf` + +NewMetricsRangeQueryListAllOfWithDefaults instantiates a new MetricsRangeQueryListAllOf 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 + +### GetKind + +`func (o *MetricsRangeQueryListAllOf) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *MetricsRangeQueryListAllOf) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *MetricsRangeQueryListAllOf) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *MetricsRangeQueryListAllOf) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetId + +`func (o *MetricsRangeQueryListAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MetricsRangeQueryListAllOf) 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 *MetricsRangeQueryListAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *MetricsRangeQueryListAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetItems + +`func (o *MetricsRangeQueryListAllOf) GetItems() []RangeQuery` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *MetricsRangeQueryListAllOf) GetItemsOk() (*[]RangeQuery, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *MetricsRangeQueryListAllOf) SetItems(v []RangeQuery)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *MetricsRangeQueryListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md new file mode 100644 index 00000000..1d898d8a --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md @@ -0,0 +1,93 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | + +## Methods + +### NewObjectReference + +`func NewObjectReference(id string, kind string, href string, ) *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md new file mode 100644 index 00000000..96bd5170 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md @@ -0,0 +1,82 @@ +# RangeQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metric** | Pointer to **map[string]string** | | [optional] +**Values** | Pointer to [**[]Values**](Values.md) | | [optional] + +## Methods + +### NewRangeQuery + +`func NewRangeQuery() *RangeQuery` + +NewRangeQuery instantiates a new RangeQuery 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 + +### NewRangeQueryWithDefaults + +`func NewRangeQueryWithDefaults() *RangeQuery` + +NewRangeQueryWithDefaults instantiates a new RangeQuery 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 + +### GetMetric + +`func (o *RangeQuery) GetMetric() map[string]string` + +GetMetric returns the Metric field if non-nil, zero value otherwise. + +### GetMetricOk + +`func (o *RangeQuery) GetMetricOk() (*map[string]string, bool)` + +GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetric + +`func (o *RangeQuery) SetMetric(v map[string]string)` + +SetMetric sets Metric field to given value. + +### HasMetric + +`func (o *RangeQuery) HasMetric() bool` + +HasMetric returns a boolean if a field has been set. + +### GetValues + +`func (o *RangeQuery) GetValues() []Values` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *RangeQuery) GetValuesOk() (*[]Values, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *RangeQuery) SetValues(v []Values)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *RangeQuery) HasValues() bool` + +HasValues 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md new file mode 100644 index 00000000..3488d580 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md @@ -0,0 +1,72 @@ +# RegionCapacityListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstanceType** | **string** | kafka instance type | +**AvailableSizes** | **[]string** | list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits | + +## Methods + +### NewRegionCapacityListItem + +`func NewRegionCapacityListItem(instanceType string, availableSizes []string, ) *RegionCapacityListItem` + +NewRegionCapacityListItem instantiates a new RegionCapacityListItem 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 + +### NewRegionCapacityListItemWithDefaults + +`func NewRegionCapacityListItemWithDefaults() *RegionCapacityListItem` + +NewRegionCapacityListItemWithDefaults instantiates a new RegionCapacityListItem 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 + +### GetInstanceType + +`func (o *RegionCapacityListItem) GetInstanceType() string` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *RegionCapacityListItem) GetInstanceTypeOk() (*string, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *RegionCapacityListItem) SetInstanceType(v string)` + +SetInstanceType sets InstanceType field to given value. + + +### GetAvailableSizes + +`func (o *RegionCapacityListItem) GetAvailableSizes() []string` + +GetAvailableSizes returns the AvailableSizes field if non-nil, zero value otherwise. + +### GetAvailableSizesOk + +`func (o *RegionCapacityListItem) GetAvailableSizesOk() (*[]string, bool)` + +GetAvailableSizesOk returns a tuple with the AvailableSizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableSizes + +`func (o *RegionCapacityListItem) SetAvailableSizes(v []string)` + +SetAvailableSizes sets AvailableSizes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md new file mode 100644 index 00000000..76b38325 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md @@ -0,0 +1,417 @@ +# \SecurityApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateServiceAccount**](SecurityApi.md#CreateServiceAccount) | **Post** /api/kafkas_mgmt/v1/service_accounts | +[**DeleteServiceAccountById**](SecurityApi.md#DeleteServiceAccountById) | **Delete** /api/kafkas_mgmt/v1/service_accounts/{id} | +[**GetServiceAccountById**](SecurityApi.md#GetServiceAccountById) | **Get** /api/kafkas_mgmt/v1/service_accounts/{id} | +[**GetServiceAccounts**](SecurityApi.md#GetServiceAccounts) | **Get** /api/kafkas_mgmt/v1/service_accounts | +[**GetSsoProviders**](SecurityApi.md#GetSsoProviders) | **Get** /api/kafkas_mgmt/v1/sso_providers | +[**ResetServiceAccountCreds**](SecurityApi.md#ResetServiceAccountCreds) | **Post** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | + + + +## CreateServiceAccount + +> ServiceAccount CreateServiceAccount(ctx).ServiceAccountRequest(serviceAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceAccountRequest := *openapiclient.NewServiceAccountRequest("Name_example") // ServiceAccountRequest | Service account request + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.CreateServiceAccount(context.Background()).ServiceAccountRequest(serviceAccountRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.CreateServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceAccount`: ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.CreateServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceAccountRequest** | [**ServiceAccountRequest**](ServiceAccountRequest.md) | Service account request | + +### Return type + +[**ServiceAccount**](ServiceAccount.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteServiceAccountById + +> Error DeleteServiceAccountById(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.DeleteServiceAccountById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.DeleteServiceAccountById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteServiceAccountById`: Error + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.DeleteServiceAccountById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteServiceAccountByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetServiceAccountById + +> ServiceAccount GetServiceAccountById(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.GetServiceAccountById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetServiceAccountById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceAccountById`: ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetServiceAccountById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceAccountByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccount**](ServiceAccount.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetServiceAccounts + +> ServiceAccountList GetServiceAccounts(ctx).ClientId(clientId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + clientId := "clientId_example" // string | client_id of the service account to be retrieved (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.GetServiceAccounts(context.Background()).ClientId(clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceAccounts`: ServiceAccountList + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clientId** | **string** | client_id of the service account to be retrieved | + +### Return type + +[**ServiceAccountList**](ServiceAccountList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSsoProviders + +> SsoProvider GetSsoProviders(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.GetSsoProviders(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSsoProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSsoProviders`: SsoProvider + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSsoProviders`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSsoProvidersRequest struct via the builder pattern + + +### Return type + +[**SsoProvider**](SsoProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetServiceAccountCreds + +> ServiceAccount ResetServiceAccountCreds(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | The ID of record + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SecurityApi.ResetServiceAccountCreds(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.ResetServiceAccountCreds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetServiceAccountCreds`: ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.ResetServiceAccountCreds`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetServiceAccountCredsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccount**](ServiceAccount.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md new file mode 100644 index 00000000..9a415472 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md @@ -0,0 +1,275 @@ +# ServiceAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | server generated unique id of the service account | +**Kind** | **string** | | +**Href** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**ClientSecret** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceAccount + +`func NewServiceAccount(id string, kind string, href string, ) *ServiceAccount` + +NewServiceAccount instantiates a new ServiceAccount 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 + +### NewServiceAccountWithDefaults + +`func NewServiceAccountWithDefaults() *ServiceAccount` + +NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 *ServiceAccount) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccount) 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 *ServiceAccount) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *ServiceAccount) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ServiceAccount) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ServiceAccount) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *ServiceAccount) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ServiceAccount) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ServiceAccount) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetName + +`func (o *ServiceAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccount) 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 *ServiceAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccount) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccount) 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 *ServiceAccount) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccount) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClientId + +`func (o *ServiceAccount) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccount) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccount) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccount) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetClientSecret + +`func (o *ServiceAccount) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *ServiceAccount) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *ServiceAccount) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *ServiceAccount) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetOwner + +`func (o *ServiceAccount) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ServiceAccount) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ServiceAccount) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ServiceAccount) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ServiceAccount) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ServiceAccount) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ServiceAccount) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ServiceAccount) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceAccount) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccount) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccount) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccount) HasCreatedAt() bool` + +HasCreatedAt 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md new file mode 100644 index 00000000..8a0af20b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md @@ -0,0 +1,238 @@ +# ServiceAccountAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | server generated unique id of the service account | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**ClientSecret** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewServiceAccountAllOf + +`func NewServiceAccountAllOf() *ServiceAccountAllOf` + +NewServiceAccountAllOf instantiates a new ServiceAccountAllOf 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 + +### NewServiceAccountAllOfWithDefaults + +`func NewServiceAccountAllOfWithDefaults() *ServiceAccountAllOf` + +NewServiceAccountAllOfWithDefaults instantiates a new ServiceAccountAllOf 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 *ServiceAccountAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ServiceAccountAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceAccountAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccountAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountAllOf) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClientId + +`func (o *ServiceAccountAllOf) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccountAllOf) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccountAllOf) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetClientSecret + +`func (o *ServiceAccountAllOf) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *ServiceAccountAllOf) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *ServiceAccountAllOf) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *ServiceAccountAllOf) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetOwner + +`func (o *ServiceAccountAllOf) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ServiceAccountAllOf) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ServiceAccountAllOf) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ServiceAccountAllOf) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ServiceAccountAllOf) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ServiceAccountAllOf) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ServiceAccountAllOf) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ServiceAccountAllOf) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceAccountAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccountAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccountAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccountAllOf) HasCreatedAt() bool` + +HasCreatedAt 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md new file mode 100644 index 00000000..6fbb63f9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md @@ -0,0 +1,72 @@ +# ServiceAccountList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | + +## Methods + +### NewServiceAccountList + +`func NewServiceAccountList(kind string, items []ServiceAccountListItem, ) *ServiceAccountList` + +NewServiceAccountList instantiates a new ServiceAccountList 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 + +### NewServiceAccountListWithDefaults + +`func NewServiceAccountListWithDefaults() *ServiceAccountList` + +NewServiceAccountListWithDefaults instantiates a new ServiceAccountList 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 + +### GetKind + +`func (o *ServiceAccountList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ServiceAccountList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ServiceAccountList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ServiceAccountList) GetItems() []ServiceAccountListItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ServiceAccountList) GetItemsOk() (*[]ServiceAccountListItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ServiceAccountList) SetItems(v []ServiceAccountListItem)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md new file mode 100644 index 00000000..a00486cb --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md @@ -0,0 +1,72 @@ +# ServiceAccountListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | + +## Methods + +### NewServiceAccountListAllOf + +`func NewServiceAccountListAllOf(kind string, items []ServiceAccountListItem, ) *ServiceAccountListAllOf` + +NewServiceAccountListAllOf instantiates a new ServiceAccountListAllOf 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 + +### NewServiceAccountListAllOfWithDefaults + +`func NewServiceAccountListAllOfWithDefaults() *ServiceAccountListAllOf` + +NewServiceAccountListAllOfWithDefaults instantiates a new ServiceAccountListAllOf 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 + +### GetKind + +`func (o *ServiceAccountListAllOf) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ServiceAccountListAllOf) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ServiceAccountListAllOf) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ServiceAccountListAllOf) GetItems() []ServiceAccountListItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ServiceAccountListAllOf) GetItemsOk() (*[]ServiceAccountListItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ServiceAccountListAllOf) SetItems(v []ServiceAccountListItem)` + +SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md new file mode 100644 index 00000000..85593cfd --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md @@ -0,0 +1,249 @@ +# ServiceAccountListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | server generated unique id of the service account | +**Kind** | **string** | | +**Href** | **string** | | +**ClientId** | Pointer to **string** | client id of the service account | [optional] +**Name** | Pointer to **string** | name of the service account | [optional] +**Owner** | Pointer to **string** | owner of the service account | [optional] +**CreatedBy** | Pointer to **string** | service account created by the user | [optional] +**CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] +**Description** | Pointer to **string** | description of the service account | [optional] + +## Methods + +### NewServiceAccountListItem + +`func NewServiceAccountListItem(id string, kind string, href string, ) *ServiceAccountListItem` + +NewServiceAccountListItem instantiates a new ServiceAccountListItem 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 + +### NewServiceAccountListItemWithDefaults + +`func NewServiceAccountListItemWithDefaults() *ServiceAccountListItem` + +NewServiceAccountListItemWithDefaults instantiates a new ServiceAccountListItem 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 *ServiceAccountListItem) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *ServiceAccountListItem) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ServiceAccountListItem) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ServiceAccountListItem) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *ServiceAccountListItem) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ServiceAccountListItem) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ServiceAccountListItem) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetClientId + +`func (o *ServiceAccountListItem) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccountListItem) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccountListItem) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceAccountListItem) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountListItem) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOwner + +`func (o *ServiceAccountListItem) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ServiceAccountListItem) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ServiceAccountListItem) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ServiceAccountListItem) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ServiceAccountListItem) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ServiceAccountListItem) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ServiceAccountListItem) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ServiceAccountListItem) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceAccountListItem) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccountListItem) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccountListItem) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccountListItem) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccountListItem) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountListItem) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md new file mode 100644 index 00000000..e860ea82 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md @@ -0,0 +1,212 @@ +# ServiceAccountListItemAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | server generated unique id of the service account | [optional] +**ClientId** | Pointer to **string** | client id of the service account | [optional] +**Name** | Pointer to **string** | name of the service account | [optional] +**Owner** | Pointer to **string** | owner of the service account | [optional] +**CreatedBy** | Pointer to **string** | service account created by the user | [optional] +**CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] +**Description** | Pointer to **string** | description of the service account | [optional] + +## Methods + +### NewServiceAccountListItemAllOf + +`func NewServiceAccountListItemAllOf() *ServiceAccountListItemAllOf` + +NewServiceAccountListItemAllOf instantiates a new ServiceAccountListItemAllOf 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 + +### NewServiceAccountListItemAllOfWithDefaults + +`func NewServiceAccountListItemAllOfWithDefaults() *ServiceAccountListItemAllOf` + +NewServiceAccountListItemAllOfWithDefaults instantiates a new ServiceAccountListItemAllOf 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 *ServiceAccountListItemAllOf) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ServiceAccountListItemAllOf) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *ServiceAccountListItemAllOf) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccountListItemAllOf) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccountListItemAllOf) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceAccountListItemAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountListItemAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOwner + +`func (o *ServiceAccountListItemAllOf) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ServiceAccountListItemAllOf) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ServiceAccountListItemAllOf) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ServiceAccountListItemAllOf) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ServiceAccountListItemAllOf) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ServiceAccountListItemAllOf) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ServiceAccountListItemAllOf) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ServiceAccountListItemAllOf) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceAccountListItemAllOf) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccountListItemAllOf) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccountListItemAllOf) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccountListItemAllOf) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccountListItemAllOf) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountListItemAllOf) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md new file mode 100644 index 00000000..ada96cef --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md @@ -0,0 +1,77 @@ +# ServiceAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the service account | +**Description** | Pointer to **string** | A description for the service account | [optional] + +## Methods + +### NewServiceAccountRequest + +`func NewServiceAccountRequest(name string, ) *ServiceAccountRequest` + +NewServiceAccountRequest instantiates a new ServiceAccountRequest 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 + +### NewServiceAccountRequestWithDefaults + +`func NewServiceAccountRequestWithDefaults() *ServiceAccountRequest` + +NewServiceAccountRequestWithDefaults instantiates a new ServiceAccountRequest 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 *ServiceAccountRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ServiceAccountRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountRequest) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md new file mode 100644 index 00000000..5044f63f --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md @@ -0,0 +1,223 @@ +# SsoProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Name** | Pointer to **string** | name of the sso provider | [optional] +**BaseUrl** | Pointer to **string** | base url | [optional] +**TokenUrl** | Pointer to **string** | | [optional] +**Jwks** | Pointer to **string** | | [optional] +**ValidIssuer** | Pointer to **string** | | [optional] + +## Methods + +### NewSsoProvider + +`func NewSsoProvider(id string, kind string, href string, ) *SsoProvider` + +NewSsoProvider instantiates a new SsoProvider 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 + +### NewSsoProviderWithDefaults + +`func NewSsoProviderWithDefaults() *SsoProvider` + +NewSsoProviderWithDefaults instantiates a new SsoProvider 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 *SsoProvider) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SsoProvider) 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 *SsoProvider) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *SsoProvider) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *SsoProvider) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *SsoProvider) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *SsoProvider) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *SsoProvider) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *SsoProvider) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetName + +`func (o *SsoProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SsoProvider) 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 *SsoProvider) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SsoProvider) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetBaseUrl + +`func (o *SsoProvider) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *SsoProvider) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *SsoProvider) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *SsoProvider) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetTokenUrl + +`func (o *SsoProvider) GetTokenUrl() string` + +GetTokenUrl returns the TokenUrl field if non-nil, zero value otherwise. + +### GetTokenUrlOk + +`func (o *SsoProvider) GetTokenUrlOk() (*string, bool)` + +GetTokenUrlOk returns a tuple with the TokenUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenUrl + +`func (o *SsoProvider) SetTokenUrl(v string)` + +SetTokenUrl sets TokenUrl field to given value. + +### HasTokenUrl + +`func (o *SsoProvider) HasTokenUrl() bool` + +HasTokenUrl returns a boolean if a field has been set. + +### GetJwks + +`func (o *SsoProvider) GetJwks() string` + +GetJwks returns the Jwks field if non-nil, zero value otherwise. + +### GetJwksOk + +`func (o *SsoProvider) GetJwksOk() (*string, bool)` + +GetJwksOk returns a tuple with the Jwks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwks + +`func (o *SsoProvider) SetJwks(v string)` + +SetJwks sets Jwks field to given value. + +### HasJwks + +`func (o *SsoProvider) HasJwks() bool` + +HasJwks returns a boolean if a field has been set. + +### GetValidIssuer + +`func (o *SsoProvider) GetValidIssuer() string` + +GetValidIssuer returns the ValidIssuer field if non-nil, zero value otherwise. + +### GetValidIssuerOk + +`func (o *SsoProvider) GetValidIssuerOk() (*string, bool)` + +GetValidIssuerOk returns a tuple with the ValidIssuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidIssuer + +`func (o *SsoProvider) SetValidIssuer(v string)` + +SetValidIssuer sets ValidIssuer field to given value. + +### HasValidIssuer + +`func (o *SsoProvider) HasValidIssuer() bool` + +HasValidIssuer 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md new file mode 100644 index 00000000..309eeaf4 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md @@ -0,0 +1,160 @@ +# SsoProviderAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | name of the sso provider | [optional] +**BaseUrl** | Pointer to **string** | base url | [optional] +**TokenUrl** | Pointer to **string** | | [optional] +**Jwks** | Pointer to **string** | | [optional] +**ValidIssuer** | Pointer to **string** | | [optional] + +## Methods + +### NewSsoProviderAllOf + +`func NewSsoProviderAllOf() *SsoProviderAllOf` + +NewSsoProviderAllOf instantiates a new SsoProviderAllOf 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 + +### NewSsoProviderAllOfWithDefaults + +`func NewSsoProviderAllOfWithDefaults() *SsoProviderAllOf` + +NewSsoProviderAllOfWithDefaults instantiates a new SsoProviderAllOf 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 *SsoProviderAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SsoProviderAllOf) 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 *SsoProviderAllOf) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SsoProviderAllOf) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetBaseUrl + +`func (o *SsoProviderAllOf) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *SsoProviderAllOf) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *SsoProviderAllOf) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *SsoProviderAllOf) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetTokenUrl + +`func (o *SsoProviderAllOf) GetTokenUrl() string` + +GetTokenUrl returns the TokenUrl field if non-nil, zero value otherwise. + +### GetTokenUrlOk + +`func (o *SsoProviderAllOf) GetTokenUrlOk() (*string, bool)` + +GetTokenUrlOk returns a tuple with the TokenUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenUrl + +`func (o *SsoProviderAllOf) SetTokenUrl(v string)` + +SetTokenUrl sets TokenUrl field to given value. + +### HasTokenUrl + +`func (o *SsoProviderAllOf) HasTokenUrl() bool` + +HasTokenUrl returns a boolean if a field has been set. + +### GetJwks + +`func (o *SsoProviderAllOf) GetJwks() string` + +GetJwks returns the Jwks field if non-nil, zero value otherwise. + +### GetJwksOk + +`func (o *SsoProviderAllOf) GetJwksOk() (*string, bool)` + +GetJwksOk returns a tuple with the Jwks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwks + +`func (o *SsoProviderAllOf) SetJwks(v string)` + +SetJwks sets Jwks field to given value. + +### HasJwks + +`func (o *SsoProviderAllOf) HasJwks() bool` + +HasJwks returns a boolean if a field has been set. + +### GetValidIssuer + +`func (o *SsoProviderAllOf) GetValidIssuer() string` + +GetValidIssuer returns the ValidIssuer field if non-nil, zero value otherwise. + +### GetValidIssuerOk + +`func (o *SsoProviderAllOf) GetValidIssuerOk() (*string, bool)` + +GetValidIssuerOk returns a tuple with the ValidIssuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidIssuer + +`func (o *SsoProviderAllOf) SetValidIssuer(v string)` + +SetValidIssuer sets ValidIssuer field to given value. + +### HasValidIssuer + +`func (o *SsoProviderAllOf) HasValidIssuer() bool` + +HasValidIssuer 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md new file mode 100644 index 00000000..d3ef2951 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md @@ -0,0 +1,114 @@ +# SupportedKafkaBillingModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Identifier for the Kafka billing model | +**AmsResource** | **string** | AMS resource to be used. Accepted values: ['rhosak'] | +**AmsProduct** | **string** | AMS product to be used. Accepted values: ['RHOSAK', 'RHOSAKTrial', 'RHOSAKEval'] | +**AmsBillingModels** | **[]string** | List of AMS available billing models: Accepted values: ['marketplace', 'marketplace-rhm', 'marketplace-aws'] | + +## Methods + +### NewSupportedKafkaBillingModel + +`func NewSupportedKafkaBillingModel(id string, amsResource string, amsProduct string, amsBillingModels []string, ) *SupportedKafkaBillingModel` + +NewSupportedKafkaBillingModel instantiates a new SupportedKafkaBillingModel 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 + +### NewSupportedKafkaBillingModelWithDefaults + +`func NewSupportedKafkaBillingModelWithDefaults() *SupportedKafkaBillingModel` + +NewSupportedKafkaBillingModelWithDefaults instantiates a new SupportedKafkaBillingModel 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 *SupportedKafkaBillingModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SupportedKafkaBillingModel) 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 *SupportedKafkaBillingModel) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAmsResource + +`func (o *SupportedKafkaBillingModel) GetAmsResource() string` + +GetAmsResource returns the AmsResource field if non-nil, zero value otherwise. + +### GetAmsResourceOk + +`func (o *SupportedKafkaBillingModel) GetAmsResourceOk() (*string, bool)` + +GetAmsResourceOk returns a tuple with the AmsResource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmsResource + +`func (o *SupportedKafkaBillingModel) SetAmsResource(v string)` + +SetAmsResource sets AmsResource field to given value. + + +### GetAmsProduct + +`func (o *SupportedKafkaBillingModel) GetAmsProduct() string` + +GetAmsProduct returns the AmsProduct field if non-nil, zero value otherwise. + +### GetAmsProductOk + +`func (o *SupportedKafkaBillingModel) GetAmsProductOk() (*string, bool)` + +GetAmsProductOk returns a tuple with the AmsProduct field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmsProduct + +`func (o *SupportedKafkaBillingModel) SetAmsProduct(v string)` + +SetAmsProduct sets AmsProduct field to given value. + + +### GetAmsBillingModels + +`func (o *SupportedKafkaBillingModel) GetAmsBillingModels() []string` + +GetAmsBillingModels returns the AmsBillingModels field if non-nil, zero value otherwise. + +### GetAmsBillingModelsOk + +`func (o *SupportedKafkaBillingModel) GetAmsBillingModelsOk() (*[]string, bool)` + +GetAmsBillingModelsOk returns a tuple with the AmsBillingModels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmsBillingModels + +`func (o *SupportedKafkaBillingModel) SetAmsBillingModels(v []string)` + +SetAmsBillingModels sets AmsBillingModels 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md new file mode 100644 index 00000000..77b939c1 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md @@ -0,0 +1,129 @@ +# SupportedKafkaInstanceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier of the Kafka instance type. | [optional] +**DisplayName** | Pointer to **string** | Human readable name of the supported Kafka instance type | [optional] +**SupportedBillingModels** | [**[]SupportedKafkaBillingModel**](SupportedKafkaBillingModel.md) | A list of available kafka billing models for the instance type. Each kafka billing model item has a unique 'id' | +**Sizes** | Pointer to [**[]SupportedKafkaSize**](SupportedKafkaSize.md) | A list of Kafka instance sizes available for this instance type | [optional] + +## Methods + +### NewSupportedKafkaInstanceType + +`func NewSupportedKafkaInstanceType(supportedBillingModels []SupportedKafkaBillingModel, ) *SupportedKafkaInstanceType` + +NewSupportedKafkaInstanceType instantiates a new SupportedKafkaInstanceType 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 + +### NewSupportedKafkaInstanceTypeWithDefaults + +`func NewSupportedKafkaInstanceTypeWithDefaults() *SupportedKafkaInstanceType` + +NewSupportedKafkaInstanceTypeWithDefaults instantiates a new SupportedKafkaInstanceType 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 *SupportedKafkaInstanceType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SupportedKafkaInstanceType) 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 *SupportedKafkaInstanceType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SupportedKafkaInstanceType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SupportedKafkaInstanceType) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SupportedKafkaInstanceType) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SupportedKafkaInstanceType) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SupportedKafkaInstanceType) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSupportedBillingModels + +`func (o *SupportedKafkaInstanceType) GetSupportedBillingModels() []SupportedKafkaBillingModel` + +GetSupportedBillingModels returns the SupportedBillingModels field if non-nil, zero value otherwise. + +### GetSupportedBillingModelsOk + +`func (o *SupportedKafkaInstanceType) GetSupportedBillingModelsOk() (*[]SupportedKafkaBillingModel, bool)` + +GetSupportedBillingModelsOk returns a tuple with the SupportedBillingModels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedBillingModels + +`func (o *SupportedKafkaInstanceType) SetSupportedBillingModels(v []SupportedKafkaBillingModel)` + +SetSupportedBillingModels sets SupportedBillingModels field to given value. + + +### GetSizes + +`func (o *SupportedKafkaInstanceType) GetSizes() []SupportedKafkaSize` + +GetSizes returns the Sizes field if non-nil, zero value otherwise. + +### GetSizesOk + +`func (o *SupportedKafkaInstanceType) GetSizesOk() (*[]SupportedKafkaSize, bool)` + +GetSizesOk returns a tuple with the Sizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSizes + +`func (o *SupportedKafkaInstanceType) SetSizes(v []SupportedKafkaSize)` + +SetSizes sets Sizes field to given value. + +### HasSizes + +`func (o *SupportedKafkaInstanceType) HasSizes() bool` + +HasSizes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md new file mode 100644 index 00000000..97e96562 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md @@ -0,0 +1,56 @@ +# SupportedKafkaInstanceTypesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstanceTypes** | Pointer to [**[]SupportedKafkaInstanceType**](SupportedKafkaInstanceType.md) | | [optional] + +## Methods + +### NewSupportedKafkaInstanceTypesList + +`func NewSupportedKafkaInstanceTypesList() *SupportedKafkaInstanceTypesList` + +NewSupportedKafkaInstanceTypesList instantiates a new SupportedKafkaInstanceTypesList 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 + +### NewSupportedKafkaInstanceTypesListWithDefaults + +`func NewSupportedKafkaInstanceTypesListWithDefaults() *SupportedKafkaInstanceTypesList` + +NewSupportedKafkaInstanceTypesListWithDefaults instantiates a new SupportedKafkaInstanceTypesList 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 + +### GetInstanceTypes + +`func (o *SupportedKafkaInstanceTypesList) GetInstanceTypes() []SupportedKafkaInstanceType` + +GetInstanceTypes returns the InstanceTypes field if non-nil, zero value otherwise. + +### GetInstanceTypesOk + +`func (o *SupportedKafkaInstanceTypesList) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool)` + +GetInstanceTypesOk returns a tuple with the InstanceTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceTypes + +`func (o *SupportedKafkaInstanceTypesList) SetInstanceTypes(v []SupportedKafkaInstanceType)` + +SetInstanceTypes sets InstanceTypes field to given value. + +### HasInstanceTypes + +`func (o *SupportedKafkaInstanceTypesList) HasInstanceTypes() bool` + +HasInstanceTypes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md new file mode 100644 index 00000000..77292c08 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md @@ -0,0 +1,56 @@ +# SupportedKafkaInstanceTypesListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstanceTypes** | Pointer to [**[]SupportedKafkaInstanceType**](SupportedKafkaInstanceType.md) | | [optional] + +## Methods + +### NewSupportedKafkaInstanceTypesListAllOf + +`func NewSupportedKafkaInstanceTypesListAllOf() *SupportedKafkaInstanceTypesListAllOf` + +NewSupportedKafkaInstanceTypesListAllOf instantiates a new SupportedKafkaInstanceTypesListAllOf 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 + +### NewSupportedKafkaInstanceTypesListAllOfWithDefaults + +`func NewSupportedKafkaInstanceTypesListAllOfWithDefaults() *SupportedKafkaInstanceTypesListAllOf` + +NewSupportedKafkaInstanceTypesListAllOfWithDefaults instantiates a new SupportedKafkaInstanceTypesListAllOf 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 + +### GetInstanceTypes + +`func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypes() []SupportedKafkaInstanceType` + +GetInstanceTypes returns the InstanceTypes field if non-nil, zero value otherwise. + +### GetInstanceTypesOk + +`func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool)` + +GetInstanceTypesOk returns a tuple with the InstanceTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceTypes + +`func (o *SupportedKafkaInstanceTypesListAllOf) SetInstanceTypes(v []SupportedKafkaInstanceType)` + +SetInstanceTypes sets InstanceTypes field to given value. + +### HasInstanceTypes + +`func (o *SupportedKafkaInstanceTypesListAllOf) HasInstanceTypes() bool` + +HasInstanceTypes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md new file mode 100644 index 00000000..1241d275 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md @@ -0,0 +1,508 @@ +# SupportedKafkaSize + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Unique identifier of this Kafka instance size. | [optional] +**DisplayName** | Pointer to **string** | Display name of this Kafka instance size. | [optional] +**IngressThroughputPerSec** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**EgressThroughputPerSec** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**TotalMaxConnections** | Pointer to **int32** | Maximum amount of total connections available to this Kafka instance size. | [optional] +**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**MaxPartitions** | Pointer to **int32** | Maximum amount of total partitions available to this Kafka instance size. | [optional] +**MaxDataRetentionPeriod** | Pointer to **string** | Maximum data retention period available to this Kafka instance size. | [optional] +**MaxConnectionAttemptsPerSec** | Pointer to **int32** | Maximium connection attempts per second available to this Kafka instance size. | [optional] +**MaxMessageSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] +**MinInSyncReplicas** | Pointer to **int32** | Minimum number of in-sync replicas. | [optional] +**ReplicationFactor** | Pointer to **int32** | Replication factor available to this Kafka instance size. | [optional] +**SupportedAzModes** | Pointer to **[]string** | List of Availability Zone modes that this Kafka instance size supports. The possible values are \"single\", \"multi\". | [optional] +**LifespanSeconds** | Pointer to **NullableInt32** | The limit lifespan of the kafka instance in seconds. If not specified then the instance never expires. | [optional] +**QuotaConsumed** | Pointer to **int32** | Quota consumed by this Kafka instance size. | [optional] +**QuotaType** | Pointer to **string** | Quota type used by this Kafka instance size. This is now deprecated, please refer to supported_billing_models at instance-type level instead. | [optional] +**CapacityConsumed** | Pointer to **int32** | Data plane cluster capacity consumed by this Kafka instance size. | [optional] +**MaturityStatus** | Pointer to **string** | Maturity level of the size. Can be \"stable\" or \"preview\". | [optional] + +## Methods + +### NewSupportedKafkaSize + +`func NewSupportedKafkaSize() *SupportedKafkaSize` + +NewSupportedKafkaSize instantiates a new SupportedKafkaSize 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 + +### NewSupportedKafkaSizeWithDefaults + +`func NewSupportedKafkaSizeWithDefaults() *SupportedKafkaSize` + +NewSupportedKafkaSizeWithDefaults instantiates a new SupportedKafkaSize 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 *SupportedKafkaSize) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SupportedKafkaSize) 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 *SupportedKafkaSize) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SupportedKafkaSize) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SupportedKafkaSize) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SupportedKafkaSize) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SupportedKafkaSize) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SupportedKafkaSize) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetIngressThroughputPerSec + +`func (o *SupportedKafkaSize) GetIngressThroughputPerSec() SupportedKafkaSizeBytesValueItem` + +GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. + +### GetIngressThroughputPerSecOk + +`func (o *SupportedKafkaSize) GetIngressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIngressThroughputPerSec + +`func (o *SupportedKafkaSize) SetIngressThroughputPerSec(v SupportedKafkaSizeBytesValueItem)` + +SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. + +### HasIngressThroughputPerSec + +`func (o *SupportedKafkaSize) HasIngressThroughputPerSec() bool` + +HasIngressThroughputPerSec returns a boolean if a field has been set. + +### GetEgressThroughputPerSec + +`func (o *SupportedKafkaSize) GetEgressThroughputPerSec() SupportedKafkaSizeBytesValueItem` + +GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. + +### GetEgressThroughputPerSecOk + +`func (o *SupportedKafkaSize) GetEgressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEgressThroughputPerSec + +`func (o *SupportedKafkaSize) SetEgressThroughputPerSec(v SupportedKafkaSizeBytesValueItem)` + +SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. + +### HasEgressThroughputPerSec + +`func (o *SupportedKafkaSize) HasEgressThroughputPerSec() bool` + +HasEgressThroughputPerSec returns a boolean if a field has been set. + +### GetTotalMaxConnections + +`func (o *SupportedKafkaSize) GetTotalMaxConnections() int32` + +GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. + +### GetTotalMaxConnectionsOk + +`func (o *SupportedKafkaSize) GetTotalMaxConnectionsOk() (*int32, bool)` + +GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalMaxConnections + +`func (o *SupportedKafkaSize) SetTotalMaxConnections(v int32)` + +SetTotalMaxConnections sets TotalMaxConnections field to given value. + +### HasTotalMaxConnections + +`func (o *SupportedKafkaSize) HasTotalMaxConnections() bool` + +HasTotalMaxConnections returns a boolean if a field has been set. + +### GetMaxDataRetentionSize + +`func (o *SupportedKafkaSize) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` + +GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. + +### GetMaxDataRetentionSizeOk + +`func (o *SupportedKafkaSize) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionSize + +`func (o *SupportedKafkaSize) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` + +SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. + +### HasMaxDataRetentionSize + +`func (o *SupportedKafkaSize) HasMaxDataRetentionSize() bool` + +HasMaxDataRetentionSize returns a boolean if a field has been set. + +### GetMaxPartitions + +`func (o *SupportedKafkaSize) GetMaxPartitions() int32` + +GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. + +### GetMaxPartitionsOk + +`func (o *SupportedKafkaSize) GetMaxPartitionsOk() (*int32, bool)` + +GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPartitions + +`func (o *SupportedKafkaSize) SetMaxPartitions(v int32)` + +SetMaxPartitions sets MaxPartitions field to given value. + +### HasMaxPartitions + +`func (o *SupportedKafkaSize) HasMaxPartitions() bool` + +HasMaxPartitions returns a boolean if a field has been set. + +### GetMaxDataRetentionPeriod + +`func (o *SupportedKafkaSize) GetMaxDataRetentionPeriod() string` + +GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. + +### GetMaxDataRetentionPeriodOk + +`func (o *SupportedKafkaSize) GetMaxDataRetentionPeriodOk() (*string, bool)` + +GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxDataRetentionPeriod + +`func (o *SupportedKafkaSize) SetMaxDataRetentionPeriod(v string)` + +SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. + +### HasMaxDataRetentionPeriod + +`func (o *SupportedKafkaSize) HasMaxDataRetentionPeriod() bool` + +HasMaxDataRetentionPeriod returns a boolean if a field has been set. + +### GetMaxConnectionAttemptsPerSec + +`func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSec() int32` + +GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. + +### GetMaxConnectionAttemptsPerSecOk + +`func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` + +GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxConnectionAttemptsPerSec + +`func (o *SupportedKafkaSize) SetMaxConnectionAttemptsPerSec(v int32)` + +SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. + +### HasMaxConnectionAttemptsPerSec + +`func (o *SupportedKafkaSize) HasMaxConnectionAttemptsPerSec() bool` + +HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. + +### GetMaxMessageSize + +`func (o *SupportedKafkaSize) GetMaxMessageSize() SupportedKafkaSizeBytesValueItem` + +GetMaxMessageSize returns the MaxMessageSize field if non-nil, zero value otherwise. + +### GetMaxMessageSizeOk + +`func (o *SupportedKafkaSize) GetMaxMessageSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` + +GetMaxMessageSizeOk returns a tuple with the MaxMessageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxMessageSize + +`func (o *SupportedKafkaSize) SetMaxMessageSize(v SupportedKafkaSizeBytesValueItem)` + +SetMaxMessageSize sets MaxMessageSize field to given value. + +### HasMaxMessageSize + +`func (o *SupportedKafkaSize) HasMaxMessageSize() bool` + +HasMaxMessageSize returns a boolean if a field has been set. + +### GetMinInSyncReplicas + +`func (o *SupportedKafkaSize) GetMinInSyncReplicas() int32` + +GetMinInSyncReplicas returns the MinInSyncReplicas field if non-nil, zero value otherwise. + +### GetMinInSyncReplicasOk + +`func (o *SupportedKafkaSize) GetMinInSyncReplicasOk() (*int32, bool)` + +GetMinInSyncReplicasOk returns a tuple with the MinInSyncReplicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinInSyncReplicas + +`func (o *SupportedKafkaSize) SetMinInSyncReplicas(v int32)` + +SetMinInSyncReplicas sets MinInSyncReplicas field to given value. + +### HasMinInSyncReplicas + +`func (o *SupportedKafkaSize) HasMinInSyncReplicas() bool` + +HasMinInSyncReplicas returns a boolean if a field has been set. + +### GetReplicationFactor + +`func (o *SupportedKafkaSize) GetReplicationFactor() int32` + +GetReplicationFactor returns the ReplicationFactor field if non-nil, zero value otherwise. + +### GetReplicationFactorOk + +`func (o *SupportedKafkaSize) GetReplicationFactorOk() (*int32, bool)` + +GetReplicationFactorOk returns a tuple with the ReplicationFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicationFactor + +`func (o *SupportedKafkaSize) SetReplicationFactor(v int32)` + +SetReplicationFactor sets ReplicationFactor field to given value. + +### HasReplicationFactor + +`func (o *SupportedKafkaSize) HasReplicationFactor() bool` + +HasReplicationFactor returns a boolean if a field has been set. + +### GetSupportedAzModes + +`func (o *SupportedKafkaSize) GetSupportedAzModes() []string` + +GetSupportedAzModes returns the SupportedAzModes field if non-nil, zero value otherwise. + +### GetSupportedAzModesOk + +`func (o *SupportedKafkaSize) GetSupportedAzModesOk() (*[]string, bool)` + +GetSupportedAzModesOk returns a tuple with the SupportedAzModes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedAzModes + +`func (o *SupportedKafkaSize) SetSupportedAzModes(v []string)` + +SetSupportedAzModes sets SupportedAzModes field to given value. + +### HasSupportedAzModes + +`func (o *SupportedKafkaSize) HasSupportedAzModes() bool` + +HasSupportedAzModes returns a boolean if a field has been set. + +### GetLifespanSeconds + +`func (o *SupportedKafkaSize) GetLifespanSeconds() int32` + +GetLifespanSeconds returns the LifespanSeconds field if non-nil, zero value otherwise. + +### GetLifespanSecondsOk + +`func (o *SupportedKafkaSize) GetLifespanSecondsOk() (*int32, bool)` + +GetLifespanSecondsOk returns a tuple with the LifespanSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLifespanSeconds + +`func (o *SupportedKafkaSize) SetLifespanSeconds(v int32)` + +SetLifespanSeconds sets LifespanSeconds field to given value. + +### HasLifespanSeconds + +`func (o *SupportedKafkaSize) HasLifespanSeconds() bool` + +HasLifespanSeconds returns a boolean if a field has been set. + +### SetLifespanSecondsNil + +`func (o *SupportedKafkaSize) SetLifespanSecondsNil(b bool)` + + SetLifespanSecondsNil sets the value for LifespanSeconds to be an explicit nil + +### UnsetLifespanSeconds +`func (o *SupportedKafkaSize) UnsetLifespanSeconds()` + +UnsetLifespanSeconds ensures that no value is present for LifespanSeconds, not even an explicit nil +### GetQuotaConsumed + +`func (o *SupportedKafkaSize) GetQuotaConsumed() int32` + +GetQuotaConsumed returns the QuotaConsumed field if non-nil, zero value otherwise. + +### GetQuotaConsumedOk + +`func (o *SupportedKafkaSize) GetQuotaConsumedOk() (*int32, bool)` + +GetQuotaConsumedOk returns a tuple with the QuotaConsumed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaConsumed + +`func (o *SupportedKafkaSize) SetQuotaConsumed(v int32)` + +SetQuotaConsumed sets QuotaConsumed field to given value. + +### HasQuotaConsumed + +`func (o *SupportedKafkaSize) HasQuotaConsumed() bool` + +HasQuotaConsumed returns a boolean if a field has been set. + +### GetQuotaType + +`func (o *SupportedKafkaSize) GetQuotaType() string` + +GetQuotaType returns the QuotaType field if non-nil, zero value otherwise. + +### GetQuotaTypeOk + +`func (o *SupportedKafkaSize) GetQuotaTypeOk() (*string, bool)` + +GetQuotaTypeOk returns a tuple with the QuotaType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuotaType + +`func (o *SupportedKafkaSize) SetQuotaType(v string)` + +SetQuotaType sets QuotaType field to given value. + +### HasQuotaType + +`func (o *SupportedKafkaSize) HasQuotaType() bool` + +HasQuotaType returns a boolean if a field has been set. + +### GetCapacityConsumed + +`func (o *SupportedKafkaSize) GetCapacityConsumed() int32` + +GetCapacityConsumed returns the CapacityConsumed field if non-nil, zero value otherwise. + +### GetCapacityConsumedOk + +`func (o *SupportedKafkaSize) GetCapacityConsumedOk() (*int32, bool)` + +GetCapacityConsumedOk returns a tuple with the CapacityConsumed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapacityConsumed + +`func (o *SupportedKafkaSize) SetCapacityConsumed(v int32)` + +SetCapacityConsumed sets CapacityConsumed field to given value. + +### HasCapacityConsumed + +`func (o *SupportedKafkaSize) HasCapacityConsumed() bool` + +HasCapacityConsumed returns a boolean if a field has been set. + +### GetMaturityStatus + +`func (o *SupportedKafkaSize) GetMaturityStatus() string` + +GetMaturityStatus returns the MaturityStatus field if non-nil, zero value otherwise. + +### GetMaturityStatusOk + +`func (o *SupportedKafkaSize) GetMaturityStatusOk() (*string, bool)` + +GetMaturityStatusOk returns a tuple with the MaturityStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaturityStatus + +`func (o *SupportedKafkaSize) SetMaturityStatus(v string)` + +SetMaturityStatus sets MaturityStatus field to given value. + +### HasMaturityStatus + +`func (o *SupportedKafkaSize) HasMaturityStatus() bool` + +HasMaturityStatus 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md new file mode 100644 index 00000000..dd92733b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md @@ -0,0 +1,56 @@ +# SupportedKafkaSizeBytesValueItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bytes** | Pointer to **int64** | | [optional] + +## Methods + +### NewSupportedKafkaSizeBytesValueItem + +`func NewSupportedKafkaSizeBytesValueItem() *SupportedKafkaSizeBytesValueItem` + +NewSupportedKafkaSizeBytesValueItem instantiates a new SupportedKafkaSizeBytesValueItem 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 + +### NewSupportedKafkaSizeBytesValueItemWithDefaults + +`func NewSupportedKafkaSizeBytesValueItemWithDefaults() *SupportedKafkaSizeBytesValueItem` + +NewSupportedKafkaSizeBytesValueItemWithDefaults instantiates a new SupportedKafkaSizeBytesValueItem 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 + +### GetBytes + +`func (o *SupportedKafkaSizeBytesValueItem) GetBytes() int64` + +GetBytes returns the Bytes field if non-nil, zero value otherwise. + +### GetBytesOk + +`func (o *SupportedKafkaSizeBytesValueItem) GetBytesOk() (*int64, bool)` + +GetBytesOk returns a tuple with the Bytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBytes + +`func (o *SupportedKafkaSizeBytesValueItem) SetBytes(v int64)` + +SetBytes sets Bytes field to given value. + +### HasBytes + +`func (o *SupportedKafkaSizeBytesValueItem) HasBytes() bool` + +HasBytes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md new file mode 100644 index 00000000..87f4f9a0 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md @@ -0,0 +1,77 @@ +# Values + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | Pointer to **int64** | | [optional] +**Value** | **float64** | | + +## Methods + +### NewValues + +`func NewValues(value float64, ) *Values` + +NewValues instantiates a new Values 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 + +### NewValuesWithDefaults + +`func NewValuesWithDefaults() *Values` + +NewValuesWithDefaults instantiates a new Values 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 + +### GetTimestamp + +`func (o *Values) GetTimestamp() int64` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *Values) GetTimestampOk() (*int64, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *Values) SetTimestamp(v int64)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *Values) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetValue + +`func (o *Values) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *Values) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *Values) SetValue(v float64)` + +SetValue sets Value 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md new file mode 100644 index 00000000..9bb0b899 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md @@ -0,0 +1,145 @@ +# VersionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**ServerVersion** | Pointer to **string** | | [optional] +**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + +## Methods + +### NewVersionMetadata + +`func NewVersionMetadata(id string, kind string, href string, ) *VersionMetadata` + +NewVersionMetadata instantiates a new VersionMetadata 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 + +### NewVersionMetadataWithDefaults + +`func NewVersionMetadataWithDefaults() *VersionMetadata` + +NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 *VersionMetadata) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VersionMetadata) 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 *VersionMetadata) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *VersionMetadata) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *VersionMetadata) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *VersionMetadata) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *VersionMetadata) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *VersionMetadata) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *VersionMetadata) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetServerVersion + +`func (o *VersionMetadata) GetServerVersion() string` + +GetServerVersion returns the ServerVersion field if non-nil, zero value otherwise. + +### GetServerVersionOk + +`func (o *VersionMetadata) GetServerVersionOk() (*string, bool)` + +GetServerVersionOk returns a tuple with the ServerVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerVersion + +`func (o *VersionMetadata) SetServerVersion(v string)` + +SetServerVersion sets ServerVersion field to given value. + +### HasServerVersion + +`func (o *VersionMetadata) HasServerVersion() bool` + +HasServerVersion returns a boolean if a field has been set. + +### GetCollections + +`func (o *VersionMetadata) GetCollections() []ObjectReference` + +GetCollections returns the Collections field if non-nil, zero value otherwise. + +### GetCollectionsOk + +`func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool)` + +GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollections + +`func (o *VersionMetadata) SetCollections(v []ObjectReference)` + +SetCollections sets Collections field to given value. + +### HasCollections + +`func (o *VersionMetadata) HasCollections() bool` + +HasCollections 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md new file mode 100644 index 00000000..97224fa9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md @@ -0,0 +1,82 @@ +# VersionMetadataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerVersion** | Pointer to **string** | | [optional] +**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + +## Methods + +### NewVersionMetadataAllOf + +`func NewVersionMetadataAllOf() *VersionMetadataAllOf` + +NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 + +### NewVersionMetadataAllOfWithDefaults + +`func NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf` + +NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 + +### GetServerVersion + +`func (o *VersionMetadataAllOf) GetServerVersion() string` + +GetServerVersion returns the ServerVersion field if non-nil, zero value otherwise. + +### GetServerVersionOk + +`func (o *VersionMetadataAllOf) GetServerVersionOk() (*string, bool)` + +GetServerVersionOk returns a tuple with the ServerVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerVersion + +`func (o *VersionMetadataAllOf) SetServerVersion(v string)` + +SetServerVersion sets ServerVersion field to given value. + +### HasServerVersion + +`func (o *VersionMetadataAllOf) HasServerVersion() bool` + +HasServerVersion returns a boolean if a field has been set. + +### GetCollections + +`func (o *VersionMetadataAllOf) GetCollections() []ObjectReference` + +GetCollections returns the Collections field if non-nil, zero value otherwise. + +### GetCollectionsOk + +`func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool)` + +GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollections + +`func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference)` + +SetCollections sets Collections field to given value. + +### HasCollections + +`func (o *VersionMetadataAllOf) HasCollections() bool` + +HasCollections 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/app-services-sdk-go/kafkamgmt/apiv1/client/git_push.sh b/app-services-sdk-go/kafkamgmt/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod b/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum b/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go new file mode 100644 index 00000000..ef8560dd --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go @@ -0,0 +1,258 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudProvider Cloud provider. +type CloudProvider struct { + // Indicates the type of this object. Will be 'CloudProvider' link. + Kind *string `json:"kind,omitempty"` + // Unique identifier of the object. + Id *string `json:"id,omitempty"` + // Name of the cloud provider for display purposes. + DisplayName *string `json:"display_name,omitempty"` + // Human friendly identifier of the cloud provider, for example `aws`. + Name *string `json:"name,omitempty"` + // Whether the cloud provider is enabled for deploying an OSD cluster. + Enabled bool `json:"enabled"` +} + +// NewCloudProvider instantiates a new CloudProvider 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 NewCloudProvider(enabled bool) *CloudProvider { + this := CloudProvider{} + this.Enabled = enabled + return &this +} + +// NewCloudProviderWithDefaults instantiates a new CloudProvider 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 NewCloudProviderWithDefaults() *CloudProvider { + this := CloudProvider{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *CloudProvider) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudProvider) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *CloudProvider) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *CloudProvider) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CloudProvider) GetId() string { + if o == nil || o.Id == nil { + 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 *CloudProvider) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CloudProvider) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CloudProvider) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *CloudProvider) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudProvider) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CloudProvider) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *CloudProvider) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CloudProvider) GetName() string { + if o == nil || o.Name == nil { + 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 *CloudProvider) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CloudProvider) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CloudProvider) SetName(v string) { + o.Name = &v +} + +// GetEnabled returns the Enabled field value +func (o *CloudProvider) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *CloudProvider) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *CloudProvider) SetEnabled(v bool) { + o.Enabled = v +} + +func (o CloudProvider) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if true { + toSerialize["enabled"] = o.Enabled + } + return json.Marshal(toSerialize) +} + +type NullableCloudProvider struct { + value *CloudProvider + isSet bool +} + +func (v NullableCloudProvider) Get() *CloudProvider { + return v.value +} + +func (v *NullableCloudProvider) Set(val *CloudProvider) { + v.value = val + v.isSet = true +} + +func (v NullableCloudProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudProvider(val *CloudProvider) *NullableCloudProvider { + return &NullableCloudProvider{value: val, isSet: true} +} + +func (v NullableCloudProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go new file mode 100644 index 00000000..cc4ee938 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go @@ -0,0 +1,225 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudProviderList struct for CloudProviderList +type CloudProviderList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []CloudProvider `json:"items"` +} + +// NewCloudProviderList instantiates a new CloudProviderList 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 NewCloudProviderList(kind string, page int32, size int32, total int32, items []CloudProvider) *CloudProviderList { + this := CloudProviderList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewCloudProviderListWithDefaults instantiates a new CloudProviderList 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 NewCloudProviderListWithDefaults() *CloudProviderList { + this := CloudProviderList{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudProviderList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudProviderList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudProviderList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *CloudProviderList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *CloudProviderList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *CloudProviderList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *CloudProviderList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *CloudProviderList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *CloudProviderList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *CloudProviderList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *CloudProviderList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *CloudProviderList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *CloudProviderList) GetItems() []CloudProvider { + if o == nil { + var ret []CloudProvider + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *CloudProviderList) GetItemsOk() (*[]CloudProvider, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *CloudProviderList) SetItems(v []CloudProvider) { + o.Items = v +} + +func (o CloudProviderList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudProviderList struct { + value *CloudProviderList + isSet bool +} + +func (v NullableCloudProviderList) Get() *CloudProviderList { + return v.value +} + +func (v *NullableCloudProviderList) Set(val *CloudProviderList) { + v.value = val + v.isSet = true +} + +func (v NullableCloudProviderList) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudProviderList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudProviderList(val *CloudProviderList) *NullableCloudProviderList { + return &NullableCloudProviderList{value: val, isSet: true} +} + +func (v NullableCloudProviderList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudProviderList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go new file mode 100644 index 00000000..2ecd7517 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudProviderListAllOf struct for CloudProviderListAllOf +type CloudProviderListAllOf struct { + Items *[]CloudProvider `json:"items,omitempty"` +} + +// NewCloudProviderListAllOf instantiates a new CloudProviderListAllOf 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 NewCloudProviderListAllOf() *CloudProviderListAllOf { + this := CloudProviderListAllOf{} + return &this +} + +// NewCloudProviderListAllOfWithDefaults instantiates a new CloudProviderListAllOf 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 NewCloudProviderListAllOfWithDefaults() *CloudProviderListAllOf { + this := CloudProviderListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CloudProviderListAllOf) GetItems() []CloudProvider { + if o == nil || o.Items == nil { + var ret []CloudProvider + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudProviderListAllOf) GetItemsOk() (*[]CloudProvider, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CloudProviderListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []CloudProvider and assigns it to the Items field. +func (o *CloudProviderListAllOf) SetItems(v []CloudProvider) { + o.Items = &v +} + +func (o CloudProviderListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudProviderListAllOf struct { + value *CloudProviderListAllOf + isSet bool +} + +func (v NullableCloudProviderListAllOf) Get() *CloudProviderListAllOf { + return v.value +} + +func (v *NullableCloudProviderListAllOf) Set(val *CloudProviderListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCloudProviderListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudProviderListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudProviderListAllOf(val *CloudProviderListAllOf) *NullableCloudProviderListAllOf { + return &NullableCloudProviderListAllOf{value: val, isSet: true} +} + +func (v NullableCloudProviderListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudProviderListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go new file mode 100644 index 00000000..2dbf8650 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go @@ -0,0 +1,253 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudRegion Description of a region of a cloud provider. +type CloudRegion struct { + // Indicates the type of this object. Will be 'CloudRegion'. + Kind *string `json:"kind,omitempty"` + // Unique identifier of the object. + Id *string `json:"id,omitempty"` + // Name of the region for display purposes, for example `N. Virginia`. + DisplayName *string `json:"display_name,omitempty"` + // Whether the region is enabled for deploying an OSD cluster. + Enabled bool `json:"enabled"` + // Indicates whether there is capacity left per instance type + Capacity []RegionCapacityListItem `json:"capacity"` +} + +// NewCloudRegion instantiates a new CloudRegion 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 NewCloudRegion(enabled bool, capacity []RegionCapacityListItem) *CloudRegion { + this := CloudRegion{} + this.Enabled = enabled + this.Capacity = capacity + return &this +} + +// NewCloudRegionWithDefaults instantiates a new CloudRegion 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 NewCloudRegionWithDefaults() *CloudRegion { + this := CloudRegion{} + var enabled bool = false + this.Enabled = enabled + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *CloudRegion) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRegion) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *CloudRegion) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *CloudRegion) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CloudRegion) GetId() string { + if o == nil || o.Id == nil { + 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 *CloudRegion) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CloudRegion) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *CloudRegion) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *CloudRegion) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRegion) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CloudRegion) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *CloudRegion) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEnabled returns the Enabled field value +func (o *CloudRegion) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *CloudRegion) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *CloudRegion) SetEnabled(v bool) { + o.Enabled = v +} + +// GetCapacity returns the Capacity field value +func (o *CloudRegion) GetCapacity() []RegionCapacityListItem { + if o == nil { + var ret []RegionCapacityListItem + return ret + } + + return o.Capacity +} + +// GetCapacityOk returns a tuple with the Capacity field value +// and a boolean to check if the value has been set. +func (o *CloudRegion) GetCapacityOk() (*[]RegionCapacityListItem, bool) { + if o == nil { + return nil, false + } + return &o.Capacity, true +} + +// SetCapacity sets field value +func (o *CloudRegion) SetCapacity(v []RegionCapacityListItem) { + o.Capacity = v +} + +func (o CloudRegion) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if true { + toSerialize["enabled"] = o.Enabled + } + if true { + toSerialize["capacity"] = o.Capacity + } + return json.Marshal(toSerialize) +} + +type NullableCloudRegion struct { + value *CloudRegion + isSet bool +} + +func (v NullableCloudRegion) Get() *CloudRegion { + return v.value +} + +func (v *NullableCloudRegion) Set(val *CloudRegion) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRegion) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRegion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRegion(val *CloudRegion) *NullableCloudRegion { + return &NullableCloudRegion{value: val, isSet: true} +} + +func (v NullableCloudRegion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRegion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go new file mode 100644 index 00000000..90c9796b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go @@ -0,0 +1,225 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudRegionList struct for CloudRegionList +type CloudRegionList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []CloudRegion `json:"items"` +} + +// NewCloudRegionList instantiates a new CloudRegionList 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 NewCloudRegionList(kind string, page int32, size int32, total int32, items []CloudRegion) *CloudRegionList { + this := CloudRegionList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewCloudRegionListWithDefaults instantiates a new CloudRegionList 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 NewCloudRegionListWithDefaults() *CloudRegionList { + this := CloudRegionList{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudRegionList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudRegionList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudRegionList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *CloudRegionList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *CloudRegionList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *CloudRegionList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *CloudRegionList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *CloudRegionList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *CloudRegionList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *CloudRegionList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *CloudRegionList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *CloudRegionList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *CloudRegionList) GetItems() []CloudRegion { + if o == nil { + var ret []CloudRegion + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *CloudRegionList) GetItemsOk() (*[]CloudRegion, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *CloudRegionList) SetItems(v []CloudRegion) { + o.Items = v +} + +func (o CloudRegionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudRegionList struct { + value *CloudRegionList + isSet bool +} + +func (v NullableCloudRegionList) Get() *CloudRegionList { + return v.value +} + +func (v *NullableCloudRegionList) Set(val *CloudRegionList) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRegionList) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRegionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRegionList(val *CloudRegionList) *NullableCloudRegionList { + return &NullableCloudRegionList{value: val, isSet: true} +} + +func (v NullableCloudRegionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRegionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go new file mode 100644 index 00000000..0353f4d9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// CloudRegionListAllOf struct for CloudRegionListAllOf +type CloudRegionListAllOf struct { + Items *[]CloudRegion `json:"items,omitempty"` +} + +// NewCloudRegionListAllOf instantiates a new CloudRegionListAllOf 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 NewCloudRegionListAllOf() *CloudRegionListAllOf { + this := CloudRegionListAllOf{} + return &this +} + +// NewCloudRegionListAllOfWithDefaults instantiates a new CloudRegionListAllOf 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 NewCloudRegionListAllOfWithDefaults() *CloudRegionListAllOf { + this := CloudRegionListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CloudRegionListAllOf) GetItems() []CloudRegion { + if o == nil || o.Items == nil { + var ret []CloudRegion + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRegionListAllOf) GetItemsOk() (*[]CloudRegion, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CloudRegionListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []CloudRegion and assigns it to the Items field. +func (o *CloudRegionListAllOf) SetItems(v []CloudRegion) { + o.Items = &v +} + +func (o CloudRegionListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableCloudRegionListAllOf struct { + value *CloudRegionListAllOf + isSet bool +} + +func (v NullableCloudRegionListAllOf) Get() *CloudRegionListAllOf { + return v.value +} + +func (v *NullableCloudRegionListAllOf) Set(val *CloudRegionListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRegionListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRegionListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRegionListAllOf(val *CloudRegionListAllOf) *NullableCloudRegionListAllOf { + return &NullableCloudRegionListAllOf{value: val, isSet: true} +} + +func (v NullableCloudRegionListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRegionListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go new file mode 100644 index 00000000..cb0cdef3 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go @@ -0,0 +1,261 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + Reason string `json:"reason"` + OperationId *string `json:"operation_id,omitempty"` + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + Code string `json:"code"` +} + +// NewError instantiates a new Error 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 NewError(reason string, id string, kind string, href string, code string) *Error { + this := Error{} + this.Reason = reason + this.Id = id + this.Kind = kind + this.Href = href + this.Code = code + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetReason returns the Reason field value +func (o *Error) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Error) SetReason(v string) { + o.Reason = v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *Error) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *Error) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *Error) SetOperationId(v string) { + o.OperationId = &v +} + +// GetId returns the Id field value +func (o *Error) 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 *Error) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Error) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *Error) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *Error) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *Error) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Error) SetHref(v string) { + o.Href = v +} + +// GetCode returns the Code field value +func (o *Error) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *Error) SetCode(v string) { + o.Code = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["reason"] = o.Reason + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go new file mode 100644 index 00000000..ec54a321 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go @@ -0,0 +1,225 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ErrorList struct for ErrorList +type ErrorList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Error `json:"items"` +} + +// NewErrorList instantiates a new ErrorList 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 NewErrorList(kind string, page int32, size int32, total int32, items []Error) *ErrorList { + this := ErrorList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewErrorListWithDefaults instantiates a new ErrorList 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 NewErrorListWithDefaults() *ErrorList { + this := ErrorList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ErrorList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ErrorList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ErrorList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ErrorList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ErrorList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ErrorList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ErrorList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ErrorList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ErrorList) GetItems() []Error { + if o == nil { + var ret []Error + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetItemsOk() (*[]Error, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ErrorList) SetItems(v []Error) { + o.Items = v +} + +func (o ErrorList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorList struct { + value *ErrorList + isSet bool +} + +func (v NullableErrorList) Get() *ErrorList { + return v.value +} + +func (v *NullableErrorList) Set(val *ErrorList) { + v.value = val + v.isSet = true +} + +func (v NullableErrorList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorList(val *ErrorList) *NullableErrorList { + return &NullableErrorList{value: val, isSet: true} +} + +func (v NullableErrorList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go new file mode 100644 index 00000000..bb3852c3 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ErrorListAllOf struct for ErrorListAllOf +type ErrorListAllOf struct { + Items *[]Error `json:"items,omitempty"` +} + +// NewErrorListAllOf instantiates a new ErrorListAllOf 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 NewErrorListAllOf() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorListAllOf) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorListAllOf) SetItems(v []Error) { + o.Items = &v +} + +func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorListAllOf struct { + value *ErrorListAllOf + isSet bool +} + +func (v NullableErrorListAllOf) Get() *ErrorListAllOf { + return v.value +} + +func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { + return &NullableErrorListAllOf{value: val, isSet: true} +} + +func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go new file mode 100644 index 00000000..b456dbf8 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go @@ -0,0 +1,181 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// InstantQuery struct for InstantQuery +type InstantQuery struct { + Metric *map[string]string `json:"metric,omitempty"` + Timestamp *int64 `json:"timestamp,omitempty"` + Value float64 `json:"value"` +} + +// NewInstantQuery instantiates a new InstantQuery 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 NewInstantQuery(value float64) *InstantQuery { + this := InstantQuery{} + this.Value = value + return &this +} + +// NewInstantQueryWithDefaults instantiates a new InstantQuery 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 NewInstantQueryWithDefaults() *InstantQuery { + this := InstantQuery{} + return &this +} + +// GetMetric returns the Metric field value if set, zero value otherwise. +func (o *InstantQuery) GetMetric() map[string]string { + if o == nil || o.Metric == nil { + var ret map[string]string + return ret + } + return *o.Metric +} + +// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstantQuery) GetMetricOk() (*map[string]string, bool) { + if o == nil || o.Metric == nil { + return nil, false + } + return o.Metric, true +} + +// HasMetric returns a boolean if a field has been set. +func (o *InstantQuery) HasMetric() bool { + if o != nil && o.Metric != nil { + return true + } + + return false +} + +// SetMetric gets a reference to the given map[string]string and assigns it to the Metric field. +func (o *InstantQuery) SetMetric(v map[string]string) { + o.Metric = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *InstantQuery) GetTimestamp() int64 { + if o == nil || o.Timestamp == nil { + var ret int64 + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstantQuery) GetTimestampOk() (*int64, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *InstantQuery) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field. +func (o *InstantQuery) SetTimestamp(v int64) { + o.Timestamp = &v +} + +// GetValue returns the Value field value +func (o *InstantQuery) GetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *InstantQuery) GetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *InstantQuery) SetValue(v float64) { + o.Value = v +} + +func (o InstantQuery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Metric != nil { + toSerialize["metric"] = o.Metric + } + if o.Timestamp != nil { + toSerialize["timestamp"] = o.Timestamp + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableInstantQuery struct { + value *InstantQuery + isSet bool +} + +func (v NullableInstantQuery) Get() *InstantQuery { + return v.value +} + +func (v *NullableInstantQuery) Set(val *InstantQuery) { + v.value = val + v.isSet = true +} + +func (v NullableInstantQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableInstantQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstantQuery(val *InstantQuery) *NullableInstantQuery { + return &NullableInstantQuery{value: val, isSet: true} +} + +func (v NullableInstantQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstantQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go new file mode 100644 index 00000000..14e13a29 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go @@ -0,0 +1,1220 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// KafkaRequest struct for KafkaRequest +type KafkaRequest struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + // Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] + Status *string `json:"status,omitempty"` + // Name of Cloud used to deploy. For example AWS + CloudProvider *string `json:"cloud_provider,omitempty"` + MultiAz bool `json:"multi_az"` + // Values will be regions of specific cloud provider. For example: us-east-1 for AWS + Region *string `json:"region,omitempty"` + Owner *string `json:"owner,omitempty"` + Name *string `json:"name,omitempty"` + BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` + // The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state + AdminApiServerUrl *string `json:"admin_api_server_url,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + FailedReason *string `json:"failed_reason,omitempty"` + Version *string `json:"version,omitempty"` + InstanceType *string `json:"instance_type,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + InstanceTypeName *string `json:"instance_type_name,omitempty"` + ReauthenticationEnabled bool `json:"reauthentication_enabled"` + // Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. + KafkaStorageSize *string `json:"kafka_storage_size,omitempty"` + MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` + BrowserUrl *string `json:"browser_url,omitempty"` + SizeId *string `json:"size_id,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + IngressThroughputPerSec *string `json:"ingress_throughput_per_sec,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + EgressThroughputPerSec *string `json:"egress_throughput_per_sec,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxPartitions *int32 `json:"max_partitions,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` + BillingCloudAccountId *string `json:"billing_cloud_account_id,omitempty"` + Marketplace *string `json:"marketplace,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` +} + +// NewKafkaRequest instantiates a new KafkaRequest 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 NewKafkaRequest(id string, kind string, href string, multiAz bool, reauthenticationEnabled bool) *KafkaRequest { + this := KafkaRequest{} + this.Id = id + this.Kind = kind + this.Href = href + this.MultiAz = multiAz + this.ReauthenticationEnabled = reauthenticationEnabled + return &this +} + +// NewKafkaRequestWithDefaults instantiates a new KafkaRequest 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 NewKafkaRequestWithDefaults() *KafkaRequest { + this := KafkaRequest{} + return &this +} + +// GetId returns the Id field value +func (o *KafkaRequest) 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 *KafkaRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *KafkaRequest) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *KafkaRequest) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *KafkaRequest) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *KafkaRequest) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *KafkaRequest) SetHref(v string) { + o.Href = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KafkaRequest) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KafkaRequest) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *KafkaRequest) SetStatus(v string) { + o.Status = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *KafkaRequest) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *KafkaRequest) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *KafkaRequest) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetMultiAz returns the MultiAz field value +func (o *KafkaRequest) GetMultiAz() bool { + if o == nil { + var ret bool + return ret + } + + return o.MultiAz +} + +// GetMultiAzOk returns a tuple with the MultiAz field value +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMultiAzOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.MultiAz, true +} + +// SetMultiAz sets field value +func (o *KafkaRequest) SetMultiAz(v bool) { + o.MultiAz = v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *KafkaRequest) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *KafkaRequest) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *KafkaRequest) SetRegion(v string) { + o.Region = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *KafkaRequest) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *KafkaRequest) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *KafkaRequest) SetOwner(v string) { + o.Owner = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KafkaRequest) GetName() string { + if o == nil || o.Name == nil { + 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 *KafkaRequest) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KafkaRequest) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KafkaRequest) SetName(v string) { + o.Name = &v +} + +// GetBootstrapServerHost returns the BootstrapServerHost field value if set, zero value otherwise. +func (o *KafkaRequest) GetBootstrapServerHost() string { + if o == nil || o.BootstrapServerHost == nil { + var ret string + return ret + } + return *o.BootstrapServerHost +} + +// GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetBootstrapServerHostOk() (*string, bool) { + if o == nil || o.BootstrapServerHost == nil { + return nil, false + } + return o.BootstrapServerHost, true +} + +// HasBootstrapServerHost returns a boolean if a field has been set. +func (o *KafkaRequest) HasBootstrapServerHost() bool { + if o != nil && o.BootstrapServerHost != nil { + return true + } + + return false +} + +// SetBootstrapServerHost gets a reference to the given string and assigns it to the BootstrapServerHost field. +func (o *KafkaRequest) SetBootstrapServerHost(v string) { + o.BootstrapServerHost = &v +} + +// GetAdminApiServerUrl returns the AdminApiServerUrl field value if set, zero value otherwise. +func (o *KafkaRequest) GetAdminApiServerUrl() string { + if o == nil || o.AdminApiServerUrl == nil { + var ret string + return ret + } + return *o.AdminApiServerUrl +} + +// GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetAdminApiServerUrlOk() (*string, bool) { + if o == nil || o.AdminApiServerUrl == nil { + return nil, false + } + return o.AdminApiServerUrl, true +} + +// HasAdminApiServerUrl returns a boolean if a field has been set. +func (o *KafkaRequest) HasAdminApiServerUrl() bool { + if o != nil && o.AdminApiServerUrl != nil { + return true + } + + return false +} + +// SetAdminApiServerUrl gets a reference to the given string and assigns it to the AdminApiServerUrl field. +func (o *KafkaRequest) SetAdminApiServerUrl(v string) { + o.AdminApiServerUrl = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *KafkaRequest) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *KafkaRequest) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *KafkaRequest) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequest) GetExpiresAt() time.Time { + if o == nil || o.ExpiresAt.Get() == nil { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequest) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *KafkaRequest) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *KafkaRequest) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *KafkaRequest) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *KafkaRequest) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *KafkaRequest) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *KafkaRequest) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *KafkaRequest) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetFailedReason returns the FailedReason field value if set, zero value otherwise. +func (o *KafkaRequest) GetFailedReason() string { + if o == nil || o.FailedReason == nil { + var ret string + return ret + } + return *o.FailedReason +} + +// GetFailedReasonOk returns a tuple with the FailedReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetFailedReasonOk() (*string, bool) { + if o == nil || o.FailedReason == nil { + return nil, false + } + return o.FailedReason, true +} + +// HasFailedReason returns a boolean if a field has been set. +func (o *KafkaRequest) HasFailedReason() bool { + if o != nil && o.FailedReason != nil { + return true + } + + return false +} + +// SetFailedReason gets a reference to the given string and assigns it to the FailedReason field. +func (o *KafkaRequest) SetFailedReason(v string) { + o.FailedReason = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *KafkaRequest) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *KafkaRequest) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *KafkaRequest) SetVersion(v string) { + o.Version = &v +} + +// GetInstanceType returns the InstanceType field value if set, zero value otherwise. +func (o *KafkaRequest) GetInstanceType() string { + if o == nil || o.InstanceType == nil { + var ret string + return ret + } + return *o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetInstanceTypeOk() (*string, bool) { + if o == nil || o.InstanceType == nil { + return nil, false + } + return o.InstanceType, true +} + +// HasInstanceType returns a boolean if a field has been set. +func (o *KafkaRequest) HasInstanceType() bool { + if o != nil && o.InstanceType != nil { + return true + } + + return false +} + +// SetInstanceType gets a reference to the given string and assigns it to the InstanceType field. +func (o *KafkaRequest) SetInstanceType(v string) { + o.InstanceType = &v +} + +// GetInstanceTypeName returns the InstanceTypeName field value if set, zero value otherwise. +func (o *KafkaRequest) GetInstanceTypeName() string { + if o == nil || o.InstanceTypeName == nil { + var ret string + return ret + } + return *o.InstanceTypeName +} + +// GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetInstanceTypeNameOk() (*string, bool) { + if o == nil || o.InstanceTypeName == nil { + return nil, false + } + return o.InstanceTypeName, true +} + +// HasInstanceTypeName returns a boolean if a field has been set. +func (o *KafkaRequest) HasInstanceTypeName() bool { + if o != nil && o.InstanceTypeName != nil { + return true + } + + return false +} + +// SetInstanceTypeName gets a reference to the given string and assigns it to the InstanceTypeName field. +func (o *KafkaRequest) SetInstanceTypeName(v string) { + o.InstanceTypeName = &v +} + +// GetReauthenticationEnabled returns the ReauthenticationEnabled field value +func (o *KafkaRequest) GetReauthenticationEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.ReauthenticationEnabled +} + +// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetReauthenticationEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ReauthenticationEnabled, true +} + +// SetReauthenticationEnabled sets field value +func (o *KafkaRequest) SetReauthenticationEnabled(v bool) { + o.ReauthenticationEnabled = v +} + +// GetKafkaStorageSize returns the KafkaStorageSize field value if set, zero value otherwise. +func (o *KafkaRequest) GetKafkaStorageSize() string { + if o == nil || o.KafkaStorageSize == nil { + var ret string + return ret + } + return *o.KafkaStorageSize +} + +// GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetKafkaStorageSizeOk() (*string, bool) { + if o == nil || o.KafkaStorageSize == nil { + return nil, false + } + return o.KafkaStorageSize, true +} + +// HasKafkaStorageSize returns a boolean if a field has been set. +func (o *KafkaRequest) HasKafkaStorageSize() bool { + if o != nil && o.KafkaStorageSize != nil { + return true + } + + return false +} + +// SetKafkaStorageSize gets a reference to the given string and assigns it to the KafkaStorageSize field. +func (o *KafkaRequest) SetKafkaStorageSize(v string) { + o.KafkaStorageSize = &v +} + +// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. +func (o *KafkaRequest) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { + if o == nil || o.MaxDataRetentionSize == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.MaxDataRetentionSize +} + +// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.MaxDataRetentionSize == nil { + return nil, false + } + return o.MaxDataRetentionSize, true +} + +// HasMaxDataRetentionSize returns a boolean if a field has been set. +func (o *KafkaRequest) HasMaxDataRetentionSize() bool { + if o != nil && o.MaxDataRetentionSize != nil { + return true + } + + return false +} + +// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. +func (o *KafkaRequest) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { + o.MaxDataRetentionSize = &v +} + +// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. +func (o *KafkaRequest) GetBrowserUrl() string { + if o == nil || o.BrowserUrl == nil { + var ret string + return ret + } + return *o.BrowserUrl +} + +// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetBrowserUrlOk() (*string, bool) { + if o == nil || o.BrowserUrl == nil { + return nil, false + } + return o.BrowserUrl, true +} + +// HasBrowserUrl returns a boolean if a field has been set. +func (o *KafkaRequest) HasBrowserUrl() bool { + if o != nil && o.BrowserUrl != nil { + return true + } + + return false +} + +// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. +func (o *KafkaRequest) SetBrowserUrl(v string) { + o.BrowserUrl = &v +} + +// GetSizeId returns the SizeId field value if set, zero value otherwise. +func (o *KafkaRequest) GetSizeId() string { + if o == nil || o.SizeId == nil { + var ret string + return ret + } + return *o.SizeId +} + +// GetSizeIdOk returns a tuple with the SizeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetSizeIdOk() (*string, bool) { + if o == nil || o.SizeId == nil { + return nil, false + } + return o.SizeId, true +} + +// HasSizeId returns a boolean if a field has been set. +func (o *KafkaRequest) HasSizeId() bool { + if o != nil && o.SizeId != nil { + return true + } + + return false +} + +// SetSizeId gets a reference to the given string and assigns it to the SizeId field. +func (o *KafkaRequest) SetSizeId(v string) { + o.SizeId = &v +} + +// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. +func (o *KafkaRequest) GetIngressThroughputPerSec() string { + if o == nil || o.IngressThroughputPerSec == nil { + var ret string + return ret + } + return *o.IngressThroughputPerSec +} + +// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetIngressThroughputPerSecOk() (*string, bool) { + if o == nil || o.IngressThroughputPerSec == nil { + return nil, false + } + return o.IngressThroughputPerSec, true +} + +// HasIngressThroughputPerSec returns a boolean if a field has been set. +func (o *KafkaRequest) HasIngressThroughputPerSec() bool { + if o != nil && o.IngressThroughputPerSec != nil { + return true + } + + return false +} + +// SetIngressThroughputPerSec gets a reference to the given string and assigns it to the IngressThroughputPerSec field. +func (o *KafkaRequest) SetIngressThroughputPerSec(v string) { + o.IngressThroughputPerSec = &v +} + +// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. +func (o *KafkaRequest) GetEgressThroughputPerSec() string { + if o == nil || o.EgressThroughputPerSec == nil { + var ret string + return ret + } + return *o.EgressThroughputPerSec +} + +// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetEgressThroughputPerSecOk() (*string, bool) { + if o == nil || o.EgressThroughputPerSec == nil { + return nil, false + } + return o.EgressThroughputPerSec, true +} + +// HasEgressThroughputPerSec returns a boolean if a field has been set. +func (o *KafkaRequest) HasEgressThroughputPerSec() bool { + if o != nil && o.EgressThroughputPerSec != nil { + return true + } + + return false +} + +// SetEgressThroughputPerSec gets a reference to the given string and assigns it to the EgressThroughputPerSec field. +func (o *KafkaRequest) SetEgressThroughputPerSec(v string) { + o.EgressThroughputPerSec = &v +} + +// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. +func (o *KafkaRequest) GetTotalMaxConnections() int32 { + if o == nil || o.TotalMaxConnections == nil { + var ret int32 + return ret + } + return *o.TotalMaxConnections +} + +// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetTotalMaxConnectionsOk() (*int32, bool) { + if o == nil || o.TotalMaxConnections == nil { + return nil, false + } + return o.TotalMaxConnections, true +} + +// HasTotalMaxConnections returns a boolean if a field has been set. +func (o *KafkaRequest) HasTotalMaxConnections() bool { + if o != nil && o.TotalMaxConnections != nil { + return true + } + + return false +} + +// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. +func (o *KafkaRequest) SetTotalMaxConnections(v int32) { + o.TotalMaxConnections = &v +} + +// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. +func (o *KafkaRequest) GetMaxPartitions() int32 { + if o == nil || o.MaxPartitions == nil { + var ret int32 + return ret + } + return *o.MaxPartitions +} + +// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMaxPartitionsOk() (*int32, bool) { + if o == nil || o.MaxPartitions == nil { + return nil, false + } + return o.MaxPartitions, true +} + +// HasMaxPartitions returns a boolean if a field has been set. +func (o *KafkaRequest) HasMaxPartitions() bool { + if o != nil && o.MaxPartitions != nil { + return true + } + + return false +} + +// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. +func (o *KafkaRequest) SetMaxPartitions(v int32) { + o.MaxPartitions = &v +} + +// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. +func (o *KafkaRequest) GetMaxDataRetentionPeriod() string { + if o == nil || o.MaxDataRetentionPeriod == nil { + var ret string + return ret + } + return *o.MaxDataRetentionPeriod +} + +// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMaxDataRetentionPeriodOk() (*string, bool) { + if o == nil || o.MaxDataRetentionPeriod == nil { + return nil, false + } + return o.MaxDataRetentionPeriod, true +} + +// HasMaxDataRetentionPeriod returns a boolean if a field has been set. +func (o *KafkaRequest) HasMaxDataRetentionPeriod() bool { + if o != nil && o.MaxDataRetentionPeriod != nil { + return true + } + + return false +} + +// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. +func (o *KafkaRequest) SetMaxDataRetentionPeriod(v string) { + o.MaxDataRetentionPeriod = &v +} + +// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. +func (o *KafkaRequest) GetMaxConnectionAttemptsPerSec() int32 { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + var ret int32 + return ret + } + return *o.MaxConnectionAttemptsPerSec +} + +// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + return nil, false + } + return o.MaxConnectionAttemptsPerSec, true +} + +// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. +func (o *KafkaRequest) HasMaxConnectionAttemptsPerSec() bool { + if o != nil && o.MaxConnectionAttemptsPerSec != nil { + return true + } + + return false +} + +// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. +func (o *KafkaRequest) SetMaxConnectionAttemptsPerSec(v int32) { + o.MaxConnectionAttemptsPerSec = &v +} + +// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise. +func (o *KafkaRequest) GetBillingCloudAccountId() string { + if o == nil || o.BillingCloudAccountId == nil { + var ret string + return ret + } + return *o.BillingCloudAccountId +} + +// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetBillingCloudAccountIdOk() (*string, bool) { + if o == nil || o.BillingCloudAccountId == nil { + return nil, false + } + return o.BillingCloudAccountId, true +} + +// HasBillingCloudAccountId returns a boolean if a field has been set. +func (o *KafkaRequest) HasBillingCloudAccountId() bool { + if o != nil && o.BillingCloudAccountId != nil { + return true + } + + return false +} + +// SetBillingCloudAccountId gets a reference to the given string and assigns it to the BillingCloudAccountId field. +func (o *KafkaRequest) SetBillingCloudAccountId(v string) { + o.BillingCloudAccountId = &v +} + +// GetMarketplace returns the Marketplace field value if set, zero value otherwise. +func (o *KafkaRequest) GetMarketplace() string { + if o == nil || o.Marketplace == nil { + var ret string + return ret + } + return *o.Marketplace +} + +// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetMarketplaceOk() (*string, bool) { + if o == nil || o.Marketplace == nil { + return nil, false + } + return o.Marketplace, true +} + +// HasMarketplace returns a boolean if a field has been set. +func (o *KafkaRequest) HasMarketplace() bool { + if o != nil && o.Marketplace != nil { + return true + } + + return false +} + +// SetMarketplace gets a reference to the given string and assigns it to the Marketplace field. +func (o *KafkaRequest) SetMarketplace(v string) { + o.Marketplace = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *KafkaRequest) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequest) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *KafkaRequest) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *KafkaRequest) SetBillingModel(v string) { + o.BillingModel = &v +} + +func (o KafkaRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["multi_az"] = o.MultiAz + } + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.BootstrapServerHost != nil { + toSerialize["bootstrap_server_host"] = o.BootstrapServerHost + } + if o.AdminApiServerUrl != nil { + toSerialize["admin_api_server_url"] = o.AdminApiServerUrl + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.FailedReason != nil { + toSerialize["failed_reason"] = o.FailedReason + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if o.InstanceType != nil { + toSerialize["instance_type"] = o.InstanceType + } + if o.InstanceTypeName != nil { + toSerialize["instance_type_name"] = o.InstanceTypeName + } + if true { + toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled + } + if o.KafkaStorageSize != nil { + toSerialize["kafka_storage_size"] = o.KafkaStorageSize + } + if o.MaxDataRetentionSize != nil { + toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize + } + if o.BrowserUrl != nil { + toSerialize["browser_url"] = o.BrowserUrl + } + if o.SizeId != nil { + toSerialize["size_id"] = o.SizeId + } + if o.IngressThroughputPerSec != nil { + toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec + } + if o.EgressThroughputPerSec != nil { + toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec + } + if o.TotalMaxConnections != nil { + toSerialize["total_max_connections"] = o.TotalMaxConnections + } + if o.MaxPartitions != nil { + toSerialize["max_partitions"] = o.MaxPartitions + } + if o.MaxDataRetentionPeriod != nil { + toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod + } + if o.MaxConnectionAttemptsPerSec != nil { + toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec + } + if o.BillingCloudAccountId != nil { + toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId + } + if o.Marketplace != nil { + toSerialize["marketplace"] = o.Marketplace + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + return json.Marshal(toSerialize) +} + +type NullableKafkaRequest struct { + value *KafkaRequest + isSet bool +} + +func (v NullableKafkaRequest) Get() *KafkaRequest { + return v.value +} + +func (v *NullableKafkaRequest) Set(val *KafkaRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaRequest(val *KafkaRequest) *NullableKafkaRequest { + return &NullableKafkaRequest{value: val, isSet: true} +} + +func (v NullableKafkaRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go new file mode 100644 index 00000000..600d48de --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go @@ -0,0 +1,1133 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// KafkaRequestAllOf struct for KafkaRequestAllOf +type KafkaRequestAllOf struct { + // Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] + Status *string `json:"status,omitempty"` + // Name of Cloud used to deploy. For example AWS + CloudProvider *string `json:"cloud_provider,omitempty"` + MultiAz bool `json:"multi_az"` + // Values will be regions of specific cloud provider. For example: us-east-1 for AWS + Region *string `json:"region,omitempty"` + Owner *string `json:"owner,omitempty"` + Name *string `json:"name,omitempty"` + BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` + // The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state + AdminApiServerUrl *string `json:"admin_api_server_url,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + ExpiresAt NullableTime `json:"expires_at,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + FailedReason *string `json:"failed_reason,omitempty"` + Version *string `json:"version,omitempty"` + InstanceType *string `json:"instance_type,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + InstanceTypeName *string `json:"instance_type_name,omitempty"` + ReauthenticationEnabled bool `json:"reauthentication_enabled"` + // Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. + KafkaStorageSize *string `json:"kafka_storage_size,omitempty"` + MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` + BrowserUrl *string `json:"browser_url,omitempty"` + SizeId *string `json:"size_id,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + IngressThroughputPerSec *string `json:"ingress_throughput_per_sec,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + EgressThroughputPerSec *string `json:"egress_throughput_per_sec,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxPartitions *int32 `json:"max_partitions,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` + // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. + MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` + BillingCloudAccountId *string `json:"billing_cloud_account_id,omitempty"` + Marketplace *string `json:"marketplace,omitempty"` + BillingModel *string `json:"billing_model,omitempty"` +} + +// NewKafkaRequestAllOf instantiates a new KafkaRequestAllOf 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 NewKafkaRequestAllOf(multiAz bool, reauthenticationEnabled bool) *KafkaRequestAllOf { + this := KafkaRequestAllOf{} + this.MultiAz = multiAz + this.ReauthenticationEnabled = reauthenticationEnabled + return &this +} + +// NewKafkaRequestAllOfWithDefaults instantiates a new KafkaRequestAllOf 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 NewKafkaRequestAllOfWithDefaults() *KafkaRequestAllOf { + this := KafkaRequestAllOf{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *KafkaRequestAllOf) SetStatus(v string) { + o.Status = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *KafkaRequestAllOf) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetMultiAz returns the MultiAz field value +func (o *KafkaRequestAllOf) GetMultiAz() bool { + if o == nil { + var ret bool + return ret + } + + return o.MultiAz +} + +// GetMultiAzOk returns a tuple with the MultiAz field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMultiAzOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.MultiAz, true +} + +// SetMultiAz sets field value +func (o *KafkaRequestAllOf) SetMultiAz(v bool) { + o.MultiAz = v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *KafkaRequestAllOf) SetRegion(v string) { + o.Region = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *KafkaRequestAllOf) SetOwner(v string) { + o.Owner = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *KafkaRequestAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KafkaRequestAllOf) SetName(v string) { + o.Name = &v +} + +// GetBootstrapServerHost returns the BootstrapServerHost field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetBootstrapServerHost() string { + if o == nil || o.BootstrapServerHost == nil { + var ret string + return ret + } + return *o.BootstrapServerHost +} + +// GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetBootstrapServerHostOk() (*string, bool) { + if o == nil || o.BootstrapServerHost == nil { + return nil, false + } + return o.BootstrapServerHost, true +} + +// HasBootstrapServerHost returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasBootstrapServerHost() bool { + if o != nil && o.BootstrapServerHost != nil { + return true + } + + return false +} + +// SetBootstrapServerHost gets a reference to the given string and assigns it to the BootstrapServerHost field. +func (o *KafkaRequestAllOf) SetBootstrapServerHost(v string) { + o.BootstrapServerHost = &v +} + +// GetAdminApiServerUrl returns the AdminApiServerUrl field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetAdminApiServerUrl() string { + if o == nil || o.AdminApiServerUrl == nil { + var ret string + return ret + } + return *o.AdminApiServerUrl +} + +// GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetAdminApiServerUrlOk() (*string, bool) { + if o == nil || o.AdminApiServerUrl == nil { + return nil, false + } + return o.AdminApiServerUrl, true +} + +// HasAdminApiServerUrl returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasAdminApiServerUrl() bool { + if o != nil && o.AdminApiServerUrl != nil { + return true + } + + return false +} + +// SetAdminApiServerUrl gets a reference to the given string and assigns it to the AdminApiServerUrl field. +func (o *KafkaRequestAllOf) SetAdminApiServerUrl(v string) { + o.AdminApiServerUrl = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *KafkaRequestAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequestAllOf) GetExpiresAt() time.Time { + if o == nil || o.ExpiresAt.Get() == nil { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequestAllOf) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *KafkaRequestAllOf) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *KafkaRequestAllOf) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *KafkaRequestAllOf) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetUpdatedAt() time.Time { + if o == nil || o.UpdatedAt == nil { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *KafkaRequestAllOf) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetFailedReason returns the FailedReason field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetFailedReason() string { + if o == nil || o.FailedReason == nil { + var ret string + return ret + } + return *o.FailedReason +} + +// GetFailedReasonOk returns a tuple with the FailedReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetFailedReasonOk() (*string, bool) { + if o == nil || o.FailedReason == nil { + return nil, false + } + return o.FailedReason, true +} + +// HasFailedReason returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasFailedReason() bool { + if o != nil && o.FailedReason != nil { + return true + } + + return false +} + +// SetFailedReason gets a reference to the given string and assigns it to the FailedReason field. +func (o *KafkaRequestAllOf) SetFailedReason(v string) { + o.FailedReason = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *KafkaRequestAllOf) SetVersion(v string) { + o.Version = &v +} + +// GetInstanceType returns the InstanceType field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetInstanceType() string { + if o == nil || o.InstanceType == nil { + var ret string + return ret + } + return *o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetInstanceTypeOk() (*string, bool) { + if o == nil || o.InstanceType == nil { + return nil, false + } + return o.InstanceType, true +} + +// HasInstanceType returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasInstanceType() bool { + if o != nil && o.InstanceType != nil { + return true + } + + return false +} + +// SetInstanceType gets a reference to the given string and assigns it to the InstanceType field. +func (o *KafkaRequestAllOf) SetInstanceType(v string) { + o.InstanceType = &v +} + +// GetInstanceTypeName returns the InstanceTypeName field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetInstanceTypeName() string { + if o == nil || o.InstanceTypeName == nil { + var ret string + return ret + } + return *o.InstanceTypeName +} + +// GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetInstanceTypeNameOk() (*string, bool) { + if o == nil || o.InstanceTypeName == nil { + return nil, false + } + return o.InstanceTypeName, true +} + +// HasInstanceTypeName returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasInstanceTypeName() bool { + if o != nil && o.InstanceTypeName != nil { + return true + } + + return false +} + +// SetInstanceTypeName gets a reference to the given string and assigns it to the InstanceTypeName field. +func (o *KafkaRequestAllOf) SetInstanceTypeName(v string) { + o.InstanceTypeName = &v +} + +// GetReauthenticationEnabled returns the ReauthenticationEnabled field value +func (o *KafkaRequestAllOf) GetReauthenticationEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.ReauthenticationEnabled +} + +// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetReauthenticationEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ReauthenticationEnabled, true +} + +// SetReauthenticationEnabled sets field value +func (o *KafkaRequestAllOf) SetReauthenticationEnabled(v bool) { + o.ReauthenticationEnabled = v +} + +// GetKafkaStorageSize returns the KafkaStorageSize field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetKafkaStorageSize() string { + if o == nil || o.KafkaStorageSize == nil { + var ret string + return ret + } + return *o.KafkaStorageSize +} + +// GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetKafkaStorageSizeOk() (*string, bool) { + if o == nil || o.KafkaStorageSize == nil { + return nil, false + } + return o.KafkaStorageSize, true +} + +// HasKafkaStorageSize returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasKafkaStorageSize() bool { + if o != nil && o.KafkaStorageSize != nil { + return true + } + + return false +} + +// SetKafkaStorageSize gets a reference to the given string and assigns it to the KafkaStorageSize field. +func (o *KafkaRequestAllOf) SetKafkaStorageSize(v string) { + o.KafkaStorageSize = &v +} + +// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { + if o == nil || o.MaxDataRetentionSize == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.MaxDataRetentionSize +} + +// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.MaxDataRetentionSize == nil { + return nil, false + } + return o.MaxDataRetentionSize, true +} + +// HasMaxDataRetentionSize returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasMaxDataRetentionSize() bool { + if o != nil && o.MaxDataRetentionSize != nil { + return true + } + + return false +} + +// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. +func (o *KafkaRequestAllOf) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { + o.MaxDataRetentionSize = &v +} + +// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetBrowserUrl() string { + if o == nil || o.BrowserUrl == nil { + var ret string + return ret + } + return *o.BrowserUrl +} + +// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetBrowserUrlOk() (*string, bool) { + if o == nil || o.BrowserUrl == nil { + return nil, false + } + return o.BrowserUrl, true +} + +// HasBrowserUrl returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasBrowserUrl() bool { + if o != nil && o.BrowserUrl != nil { + return true + } + + return false +} + +// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. +func (o *KafkaRequestAllOf) SetBrowserUrl(v string) { + o.BrowserUrl = &v +} + +// GetSizeId returns the SizeId field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetSizeId() string { + if o == nil || o.SizeId == nil { + var ret string + return ret + } + return *o.SizeId +} + +// GetSizeIdOk returns a tuple with the SizeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetSizeIdOk() (*string, bool) { + if o == nil || o.SizeId == nil { + return nil, false + } + return o.SizeId, true +} + +// HasSizeId returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasSizeId() bool { + if o != nil && o.SizeId != nil { + return true + } + + return false +} + +// SetSizeId gets a reference to the given string and assigns it to the SizeId field. +func (o *KafkaRequestAllOf) SetSizeId(v string) { + o.SizeId = &v +} + +// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetIngressThroughputPerSec() string { + if o == nil || o.IngressThroughputPerSec == nil { + var ret string + return ret + } + return *o.IngressThroughputPerSec +} + +// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetIngressThroughputPerSecOk() (*string, bool) { + if o == nil || o.IngressThroughputPerSec == nil { + return nil, false + } + return o.IngressThroughputPerSec, true +} + +// HasIngressThroughputPerSec returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasIngressThroughputPerSec() bool { + if o != nil && o.IngressThroughputPerSec != nil { + return true + } + + return false +} + +// SetIngressThroughputPerSec gets a reference to the given string and assigns it to the IngressThroughputPerSec field. +func (o *KafkaRequestAllOf) SetIngressThroughputPerSec(v string) { + o.IngressThroughputPerSec = &v +} + +// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetEgressThroughputPerSec() string { + if o == nil || o.EgressThroughputPerSec == nil { + var ret string + return ret + } + return *o.EgressThroughputPerSec +} + +// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetEgressThroughputPerSecOk() (*string, bool) { + if o == nil || o.EgressThroughputPerSec == nil { + return nil, false + } + return o.EgressThroughputPerSec, true +} + +// HasEgressThroughputPerSec returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasEgressThroughputPerSec() bool { + if o != nil && o.EgressThroughputPerSec != nil { + return true + } + + return false +} + +// SetEgressThroughputPerSec gets a reference to the given string and assigns it to the EgressThroughputPerSec field. +func (o *KafkaRequestAllOf) SetEgressThroughputPerSec(v string) { + o.EgressThroughputPerSec = &v +} + +// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetTotalMaxConnections() int32 { + if o == nil || o.TotalMaxConnections == nil { + var ret int32 + return ret + } + return *o.TotalMaxConnections +} + +// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetTotalMaxConnectionsOk() (*int32, bool) { + if o == nil || o.TotalMaxConnections == nil { + return nil, false + } + return o.TotalMaxConnections, true +} + +// HasTotalMaxConnections returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasTotalMaxConnections() bool { + if o != nil && o.TotalMaxConnections != nil { + return true + } + + return false +} + +// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. +func (o *KafkaRequestAllOf) SetTotalMaxConnections(v int32) { + o.TotalMaxConnections = &v +} + +// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetMaxPartitions() int32 { + if o == nil || o.MaxPartitions == nil { + var ret int32 + return ret + } + return *o.MaxPartitions +} + +// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMaxPartitionsOk() (*int32, bool) { + if o == nil || o.MaxPartitions == nil { + return nil, false + } + return o.MaxPartitions, true +} + +// HasMaxPartitions returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasMaxPartitions() bool { + if o != nil && o.MaxPartitions != nil { + return true + } + + return false +} + +// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. +func (o *KafkaRequestAllOf) SetMaxPartitions(v int32) { + o.MaxPartitions = &v +} + +// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriod() string { + if o == nil || o.MaxDataRetentionPeriod == nil { + var ret string + return ret + } + return *o.MaxDataRetentionPeriod +} + +// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriodOk() (*string, bool) { + if o == nil || o.MaxDataRetentionPeriod == nil { + return nil, false + } + return o.MaxDataRetentionPeriod, true +} + +// HasMaxDataRetentionPeriod returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasMaxDataRetentionPeriod() bool { + if o != nil && o.MaxDataRetentionPeriod != nil { + return true + } + + return false +} + +// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. +func (o *KafkaRequestAllOf) SetMaxDataRetentionPeriod(v string) { + o.MaxDataRetentionPeriod = &v +} + +// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSec() int32 { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + var ret int32 + return ret + } + return *o.MaxConnectionAttemptsPerSec +} + +// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + return nil, false + } + return o.MaxConnectionAttemptsPerSec, true +} + +// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasMaxConnectionAttemptsPerSec() bool { + if o != nil && o.MaxConnectionAttemptsPerSec != nil { + return true + } + + return false +} + +// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. +func (o *KafkaRequestAllOf) SetMaxConnectionAttemptsPerSec(v int32) { + o.MaxConnectionAttemptsPerSec = &v +} + +// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetBillingCloudAccountId() string { + if o == nil || o.BillingCloudAccountId == nil { + var ret string + return ret + } + return *o.BillingCloudAccountId +} + +// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetBillingCloudAccountIdOk() (*string, bool) { + if o == nil || o.BillingCloudAccountId == nil { + return nil, false + } + return o.BillingCloudAccountId, true +} + +// HasBillingCloudAccountId returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasBillingCloudAccountId() bool { + if o != nil && o.BillingCloudAccountId != nil { + return true + } + + return false +} + +// SetBillingCloudAccountId gets a reference to the given string and assigns it to the BillingCloudAccountId field. +func (o *KafkaRequestAllOf) SetBillingCloudAccountId(v string) { + o.BillingCloudAccountId = &v +} + +// GetMarketplace returns the Marketplace field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetMarketplace() string { + if o == nil || o.Marketplace == nil { + var ret string + return ret + } + return *o.Marketplace +} + +// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetMarketplaceOk() (*string, bool) { + if o == nil || o.Marketplace == nil { + return nil, false + } + return o.Marketplace, true +} + +// HasMarketplace returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasMarketplace() bool { + if o != nil && o.Marketplace != nil { + return true + } + + return false +} + +// SetMarketplace gets a reference to the given string and assigns it to the Marketplace field. +func (o *KafkaRequestAllOf) SetMarketplace(v string) { + o.Marketplace = &v +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise. +func (o *KafkaRequestAllOf) GetBillingModel() string { + if o == nil || o.BillingModel == nil { + var ret string + return ret + } + return *o.BillingModel +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestAllOf) GetBillingModelOk() (*string, bool) { + if o == nil || o.BillingModel == nil { + return nil, false + } + return o.BillingModel, true +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *KafkaRequestAllOf) HasBillingModel() bool { + if o != nil && o.BillingModel != nil { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. +func (o *KafkaRequestAllOf) SetBillingModel(v string) { + o.BillingModel = &v +} + +func (o KafkaRequestAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["multi_az"] = o.MultiAz + } + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.BootstrapServerHost != nil { + toSerialize["bootstrap_server_host"] = o.BootstrapServerHost + } + if o.AdminApiServerUrl != nil { + toSerialize["admin_api_server_url"] = o.AdminApiServerUrl + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.FailedReason != nil { + toSerialize["failed_reason"] = o.FailedReason + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if o.InstanceType != nil { + toSerialize["instance_type"] = o.InstanceType + } + if o.InstanceTypeName != nil { + toSerialize["instance_type_name"] = o.InstanceTypeName + } + if true { + toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled + } + if o.KafkaStorageSize != nil { + toSerialize["kafka_storage_size"] = o.KafkaStorageSize + } + if o.MaxDataRetentionSize != nil { + toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize + } + if o.BrowserUrl != nil { + toSerialize["browser_url"] = o.BrowserUrl + } + if o.SizeId != nil { + toSerialize["size_id"] = o.SizeId + } + if o.IngressThroughputPerSec != nil { + toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec + } + if o.EgressThroughputPerSec != nil { + toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec + } + if o.TotalMaxConnections != nil { + toSerialize["total_max_connections"] = o.TotalMaxConnections + } + if o.MaxPartitions != nil { + toSerialize["max_partitions"] = o.MaxPartitions + } + if o.MaxDataRetentionPeriod != nil { + toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod + } + if o.MaxConnectionAttemptsPerSec != nil { + toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec + } + if o.BillingCloudAccountId != nil { + toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId + } + if o.Marketplace != nil { + toSerialize["marketplace"] = o.Marketplace + } + if o.BillingModel != nil { + toSerialize["billing_model"] = o.BillingModel + } + return json.Marshal(toSerialize) +} + +type NullableKafkaRequestAllOf struct { + value *KafkaRequestAllOf + isSet bool +} + +func (v NullableKafkaRequestAllOf) Get() *KafkaRequestAllOf { + return v.value +} + +func (v *NullableKafkaRequestAllOf) Set(val *KafkaRequestAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaRequestAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaRequestAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaRequestAllOf(val *KafkaRequestAllOf) *NullableKafkaRequestAllOf { + return &NullableKafkaRequestAllOf{value: val, isSet: true} +} + +func (v NullableKafkaRequestAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaRequestAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go new file mode 100644 index 00000000..228b48ff --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go @@ -0,0 +1,225 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// KafkaRequestList struct for KafkaRequestList +type KafkaRequestList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []KafkaRequest `json:"items"` +} + +// NewKafkaRequestList instantiates a new KafkaRequestList 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 NewKafkaRequestList(kind string, page int32, size int32, total int32, items []KafkaRequest) *KafkaRequestList { + this := KafkaRequestList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewKafkaRequestListWithDefaults instantiates a new KafkaRequestList 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 NewKafkaRequestListWithDefaults() *KafkaRequestList { + this := KafkaRequestList{} + return &this +} + +// GetKind returns the Kind field value +func (o *KafkaRequestList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *KafkaRequestList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *KafkaRequestList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *KafkaRequestList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *KafkaRequestList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *KafkaRequestList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *KafkaRequestList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *KafkaRequestList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *KafkaRequestList) GetItems() []KafkaRequest { + if o == nil { + var ret []KafkaRequest + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *KafkaRequestList) GetItemsOk() (*[]KafkaRequest, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *KafkaRequestList) SetItems(v []KafkaRequest) { + o.Items = v +} + +func (o KafkaRequestList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableKafkaRequestList struct { + value *KafkaRequestList + isSet bool +} + +func (v NullableKafkaRequestList) Get() *KafkaRequestList { + return v.value +} + +func (v *NullableKafkaRequestList) Set(val *KafkaRequestList) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaRequestList) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaRequestList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaRequestList(val *KafkaRequestList) *NullableKafkaRequestList { + return &NullableKafkaRequestList{value: val, isSet: true} +} + +func (v NullableKafkaRequestList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaRequestList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go new file mode 100644 index 00000000..a16a168a --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// KafkaRequestListAllOf struct for KafkaRequestListAllOf +type KafkaRequestListAllOf struct { + Items *[]KafkaRequest `json:"items,omitempty"` +} + +// NewKafkaRequestListAllOf instantiates a new KafkaRequestListAllOf 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 NewKafkaRequestListAllOf() *KafkaRequestListAllOf { + this := KafkaRequestListAllOf{} + return &this +} + +// NewKafkaRequestListAllOfWithDefaults instantiates a new KafkaRequestListAllOf 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 NewKafkaRequestListAllOfWithDefaults() *KafkaRequestListAllOf { + this := KafkaRequestListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *KafkaRequestListAllOf) GetItems() []KafkaRequest { + if o == nil || o.Items == nil { + var ret []KafkaRequest + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestListAllOf) GetItemsOk() (*[]KafkaRequest, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *KafkaRequestListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []KafkaRequest and assigns it to the Items field. +func (o *KafkaRequestListAllOf) SetItems(v []KafkaRequest) { + o.Items = &v +} + +func (o KafkaRequestListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableKafkaRequestListAllOf struct { + value *KafkaRequestListAllOf + isSet bool +} + +func (v NullableKafkaRequestListAllOf) Get() *KafkaRequestListAllOf { + return v.value +} + +func (v *NullableKafkaRequestListAllOf) Set(val *KafkaRequestListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaRequestListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaRequestListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaRequestListAllOf(val *KafkaRequestListAllOf) *NullableKafkaRequestListAllOf { + return &NullableKafkaRequestListAllOf{value: val, isSet: true} +} + +func (v NullableKafkaRequestListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaRequestListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go new file mode 100644 index 00000000..28965221 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go @@ -0,0 +1,409 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// KafkaRequestPayload Schema for the request body sent to /kafkas POST +type KafkaRequestPayload struct { + // The cloud provider where the Kafka cluster will be created in + CloudProvider *string `json:"cloud_provider,omitempty"` + // The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. + Name string `json:"name"` + // The region where the Kafka cluster will be created in + Region *string `json:"region,omitempty"` + // Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. The default value is true + ReauthenticationEnabled NullableBool `json:"reauthentication_enabled,omitempty"` + // kafka plan in a format of . + Plan *string `json:"plan,omitempty"` + // cloud account id used to purchase the instance + BillingCloudAccountId NullableString `json:"billing_cloud_account_id,omitempty"` + // marketplace where the instance is purchased on + Marketplace NullableString `json:"marketplace,omitempty"` + // billing model to use + BillingModel NullableString `json:"billing_model,omitempty"` +} + +// NewKafkaRequestPayload instantiates a new KafkaRequestPayload 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 NewKafkaRequestPayload(name string) *KafkaRequestPayload { + this := KafkaRequestPayload{} + this.Name = name + return &this +} + +// NewKafkaRequestPayloadWithDefaults instantiates a new KafkaRequestPayload 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 NewKafkaRequestPayloadWithDefaults() *KafkaRequestPayload { + this := KafkaRequestPayload{} + return &this +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *KafkaRequestPayload) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestPayload) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *KafkaRequestPayload) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetName returns the Name field value +func (o *KafkaRequestPayload) 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 *KafkaRequestPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KafkaRequestPayload) SetName(v string) { + o.Name = v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *KafkaRequestPayload) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestPayload) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *KafkaRequestPayload) SetRegion(v string) { + o.Region = &v +} + +// GetReauthenticationEnabled returns the ReauthenticationEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequestPayload) GetReauthenticationEnabled() bool { + if o == nil || o.ReauthenticationEnabled.Get() == nil { + var ret bool + return ret + } + return *o.ReauthenticationEnabled.Get() +} + +// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequestPayload) GetReauthenticationEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.ReauthenticationEnabled.Get(), o.ReauthenticationEnabled.IsSet() +} + +// HasReauthenticationEnabled returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasReauthenticationEnabled() bool { + if o != nil && o.ReauthenticationEnabled.IsSet() { + return true + } + + return false +} + +// SetReauthenticationEnabled gets a reference to the given NullableBool and assigns it to the ReauthenticationEnabled field. +func (o *KafkaRequestPayload) SetReauthenticationEnabled(v bool) { + o.ReauthenticationEnabled.Set(&v) +} +// SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil +func (o *KafkaRequestPayload) SetReauthenticationEnabledNil() { + o.ReauthenticationEnabled.Set(nil) +} + +// UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil +func (o *KafkaRequestPayload) UnsetReauthenticationEnabled() { + o.ReauthenticationEnabled.Unset() +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *KafkaRequestPayload) GetPlan() string { + if o == nil || o.Plan == nil { + var ret string + return ret + } + return *o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KafkaRequestPayload) GetPlanOk() (*string, bool) { + if o == nil || o.Plan == nil { + return nil, false + } + return o.Plan, true +} + +// HasPlan returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasPlan() bool { + if o != nil && o.Plan != nil { + return true + } + + return false +} + +// SetPlan gets a reference to the given string and assigns it to the Plan field. +func (o *KafkaRequestPayload) SetPlan(v string) { + o.Plan = &v +} + +// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequestPayload) GetBillingCloudAccountId() string { + if o == nil || o.BillingCloudAccountId.Get() == nil { + var ret string + return ret + } + return *o.BillingCloudAccountId.Get() +} + +// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequestPayload) GetBillingCloudAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BillingCloudAccountId.Get(), o.BillingCloudAccountId.IsSet() +} + +// HasBillingCloudAccountId returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasBillingCloudAccountId() bool { + if o != nil && o.BillingCloudAccountId.IsSet() { + return true + } + + return false +} + +// SetBillingCloudAccountId gets a reference to the given NullableString and assigns it to the BillingCloudAccountId field. +func (o *KafkaRequestPayload) SetBillingCloudAccountId(v string) { + o.BillingCloudAccountId.Set(&v) +} +// SetBillingCloudAccountIdNil sets the value for BillingCloudAccountId to be an explicit nil +func (o *KafkaRequestPayload) SetBillingCloudAccountIdNil() { + o.BillingCloudAccountId.Set(nil) +} + +// UnsetBillingCloudAccountId ensures that no value is present for BillingCloudAccountId, not even an explicit nil +func (o *KafkaRequestPayload) UnsetBillingCloudAccountId() { + o.BillingCloudAccountId.Unset() +} + +// GetMarketplace returns the Marketplace field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequestPayload) GetMarketplace() string { + if o == nil || o.Marketplace.Get() == nil { + var ret string + return ret + } + return *o.Marketplace.Get() +} + +// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequestPayload) GetMarketplaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Marketplace.Get(), o.Marketplace.IsSet() +} + +// HasMarketplace returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasMarketplace() bool { + if o != nil && o.Marketplace.IsSet() { + return true + } + + return false +} + +// SetMarketplace gets a reference to the given NullableString and assigns it to the Marketplace field. +func (o *KafkaRequestPayload) SetMarketplace(v string) { + o.Marketplace.Set(&v) +} +// SetMarketplaceNil sets the value for Marketplace to be an explicit nil +func (o *KafkaRequestPayload) SetMarketplaceNil() { + o.Marketplace.Set(nil) +} + +// UnsetMarketplace ensures that no value is present for Marketplace, not even an explicit nil +func (o *KafkaRequestPayload) UnsetMarketplace() { + o.Marketplace.Unset() +} + +// GetBillingModel returns the BillingModel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaRequestPayload) GetBillingModel() string { + if o == nil || o.BillingModel.Get() == nil { + var ret string + return ret + } + return *o.BillingModel.Get() +} + +// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaRequestPayload) GetBillingModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BillingModel.Get(), o.BillingModel.IsSet() +} + +// HasBillingModel returns a boolean if a field has been set. +func (o *KafkaRequestPayload) HasBillingModel() bool { + if o != nil && o.BillingModel.IsSet() { + return true + } + + return false +} + +// SetBillingModel gets a reference to the given NullableString and assigns it to the BillingModel field. +func (o *KafkaRequestPayload) SetBillingModel(v string) { + o.BillingModel.Set(&v) +} +// SetBillingModelNil sets the value for BillingModel to be an explicit nil +func (o *KafkaRequestPayload) SetBillingModelNil() { + o.BillingModel.Set(nil) +} + +// UnsetBillingModel ensures that no value is present for BillingModel, not even an explicit nil +func (o *KafkaRequestPayload) UnsetBillingModel() { + o.BillingModel.Unset() +} + +func (o KafkaRequestPayload) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["name"] = o.Name + } + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.ReauthenticationEnabled.IsSet() { + toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled.Get() + } + if o.Plan != nil { + toSerialize["plan"] = o.Plan + } + if o.BillingCloudAccountId.IsSet() { + toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId.Get() + } + if o.Marketplace.IsSet() { + toSerialize["marketplace"] = o.Marketplace.Get() + } + if o.BillingModel.IsSet() { + toSerialize["billing_model"] = o.BillingModel.Get() + } + return json.Marshal(toSerialize) +} + +type NullableKafkaRequestPayload struct { + value *KafkaRequestPayload + isSet bool +} + +func (v NullableKafkaRequestPayload) Get() *KafkaRequestPayload { + return v.value +} + +func (v *NullableKafkaRequestPayload) Set(val *KafkaRequestPayload) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaRequestPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaRequestPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaRequestPayload(val *KafkaRequestPayload) *NullableKafkaRequestPayload { + return &NullableKafkaRequestPayload{value: val, isSet: true} +} + +func (v NullableKafkaRequestPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaRequestPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go new file mode 100644 index 00000000..65ccd6ba --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go @@ -0,0 +1,173 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// KafkaUpdateRequest struct for KafkaUpdateRequest +type KafkaUpdateRequest struct { + Owner NullableString `json:"owner,omitempty"` + // Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. + ReauthenticationEnabled NullableBool `json:"reauthentication_enabled,omitempty"` +} + +// NewKafkaUpdateRequest instantiates a new KafkaUpdateRequest 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 NewKafkaUpdateRequest() *KafkaUpdateRequest { + this := KafkaUpdateRequest{} + return &this +} + +// NewKafkaUpdateRequestWithDefaults instantiates a new KafkaUpdateRequest 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 NewKafkaUpdateRequestWithDefaults() *KafkaUpdateRequest { + this := KafkaUpdateRequest{} + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaUpdateRequest) GetOwner() string { + if o == nil || o.Owner.Get() == nil { + var ret string + return ret + } + return *o.Owner.Get() +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaUpdateRequest) GetOwnerOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Owner.Get(), o.Owner.IsSet() +} + +// HasOwner returns a boolean if a field has been set. +func (o *KafkaUpdateRequest) HasOwner() bool { + if o != nil && o.Owner.IsSet() { + return true + } + + return false +} + +// SetOwner gets a reference to the given NullableString and assigns it to the Owner field. +func (o *KafkaUpdateRequest) SetOwner(v string) { + o.Owner.Set(&v) +} +// SetOwnerNil sets the value for Owner to be an explicit nil +func (o *KafkaUpdateRequest) SetOwnerNil() { + o.Owner.Set(nil) +} + +// UnsetOwner ensures that no value is present for Owner, not even an explicit nil +func (o *KafkaUpdateRequest) UnsetOwner() { + o.Owner.Unset() +} + +// GetReauthenticationEnabled returns the ReauthenticationEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KafkaUpdateRequest) GetReauthenticationEnabled() bool { + if o == nil || o.ReauthenticationEnabled.Get() == nil { + var ret bool + return ret + } + return *o.ReauthenticationEnabled.Get() +} + +// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KafkaUpdateRequest) GetReauthenticationEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.ReauthenticationEnabled.Get(), o.ReauthenticationEnabled.IsSet() +} + +// HasReauthenticationEnabled returns a boolean if a field has been set. +func (o *KafkaUpdateRequest) HasReauthenticationEnabled() bool { + if o != nil && o.ReauthenticationEnabled.IsSet() { + return true + } + + return false +} + +// SetReauthenticationEnabled gets a reference to the given NullableBool and assigns it to the ReauthenticationEnabled field. +func (o *KafkaUpdateRequest) SetReauthenticationEnabled(v bool) { + o.ReauthenticationEnabled.Set(&v) +} +// SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil +func (o *KafkaUpdateRequest) SetReauthenticationEnabledNil() { + o.ReauthenticationEnabled.Set(nil) +} + +// UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil +func (o *KafkaUpdateRequest) UnsetReauthenticationEnabled() { + o.ReauthenticationEnabled.Unset() +} + +func (o KafkaUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner.IsSet() { + toSerialize["owner"] = o.Owner.Get() + } + if o.ReauthenticationEnabled.IsSet() { + toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled.Get() + } + return json.Marshal(toSerialize) +} + +type NullableKafkaUpdateRequest struct { + value *KafkaUpdateRequest + isSet bool +} + +func (v NullableKafkaUpdateRequest) Get() *KafkaUpdateRequest { + return v.value +} + +func (v *NullableKafkaUpdateRequest) Set(val *KafkaUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKafkaUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKafkaUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKafkaUpdateRequest(val *KafkaUpdateRequest) *NullableKafkaUpdateRequest { + return &NullableKafkaUpdateRequest{value: val, isSet: true} +} + +func (v NullableKafkaUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKafkaUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go new file mode 100644 index 00000000..7c5acb46 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go @@ -0,0 +1,225 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ObjectReference `json:"items"` +} + +// NewList instantiates a new List 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 NewList(kind string, page int32, size int32, total int32, items []ObjectReference) *List { + this := List{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value +func (o *List) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *List) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *List) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *List) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *List) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *List) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *List) GetItems() []ObjectReference { + if o == nil { + var ret []ObjectReference + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *List) GetItemsOk() (*[]ObjectReference, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *List) SetItems(v []ObjectReference) { + o.Items = v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go new file mode 100644 index 00000000..f8507d45 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go @@ -0,0 +1,188 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// MetricsInstantQueryList struct for MetricsInstantQueryList +type MetricsInstantQueryList struct { + Kind *string `json:"kind,omitempty"` + Id *string `json:"id,omitempty"` + Items *[]InstantQuery `json:"items,omitempty"` +} + +// NewMetricsInstantQueryList instantiates a new MetricsInstantQueryList 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 NewMetricsInstantQueryList() *MetricsInstantQueryList { + this := MetricsInstantQueryList{} + return &this +} + +// NewMetricsInstantQueryListWithDefaults instantiates a new MetricsInstantQueryList 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 NewMetricsInstantQueryListWithDefaults() *MetricsInstantQueryList { + this := MetricsInstantQueryList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *MetricsInstantQueryList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsInstantQueryList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *MetricsInstantQueryList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *MetricsInstantQueryList) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetricsInstantQueryList) GetId() string { + if o == nil || o.Id == nil { + 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 *MetricsInstantQueryList) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetricsInstantQueryList) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *MetricsInstantQueryList) SetId(v string) { + o.Id = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MetricsInstantQueryList) GetItems() []InstantQuery { + if o == nil || o.Items == nil { + var ret []InstantQuery + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsInstantQueryList) GetItemsOk() (*[]InstantQuery, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MetricsInstantQueryList) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []InstantQuery and assigns it to the Items field. +func (o *MetricsInstantQueryList) SetItems(v []InstantQuery) { + o.Items = &v +} + +func (o MetricsInstantQueryList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsInstantQueryList struct { + value *MetricsInstantQueryList + isSet bool +} + +func (v NullableMetricsInstantQueryList) Get() *MetricsInstantQueryList { + return v.value +} + +func (v *NullableMetricsInstantQueryList) Set(val *MetricsInstantQueryList) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsInstantQueryList) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsInstantQueryList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsInstantQueryList(val *MetricsInstantQueryList) *NullableMetricsInstantQueryList { + return &NullableMetricsInstantQueryList{value: val, isSet: true} +} + +func (v NullableMetricsInstantQueryList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsInstantQueryList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go new file mode 100644 index 00000000..d906b834 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go @@ -0,0 +1,188 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// MetricsInstantQueryListAllOf struct for MetricsInstantQueryListAllOf +type MetricsInstantQueryListAllOf struct { + Kind *string `json:"kind,omitempty"` + Id *string `json:"id,omitempty"` + Items *[]InstantQuery `json:"items,omitempty"` +} + +// NewMetricsInstantQueryListAllOf instantiates a new MetricsInstantQueryListAllOf 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 NewMetricsInstantQueryListAllOf() *MetricsInstantQueryListAllOf { + this := MetricsInstantQueryListAllOf{} + return &this +} + +// NewMetricsInstantQueryListAllOfWithDefaults instantiates a new MetricsInstantQueryListAllOf 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 NewMetricsInstantQueryListAllOfWithDefaults() *MetricsInstantQueryListAllOf { + this := MetricsInstantQueryListAllOf{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *MetricsInstantQueryListAllOf) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsInstantQueryListAllOf) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *MetricsInstantQueryListAllOf) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *MetricsInstantQueryListAllOf) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetricsInstantQueryListAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *MetricsInstantQueryListAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetricsInstantQueryListAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *MetricsInstantQueryListAllOf) SetId(v string) { + o.Id = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MetricsInstantQueryListAllOf) GetItems() []InstantQuery { + if o == nil || o.Items == nil { + var ret []InstantQuery + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsInstantQueryListAllOf) GetItemsOk() (*[]InstantQuery, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MetricsInstantQueryListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []InstantQuery and assigns it to the Items field. +func (o *MetricsInstantQueryListAllOf) SetItems(v []InstantQuery) { + o.Items = &v +} + +func (o MetricsInstantQueryListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsInstantQueryListAllOf struct { + value *MetricsInstantQueryListAllOf + isSet bool +} + +func (v NullableMetricsInstantQueryListAllOf) Get() *MetricsInstantQueryListAllOf { + return v.value +} + +func (v *NullableMetricsInstantQueryListAllOf) Set(val *MetricsInstantQueryListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsInstantQueryListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsInstantQueryListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsInstantQueryListAllOf(val *MetricsInstantQueryListAllOf) *NullableMetricsInstantQueryListAllOf { + return &NullableMetricsInstantQueryListAllOf{value: val, isSet: true} +} + +func (v NullableMetricsInstantQueryListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsInstantQueryListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go new file mode 100644 index 00000000..ee376876 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go @@ -0,0 +1,188 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// MetricsRangeQueryList struct for MetricsRangeQueryList +type MetricsRangeQueryList struct { + Kind *string `json:"kind,omitempty"` + Id *string `json:"id,omitempty"` + Items *[]RangeQuery `json:"items,omitempty"` +} + +// NewMetricsRangeQueryList instantiates a new MetricsRangeQueryList 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 NewMetricsRangeQueryList() *MetricsRangeQueryList { + this := MetricsRangeQueryList{} + return &this +} + +// NewMetricsRangeQueryListWithDefaults instantiates a new MetricsRangeQueryList 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 NewMetricsRangeQueryListWithDefaults() *MetricsRangeQueryList { + this := MetricsRangeQueryList{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *MetricsRangeQueryList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRangeQueryList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *MetricsRangeQueryList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *MetricsRangeQueryList) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetricsRangeQueryList) GetId() string { + if o == nil || o.Id == nil { + 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 *MetricsRangeQueryList) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetricsRangeQueryList) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *MetricsRangeQueryList) SetId(v string) { + o.Id = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MetricsRangeQueryList) GetItems() []RangeQuery { + if o == nil || o.Items == nil { + var ret []RangeQuery + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRangeQueryList) GetItemsOk() (*[]RangeQuery, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MetricsRangeQueryList) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []RangeQuery and assigns it to the Items field. +func (o *MetricsRangeQueryList) SetItems(v []RangeQuery) { + o.Items = &v +} + +func (o MetricsRangeQueryList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsRangeQueryList struct { + value *MetricsRangeQueryList + isSet bool +} + +func (v NullableMetricsRangeQueryList) Get() *MetricsRangeQueryList { + return v.value +} + +func (v *NullableMetricsRangeQueryList) Set(val *MetricsRangeQueryList) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsRangeQueryList) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsRangeQueryList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsRangeQueryList(val *MetricsRangeQueryList) *NullableMetricsRangeQueryList { + return &NullableMetricsRangeQueryList{value: val, isSet: true} +} + +func (v NullableMetricsRangeQueryList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsRangeQueryList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go new file mode 100644 index 00000000..04080b7b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go @@ -0,0 +1,188 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// MetricsRangeQueryListAllOf struct for MetricsRangeQueryListAllOf +type MetricsRangeQueryListAllOf struct { + Kind *string `json:"kind,omitempty"` + Id *string `json:"id,omitempty"` + Items *[]RangeQuery `json:"items,omitempty"` +} + +// NewMetricsRangeQueryListAllOf instantiates a new MetricsRangeQueryListAllOf 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 NewMetricsRangeQueryListAllOf() *MetricsRangeQueryListAllOf { + this := MetricsRangeQueryListAllOf{} + return &this +} + +// NewMetricsRangeQueryListAllOfWithDefaults instantiates a new MetricsRangeQueryListAllOf 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 NewMetricsRangeQueryListAllOfWithDefaults() *MetricsRangeQueryListAllOf { + this := MetricsRangeQueryListAllOf{} + return &this +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *MetricsRangeQueryListAllOf) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRangeQueryListAllOf) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *MetricsRangeQueryListAllOf) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *MetricsRangeQueryListAllOf) SetKind(v string) { + o.Kind = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *MetricsRangeQueryListAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *MetricsRangeQueryListAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *MetricsRangeQueryListAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *MetricsRangeQueryListAllOf) SetId(v string) { + o.Id = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MetricsRangeQueryListAllOf) GetItems() []RangeQuery { + if o == nil || o.Items == nil { + var ret []RangeQuery + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricsRangeQueryListAllOf) GetItemsOk() (*[]RangeQuery, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MetricsRangeQueryListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []RangeQuery and assigns it to the Items field. +func (o *MetricsRangeQueryListAllOf) SetItems(v []RangeQuery) { + o.Items = &v +} + +func (o MetricsRangeQueryListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableMetricsRangeQueryListAllOf struct { + value *MetricsRangeQueryListAllOf + isSet bool +} + +func (v NullableMetricsRangeQueryListAllOf) Get() *MetricsRangeQueryListAllOf { + return v.value +} + +func (v *NullableMetricsRangeQueryListAllOf) Set(val *MetricsRangeQueryListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetricsRangeQueryListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricsRangeQueryListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricsRangeQueryListAllOf(val *MetricsRangeQueryListAllOf) *NullableMetricsRangeQueryListAllOf { + return &NullableMetricsRangeQueryListAllOf{value: val, isSet: true} +} + +func (v NullableMetricsRangeQueryListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricsRangeQueryListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go new file mode 100644 index 00000000..e4b979ef --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go @@ -0,0 +1,167 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference(id string, kind string, href string) *ObjectReference { + this := ObjectReference{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetId returns the Id field value +func (o *ObjectReference) 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ObjectReference) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *ObjectReference) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ObjectReference) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *ObjectReference) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ObjectReference) SetHref(v string) { + o.Href = v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go new file mode 100644 index 00000000..6270529c --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go @@ -0,0 +1,152 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// RangeQuery struct for RangeQuery +type RangeQuery struct { + Metric *map[string]string `json:"metric,omitempty"` + Values *[]Values `json:"values,omitempty"` +} + +// NewRangeQuery instantiates a new RangeQuery 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 NewRangeQuery() *RangeQuery { + this := RangeQuery{} + return &this +} + +// NewRangeQueryWithDefaults instantiates a new RangeQuery 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 NewRangeQueryWithDefaults() *RangeQuery { + this := RangeQuery{} + return &this +} + +// GetMetric returns the Metric field value if set, zero value otherwise. +func (o *RangeQuery) GetMetric() map[string]string { + if o == nil || o.Metric == nil { + var ret map[string]string + return ret + } + return *o.Metric +} + +// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RangeQuery) GetMetricOk() (*map[string]string, bool) { + if o == nil || o.Metric == nil { + return nil, false + } + return o.Metric, true +} + +// HasMetric returns a boolean if a field has been set. +func (o *RangeQuery) HasMetric() bool { + if o != nil && o.Metric != nil { + return true + } + + return false +} + +// SetMetric gets a reference to the given map[string]string and assigns it to the Metric field. +func (o *RangeQuery) SetMetric(v map[string]string) { + o.Metric = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *RangeQuery) GetValues() []Values { + if o == nil || o.Values == nil { + var ret []Values + return ret + } + return *o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RangeQuery) GetValuesOk() (*[]Values, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *RangeQuery) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []Values and assigns it to the Values field. +func (o *RangeQuery) SetValues(v []Values) { + o.Values = &v +} + +func (o RangeQuery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Metric != nil { + toSerialize["metric"] = o.Metric + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + return json.Marshal(toSerialize) +} + +type NullableRangeQuery struct { + value *RangeQuery + isSet bool +} + +func (v NullableRangeQuery) Get() *RangeQuery { + return v.value +} + +func (v *NullableRangeQuery) Set(val *RangeQuery) { + v.value = val + v.isSet = true +} + +func (v NullableRangeQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableRangeQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRangeQuery(val *RangeQuery) *NullableRangeQuery { + return &NullableRangeQuery{value: val, isSet: true} +} + +func (v NullableRangeQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRangeQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go new file mode 100644 index 00000000..735aa59f --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go @@ -0,0 +1,140 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// RegionCapacityListItem schema for a kafka instance type capacity in region +type RegionCapacityListItem struct { + // kafka instance type + InstanceType string `json:"instance_type"` + // list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits + AvailableSizes []string `json:"available_sizes"` +} + +// NewRegionCapacityListItem instantiates a new RegionCapacityListItem 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 NewRegionCapacityListItem(instanceType string, availableSizes []string) *RegionCapacityListItem { + this := RegionCapacityListItem{} + this.InstanceType = instanceType + this.AvailableSizes = availableSizes + return &this +} + +// NewRegionCapacityListItemWithDefaults instantiates a new RegionCapacityListItem 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 NewRegionCapacityListItemWithDefaults() *RegionCapacityListItem { + this := RegionCapacityListItem{} + return &this +} + +// GetInstanceType returns the InstanceType field value +func (o *RegionCapacityListItem) GetInstanceType() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value +// and a boolean to check if the value has been set. +func (o *RegionCapacityListItem) GetInstanceTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceType, true +} + +// SetInstanceType sets field value +func (o *RegionCapacityListItem) SetInstanceType(v string) { + o.InstanceType = v +} + +// GetAvailableSizes returns the AvailableSizes field value +func (o *RegionCapacityListItem) GetAvailableSizes() []string { + if o == nil { + var ret []string + return ret + } + + return o.AvailableSizes +} + +// GetAvailableSizesOk returns a tuple with the AvailableSizes field value +// and a boolean to check if the value has been set. +func (o *RegionCapacityListItem) GetAvailableSizesOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.AvailableSizes, true +} + +// SetAvailableSizes sets field value +func (o *RegionCapacityListItem) SetAvailableSizes(v []string) { + o.AvailableSizes = v +} + +func (o RegionCapacityListItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["instance_type"] = o.InstanceType + } + if true { + toSerialize["available_sizes"] = o.AvailableSizes + } + return json.Marshal(toSerialize) +} + +type NullableRegionCapacityListItem struct { + value *RegionCapacityListItem + isSet bool +} + +func (v NullableRegionCapacityListItem) Get() *RegionCapacityListItem { + return v.value +} + +func (v *NullableRegionCapacityListItem) Set(val *RegionCapacityListItem) { + v.value = val + v.isSet = true +} + +func (v NullableRegionCapacityListItem) IsSet() bool { + return v.isSet +} + +func (v *NullableRegionCapacityListItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegionCapacityListItem(val *RegionCapacityListItem) *NullableRegionCapacityListItem { + return &NullableRegionCapacityListItem{value: val, isSet: true} +} + +func (v NullableRegionCapacityListItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegionCapacityListItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go new file mode 100644 index 00000000..6ac22781 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go @@ -0,0 +1,421 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// ServiceAccount Service Account created in MAS-SSO for the Kafka Cluster for authentication +type ServiceAccount struct { + // server generated unique id of the service account + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + ClientId *string `json:"client_id,omitempty"` + ClientSecret *string `json:"client_secret,omitempty"` + Owner *string `json:"owner,omitempty"` + CreatedBy *string `json:"created_by,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` +} + +// NewServiceAccount instantiates a new ServiceAccount 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 NewServiceAccount(id string, kind string, href string) *ServiceAccount { + this := ServiceAccount{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 NewServiceAccountWithDefaults() *ServiceAccount { + this := ServiceAccount{} + return &this +} + +// GetId returns the Id field value +func (o *ServiceAccount) 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 *ServiceAccount) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ServiceAccount) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *ServiceAccount) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ServiceAccount) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *ServiceAccount) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ServiceAccount) SetHref(v string) { + o.Href = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccount) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccount) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccount) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccount) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccount) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccount) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccount) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccount) SetDescription(v string) { + o.Description = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccount) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccount) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccount) SetClientId(v string) { + o.ClientId = &v +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *ServiceAccount) GetClientSecret() string { + if o == nil || o.ClientSecret == nil { + var ret string + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetClientSecretOk() (*string, bool) { + if o == nil || o.ClientSecret == nil { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *ServiceAccount) HasClientSecret() bool { + if o != nil && o.ClientSecret != nil { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. +func (o *ServiceAccount) SetClientSecret(v string) { + o.ClientSecret = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ServiceAccount) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ServiceAccount) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ServiceAccount) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ServiceAccount) GetCreatedBy() string { + if o == nil || o.CreatedBy == nil { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetCreatedByOk() (*string, bool) { + if o == nil || o.CreatedBy == nil { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ServiceAccount) HasCreatedBy() bool { + if o != nil && o.CreatedBy != nil { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ServiceAccount) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccount) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccount) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccount) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceAccount) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o ServiceAccount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.ClientSecret != nil { + toSerialize["client_secret"] = o.ClientSecret + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedBy != nil { + toSerialize["created_by"] = o.CreatedBy + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccount struct { + value *ServiceAccount + isSet bool +} + +func (v NullableServiceAccount) Get() *ServiceAccount { + return v.value +} + +func (v *NullableServiceAccount) Set(val *ServiceAccount) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccount(val *ServiceAccount) *NullableServiceAccount { + return &NullableServiceAccount{value: val, isSet: true} +} + +func (v NullableServiceAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go new file mode 100644 index 00000000..9f6c5eb0 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go @@ -0,0 +1,370 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// ServiceAccountAllOf struct for ServiceAccountAllOf +type ServiceAccountAllOf struct { + // server generated unique id of the service account + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + ClientId *string `json:"client_id,omitempty"` + ClientSecret *string `json:"client_secret,omitempty"` + Owner *string `json:"owner,omitempty"` + CreatedBy *string `json:"created_by,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` +} + +// NewServiceAccountAllOf instantiates a new ServiceAccountAllOf 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 NewServiceAccountAllOf() *ServiceAccountAllOf { + this := ServiceAccountAllOf{} + return &this +} + +// NewServiceAccountAllOfWithDefaults instantiates a new ServiceAccountAllOf 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 NewServiceAccountAllOfWithDefaults() *ServiceAccountAllOf { + this := ServiceAccountAllOf{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *ServiceAccountAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ServiceAccountAllOf) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccountAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountAllOf) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountAllOf) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountAllOf) SetDescription(v string) { + o.Description = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountAllOf) SetClientId(v string) { + o.ClientId = &v +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetClientSecret() string { + if o == nil || o.ClientSecret == nil { + var ret string + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountAllOf) GetClientSecretOk() (*string, bool) { + if o == nil || o.ClientSecret == nil { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasClientSecret() bool { + if o != nil && o.ClientSecret != nil { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. +func (o *ServiceAccountAllOf) SetClientSecret(v string) { + o.ClientSecret = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountAllOf) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ServiceAccountAllOf) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetCreatedBy() string { + if o == nil || o.CreatedBy == nil { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountAllOf) GetCreatedByOk() (*string, bool) { + if o == nil || o.CreatedBy == nil { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasCreatedBy() bool { + if o != nil && o.CreatedBy != nil { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ServiceAccountAllOf) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceAccountAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o ServiceAccountAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.ClientSecret != nil { + toSerialize["client_secret"] = o.ClientSecret + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedBy != nil { + toSerialize["created_by"] = o.CreatedBy + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountAllOf struct { + value *ServiceAccountAllOf + isSet bool +} + +func (v NullableServiceAccountAllOf) Get() *ServiceAccountAllOf { + return v.value +} + +func (v *NullableServiceAccountAllOf) Set(val *ServiceAccountAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountAllOf(val *ServiceAccountAllOf) *NullableServiceAccountAllOf { + return &NullableServiceAccountAllOf{value: val, isSet: true} +} + +func (v NullableServiceAccountAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go new file mode 100644 index 00000000..9e5e0e57 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go @@ -0,0 +1,138 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ServiceAccountList struct for ServiceAccountList +type ServiceAccountList struct { + Kind string `json:"kind"` + Items []ServiceAccountListItem `json:"items"` +} + +// NewServiceAccountList instantiates a new ServiceAccountList 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 NewServiceAccountList(kind string, items []ServiceAccountListItem) *ServiceAccountList { + this := ServiceAccountList{} + this.Kind = kind + this.Items = items + return &this +} + +// NewServiceAccountListWithDefaults instantiates a new ServiceAccountList 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 NewServiceAccountListWithDefaults() *ServiceAccountList { + this := ServiceAccountList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ServiceAccountList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ServiceAccountList) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value +func (o *ServiceAccountList) GetItems() []ServiceAccountListItem { + if o == nil { + var ret []ServiceAccountListItem + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountList) GetItemsOk() (*[]ServiceAccountListItem, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ServiceAccountList) SetItems(v []ServiceAccountListItem) { + o.Items = v +} + +func (o ServiceAccountList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountList struct { + value *ServiceAccountList + isSet bool +} + +func (v NullableServiceAccountList) Get() *ServiceAccountList { + return v.value +} + +func (v *NullableServiceAccountList) Set(val *ServiceAccountList) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountList) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountList(val *ServiceAccountList) *NullableServiceAccountList { + return &NullableServiceAccountList{value: val, isSet: true} +} + +func (v NullableServiceAccountList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go new file mode 100644 index 00000000..7b4f5809 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go @@ -0,0 +1,138 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ServiceAccountListAllOf struct for ServiceAccountListAllOf +type ServiceAccountListAllOf struct { + Kind string `json:"kind"` + Items []ServiceAccountListItem `json:"items"` +} + +// NewServiceAccountListAllOf instantiates a new ServiceAccountListAllOf 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 NewServiceAccountListAllOf(kind string, items []ServiceAccountListItem) *ServiceAccountListAllOf { + this := ServiceAccountListAllOf{} + this.Kind = kind + this.Items = items + return &this +} + +// NewServiceAccountListAllOfWithDefaults instantiates a new ServiceAccountListAllOf 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 NewServiceAccountListAllOfWithDefaults() *ServiceAccountListAllOf { + this := ServiceAccountListAllOf{} + return &this +} + +// GetKind returns the Kind field value +func (o *ServiceAccountListAllOf) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountListAllOf) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ServiceAccountListAllOf) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value +func (o *ServiceAccountListAllOf) GetItems() []ServiceAccountListItem { + if o == nil { + var ret []ServiceAccountListItem + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountListAllOf) GetItemsOk() (*[]ServiceAccountListItem, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ServiceAccountListAllOf) SetItems(v []ServiceAccountListItem) { + o.Items = v +} + +func (o ServiceAccountListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountListAllOf struct { + value *ServiceAccountListAllOf + isSet bool +} + +func (v NullableServiceAccountListAllOf) Get() *ServiceAccountListAllOf { + return v.value +} + +func (v *NullableServiceAccountListAllOf) Set(val *ServiceAccountListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountListAllOf(val *ServiceAccountListAllOf) *NullableServiceAccountListAllOf { + return &NullableServiceAccountListAllOf{value: val, isSet: true} +} + +func (v NullableServiceAccountListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go new file mode 100644 index 00000000..25a1a044 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go @@ -0,0 +1,391 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// ServiceAccountListItem struct for ServiceAccountListItem +type ServiceAccountListItem struct { + // server generated unique id of the service account + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + // client id of the service account + ClientId *string `json:"client_id,omitempty"` + // name of the service account + Name *string `json:"name,omitempty"` + // owner of the service account + Owner *string `json:"owner,omitempty"` + // service account created by the user + CreatedBy *string `json:"created_by,omitempty"` + // service account creation timestamp + CreatedAt *time.Time `json:"created_at,omitempty"` + // description of the service account + Description *string `json:"description,omitempty"` +} + +// NewServiceAccountListItem instantiates a new ServiceAccountListItem 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 NewServiceAccountListItem(id string, kind string, href string) *ServiceAccountListItem { + this := ServiceAccountListItem{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewServiceAccountListItemWithDefaults instantiates a new ServiceAccountListItem 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 NewServiceAccountListItemWithDefaults() *ServiceAccountListItem { + this := ServiceAccountListItem{} + return &this +} + +// GetId returns the Id field value +func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ServiceAccountListItem) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *ServiceAccountListItem) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ServiceAccountListItem) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *ServiceAccountListItem) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ServiceAccountListItem) SetHref(v string) { + o.Href = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountListItem) SetClientId(v string) { + o.ClientId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccountListItem) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountListItem) SetName(v string) { + o.Name = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ServiceAccountListItem) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetCreatedBy() string { + if o == nil || o.CreatedBy == nil { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetCreatedByOk() (*string, bool) { + if o == nil || o.CreatedBy == nil { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasCreatedBy() bool { + if o != nil && o.CreatedBy != nil { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ServiceAccountListItem) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItem) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceAccountListItem) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountListItem) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountListItem) SetDescription(v string) { + o.Description = &v +} + +func (o ServiceAccountListItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedBy != nil { + toSerialize["created_by"] = o.CreatedBy + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountListItem struct { + value *ServiceAccountListItem + isSet bool +} + +func (v NullableServiceAccountListItem) Get() *ServiceAccountListItem { + return v.value +} + +func (v *NullableServiceAccountListItem) Set(val *ServiceAccountListItem) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountListItem) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountListItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountListItem(val *ServiceAccountListItem) *NullableServiceAccountListItem { + return &NullableServiceAccountListItem{value: val, isSet: true} +} + +func (v NullableServiceAccountListItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountListItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go new file mode 100644 index 00000000..8e443322 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go @@ -0,0 +1,340 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// ServiceAccountListItemAllOf struct for ServiceAccountListItemAllOf +type ServiceAccountListItemAllOf struct { + // server generated unique id of the service account + Id *string `json:"id,omitempty"` + // client id of the service account + ClientId *string `json:"client_id,omitempty"` + // name of the service account + Name *string `json:"name,omitempty"` + // owner of the service account + Owner *string `json:"owner,omitempty"` + // service account created by the user + CreatedBy *string `json:"created_by,omitempty"` + // service account creation timestamp + CreatedAt *time.Time `json:"created_at,omitempty"` + // description of the service account + Description *string `json:"description,omitempty"` +} + +// NewServiceAccountListItemAllOf instantiates a new ServiceAccountListItemAllOf 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 NewServiceAccountListItemAllOf() *ServiceAccountListItemAllOf { + this := ServiceAccountListItemAllOf{} + return &this +} + +// NewServiceAccountListItemAllOfWithDefaults instantiates a new ServiceAccountListItemAllOf 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 NewServiceAccountListItemAllOfWithDefaults() *ServiceAccountListItemAllOf { + this := ServiceAccountListItemAllOf{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetId() string { + if o == nil || o.Id == nil { + 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 *ServiceAccountListItemAllOf) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ServiceAccountListItemAllOf) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountListItemAllOf) SetClientId(v string) { + o.ClientId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccountListItemAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountListItemAllOf) SetName(v string) { + o.Name = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItemAllOf) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ServiceAccountListItemAllOf) SetOwner(v string) { + o.Owner = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetCreatedBy() string { + if o == nil || o.CreatedBy == nil { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItemAllOf) GetCreatedByOk() (*string, bool) { + if o == nil || o.CreatedBy == nil { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasCreatedBy() bool { + if o != nil && o.CreatedBy != nil { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ServiceAccountListItemAllOf) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountListItemAllOf) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ServiceAccountListItemAllOf) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountListItemAllOf) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountListItemAllOf) SetDescription(v string) { + o.Description = &v +} + +func (o ServiceAccountListItemAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + if o.CreatedBy != nil { + toSerialize["created_by"] = o.CreatedBy + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountListItemAllOf struct { + value *ServiceAccountListItemAllOf + isSet bool +} + +func (v NullableServiceAccountListItemAllOf) Get() *ServiceAccountListItemAllOf { + return v.value +} + +func (v *NullableServiceAccountListItemAllOf) Set(val *ServiceAccountListItemAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountListItemAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountListItemAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountListItemAllOf(val *ServiceAccountListItemAllOf) *NullableServiceAccountListItemAllOf { + return &NullableServiceAccountListItemAllOf{value: val, isSet: true} +} + +func (v NullableServiceAccountListItemAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountListItemAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go new file mode 100644 index 00000000..c968f8a9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go @@ -0,0 +1,147 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// ServiceAccountRequest Schema for the request to create a service account +type ServiceAccountRequest struct { + // The name of the service account + Name string `json:"name"` + // A description for the service account + Description *string `json:"description,omitempty"` +} + +// NewServiceAccountRequest instantiates a new ServiceAccountRequest 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 NewServiceAccountRequest(name string) *ServiceAccountRequest { + this := ServiceAccountRequest{} + this.Name = name + return &this +} + +// NewServiceAccountRequestWithDefaults instantiates a new ServiceAccountRequest 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 NewServiceAccountRequestWithDefaults() *ServiceAccountRequest { + this := ServiceAccountRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ServiceAccountRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountRequest) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountRequest) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountRequest) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountRequest) SetDescription(v string) { + o.Description = &v +} + +func (o ServiceAccountRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountRequest struct { + value *ServiceAccountRequest + isSet bool +} + +func (v NullableServiceAccountRequest) Get() *ServiceAccountRequest { + return v.value +} + +func (v *NullableServiceAccountRequest) Set(val *ServiceAccountRequest) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountRequest(val *ServiceAccountRequest) *NullableServiceAccountRequest { + return &NullableServiceAccountRequest{value: val, isSet: true} +} + +func (v NullableServiceAccountRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go new file mode 100644 index 00000000..2832783c --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go @@ -0,0 +1,349 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SsoProvider SSO Provider +type SsoProvider struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + // name of the sso provider + Name *string `json:"name,omitempty"` + // base url + BaseUrl *string `json:"base_url,omitempty"` + TokenUrl *string `json:"token_url,omitempty"` + Jwks *string `json:"jwks,omitempty"` + ValidIssuer *string `json:"valid_issuer,omitempty"` +} + +// NewSsoProvider instantiates a new SsoProvider 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 NewSsoProvider(id string, kind string, href string) *SsoProvider { + this := SsoProvider{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewSsoProviderWithDefaults instantiates a new SsoProvider 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 NewSsoProviderWithDefaults() *SsoProvider { + this := SsoProvider{} + return &this +} + +// GetId returns the Id field value +func (o *SsoProvider) 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 *SsoProvider) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SsoProvider) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *SsoProvider) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *SsoProvider) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *SsoProvider) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *SsoProvider) SetHref(v string) { + o.Href = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SsoProvider) GetName() string { + if o == nil || o.Name == nil { + 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 *SsoProvider) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SsoProvider) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SsoProvider) SetName(v string) { + o.Name = &v +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *SsoProvider) GetBaseUrl() string { + if o == nil || o.BaseUrl == nil { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetBaseUrlOk() (*string, bool) { + if o == nil || o.BaseUrl == nil { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *SsoProvider) HasBaseUrl() bool { + if o != nil && o.BaseUrl != nil { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *SsoProvider) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetTokenUrl returns the TokenUrl field value if set, zero value otherwise. +func (o *SsoProvider) GetTokenUrl() string { + if o == nil || o.TokenUrl == nil { + var ret string + return ret + } + return *o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetTokenUrlOk() (*string, bool) { + if o == nil || o.TokenUrl == nil { + return nil, false + } + return o.TokenUrl, true +} + +// HasTokenUrl returns a boolean if a field has been set. +func (o *SsoProvider) HasTokenUrl() bool { + if o != nil && o.TokenUrl != nil { + return true + } + + return false +} + +// SetTokenUrl gets a reference to the given string and assigns it to the TokenUrl field. +func (o *SsoProvider) SetTokenUrl(v string) { + o.TokenUrl = &v +} + +// GetJwks returns the Jwks field value if set, zero value otherwise. +func (o *SsoProvider) GetJwks() string { + if o == nil || o.Jwks == nil { + var ret string + return ret + } + return *o.Jwks +} + +// GetJwksOk returns a tuple with the Jwks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetJwksOk() (*string, bool) { + if o == nil || o.Jwks == nil { + return nil, false + } + return o.Jwks, true +} + +// HasJwks returns a boolean if a field has been set. +func (o *SsoProvider) HasJwks() bool { + if o != nil && o.Jwks != nil { + return true + } + + return false +} + +// SetJwks gets a reference to the given string and assigns it to the Jwks field. +func (o *SsoProvider) SetJwks(v string) { + o.Jwks = &v +} + +// GetValidIssuer returns the ValidIssuer field value if set, zero value otherwise. +func (o *SsoProvider) GetValidIssuer() string { + if o == nil || o.ValidIssuer == nil { + var ret string + return ret + } + return *o.ValidIssuer +} + +// GetValidIssuerOk returns a tuple with the ValidIssuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProvider) GetValidIssuerOk() (*string, bool) { + if o == nil || o.ValidIssuer == nil { + return nil, false + } + return o.ValidIssuer, true +} + +// HasValidIssuer returns a boolean if a field has been set. +func (o *SsoProvider) HasValidIssuer() bool { + if o != nil && o.ValidIssuer != nil { + return true + } + + return false +} + +// SetValidIssuer gets a reference to the given string and assigns it to the ValidIssuer field. +func (o *SsoProvider) SetValidIssuer(v string) { + o.ValidIssuer = &v +} + +func (o SsoProvider) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.BaseUrl != nil { + toSerialize["base_url"] = o.BaseUrl + } + if o.TokenUrl != nil { + toSerialize["token_url"] = o.TokenUrl + } + if o.Jwks != nil { + toSerialize["jwks"] = o.Jwks + } + if o.ValidIssuer != nil { + toSerialize["valid_issuer"] = o.ValidIssuer + } + return json.Marshal(toSerialize) +} + +type NullableSsoProvider struct { + value *SsoProvider + isSet bool +} + +func (v NullableSsoProvider) Get() *SsoProvider { + return v.value +} + +func (v *NullableSsoProvider) Set(val *SsoProvider) { + v.value = val + v.isSet = true +} + +func (v NullableSsoProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableSsoProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSsoProvider(val *SsoProvider) *NullableSsoProvider { + return &NullableSsoProvider{value: val, isSet: true} +} + +func (v NullableSsoProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSsoProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go new file mode 100644 index 00000000..d25e2b65 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go @@ -0,0 +1,262 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SsoProviderAllOf struct for SsoProviderAllOf +type SsoProviderAllOf struct { + // name of the sso provider + Name *string `json:"name,omitempty"` + // base url + BaseUrl *string `json:"base_url,omitempty"` + TokenUrl *string `json:"token_url,omitempty"` + Jwks *string `json:"jwks,omitempty"` + ValidIssuer *string `json:"valid_issuer,omitempty"` +} + +// NewSsoProviderAllOf instantiates a new SsoProviderAllOf 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 NewSsoProviderAllOf() *SsoProviderAllOf { + this := SsoProviderAllOf{} + return &this +} + +// NewSsoProviderAllOfWithDefaults instantiates a new SsoProviderAllOf 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 NewSsoProviderAllOfWithDefaults() *SsoProviderAllOf { + this := SsoProviderAllOf{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SsoProviderAllOf) GetName() string { + if o == nil || o.Name == nil { + 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 *SsoProviderAllOf) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SsoProviderAllOf) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SsoProviderAllOf) SetName(v string) { + o.Name = &v +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *SsoProviderAllOf) GetBaseUrl() string { + if o == nil || o.BaseUrl == nil { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProviderAllOf) GetBaseUrlOk() (*string, bool) { + if o == nil || o.BaseUrl == nil { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *SsoProviderAllOf) HasBaseUrl() bool { + if o != nil && o.BaseUrl != nil { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *SsoProviderAllOf) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetTokenUrl returns the TokenUrl field value if set, zero value otherwise. +func (o *SsoProviderAllOf) GetTokenUrl() string { + if o == nil || o.TokenUrl == nil { + var ret string + return ret + } + return *o.TokenUrl +} + +// GetTokenUrlOk returns a tuple with the TokenUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProviderAllOf) GetTokenUrlOk() (*string, bool) { + if o == nil || o.TokenUrl == nil { + return nil, false + } + return o.TokenUrl, true +} + +// HasTokenUrl returns a boolean if a field has been set. +func (o *SsoProviderAllOf) HasTokenUrl() bool { + if o != nil && o.TokenUrl != nil { + return true + } + + return false +} + +// SetTokenUrl gets a reference to the given string and assigns it to the TokenUrl field. +func (o *SsoProviderAllOf) SetTokenUrl(v string) { + o.TokenUrl = &v +} + +// GetJwks returns the Jwks field value if set, zero value otherwise. +func (o *SsoProviderAllOf) GetJwks() string { + if o == nil || o.Jwks == nil { + var ret string + return ret + } + return *o.Jwks +} + +// GetJwksOk returns a tuple with the Jwks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProviderAllOf) GetJwksOk() (*string, bool) { + if o == nil || o.Jwks == nil { + return nil, false + } + return o.Jwks, true +} + +// HasJwks returns a boolean if a field has been set. +func (o *SsoProviderAllOf) HasJwks() bool { + if o != nil && o.Jwks != nil { + return true + } + + return false +} + +// SetJwks gets a reference to the given string and assigns it to the Jwks field. +func (o *SsoProviderAllOf) SetJwks(v string) { + o.Jwks = &v +} + +// GetValidIssuer returns the ValidIssuer field value if set, zero value otherwise. +func (o *SsoProviderAllOf) GetValidIssuer() string { + if o == nil || o.ValidIssuer == nil { + var ret string + return ret + } + return *o.ValidIssuer +} + +// GetValidIssuerOk returns a tuple with the ValidIssuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SsoProviderAllOf) GetValidIssuerOk() (*string, bool) { + if o == nil || o.ValidIssuer == nil { + return nil, false + } + return o.ValidIssuer, true +} + +// HasValidIssuer returns a boolean if a field has been set. +func (o *SsoProviderAllOf) HasValidIssuer() bool { + if o != nil && o.ValidIssuer != nil { + return true + } + + return false +} + +// SetValidIssuer gets a reference to the given string and assigns it to the ValidIssuer field. +func (o *SsoProviderAllOf) SetValidIssuer(v string) { + o.ValidIssuer = &v +} + +func (o SsoProviderAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.BaseUrl != nil { + toSerialize["base_url"] = o.BaseUrl + } + if o.TokenUrl != nil { + toSerialize["token_url"] = o.TokenUrl + } + if o.Jwks != nil { + toSerialize["jwks"] = o.Jwks + } + if o.ValidIssuer != nil { + toSerialize["valid_issuer"] = o.ValidIssuer + } + return json.Marshal(toSerialize) +} + +type NullableSsoProviderAllOf struct { + value *SsoProviderAllOf + isSet bool +} + +func (v NullableSsoProviderAllOf) Get() *SsoProviderAllOf { + return v.value +} + +func (v *NullableSsoProviderAllOf) Set(val *SsoProviderAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSsoProviderAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSsoProviderAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSsoProviderAllOf(val *SsoProviderAllOf) *NullableSsoProviderAllOf { + return &NullableSsoProviderAllOf{value: val, isSet: true} +} + +func (v NullableSsoProviderAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSsoProviderAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go new file mode 100644 index 00000000..e0140ce9 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go @@ -0,0 +1,200 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaBillingModel Supported Kafka Billing Model +type SupportedKafkaBillingModel struct { + // Identifier for the Kafka billing model + Id string `json:"id"` + // AMS resource to be used. Accepted values: ['rhosak'] + AmsResource string `json:"ams_resource"` + // AMS product to be used. Accepted values: ['RHOSAK', 'RHOSAKTrial', 'RHOSAKEval'] + AmsProduct string `json:"ams_product"` + // List of AMS available billing models: Accepted values: ['marketplace', 'marketplace-rhm', 'marketplace-aws'] + AmsBillingModels []string `json:"ams_billing_models"` +} + +// NewSupportedKafkaBillingModel instantiates a new SupportedKafkaBillingModel 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 NewSupportedKafkaBillingModel(id string, amsResource string, amsProduct string, amsBillingModels []string) *SupportedKafkaBillingModel { + this := SupportedKafkaBillingModel{} + this.Id = id + this.AmsResource = amsResource + this.AmsProduct = amsProduct + this.AmsBillingModels = amsBillingModels + return &this +} + +// NewSupportedKafkaBillingModelWithDefaults instantiates a new SupportedKafkaBillingModel 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 NewSupportedKafkaBillingModelWithDefaults() *SupportedKafkaBillingModel { + this := SupportedKafkaBillingModel{} + return &this +} + +// GetId returns the Id field value +func (o *SupportedKafkaBillingModel) 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 *SupportedKafkaBillingModel) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SupportedKafkaBillingModel) SetId(v string) { + o.Id = v +} + +// GetAmsResource returns the AmsResource field value +func (o *SupportedKafkaBillingModel) GetAmsResource() string { + if o == nil { + var ret string + return ret + } + + return o.AmsResource +} + +// GetAmsResourceOk returns a tuple with the AmsResource field value +// and a boolean to check if the value has been set. +func (o *SupportedKafkaBillingModel) GetAmsResourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AmsResource, true +} + +// SetAmsResource sets field value +func (o *SupportedKafkaBillingModel) SetAmsResource(v string) { + o.AmsResource = v +} + +// GetAmsProduct returns the AmsProduct field value +func (o *SupportedKafkaBillingModel) GetAmsProduct() string { + if o == nil { + var ret string + return ret + } + + return o.AmsProduct +} + +// GetAmsProductOk returns a tuple with the AmsProduct field value +// and a boolean to check if the value has been set. +func (o *SupportedKafkaBillingModel) GetAmsProductOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AmsProduct, true +} + +// SetAmsProduct sets field value +func (o *SupportedKafkaBillingModel) SetAmsProduct(v string) { + o.AmsProduct = v +} + +// GetAmsBillingModels returns the AmsBillingModels field value +func (o *SupportedKafkaBillingModel) GetAmsBillingModels() []string { + if o == nil { + var ret []string + return ret + } + + return o.AmsBillingModels +} + +// GetAmsBillingModelsOk returns a tuple with the AmsBillingModels field value +// and a boolean to check if the value has been set. +func (o *SupportedKafkaBillingModel) GetAmsBillingModelsOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.AmsBillingModels, true +} + +// SetAmsBillingModels sets field value +func (o *SupportedKafkaBillingModel) SetAmsBillingModels(v []string) { + o.AmsBillingModels = v +} + +func (o SupportedKafkaBillingModel) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["ams_resource"] = o.AmsResource + } + if true { + toSerialize["ams_product"] = o.AmsProduct + } + if true { + toSerialize["ams_billing_models"] = o.AmsBillingModels + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaBillingModel struct { + value *SupportedKafkaBillingModel + isSet bool +} + +func (v NullableSupportedKafkaBillingModel) Get() *SupportedKafkaBillingModel { + return v.value +} + +func (v *NullableSupportedKafkaBillingModel) Set(val *SupportedKafkaBillingModel) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaBillingModel) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaBillingModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaBillingModel(val *SupportedKafkaBillingModel) *NullableSupportedKafkaBillingModel { + return &NullableSupportedKafkaBillingModel{value: val, isSet: true} +} + +func (v NullableSupportedKafkaBillingModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaBillingModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go new file mode 100644 index 00000000..2bc42c72 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go @@ -0,0 +1,221 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaInstanceType Supported Kafka instance type +type SupportedKafkaInstanceType struct { + // Unique identifier of the Kafka instance type. + Id *string `json:"id,omitempty"` + // Human readable name of the supported Kafka instance type + DisplayName *string `json:"display_name,omitempty"` + // A list of available kafka billing models for the instance type. Each kafka billing model item has a unique 'id' + SupportedBillingModels []SupportedKafkaBillingModel `json:"supported_billing_models"` + // A list of Kafka instance sizes available for this instance type + Sizes *[]SupportedKafkaSize `json:"sizes,omitempty"` +} + +// NewSupportedKafkaInstanceType instantiates a new SupportedKafkaInstanceType 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 NewSupportedKafkaInstanceType(supportedBillingModels []SupportedKafkaBillingModel) *SupportedKafkaInstanceType { + this := SupportedKafkaInstanceType{} + this.SupportedBillingModels = supportedBillingModels + return &this +} + +// NewSupportedKafkaInstanceTypeWithDefaults instantiates a new SupportedKafkaInstanceType 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 NewSupportedKafkaInstanceTypeWithDefaults() *SupportedKafkaInstanceType { + this := SupportedKafkaInstanceType{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SupportedKafkaInstanceType) GetId() string { + if o == nil || o.Id == nil { + 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 *SupportedKafkaInstanceType) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SupportedKafkaInstanceType) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SupportedKafkaInstanceType) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SupportedKafkaInstanceType) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaInstanceType) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SupportedKafkaInstanceType) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SupportedKafkaInstanceType) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSupportedBillingModels returns the SupportedBillingModels field value +func (o *SupportedKafkaInstanceType) GetSupportedBillingModels() []SupportedKafkaBillingModel { + if o == nil { + var ret []SupportedKafkaBillingModel + return ret + } + + return o.SupportedBillingModels +} + +// GetSupportedBillingModelsOk returns a tuple with the SupportedBillingModels field value +// and a boolean to check if the value has been set. +func (o *SupportedKafkaInstanceType) GetSupportedBillingModelsOk() (*[]SupportedKafkaBillingModel, bool) { + if o == nil { + return nil, false + } + return &o.SupportedBillingModels, true +} + +// SetSupportedBillingModels sets field value +func (o *SupportedKafkaInstanceType) SetSupportedBillingModels(v []SupportedKafkaBillingModel) { + o.SupportedBillingModels = v +} + +// GetSizes returns the Sizes field value if set, zero value otherwise. +func (o *SupportedKafkaInstanceType) GetSizes() []SupportedKafkaSize { + if o == nil || o.Sizes == nil { + var ret []SupportedKafkaSize + return ret + } + return *o.Sizes +} + +// GetSizesOk returns a tuple with the Sizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaInstanceType) GetSizesOk() (*[]SupportedKafkaSize, bool) { + if o == nil || o.Sizes == nil { + return nil, false + } + return o.Sizes, true +} + +// HasSizes returns a boolean if a field has been set. +func (o *SupportedKafkaInstanceType) HasSizes() bool { + if o != nil && o.Sizes != nil { + return true + } + + return false +} + +// SetSizes gets a reference to the given []SupportedKafkaSize and assigns it to the Sizes field. +func (o *SupportedKafkaInstanceType) SetSizes(v []SupportedKafkaSize) { + o.Sizes = &v +} + +func (o SupportedKafkaInstanceType) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if true { + toSerialize["supported_billing_models"] = o.SupportedBillingModels + } + if o.Sizes != nil { + toSerialize["sizes"] = o.Sizes + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaInstanceType struct { + value *SupportedKafkaInstanceType + isSet bool +} + +func (v NullableSupportedKafkaInstanceType) Get() *SupportedKafkaInstanceType { + return v.value +} + +func (v *NullableSupportedKafkaInstanceType) Set(val *SupportedKafkaInstanceType) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaInstanceType) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaInstanceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaInstanceType(val *SupportedKafkaInstanceType) *NullableSupportedKafkaInstanceType { + return &NullableSupportedKafkaInstanceType{value: val, isSet: true} +} + +func (v NullableSupportedKafkaInstanceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaInstanceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go new file mode 100644 index 00000000..a84a3d64 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaInstanceTypesList struct for SupportedKafkaInstanceTypesList +type SupportedKafkaInstanceTypesList struct { + InstanceTypes *[]SupportedKafkaInstanceType `json:"instance_types,omitempty"` +} + +// NewSupportedKafkaInstanceTypesList instantiates a new SupportedKafkaInstanceTypesList 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 NewSupportedKafkaInstanceTypesList() *SupportedKafkaInstanceTypesList { + this := SupportedKafkaInstanceTypesList{} + return &this +} + +// NewSupportedKafkaInstanceTypesListWithDefaults instantiates a new SupportedKafkaInstanceTypesList 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 NewSupportedKafkaInstanceTypesListWithDefaults() *SupportedKafkaInstanceTypesList { + this := SupportedKafkaInstanceTypesList{} + return &this +} + +// GetInstanceTypes returns the InstanceTypes field value if set, zero value otherwise. +func (o *SupportedKafkaInstanceTypesList) GetInstanceTypes() []SupportedKafkaInstanceType { + if o == nil || o.InstanceTypes == nil { + var ret []SupportedKafkaInstanceType + return ret + } + return *o.InstanceTypes +} + +// GetInstanceTypesOk returns a tuple with the InstanceTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaInstanceTypesList) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool) { + if o == nil || o.InstanceTypes == nil { + return nil, false + } + return o.InstanceTypes, true +} + +// HasInstanceTypes returns a boolean if a field has been set. +func (o *SupportedKafkaInstanceTypesList) HasInstanceTypes() bool { + if o != nil && o.InstanceTypes != nil { + return true + } + + return false +} + +// SetInstanceTypes gets a reference to the given []SupportedKafkaInstanceType and assigns it to the InstanceTypes field. +func (o *SupportedKafkaInstanceTypesList) SetInstanceTypes(v []SupportedKafkaInstanceType) { + o.InstanceTypes = &v +} + +func (o SupportedKafkaInstanceTypesList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.InstanceTypes != nil { + toSerialize["instance_types"] = o.InstanceTypes + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaInstanceTypesList struct { + value *SupportedKafkaInstanceTypesList + isSet bool +} + +func (v NullableSupportedKafkaInstanceTypesList) Get() *SupportedKafkaInstanceTypesList { + return v.value +} + +func (v *NullableSupportedKafkaInstanceTypesList) Set(val *SupportedKafkaInstanceTypesList) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaInstanceTypesList) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaInstanceTypesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaInstanceTypesList(val *SupportedKafkaInstanceTypesList) *NullableSupportedKafkaInstanceTypesList { + return &NullableSupportedKafkaInstanceTypesList{value: val, isSet: true} +} + +func (v NullableSupportedKafkaInstanceTypesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaInstanceTypesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go new file mode 100644 index 00000000..9a360187 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaInstanceTypesListAllOf struct for SupportedKafkaInstanceTypesListAllOf +type SupportedKafkaInstanceTypesListAllOf struct { + InstanceTypes *[]SupportedKafkaInstanceType `json:"instance_types,omitempty"` +} + +// NewSupportedKafkaInstanceTypesListAllOf instantiates a new SupportedKafkaInstanceTypesListAllOf 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 NewSupportedKafkaInstanceTypesListAllOf() *SupportedKafkaInstanceTypesListAllOf { + this := SupportedKafkaInstanceTypesListAllOf{} + return &this +} + +// NewSupportedKafkaInstanceTypesListAllOfWithDefaults instantiates a new SupportedKafkaInstanceTypesListAllOf 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 NewSupportedKafkaInstanceTypesListAllOfWithDefaults() *SupportedKafkaInstanceTypesListAllOf { + this := SupportedKafkaInstanceTypesListAllOf{} + return &this +} + +// GetInstanceTypes returns the InstanceTypes field value if set, zero value otherwise. +func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypes() []SupportedKafkaInstanceType { + if o == nil || o.InstanceTypes == nil { + var ret []SupportedKafkaInstanceType + return ret + } + return *o.InstanceTypes +} + +// GetInstanceTypesOk returns a tuple with the InstanceTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool) { + if o == nil || o.InstanceTypes == nil { + return nil, false + } + return o.InstanceTypes, true +} + +// HasInstanceTypes returns a boolean if a field has been set. +func (o *SupportedKafkaInstanceTypesListAllOf) HasInstanceTypes() bool { + if o != nil && o.InstanceTypes != nil { + return true + } + + return false +} + +// SetInstanceTypes gets a reference to the given []SupportedKafkaInstanceType and assigns it to the InstanceTypes field. +func (o *SupportedKafkaInstanceTypesListAllOf) SetInstanceTypes(v []SupportedKafkaInstanceType) { + o.InstanceTypes = &v +} + +func (o SupportedKafkaInstanceTypesListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.InstanceTypes != nil { + toSerialize["instance_types"] = o.InstanceTypes + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaInstanceTypesListAllOf struct { + value *SupportedKafkaInstanceTypesListAllOf + isSet bool +} + +func (v NullableSupportedKafkaInstanceTypesListAllOf) Get() *SupportedKafkaInstanceTypesListAllOf { + return v.value +} + +func (v *NullableSupportedKafkaInstanceTypesListAllOf) Set(val *SupportedKafkaInstanceTypesListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaInstanceTypesListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaInstanceTypesListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaInstanceTypesListAllOf(val *SupportedKafkaInstanceTypesListAllOf) *NullableSupportedKafkaInstanceTypesListAllOf { + return &NullableSupportedKafkaInstanceTypesListAllOf{value: val, isSet: true} +} + +func (v NullableSupportedKafkaInstanceTypesListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaInstanceTypesListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go new file mode 100644 index 00000000..858c649b --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go @@ -0,0 +1,752 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaSize Supported Kafka Size +type SupportedKafkaSize struct { + // Unique identifier of this Kafka instance size. + Id *string `json:"id,omitempty"` + // Display name of this Kafka instance size. + DisplayName *string `json:"display_name,omitempty"` + IngressThroughputPerSec *SupportedKafkaSizeBytesValueItem `json:"ingress_throughput_per_sec,omitempty"` + EgressThroughputPerSec *SupportedKafkaSizeBytesValueItem `json:"egress_throughput_per_sec,omitempty"` + // Maximum amount of total connections available to this Kafka instance size. + TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` + MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` + // Maximum amount of total partitions available to this Kafka instance size. + MaxPartitions *int32 `json:"max_partitions,omitempty"` + // Maximum data retention period available to this Kafka instance size. + MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` + // Maximium connection attempts per second available to this Kafka instance size. + MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` + MaxMessageSize *SupportedKafkaSizeBytesValueItem `json:"max_message_size,omitempty"` + // Minimum number of in-sync replicas. + MinInSyncReplicas *int32 `json:"min_in_sync_replicas,omitempty"` + // Replication factor available to this Kafka instance size. + ReplicationFactor *int32 `json:"replication_factor,omitempty"` + // List of Availability Zone modes that this Kafka instance size supports. The possible values are \"single\", \"multi\". + SupportedAzModes *[]string `json:"supported_az_modes,omitempty"` + // The limit lifespan of the kafka instance in seconds. If not specified then the instance never expires. + LifespanSeconds NullableInt32 `json:"lifespan_seconds,omitempty"` + // Quota consumed by this Kafka instance size. + QuotaConsumed *int32 `json:"quota_consumed,omitempty"` + // Quota type used by this Kafka instance size. This is now deprecated, please refer to supported_billing_models at instance-type level instead. + QuotaType *string `json:"quota_type,omitempty"` + // Data plane cluster capacity consumed by this Kafka instance size. + CapacityConsumed *int32 `json:"capacity_consumed,omitempty"` + // Maturity level of the size. Can be \"stable\" or \"preview\". + MaturityStatus *string `json:"maturity_status,omitempty"` +} + +// NewSupportedKafkaSize instantiates a new SupportedKafkaSize 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 NewSupportedKafkaSize() *SupportedKafkaSize { + this := SupportedKafkaSize{} + return &this +} + +// NewSupportedKafkaSizeWithDefaults instantiates a new SupportedKafkaSize 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 NewSupportedKafkaSizeWithDefaults() *SupportedKafkaSize { + this := SupportedKafkaSize{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetId() string { + if o == nil || o.Id == nil { + 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 *SupportedKafkaSize) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SupportedKafkaSize) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SupportedKafkaSize) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetIngressThroughputPerSec() SupportedKafkaSizeBytesValueItem { + if o == nil || o.IngressThroughputPerSec == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.IngressThroughputPerSec +} + +// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetIngressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.IngressThroughputPerSec == nil { + return nil, false + } + return o.IngressThroughputPerSec, true +} + +// HasIngressThroughputPerSec returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasIngressThroughputPerSec() bool { + if o != nil && o.IngressThroughputPerSec != nil { + return true + } + + return false +} + +// SetIngressThroughputPerSec gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the IngressThroughputPerSec field. +func (o *SupportedKafkaSize) SetIngressThroughputPerSec(v SupportedKafkaSizeBytesValueItem) { + o.IngressThroughputPerSec = &v +} + +// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetEgressThroughputPerSec() SupportedKafkaSizeBytesValueItem { + if o == nil || o.EgressThroughputPerSec == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.EgressThroughputPerSec +} + +// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetEgressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.EgressThroughputPerSec == nil { + return nil, false + } + return o.EgressThroughputPerSec, true +} + +// HasEgressThroughputPerSec returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasEgressThroughputPerSec() bool { + if o != nil && o.EgressThroughputPerSec != nil { + return true + } + + return false +} + +// SetEgressThroughputPerSec gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the EgressThroughputPerSec field. +func (o *SupportedKafkaSize) SetEgressThroughputPerSec(v SupportedKafkaSizeBytesValueItem) { + o.EgressThroughputPerSec = &v +} + +// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetTotalMaxConnections() int32 { + if o == nil || o.TotalMaxConnections == nil { + var ret int32 + return ret + } + return *o.TotalMaxConnections +} + +// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetTotalMaxConnectionsOk() (*int32, bool) { + if o == nil || o.TotalMaxConnections == nil { + return nil, false + } + return o.TotalMaxConnections, true +} + +// HasTotalMaxConnections returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasTotalMaxConnections() bool { + if o != nil && o.TotalMaxConnections != nil { + return true + } + + return false +} + +// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. +func (o *SupportedKafkaSize) SetTotalMaxConnections(v int32) { + o.TotalMaxConnections = &v +} + +// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { + if o == nil || o.MaxDataRetentionSize == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.MaxDataRetentionSize +} + +// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.MaxDataRetentionSize == nil { + return nil, false + } + return o.MaxDataRetentionSize, true +} + +// HasMaxDataRetentionSize returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaxDataRetentionSize() bool { + if o != nil && o.MaxDataRetentionSize != nil { + return true + } + + return false +} + +// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. +func (o *SupportedKafkaSize) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { + o.MaxDataRetentionSize = &v +} + +// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaxPartitions() int32 { + if o == nil || o.MaxPartitions == nil { + var ret int32 + return ret + } + return *o.MaxPartitions +} + +// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaxPartitionsOk() (*int32, bool) { + if o == nil || o.MaxPartitions == nil { + return nil, false + } + return o.MaxPartitions, true +} + +// HasMaxPartitions returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaxPartitions() bool { + if o != nil && o.MaxPartitions != nil { + return true + } + + return false +} + +// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. +func (o *SupportedKafkaSize) SetMaxPartitions(v int32) { + o.MaxPartitions = &v +} + +// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaxDataRetentionPeriod() string { + if o == nil || o.MaxDataRetentionPeriod == nil { + var ret string + return ret + } + return *o.MaxDataRetentionPeriod +} + +// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaxDataRetentionPeriodOk() (*string, bool) { + if o == nil || o.MaxDataRetentionPeriod == nil { + return nil, false + } + return o.MaxDataRetentionPeriod, true +} + +// HasMaxDataRetentionPeriod returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaxDataRetentionPeriod() bool { + if o != nil && o.MaxDataRetentionPeriod != nil { + return true + } + + return false +} + +// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. +func (o *SupportedKafkaSize) SetMaxDataRetentionPeriod(v string) { + o.MaxDataRetentionPeriod = &v +} + +// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSec() int32 { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + var ret int32 + return ret + } + return *o.MaxConnectionAttemptsPerSec +} + +// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { + if o == nil || o.MaxConnectionAttemptsPerSec == nil { + return nil, false + } + return o.MaxConnectionAttemptsPerSec, true +} + +// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaxConnectionAttemptsPerSec() bool { + if o != nil && o.MaxConnectionAttemptsPerSec != nil { + return true + } + + return false +} + +// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. +func (o *SupportedKafkaSize) SetMaxConnectionAttemptsPerSec(v int32) { + o.MaxConnectionAttemptsPerSec = &v +} + +// GetMaxMessageSize returns the MaxMessageSize field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaxMessageSize() SupportedKafkaSizeBytesValueItem { + if o == nil || o.MaxMessageSize == nil { + var ret SupportedKafkaSizeBytesValueItem + return ret + } + return *o.MaxMessageSize +} + +// GetMaxMessageSizeOk returns a tuple with the MaxMessageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaxMessageSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { + if o == nil || o.MaxMessageSize == nil { + return nil, false + } + return o.MaxMessageSize, true +} + +// HasMaxMessageSize returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaxMessageSize() bool { + if o != nil && o.MaxMessageSize != nil { + return true + } + + return false +} + +// SetMaxMessageSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxMessageSize field. +func (o *SupportedKafkaSize) SetMaxMessageSize(v SupportedKafkaSizeBytesValueItem) { + o.MaxMessageSize = &v +} + +// GetMinInSyncReplicas returns the MinInSyncReplicas field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMinInSyncReplicas() int32 { + if o == nil || o.MinInSyncReplicas == nil { + var ret int32 + return ret + } + return *o.MinInSyncReplicas +} + +// GetMinInSyncReplicasOk returns a tuple with the MinInSyncReplicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMinInSyncReplicasOk() (*int32, bool) { + if o == nil || o.MinInSyncReplicas == nil { + return nil, false + } + return o.MinInSyncReplicas, true +} + +// HasMinInSyncReplicas returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMinInSyncReplicas() bool { + if o != nil && o.MinInSyncReplicas != nil { + return true + } + + return false +} + +// SetMinInSyncReplicas gets a reference to the given int32 and assigns it to the MinInSyncReplicas field. +func (o *SupportedKafkaSize) SetMinInSyncReplicas(v int32) { + o.MinInSyncReplicas = &v +} + +// GetReplicationFactor returns the ReplicationFactor field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetReplicationFactor() int32 { + if o == nil || o.ReplicationFactor == nil { + var ret int32 + return ret + } + return *o.ReplicationFactor +} + +// GetReplicationFactorOk returns a tuple with the ReplicationFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetReplicationFactorOk() (*int32, bool) { + if o == nil || o.ReplicationFactor == nil { + return nil, false + } + return o.ReplicationFactor, true +} + +// HasReplicationFactor returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasReplicationFactor() bool { + if o != nil && o.ReplicationFactor != nil { + return true + } + + return false +} + +// SetReplicationFactor gets a reference to the given int32 and assigns it to the ReplicationFactor field. +func (o *SupportedKafkaSize) SetReplicationFactor(v int32) { + o.ReplicationFactor = &v +} + +// GetSupportedAzModes returns the SupportedAzModes field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetSupportedAzModes() []string { + if o == nil || o.SupportedAzModes == nil { + var ret []string + return ret + } + return *o.SupportedAzModes +} + +// GetSupportedAzModesOk returns a tuple with the SupportedAzModes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetSupportedAzModesOk() (*[]string, bool) { + if o == nil || o.SupportedAzModes == nil { + return nil, false + } + return o.SupportedAzModes, true +} + +// HasSupportedAzModes returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasSupportedAzModes() bool { + if o != nil && o.SupportedAzModes != nil { + return true + } + + return false +} + +// SetSupportedAzModes gets a reference to the given []string and assigns it to the SupportedAzModes field. +func (o *SupportedKafkaSize) SetSupportedAzModes(v []string) { + o.SupportedAzModes = &v +} + +// GetLifespanSeconds returns the LifespanSeconds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SupportedKafkaSize) GetLifespanSeconds() int32 { + if o == nil || o.LifespanSeconds.Get() == nil { + var ret int32 + return ret + } + return *o.LifespanSeconds.Get() +} + +// GetLifespanSecondsOk returns a tuple with the LifespanSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SupportedKafkaSize) GetLifespanSecondsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LifespanSeconds.Get(), o.LifespanSeconds.IsSet() +} + +// HasLifespanSeconds returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasLifespanSeconds() bool { + if o != nil && o.LifespanSeconds.IsSet() { + return true + } + + return false +} + +// SetLifespanSeconds gets a reference to the given NullableInt32 and assigns it to the LifespanSeconds field. +func (o *SupportedKafkaSize) SetLifespanSeconds(v int32) { + o.LifespanSeconds.Set(&v) +} +// SetLifespanSecondsNil sets the value for LifespanSeconds to be an explicit nil +func (o *SupportedKafkaSize) SetLifespanSecondsNil() { + o.LifespanSeconds.Set(nil) +} + +// UnsetLifespanSeconds ensures that no value is present for LifespanSeconds, not even an explicit nil +func (o *SupportedKafkaSize) UnsetLifespanSeconds() { + o.LifespanSeconds.Unset() +} + +// GetQuotaConsumed returns the QuotaConsumed field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetQuotaConsumed() int32 { + if o == nil || o.QuotaConsumed == nil { + var ret int32 + return ret + } + return *o.QuotaConsumed +} + +// GetQuotaConsumedOk returns a tuple with the QuotaConsumed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetQuotaConsumedOk() (*int32, bool) { + if o == nil || o.QuotaConsumed == nil { + return nil, false + } + return o.QuotaConsumed, true +} + +// HasQuotaConsumed returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasQuotaConsumed() bool { + if o != nil && o.QuotaConsumed != nil { + return true + } + + return false +} + +// SetQuotaConsumed gets a reference to the given int32 and assigns it to the QuotaConsumed field. +func (o *SupportedKafkaSize) SetQuotaConsumed(v int32) { + o.QuotaConsumed = &v +} + +// GetQuotaType returns the QuotaType field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetQuotaType() string { + if o == nil || o.QuotaType == nil { + var ret string + return ret + } + return *o.QuotaType +} + +// GetQuotaTypeOk returns a tuple with the QuotaType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetQuotaTypeOk() (*string, bool) { + if o == nil || o.QuotaType == nil { + return nil, false + } + return o.QuotaType, true +} + +// HasQuotaType returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasQuotaType() bool { + if o != nil && o.QuotaType != nil { + return true + } + + return false +} + +// SetQuotaType gets a reference to the given string and assigns it to the QuotaType field. +func (o *SupportedKafkaSize) SetQuotaType(v string) { + o.QuotaType = &v +} + +// GetCapacityConsumed returns the CapacityConsumed field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetCapacityConsumed() int32 { + if o == nil || o.CapacityConsumed == nil { + var ret int32 + return ret + } + return *o.CapacityConsumed +} + +// GetCapacityConsumedOk returns a tuple with the CapacityConsumed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetCapacityConsumedOk() (*int32, bool) { + if o == nil || o.CapacityConsumed == nil { + return nil, false + } + return o.CapacityConsumed, true +} + +// HasCapacityConsumed returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasCapacityConsumed() bool { + if o != nil && o.CapacityConsumed != nil { + return true + } + + return false +} + +// SetCapacityConsumed gets a reference to the given int32 and assigns it to the CapacityConsumed field. +func (o *SupportedKafkaSize) SetCapacityConsumed(v int32) { + o.CapacityConsumed = &v +} + +// GetMaturityStatus returns the MaturityStatus field value if set, zero value otherwise. +func (o *SupportedKafkaSize) GetMaturityStatus() string { + if o == nil || o.MaturityStatus == nil { + var ret string + return ret + } + return *o.MaturityStatus +} + +// GetMaturityStatusOk returns a tuple with the MaturityStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSize) GetMaturityStatusOk() (*string, bool) { + if o == nil || o.MaturityStatus == nil { + return nil, false + } + return o.MaturityStatus, true +} + +// HasMaturityStatus returns a boolean if a field has been set. +func (o *SupportedKafkaSize) HasMaturityStatus() bool { + if o != nil && o.MaturityStatus != nil { + return true + } + + return false +} + +// SetMaturityStatus gets a reference to the given string and assigns it to the MaturityStatus field. +func (o *SupportedKafkaSize) SetMaturityStatus(v string) { + o.MaturityStatus = &v +} + +func (o SupportedKafkaSize) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.DisplayName != nil { + toSerialize["display_name"] = o.DisplayName + } + if o.IngressThroughputPerSec != nil { + toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec + } + if o.EgressThroughputPerSec != nil { + toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec + } + if o.TotalMaxConnections != nil { + toSerialize["total_max_connections"] = o.TotalMaxConnections + } + if o.MaxDataRetentionSize != nil { + toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize + } + if o.MaxPartitions != nil { + toSerialize["max_partitions"] = o.MaxPartitions + } + if o.MaxDataRetentionPeriod != nil { + toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod + } + if o.MaxConnectionAttemptsPerSec != nil { + toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec + } + if o.MaxMessageSize != nil { + toSerialize["max_message_size"] = o.MaxMessageSize + } + if o.MinInSyncReplicas != nil { + toSerialize["min_in_sync_replicas"] = o.MinInSyncReplicas + } + if o.ReplicationFactor != nil { + toSerialize["replication_factor"] = o.ReplicationFactor + } + if o.SupportedAzModes != nil { + toSerialize["supported_az_modes"] = o.SupportedAzModes + } + if o.LifespanSeconds.IsSet() { + toSerialize["lifespan_seconds"] = o.LifespanSeconds.Get() + } + if o.QuotaConsumed != nil { + toSerialize["quota_consumed"] = o.QuotaConsumed + } + if o.QuotaType != nil { + toSerialize["quota_type"] = o.QuotaType + } + if o.CapacityConsumed != nil { + toSerialize["capacity_consumed"] = o.CapacityConsumed + } + if o.MaturityStatus != nil { + toSerialize["maturity_status"] = o.MaturityStatus + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaSize struct { + value *SupportedKafkaSize + isSet bool +} + +func (v NullableSupportedKafkaSize) Get() *SupportedKafkaSize { + return v.value +} + +func (v *NullableSupportedKafkaSize) Set(val *SupportedKafkaSize) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaSize) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaSize) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaSize(val *SupportedKafkaSize) *NullableSupportedKafkaSize { + return &NullableSupportedKafkaSize{value: val, isSet: true} +} + +func (v NullableSupportedKafkaSize) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaSize) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go new file mode 100644 index 00000000..ad7c9388 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go @@ -0,0 +1,116 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// SupportedKafkaSizeBytesValueItem struct for SupportedKafkaSizeBytesValueItem +type SupportedKafkaSizeBytesValueItem struct { + Bytes *int64 `json:"bytes,omitempty"` +} + +// NewSupportedKafkaSizeBytesValueItem instantiates a new SupportedKafkaSizeBytesValueItem 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 NewSupportedKafkaSizeBytesValueItem() *SupportedKafkaSizeBytesValueItem { + this := SupportedKafkaSizeBytesValueItem{} + return &this +} + +// NewSupportedKafkaSizeBytesValueItemWithDefaults instantiates a new SupportedKafkaSizeBytesValueItem 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 NewSupportedKafkaSizeBytesValueItemWithDefaults() *SupportedKafkaSizeBytesValueItem { + this := SupportedKafkaSizeBytesValueItem{} + return &this +} + +// GetBytes returns the Bytes field value if set, zero value otherwise. +func (o *SupportedKafkaSizeBytesValueItem) GetBytes() int64 { + if o == nil || o.Bytes == nil { + var ret int64 + return ret + } + return *o.Bytes +} + +// GetBytesOk returns a tuple with the Bytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SupportedKafkaSizeBytesValueItem) GetBytesOk() (*int64, bool) { + if o == nil || o.Bytes == nil { + return nil, false + } + return o.Bytes, true +} + +// HasBytes returns a boolean if a field has been set. +func (o *SupportedKafkaSizeBytesValueItem) HasBytes() bool { + if o != nil && o.Bytes != nil { + return true + } + + return false +} + +// SetBytes gets a reference to the given int64 and assigns it to the Bytes field. +func (o *SupportedKafkaSizeBytesValueItem) SetBytes(v int64) { + o.Bytes = &v +} + +func (o SupportedKafkaSizeBytesValueItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Bytes != nil { + toSerialize["bytes"] = o.Bytes + } + return json.Marshal(toSerialize) +} + +type NullableSupportedKafkaSizeBytesValueItem struct { + value *SupportedKafkaSizeBytesValueItem + isSet bool +} + +func (v NullableSupportedKafkaSizeBytesValueItem) Get() *SupportedKafkaSizeBytesValueItem { + return v.value +} + +func (v *NullableSupportedKafkaSizeBytesValueItem) Set(val *SupportedKafkaSizeBytesValueItem) { + v.value = val + v.isSet = true +} + +func (v NullableSupportedKafkaSizeBytesValueItem) IsSet() bool { + return v.isSet +} + +func (v *NullableSupportedKafkaSizeBytesValueItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSupportedKafkaSizeBytesValueItem(val *SupportedKafkaSizeBytesValueItem) *NullableSupportedKafkaSizeBytesValueItem { + return &NullableSupportedKafkaSizeBytesValueItem{value: val, isSet: true} +} + +func (v NullableSupportedKafkaSizeBytesValueItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSupportedKafkaSizeBytesValueItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go new file mode 100644 index 00000000..a391517d --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go @@ -0,0 +1,145 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// Values struct for Values +type Values struct { + Timestamp *int64 `json:"timestamp,omitempty"` + Value float64 `json:"value"` +} + +// NewValues instantiates a new Values 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 NewValues(value float64) *Values { + this := Values{} + this.Value = value + return &this +} + +// NewValuesWithDefaults instantiates a new Values 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 NewValuesWithDefaults() *Values { + this := Values{} + return &this +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *Values) GetTimestamp() int64 { + if o == nil || o.Timestamp == nil { + var ret int64 + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetTimestampOk() (*int64, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *Values) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field. +func (o *Values) SetTimestamp(v int64) { + o.Timestamp = &v +} + +// GetValue returns the Value field value +func (o *Values) GetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *Values) GetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *Values) SetValue(v float64) { + o.Value = v +} + +func (o Values) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Timestamp != nil { + toSerialize["timestamp"] = o.Timestamp + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableValues struct { + value *Values + isSet bool +} + +func (v NullableValues) Get() *Values { + return v.value +} + +func (v *NullableValues) Set(val *Values) { + v.value = val + v.isSet = true +} + +func (v NullableValues) IsSet() bool { + return v.isSet +} + +func (v *NullableValues) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValues(val *Values) *NullableValues { + return &NullableValues{value: val, isSet: true} +} + +func (v NullableValues) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValues) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go new file mode 100644 index 00000000..316b1c5f --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go @@ -0,0 +1,239 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// VersionMetadata struct for VersionMetadata +type VersionMetadata struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + ServerVersion *string `json:"server_version,omitempty"` + Collections *[]ObjectReference `json:"collections,omitempty"` +} + +// NewVersionMetadata instantiates a new VersionMetadata 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 NewVersionMetadata(id string, kind string, href string) *VersionMetadata { + this := VersionMetadata{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 NewVersionMetadataWithDefaults() *VersionMetadata { + this := VersionMetadata{} + return &this +} + +// GetId returns the Id field value +func (o *VersionMetadata) 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 *VersionMetadata) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VersionMetadata) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *VersionMetadata) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *VersionMetadata) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *VersionMetadata) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *VersionMetadata) SetHref(v string) { + o.Href = v +} + +// GetServerVersion returns the ServerVersion field value if set, zero value otherwise. +func (o *VersionMetadata) GetServerVersion() string { + if o == nil || o.ServerVersion == nil { + var ret string + return ret + } + return *o.ServerVersion +} + +// GetServerVersionOk returns a tuple with the ServerVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetServerVersionOk() (*string, bool) { + if o == nil || o.ServerVersion == nil { + return nil, false + } + return o.ServerVersion, true +} + +// HasServerVersion returns a boolean if a field has been set. +func (o *VersionMetadata) HasServerVersion() bool { + if o != nil && o.ServerVersion != nil { + return true + } + + return false +} + +// SetServerVersion gets a reference to the given string and assigns it to the ServerVersion field. +func (o *VersionMetadata) SetServerVersion(v string) { + o.ServerVersion = &v +} + +// GetCollections returns the Collections field value if set, zero value otherwise. +func (o *VersionMetadata) GetCollections() []ObjectReference { + if o == nil || o.Collections == nil { + var ret []ObjectReference + return ret + } + return *o.Collections +} + +// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool) { + if o == nil || o.Collections == nil { + return nil, false + } + return o.Collections, true +} + +// HasCollections returns a boolean if a field has been set. +func (o *VersionMetadata) HasCollections() bool { + if o != nil && o.Collections != nil { + return true + } + + return false +} + +// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. +func (o *VersionMetadata) SetCollections(v []ObjectReference) { + o.Collections = &v +} + +func (o VersionMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if o.ServerVersion != nil { + toSerialize["server_version"] = o.ServerVersion + } + if o.Collections != nil { + toSerialize["collections"] = o.Collections + } + return json.Marshal(toSerialize) +} + +type NullableVersionMetadata struct { + value *VersionMetadata + isSet bool +} + +func (v NullableVersionMetadata) Get() *VersionMetadata { + return v.value +} + +func (v *NullableVersionMetadata) Set(val *VersionMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableVersionMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionMetadata(val *VersionMetadata) *NullableVersionMetadata { + return &NullableVersionMetadata{value: val, isSet: true} +} + +func (v NullableVersionMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go new file mode 100644 index 00000000..bb33ea43 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go @@ -0,0 +1,152 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" +) + +// VersionMetadataAllOf struct for VersionMetadataAllOf +type VersionMetadataAllOf struct { + ServerVersion *string `json:"server_version,omitempty"` + Collections *[]ObjectReference `json:"collections,omitempty"` +} + +// NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOf() *VersionMetadataAllOf { + this := VersionMetadataAllOf{} + return &this +} + +// NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf { + this := VersionMetadataAllOf{} + return &this +} + +// GetServerVersion returns the ServerVersion field value if set, zero value otherwise. +func (o *VersionMetadataAllOf) GetServerVersion() string { + if o == nil || o.ServerVersion == nil { + var ret string + return ret + } + return *o.ServerVersion +} + +// GetServerVersionOk returns a tuple with the ServerVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadataAllOf) GetServerVersionOk() (*string, bool) { + if o == nil || o.ServerVersion == nil { + return nil, false + } + return o.ServerVersion, true +} + +// HasServerVersion returns a boolean if a field has been set. +func (o *VersionMetadataAllOf) HasServerVersion() bool { + if o != nil && o.ServerVersion != nil { + return true + } + + return false +} + +// SetServerVersion gets a reference to the given string and assigns it to the ServerVersion field. +func (o *VersionMetadataAllOf) SetServerVersion(v string) { + o.ServerVersion = &v +} + +// GetCollections returns the Collections field value if set, zero value otherwise. +func (o *VersionMetadataAllOf) GetCollections() []ObjectReference { + if o == nil || o.Collections == nil { + var ret []ObjectReference + return ret + } + return *o.Collections +} + +// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool) { + if o == nil || o.Collections == nil { + return nil, false + } + return o.Collections, true +} + +// HasCollections returns a boolean if a field has been set. +func (o *VersionMetadataAllOf) HasCollections() bool { + if o != nil && o.Collections != nil { + return true + } + + return false +} + +// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. +func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference) { + o.Collections = &v +} + +func (o VersionMetadataAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ServerVersion != nil { + toSerialize["server_version"] = o.ServerVersion + } + if o.Collections != nil { + toSerialize["collections"] = o.Collections + } + return json.Marshal(toSerialize) +} + +type NullableVersionMetadataAllOf struct { + value *VersionMetadataAllOf + isSet bool +} + +func (v NullableVersionMetadataAllOf) Get() *VersionMetadataAllOf { + return v.value +} + +func (v *NullableVersionMetadataAllOf) Set(val *VersionMetadataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableVersionMetadataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionMetadataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionMetadataAllOf(val *VersionMetadataAllOf) *NullableVersionMetadataAllOf { + return &NullableVersionMetadataAllOf{value: val, isSet: true} +} + +func (v NullableVersionMetadataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionMetadataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/response.go b/app-services-sdk-go/kafkamgmt/apiv1/client/response.go new file mode 100644 index 00000000..5cf36a67 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/response.go @@ -0,0 +1,48 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go b/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go new file mode 100644 index 00000000..0d000357 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go @@ -0,0 +1,329 @@ +/* + * Kafka Management API + * + * Kafka Management API is a REST API to manage Kafka instances + * + * API version: 1.13.0 + * Contact: rhosak-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkamgmtclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go b/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go new file mode 100644 index 00000000..bd23c799 --- /dev/null +++ b/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go @@ -0,0 +1,135 @@ + +package error +// kafkamgmt error codes + +const ( + // Forbidden to perform this action + ERROR_4 string = "KAFKAS-MGMT-4" + + // Forbidden to create more instances than the maximum allowed + ERROR_5 string = "KAFKAS-MGMT-5" + + // An entity with the specified unique values already exists + ERROR_6 string = "KAFKAS-MGMT-6" + + // Resource not found + ERROR_7 string = "KAFKAS-MGMT-7" + + // General validation failure + ERROR_8 string = "KAFKAS-MGMT-8" + + // Unspecified error + ERROR_9 string = "KAFKAS-MGMT-9" + + // HTTP Method not implemented for this endpoint + ERROR_10 string = "KAFKAS-MGMT-10" + + // Account is unauthorized to perform this action + ERROR_11 string = "KAFKAS-MGMT-11" + + // Required terms have not been accepted + ERROR_12 string = "KAFKAS-MGMT-12" + + // Account authentication could not be verified + ERROR_15 string = "KAFKAS-MGMT-15" + + // Unable to read request body + ERROR_17 string = "KAFKAS-MGMT-17" + + // Unable to perform this action, as the service is currently under maintenance + ERROR_18 string = "KAFKAS-MGMT-18" + + // Bad request + ERROR_21 string = "KAFKAS-MGMT-21" + + // Failed to parse search query + ERROR_23 string = "KAFKAS-MGMT-23" + + // The maximum number of allowed kafka instances has been reached + ERROR_24 string = "KAFKAS-MGMT-24" + + // Resource gone + ERROR_25 string = "KAFKAS-MGMT-25" + + // Provider not supported + ERROR_30 string = "KAFKAS-MGMT-30" + + // Region not supported + ERROR_31 string = "KAFKAS-MGMT-31" + + // Kafka cluster name is invalid + ERROR_32 string = "KAFKAS-MGMT-32" + + // Minimum field length not reached + ERROR_33 string = "KAFKAS-MGMT-33" + + // Maximum field length has been depassed + ERROR_34 string = "KAFKAS-MGMT-34" + + // Kafka cluster name is already used + ERROR_36 string = "KAFKAS-MGMT-36" + + // Field validation failed + ERROR_37 string = "KAFKAS-MGMT-37" + + // Service account name is invalid + ERROR_38 string = "KAFKAS-MGMT-38" + + // Service account desc is invalid + ERROR_39 string = "KAFKAS-MGMT-39" + + // Service account id is invalid + ERROR_40 string = "KAFKAS-MGMT-40" + + // Instance Type not supported + ERROR_41 string = "KAFKAS-MGMT-41" + + // Instance plan not supported + ERROR_42 string = "KAFKAS-MGMT-42" + + // Billing account id missing or invalid + ERROR_43 string = "KAFKAS-MGMT-43" + + // Synchronous action is not supported, use async=true parameter + ERROR_103 string = "KAFKAS-MGMT-103" + + // Failed to create kafka client in the mas sso + ERROR_106 string = "KAFKAS-MGMT-106" + + // Failed to get kafka client secret from the mas sso + ERROR_107 string = "KAFKAS-MGMT-107" + + // Failed to get kafka client from the mas sso + ERROR_108 string = "KAFKAS-MGMT-108" + + // Failed to delete kafka client from the mas sso + ERROR_109 string = "KAFKAS-MGMT-109" + + // Failed to create service account + ERROR_110 string = "KAFKAS-MGMT-110" + + // Failed to get service account + ERROR_111 string = "KAFKAS-MGMT-111" + + // Failed to delete service account + ERROR_112 string = "KAFKAS-MGMT-112" + + // Failed to find service account + ERROR_113 string = "KAFKAS-MGMT-113" + + // Max limit for the service account creation has reached + ERROR_115 string = "KAFKAS-MGMT-115" + + // Insufficient quota + ERROR_120 string = "KAFKAS-MGMT-120" + + // Failed to check quota + ERROR_121 string = "KAFKAS-MGMT-121" + + // Too Many requests + ERROR_429 string = "KAFKAS-MGMT-429" + + // An unexpected error happened, please check the log of the service for details + ERROR_1000 string = "KAFKAS-MGMT-1000" + +) \ No newline at end of file diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/.gitignore b/app-services-sdk-go/registryinstance/apiv1internal/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator-ignore b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/FILES b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/FILES new file mode 100644 index 00000000..3609dda0 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/FILES @@ -0,0 +1,100 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_admin.go +api_artifact_rules.go +api_artifacts.go +api_global_rules.go +api_metadata.go +api_search.go +api_system.go +api_users.go +api_versions.go +client.go +configuration.go +docs/AdminApi.md +docs/ArtifactMetaData.md +docs/ArtifactOwner.md +docs/ArtifactReference.md +docs/ArtifactRulesApi.md +docs/ArtifactSearchResults.md +docs/ArtifactState.md +docs/ArtifactType.md +docs/ArtifactsApi.md +docs/ConfigurationProperty.md +docs/ContentCreateRequest.md +docs/DownloadRef.md +docs/EditableMetaData.md +docs/Error.md +docs/GlobalRulesApi.md +docs/IfExists.md +docs/Limits.md +docs/LogConfiguration.md +docs/LogLevel.md +docs/MetadataApi.md +docs/NamedLogConfiguration.md +docs/NamedLogConfigurationAllOf.md +docs/RoleMapping.md +docs/RoleType.md +docs/Rule.md +docs/RuleType.md +docs/RuleViolationCause.md +docs/RuleViolationError.md +docs/RuleViolationErrorAllOf.md +docs/SearchApi.md +docs/SearchedArtifact.md +docs/SearchedVersion.md +docs/SortBy.md +docs/SortOrder.md +docs/SystemApi.md +docs/SystemInfo.md +docs/UpdateConfigurationProperty.md +docs/UpdateRole.md +docs/UpdateState.md +docs/UserInfo.md +docs/UsersApi.md +docs/VersionMetaData.md +docs/VersionSearchResults.md +docs/VersionsApi.md +git_push.sh +go.mod +go.sum +model_artifact_meta_data.go +model_artifact_owner.go +model_artifact_reference.go +model_artifact_search_results.go +model_artifact_state.go +model_artifact_type.go +model_configuration_property.go +model_content_create_request.go +model_download_ref.go +model_editable_meta_data.go +model_error.go +model_if_exists.go +model_limits.go +model_log_configuration.go +model_log_level.go +model_named_log_configuration.go +model_named_log_configuration_all_of.go +model_role_mapping.go +model_role_type.go +model_rule.go +model_rule_type.go +model_rule_violation_cause.go +model_rule_violation_error.go +model_rule_violation_error_all_of.go +model_searched_artifact.go +model_searched_version.go +model_sort_by.go +model_sort_order.go +model_system_info.go +model_update_configuration_property.go +model_update_role.go +model_update_state.go +model_user_info.go +model_version_meta_data.go +model_version_search_results.go +response.go +utils.go diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/VERSION b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/.travis.yml b/app-services-sdk-go/registryinstance/apiv1internal/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/README.md b/app-services-sdk-go/registryinstance/apiv1internal/client/README.md new file mode 100644 index 00000000..e623cd14 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/README.md @@ -0,0 +1,207 @@ +# Go API client for registryinstanceclient + +Service Registry Instance API +NOTE: This API cannot be called directly from the portal. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 2.2.5.Final +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen +For more information, please visit [https://github.com/apicurio/apicurio-registry](https://github.com/apicurio/apicurio-registry) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./registryinstanceclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminApi* | [**CreateRoleMapping**](docs/AdminApi.md#createrolemapping) | **Post** /admin/roleMappings | Create a new role mapping +*AdminApi* | [**DeleteRoleMapping**](docs/AdminApi.md#deleterolemapping) | **Delete** /admin/roleMappings/{principalId} | Delete a role mapping +*AdminApi* | [**ExportData**](docs/AdminApi.md#exportdata) | **Get** /admin/export | Export registry data +*AdminApi* | [**GetConfigProperty**](docs/AdminApi.md#getconfigproperty) | **Get** /admin/config/properties/{propertyName} | Get configuration property value +*AdminApi* | [**GetLogConfiguration**](docs/AdminApi.md#getlogconfiguration) | **Get** /admin/loggers/{logger} | Get a single logger configuration +*AdminApi* | [**GetRoleMapping**](docs/AdminApi.md#getrolemapping) | **Get** /admin/roleMappings/{principalId} | Return a single role mapping +*AdminApi* | [**ImportData**](docs/AdminApi.md#importdata) | **Post** /admin/import | Import registry data +*AdminApi* | [**ListConfigProperties**](docs/AdminApi.md#listconfigproperties) | **Get** /admin/config/properties | List all configuration properties +*AdminApi* | [**ListLogConfigurations**](docs/AdminApi.md#listlogconfigurations) | **Get** /admin/loggers | List logging configurations +*AdminApi* | [**ListRoleMappings**](docs/AdminApi.md#listrolemappings) | **Get** /admin/roleMappings | List all role mappings +*AdminApi* | [**RemoveLogConfiguration**](docs/AdminApi.md#removelogconfiguration) | **Delete** /admin/loggers/{logger} | Removes logger configuration +*AdminApi* | [**ResetConfigProperty**](docs/AdminApi.md#resetconfigproperty) | **Delete** /admin/config/properties/{propertyName} | Reset a configuration property +*AdminApi* | [**SetLogConfiguration**](docs/AdminApi.md#setlogconfiguration) | **Put** /admin/loggers/{logger} | Set a logger's configuration +*AdminApi* | [**UpdateConfigProperty**](docs/AdminApi.md#updateconfigproperty) | **Put** /admin/config/properties/{propertyName} | Update a configuration property +*AdminApi* | [**UpdateRoleMapping**](docs/AdminApi.md#updaterolemapping) | **Put** /admin/roleMappings/{principalId} | Update a role mapping +*ArtifactRulesApi* | [**CreateArtifactRule**](docs/ArtifactRulesApi.md#createartifactrule) | **Post** /groups/{groupId}/artifacts/{artifactId}/rules | Create artifact rule +*ArtifactRulesApi* | [**DeleteArtifactRule**](docs/ArtifactRulesApi.md#deleteartifactrule) | **Delete** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Delete artifact rule +*ArtifactRulesApi* | [**DeleteArtifactRules**](docs/ArtifactRulesApi.md#deleteartifactrules) | **Delete** /groups/{groupId}/artifacts/{artifactId}/rules | Delete artifact rules +*ArtifactRulesApi* | [**GetArtifactRuleConfig**](docs/ArtifactRulesApi.md#getartifactruleconfig) | **Get** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Get artifact rule configuration +*ArtifactRulesApi* | [**ListArtifactRules**](docs/ArtifactRulesApi.md#listartifactrules) | **Get** /groups/{groupId}/artifacts/{artifactId}/rules | List artifact rules +*ArtifactRulesApi* | [**TestUpdateArtifact**](docs/ArtifactRulesApi.md#testupdateartifact) | **Put** /groups/{groupId}/artifacts/{artifactId}/test | Test update artifact +*ArtifactRulesApi* | [**UpdateArtifactRuleConfig**](docs/ArtifactRulesApi.md#updateartifactruleconfig) | **Put** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Update artifact rule configuration +*ArtifactsApi* | [**CreateArtifact**](docs/ArtifactsApi.md#createartifact) | **Post** /groups/{groupId}/artifacts | Create artifact +*ArtifactsApi* | [**DeleteArtifact**](docs/ArtifactsApi.md#deleteartifact) | **Delete** /groups/{groupId}/artifacts/{artifactId} | Delete artifact +*ArtifactsApi* | [**DeleteArtifactsInGroup**](docs/ArtifactsApi.md#deleteartifactsingroup) | **Delete** /groups/{groupId}/artifacts | Delete artifacts in group +*ArtifactsApi* | [**GetContentByGlobalId**](docs/ArtifactsApi.md#getcontentbyglobalid) | **Get** /ids/globalIds/{globalId} | Get artifact by global ID +*ArtifactsApi* | [**GetContentByHash**](docs/ArtifactsApi.md#getcontentbyhash) | **Get** /ids/contentHashes/{contentHash}/ | Get artifact content by SHA-256 hash +*ArtifactsApi* | [**GetContentById**](docs/ArtifactsApi.md#getcontentbyid) | **Get** /ids/contentIds/{contentId}/ | Get artifact content by ID +*ArtifactsApi* | [**GetLatestArtifact**](docs/ArtifactsApi.md#getlatestartifact) | **Get** /groups/{groupId}/artifacts/{artifactId} | Get latest artifact +*ArtifactsApi* | [**ListArtifactsInGroup**](docs/ArtifactsApi.md#listartifactsingroup) | **Get** /groups/{groupId}/artifacts | List artifacts in group +*ArtifactsApi* | [**ReferencesByContentHash**](docs/ArtifactsApi.md#referencesbycontenthash) | **Get** /ids/contentHashes/{contentHash}/references | List artifact references by hash +*ArtifactsApi* | [**ReferencesByContentId**](docs/ArtifactsApi.md#referencesbycontentid) | **Get** /ids/contentIds/{contentId}/references | List artifact references by content ID +*ArtifactsApi* | [**ReferencesByGlobalId**](docs/ArtifactsApi.md#referencesbyglobalid) | **Get** /ids/globalIds/{globalId}/references | Returns a list with all the references for the artifact with the given global id. +*ArtifactsApi* | [**UpdateArtifact**](docs/ArtifactsApi.md#updateartifact) | **Put** /groups/{groupId}/artifacts/{artifactId} | Update artifact +*ArtifactsApi* | [**UpdateArtifactState**](docs/ArtifactsApi.md#updateartifactstate) | **Put** /groups/{groupId}/artifacts/{artifactId}/state | Update artifact state +*GlobalRulesApi* | [**CreateGlobalRule**](docs/GlobalRulesApi.md#createglobalrule) | **Post** /admin/rules | Create global rule +*GlobalRulesApi* | [**DeleteAllGlobalRules**](docs/GlobalRulesApi.md#deleteallglobalrules) | **Delete** /admin/rules | Delete all global rules +*GlobalRulesApi* | [**DeleteGlobalRule**](docs/GlobalRulesApi.md#deleteglobalrule) | **Delete** /admin/rules/{rule} | Delete global rule +*GlobalRulesApi* | [**GetGlobalRuleConfig**](docs/GlobalRulesApi.md#getglobalruleconfig) | **Get** /admin/rules/{rule} | Get global rule configuration +*GlobalRulesApi* | [**ListGlobalRules**](docs/GlobalRulesApi.md#listglobalrules) | **Get** /admin/rules | List global rules +*GlobalRulesApi* | [**UpdateGlobalRuleConfig**](docs/GlobalRulesApi.md#updateglobalruleconfig) | **Put** /admin/rules/{rule} | Update global rule configuration +*MetadataApi* | [**DeleteArtifactVersionMetaData**](docs/MetadataApi.md#deleteartifactversionmetadata) | **Delete** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Delete artifact version metadata +*MetadataApi* | [**GetArtifactMetaData**](docs/MetadataApi.md#getartifactmetadata) | **Get** /groups/{groupId}/artifacts/{artifactId}/meta | Get artifact metadata +*MetadataApi* | [**GetArtifactOwner**](docs/MetadataApi.md#getartifactowner) | **Get** /groups/{groupId}/artifacts/{artifactId}/owner | Get artifact owner +*MetadataApi* | [**GetArtifactVersionMetaData**](docs/MetadataApi.md#getartifactversionmetadata) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Get artifact version metadata +*MetadataApi* | [**GetArtifactVersionMetaDataByContent**](docs/MetadataApi.md#getartifactversionmetadatabycontent) | **Post** /groups/{groupId}/artifacts/{artifactId}/meta | Get artifact version metadata by content +*MetadataApi* | [**UpdateArtifactMetaData**](docs/MetadataApi.md#updateartifactmetadata) | **Put** /groups/{groupId}/artifacts/{artifactId}/meta | Update artifact metadata +*MetadataApi* | [**UpdateArtifactOwner**](docs/MetadataApi.md#updateartifactowner) | **Put** /groups/{groupId}/artifacts/{artifactId}/owner | Update artifact owner +*MetadataApi* | [**UpdateArtifactVersionMetaData**](docs/MetadataApi.md#updateartifactversionmetadata) | **Put** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Update artifact version metadata +*SearchApi* | [**SearchArtifacts**](docs/SearchApi.md#searchartifacts) | **Get** /search/artifacts | Search for artifacts +*SearchApi* | [**SearchArtifactsByContent**](docs/SearchApi.md#searchartifactsbycontent) | **Post** /search/artifacts | Search for artifacts by content +*SystemApi* | [**GetResourceLimits**](docs/SystemApi.md#getresourcelimits) | **Get** /system/limits | Get resource limits information +*SystemApi* | [**GetSystemInfo**](docs/SystemApi.md#getsysteminfo) | **Get** /system/info | Get system information +*UsersApi* | [**GetCurrentUserInfo**](docs/UsersApi.md#getcurrentuserinfo) | **Get** /users/me | Get current user +*VersionsApi* | [**CreateArtifactVersion**](docs/VersionsApi.md#createartifactversion) | **Post** /groups/{groupId}/artifacts/{artifactId}/versions | Create artifact version +*VersionsApi* | [**GetArtifactVersion**](docs/VersionsApi.md#getartifactversion) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version} | Get artifact version +*VersionsApi* | [**GetArtifactVersionReferences**](docs/VersionsApi.md#getartifactversionreferences) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/references | Get artifact version +*VersionsApi* | [**ListArtifactVersions**](docs/VersionsApi.md#listartifactversions) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions | List artifact versions +*VersionsApi* | [**UpdateArtifactVersionState**](docs/VersionsApi.md#updateartifactversionstate) | **Put** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/state | Update artifact version state + + +## Documentation For Models + + - [ArtifactMetaData](docs/ArtifactMetaData.md) + - [ArtifactOwner](docs/ArtifactOwner.md) + - [ArtifactReference](docs/ArtifactReference.md) + - [ArtifactSearchResults](docs/ArtifactSearchResults.md) + - [ArtifactState](docs/ArtifactState.md) + - [ArtifactType](docs/ArtifactType.md) + - [ConfigurationProperty](docs/ConfigurationProperty.md) + - [ContentCreateRequest](docs/ContentCreateRequest.md) + - [DownloadRef](docs/DownloadRef.md) + - [EditableMetaData](docs/EditableMetaData.md) + - [Error](docs/Error.md) + - [IfExists](docs/IfExists.md) + - [Limits](docs/Limits.md) + - [LogConfiguration](docs/LogConfiguration.md) + - [LogLevel](docs/LogLevel.md) + - [NamedLogConfiguration](docs/NamedLogConfiguration.md) + - [NamedLogConfigurationAllOf](docs/NamedLogConfigurationAllOf.md) + - [RoleMapping](docs/RoleMapping.md) + - [RoleType](docs/RoleType.md) + - [Rule](docs/Rule.md) + - [RuleType](docs/RuleType.md) + - [RuleViolationCause](docs/RuleViolationCause.md) + - [RuleViolationError](docs/RuleViolationError.md) + - [RuleViolationErrorAllOf](docs/RuleViolationErrorAllOf.md) + - [SearchedArtifact](docs/SearchedArtifact.md) + - [SearchedVersion](docs/SearchedVersion.md) + - [SortBy](docs/SortBy.md) + - [SortOrder](docs/SortOrder.md) + - [SystemInfo](docs/SystemInfo.md) + - [UpdateConfigurationProperty](docs/UpdateConfigurationProperty.md) + - [UpdateRole](docs/UpdateRole.md) + - [UpdateState](docs/UpdateState.md) + - [UserInfo](docs/UserInfo.md) + - [VersionMetaData](docs/VersionMetaData.md) + - [VersionSearchResults](docs/VersionSearchResults.md) + + +## Documentation For Authorization + + Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +apicurio@lists.jboss.org + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api/openapi.yaml b/app-services-sdk-go/registryinstance/apiv1internal/client/api/openapi.yaml new file mode 100644 index 00000000..3350b801 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api/openapi.yaml @@ -0,0 +1,4961 @@ +openapi: 3.0.2 +info: + contact: + email: apicurio@lists.jboss.org + name: Apicurio + url: https://github.com/apicurio/apicurio-registry + description: "Service Registry Instance API \nNOTE: This API cannot be called directly\ + \ from the portal." + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + title: Service Registry API + version: 2.2.5.Final +servers: +- url: / +tags: +- description: "The primary way to interact with the Apicurio Registry API is to add,\ + \ update, \nor delete artifacts. This section includes all of these primary operations." + name: Artifacts +- description: "Sometimes the metadata for an artifact is important. For example,\ + \ metadata includes \nwhen the artifact was created, last updated, and so on.\ + \ This section contains \noperations to access (and in some cases change) an artifact's\ + \ metadata." + name: Metadata +- description: "Whenever an artifact's content is updated, the old versions of the\ + \ artifact's content\nare not lost. All versions can be listed and accessed if\ + \ necessary. This section \ndescribes the operations used to list and access\ + \ all versions of an artifact's content\nand metadata." + name: Versions +- description: |- + Rules can be configured on a per-artifact basis, allowing for different approaches + to content evolution for each artifact. These rules override any global rules + that have been configured. This section contains the operations used to manage a + single artifact's rules. + name: Artifact rules +- description: "Global rules can be configured in the registry to govern how artifact\ + \ content can \nevolve over time (as artifact content is **updated**). Global\ + \ rules are applied \nwhenever an artifact is added to the registry, and also\ + \ whenever an artifact's \ncontent is updated (only if that artifact does not\ + \ have its own specific rules \nconfigured). This section describes the operations\ + \ used to manage the global rules." + name: Global rules +- description: 'The search API is used to browse or find artifacts in the registry. + This section describes the operations for searching for artifacts and versions. ' + name: Search +- description: Application functionality that is only accessible to admin users. Includes + logging, global rules, and export/import of registry data. + name: Admin +- description: System level functionality, including versioning and status information. + name: System +- description: Some operations related to users. + name: Users +paths: + /ids/contentIds/{contentId}/: + get: + description: | + Gets the content for an artifact version in the registry using the unique content + identifier for that content. This content ID may be shared by multiple artifact + versions in the case where the artifact versions are identical. + + This operation may fail for one of the following reasons: + + * No content with this `contentId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getContentById + parameters: + - description: Global identifier for a single artifact content. + explode: false + in: path + name: contentId + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact content by ID + tags: + - Artifacts + summary: Access artifact content utilizing the unique content identifier for that + content. + /ids/globalIds/{globalId}: + get: + description: | + Gets the content for an artifact version in the registry using its globally unique + identifier. + + This operation may fail for one of the following reasons: + + * No artifact version with this `globalId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getContentByGlobalId + parameters: + - description: Global identifier for an artifact version. + explode: false + in: path + name: globalId + required: true + schema: + format: int64 + type: integer + style: simple + - description: Allows the user to specify if the content should be dereferenced + when being returned + explode: true + in: query + name: dereference + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact by global ID + tags: + - Artifacts + summary: Access artifact content utilizing an artifact version's globally unique + identifier. + /ids/contentHashes/{contentHash}/: + get: + description: "Gets the content for an artifact version in the registry using\ + \ the \nSHA-256 hash of the content. This content hash may be shared by multiple\ + \ artifact\nversions in the case where the artifact versions have identical\ + \ content.\n\nThis operation may fail for one of the following reasons:\n\n\ + * No content with this `contentHash` exists (HTTP error `404`)\n* A server\ + \ error occurred (HTTP error `500`)\n" + operationId: getContentByHash + parameters: + - description: SHA-256 content hash for a single artifact content. + explode: false + in: path + name: contentHash + required: true + schema: + type: string + style: simple + responses: + "200": + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact content by SHA-256 hash + tags: + - Artifacts + summary: Access artifact content utilizing the SHA-256 hash of the content. + /admin/rules: + delete: + description: | + Deletes all globally configured rules. + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: deleteAllGlobalRules + responses: + "204": + description: All global rules have been removed successfully. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete all global rules + tags: + - Global rules + get: + description: | + Gets a list of all the currently configured global rules (if any). + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: listGlobalRules + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RuleType' + type: array + description: The list of names of the globally configured rules. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List global rules + tags: + - Global rules + post: + description: | + Adds a rule to the list of globally configured rules. + + This operation can fail for the following reasons: + + * The rule type is unknown (HTTP error `400`) + * The rule already exists (HTTP error `409`) + * A server error occurred (HTTP error `500`) + operationId: createGlobalRule + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + required: true + responses: + "204": + description: The global rule was added. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` + error. + "409": + content: + application/json: + examples: + ConflictExample: + value: + error_code: 409 + message: The artifact content was invalid. + schema: + $ref: '#/components/schemas/Error' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create global rule + tags: + - Global rules + summary: Manage the global rules that apply to all artifacts if not otherwise + configured. + /admin/rules/{rule}: + delete: + description: | + Deletes a single global rule. If this is the only rule configured, this is the same + as deleting **all** rules. + + This operation can fail for the following reasons: + + * Invalid rule name/type (HTTP error `400`) + * No rule with name/type `rule` exists (HTTP error `404`) + * Rule cannot be deleted (HTTP error `409`) + * A server error occurred (HTTP error `500`) + operationId: deleteGlobalRule + parameters: + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + $ref: '#/components/schemas/RuleType' + style: simple + responses: + "204": + description: The global rule was successfully deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete global rule + tags: + - Global rules + get: + description: | + Returns information about the named globally configured rule. + + This operation can fail for the following reasons: + + * Invalid rule name/type (HTTP error `400`) + * No rule with name/type `rule` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getGlobalRuleConfig + parameters: + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + $ref: '#/components/schemas/RuleType' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + description: The global rule's configuration. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get global rule configuration + tags: + - Global rules + put: + description: | + Updates the configuration for a globally configured rule. + + This operation can fail for the following reasons: + + * Invalid rule name/type (HTTP error `400`) + * No rule with name/type `rule` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: updateGlobalRuleConfig + parameters: + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + $ref: '#/components/schemas/RuleType' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + description: The global rule's configuration was successfully updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update global rule configuration + tags: + - Global rules + summary: Manage the configuration of a single global artifact rule. + /admin/loggers: + get: + description: |- + List all of the configured logging levels. These override the default + logging configuration. + operationId: listLogConfigurations + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/NamedLogConfiguration' + type: array + description: The list of logging configurations. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List logging configurations + tags: + - Admin + summary: Manage logger settings/configurations. + /admin/loggers/{logger}: + delete: + description: Removes the configured logger configuration (if any) for the given + logger. + operationId: removeLogConfiguration + parameters: + - description: The name of a single logger. + explode: false + in: path + name: logger + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NamedLogConfiguration' + description: "The default logger configuration (now that the configuration\ + \ for this logger has been removed, the \ndefault configuration is applied)." + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Removes logger configuration + tags: + - Admin + get: + description: Returns the configured logger configuration for the provided logger + name, if no logger configuration is persisted it will return the current default + log configuration in the system. + operationId: getLogConfiguration + parameters: + - description: The name of a single logger. + explode: false + in: path + name: logger + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NamedLogConfiguration' + description: The logger configuration for the named logger. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get a single logger configuration + tags: + - Admin + put: + description: Configures the logger referenced by the provided logger name with + the given configuration. + operationId: setLogConfiguration + parameters: + - description: The name of a single logger. + explode: false + in: path + name: logger + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LogConfiguration' + description: The new logger configuration. + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NamedLogConfiguration' + description: The new configuration for the given logger. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Set a logger's configuration + tags: + - Admin + summary: Manage logger settings/configurations. + /system/info: + get: + description: |- + This operation retrieves information about the running registry system, such as the version + of the software and when it was built. + operationId: getSystemInfo + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SystemInfo' + description: On success, returns the system information. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get system information + tags: + - System + summary: Retrieve system information + /search/artifacts: + get: + description: | + Returns a paginated list of all artifacts that match the provided filter criteria. + operationId: searchArtifacts + parameters: + - description: Filter by artifact name. + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: The number of artifacts to skip before starting to collect the + result set. Defaults to 0. + explode: true + in: query + name: offset + required: false + schema: + default: 0 + type: integer + style: form + - description: The number of artifacts to return. Defaults to 20. + explode: true + in: query + name: limit + required: false + schema: + default: 20 + type: integer + style: form + - description: Sort order, ascending (`asc`) or descending (`desc`). + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortOrder' + style: form + - description: | + The field to sort by. Can be one of: + + * `name` + * `createdOn` + explode: true + in: query + name: orderby + required: false + schema: + $ref: '#/components/schemas/SortBy' + style: form + - description: |- + Filter by label. Include one or more label to only return artifacts containing all of the + specified labels. + explode: true + in: query + name: labels + required: false + schema: + items: + type: string + type: array + style: form + - description: |- + Filter by one or more name/value property. Separate each name/value pair using a colon. For + example `properties=foo:bar` will return only artifacts with a custom property named `foo` + and value `bar`. + explode: true + in: query + name: properties + required: false + schema: + items: + type: string + type: array + style: form + - description: Filter by description. + explode: true + in: query + name: description + required: false + schema: + type: string + style: form + - description: Filter by artifact group. + explode: true + in: query + name: group + required: false + schema: + type: string + style: form + - description: Filter by globalId. + explode: true + in: query + name: globalId + required: false + schema: + format: int64 + type: integer + style: form + - description: Filter by contentId. + explode: true + in: query + name: contentId + required: false + schema: + format: int64 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactSearchResults' + description: |- + On a successful response, returns a result set of artifacts - one for each artifact + in the registry that matches the criteria. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Search for artifacts + tags: + - Search + post: + description: | + Returns a paginated list of all artifacts with at least one version that matches the + posted content. + operationId: searchArtifactsByContent + parameters: + - description: Parameter that can be set to `true` to indicate that the server + should "canonicalize" the content when searching for matching artifacts. Canonicalization + is unique to each artifact type, but typically involves removing any extra + whitespace and formatting the content in a consistent manner. Must be used + along with the `artifactType` query parameter. + explode: true + in: query + name: canonical + required: false + schema: + type: boolean + style: form + - description: Indicates the type of artifact represented by the content being + used for the search. This is only needed when using the `canonical` query + parameter, so that the server knows how to canonicalize the content prior + to searching for matching artifacts. + explode: true + in: query + name: artifactType + required: false + schema: + $ref: '#/components/schemas/ArtifactType' + style: form + - description: The number of artifacts to skip before starting to collect the + result set. Defaults to 0. + explode: true + in: query + name: offset + required: false + schema: + default: 0 + type: integer + style: form + - description: The number of artifacts to return. Defaults to 20. + explode: true + in: query + name: limit + required: false + schema: + default: 20 + type: integer + style: form + - description: Sort order, ascending (`asc`) or descending (`desc`). + explode: true + in: query + name: order + required: false + schema: + enum: + - asc + - desc + type: string + style: form + - description: | + The field to sort by. Can be one of: + + * `name` + * `createdOn` + explode: true + in: query + name: orderby + required: false + schema: + enum: + - name + - createdOn + type: string + style: form + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/FileContent' + description: The content to search for. + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactSearchResults' + description: |- + On a successful response, returns a result set of artifacts - one for each artifact + in the registry that matches the criteria. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Search for artifacts by content + tags: + - Search + summary: Search for artifacts in the registry. + /admin/export: + get: + description: Exports registry data as a ZIP archive. + operationId: exportData + parameters: + - description: Indicates if the operation is done for a browser. If true, the + response will be a JSON payload with a property called `href`. This `href` + will be a single-use, naked download link suitable for use by a web browser + to download the content. + explode: true + in: query + name: forBrowser + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + application/zip: + schema: + $ref: '#/components/schemas/FileContent' + description: Response when the export is successful. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Export registry data + tags: + - Admin + summary: Provides a way to export registry data. + /admin/import: + post: + description: Imports registry data that was previously exported using the `/admin/export` + operation. + operationId: importData + parameters: + - description: If this header is set to false, global ids of imported data will + be ignored and replaced by next id in global id sequence. This allows to + import any data even thought the global ids would cause a conflict. + explode: false + in: header + name: X-Registry-Preserve-GlobalId + required: false + schema: + type: boolean + style: simple + - description: If this header is set to false, content ids of imported data + will be ignored and replaced by next id in content id sequence. The mapping + between content and artifacts will be preserved. This allows to import any + data even thought the content ids would cause a conflict. + explode: false + in: header + name: X-Registry-Preserve-ContentId + required: false + schema: + type: boolean + style: simple + requestBody: + content: + application/zip: + schema: + $ref: '#/components/schemas/FileContent' + description: The ZIP file representing the previously exported registry data. + required: true + responses: + "201": + description: Indicates that the import was successful. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Import registry data + tags: + - Admin + summary: Provides a way to import data into the registry. + /groups/{groupId}/artifacts/{artifactId}/state: + put: + description: "Updates the state of the artifact. For example, you can use this\ + \ to mark the latest\nversion of an artifact as `DEPRECATED`. The operation\ + \ changes the state of the latest \nversion of the artifact. If multiple\ + \ versions exist, only the most recent is changed.\n\nThis operation can fail\ + \ for the following reasons:\n\n* No artifact with this `artifactId` exists\ + \ (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n" + operationId: updateArtifactState + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateState' + required: true + responses: + "204": + description: Returned when the operation was successful. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` + error. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact state + tags: + - Artifacts + summary: Manage the state of an artifact. + /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta: + delete: + description: | + Deletes the user-editable metadata properties of the artifact version. Any properties + that are not user-editable are preserved. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * No version with this `version` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: deleteArtifactVersionMetaData + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + responses: + "204": + description: The artifact version's user-editable metadata was successfully + deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete artifact version metadata + tags: + - Metadata + get: + description: "Retrieves the metadata for a single version of the artifact. \ + \ The version metadata is \na subset of the artifact metadata and only includes\ + \ the metadata that is specific to\nthe version (for example, this doesn't\ + \ include `modifiedOn`).\n\nThis operation can fail for the following reasons:\n\ + \n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No version\ + \ with this `version` exists (HTTP error `404`)\n* A server error occurred\ + \ (HTTP error `500`)\n" + operationId: getArtifactVersionMetaData + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VersionMetaData' + description: The artifact version's metadata. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact version metadata + tags: + - Metadata + put: + description: "Updates the user-editable portion of the artifact version's metadata.\ + \ Only some of \nthe metadata fields are editable by the user. For example,\ + \ `description` is editable, \nbut `createdOn` is not.\n\nThis operation can\ + \ fail for the following reasons:\n\n* No artifact with this `artifactId`\ + \ exists (HTTP error `404`)\n* No version with this `version` exists (HTTP\ + \ error `404`)\n* A server error occurred (HTTP error `500`)\n" + operationId: updateArtifactVersionMetaData + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditableMetaData' + required: true + responses: + "204": + description: The artifact version's metadata was successfully updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact version metadata + tags: + - Metadata + summary: Manage the metadata for a single version of an artifact in the registry. + /groups/{groupId}/artifacts/{artifactId}/versions/{version}: + get: + description: "Retrieves a single version of the artifact content. Both the\ + \ `artifactId` and the\nunique `version` number must be provided. The `Content-Type`\ + \ of the response depends \non the artifact type. In most cases, this is\ + \ `application/json`, but for some types \nit may be different (for example,\ + \ `PROTOBUF`).\n\nThis operation can fail for the following reasons:\n\n*\ + \ No artifact with this `artifactId` exists (HTTP error `404`)\n* No version\ + \ with this `version` exists (HTTP error `404`)\n* A server error occurred\ + \ (HTTP error `500`)\n" + operationId: getArtifactVersion + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + - description: Allows the user to specify if the content should be dereferenced + when being returned + explode: true + in: query + name: dereference + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact version + tags: + - Versions + summary: Manage a single version of a single artifact in the registry. + /groups/{groupId}/artifacts/{artifactId}/versions/{version}/state: + put: + description: "Updates the state of a specific version of an artifact. For example,\ + \ you can use \nthis operation to disable a specific version.\n\nThis operation\ + \ can fail for the following reasons:\n\n* No artifact with this `artifactId`\ + \ exists (HTTP error `404`)\n* No version with this `version` exists (HTTP\ + \ error `404`)\n* A server error occurred (HTTP error `500`)\n" + operationId: updateArtifactVersionState + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateState' + required: true + responses: + "204": + description: Returned when the update was successful. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` + error. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact version state + tags: + - Versions + summary: Manage the state of a specific artifact version. + /groups/{groupId}/artifacts/{artifactId}/rules: + delete: + description: |- + Deletes all of the rules configured for the artifact. After this is done, the global + rules apply to the artifact again. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: deleteArtifactRules + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + responses: + "204": + description: The rules were successfully deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete artifact rules + tags: + - Artifact rules + get: + description: "Returns a list of all rules configured for the artifact. The\ + \ set of rules determines\nhow the content of an artifact can evolve over\ + \ time. If no rules are configured for\nan artifact, the set of globally\ + \ configured rules are used. If no global rules \nare defined, there are\ + \ no restrictions on content evolution.\n\nThis operation can fail for the\ + \ following reasons:\n\n* No artifact with this `artifactId` exists (HTTP\ + \ error `404`)\n* A server error occurred (HTTP error `500`)" + operationId: listArtifactRules + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RuleType' + type: array + description: Returns the names of the rules configured for the artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List artifact rules + tags: + - Artifact rules + post: + description: |- + Adds a rule to the list of rules that get applied to the artifact when adding new + versions. All configured rules must pass to successfully add a new artifact version. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * Rule (named in the request body) is unknown (HTTP error `400`) + * A server error occurred (HTTP error `500`) + operationId: createArtifactRule + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + required: true + responses: + "204": + description: The rule was added. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` + error. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create artifact rule + tags: + - Artifact rules + summary: Manage the rules for a single artifact. + /groups/{groupId}/artifacts/{artifactId}/rules/{rule}: + delete: + description: "Deletes a rule from the artifact. This results in the rule no\ + \ longer applying for\nthis artifact. If this is the only rule configured\ + \ for the artifact, this is the \nsame as deleting **all** rules, and the\ + \ globally configured rules now apply to\nthis artifact.\n\nThis operation\ + \ can fail for the following reasons:\n\n* No artifact with this `artifactId`\ + \ exists (HTTP error `404`)\n* No rule with this name/type is configured for\ + \ this artifact (HTTP error `404`)\n* Invalid rule type (HTTP error `400`)\n\ + * A server error occurred (HTTP error `500`)" + operationId: deleteArtifactRule + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + enum: + - VALIDITY + - COMPATIBILITY + type: string + style: simple + responses: + "204": + description: The rule was successfully deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete artifact rule + tags: + - Artifact rules + get: + description: |- + Returns information about a single rule configured for an artifact. This is useful + when you want to know what the current configuration settings are for a specific rule. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * No rule with this name/type is configured for this artifact (HTTP error `404`) + * Invalid rule type (HTTP error `400`) + * A server error occurred (HTTP error `500`) + operationId: getArtifactRuleConfig + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + enum: + - VALIDITY + - COMPATIBILITY + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + description: Information about a rule. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact rule configuration + tags: + - Artifact rules + put: + description: "Updates the configuration of a single rule for the artifact. \ + \ The configuration data\nis specific to each rule type, so the configuration\ + \ of the `COMPATIBILITY` rule \nis in a different format from the configuration\ + \ of the `VALIDITY` rule.\n\nThis operation can fail for the following reasons:\n\ + \n* No artifact with this `artifactId` exists (HTTP error `404`)\n* No rule\ + \ with this name/type is configured for this artifact (HTTP error `404`)\n\ + * Invalid rule type (HTTP error `400`)\n* A server error occurred (HTTP error\ + \ `500`)\n" + operationId: updateArtifactRuleConfig + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique name/type of a rule. + explode: false + in: path + name: rule + required: true + schema: + enum: + - VALIDITY + - COMPATIBILITY + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Rule' + description: Rule configuration was updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact rule configuration + tags: + - Artifact rules + summary: Manage the configuration of a single artifact rule. + /admin/roleMappings/{principalId}: + delete: + description: | + Deletes a single role mapping, effectively denying access to a user/principal. + + This operation can fail for the following reasons: + + * No role mapping for the principalId exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: deleteRoleMapping + parameters: + - description: Unique id of a principal (typically either a user or service + account). + explode: false + in: path + name: principalId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Response returned when the delete was successful. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete a role mapping + tags: + - Admin + get: + description: | + Gets the details of a single role mapping (by `principalId`). + + This operation can fail for the following reasons: + + * No role mapping for the `principalId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getRoleMapping + parameters: + - description: Unique id of a principal (typically either a user or service + account). + explode: false + in: path + name: principalId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RoleMapping' + description: When successful, returns the details of a role mapping. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Return a single role mapping + tags: + - Admin + put: + description: | + Updates a single role mapping for one user/principal. + + This operation can fail for the following reasons: + + * No role mapping for the principalId exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: updateRoleMapping + parameters: + - description: Unique id of a principal (typically either a user or service + account). + explode: false + in: path + name: principalId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateRole' + required: true + responses: + "204": + description: Response when the update is successful. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update a role mapping + tags: + - Admin + summary: Manage the configuration of a single role mapping. + /admin/roleMappings: + get: + description: | + Gets a list of all role mappings configured in the registry (if any). + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: listRoleMappings + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/RoleMapping' + type: array + description: A successful response will return the list of role mappings. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List all role mappings + tags: + - Admin + post: + description: |+ + Creates a new mapping between a user/principal and a role. + + This operation can fail for the following reasons: + + * A server error occurred (HTTP error `500`) + + operationId: createRoleMapping + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleMapping' + required: true + responses: + "204": + description: Returned when the role mapping was successfully created. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create a new role mapping + tags: + - Admin + summary: Collection to manage role mappings for authenticated principals + /users/me: + get: + description: Returns information about the currently authenticated user. + operationId: getCurrentUserInfo + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserInfo' + description: Response when the endpoint is successfully invoked. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get current user + tags: + - Users + summary: Retrieves information about the current user + /ids/contentHashes/{contentHash}/references: + get: + description: | + Returns a list containing all the artifact references using the artifact content hash. + + This operation may fail for one of the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: referencesByContentHash + parameters: + - description: SHA-256 content hash for a single artifact content. + explode: false + in: path + name: contentHash + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + description: A list containing all the references for the artifact with + the given content hash. + summary: List artifact references by hash + tags: + - Artifacts + /ids/contentIds/{contentId}/references: + get: + description: |- + Returns a list containing all the artifact references using the artifact content ID. + + This operation may fail for one of the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: referencesByContentId + parameters: + - description: Global identifier for a single artifact content. + explode: false + in: path + name: contentId + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + description: A list containing all the references for the artifact with + the given content id. + summary: List artifact references by content ID + tags: + - Artifacts + /ids/globalIds/{globalId}/references: + get: + description: |- + Returns a list containing all the artifact references using the artifact global id. + + This operation may fail for one of the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: referencesByGlobalId + parameters: + - description: Global identifier for an artifact version. + explode: false + in: path + name: globalId + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + description: A list containing all the references for the artifact with + the given global id. + summary: Returns a list with all the references for the artifact with the given + global id. + tags: + - Artifacts + /groups/{groupId}/artifacts/{artifactId}/versions/{version}/references: + get: + description: "Retrieves a single version of the artifact content. Both the\ + \ `artifactId` and the\nunique `version` number must be provided. The `Content-Type`\ + \ of the response depends \non the artifact type. In most cases, this is\ + \ `application/json`, but for some types \nit may be different (for example,\ + \ `PROTOBUF`).\n\nThis operation can fail for the following reasons:\n\n*\ + \ No artifact with this `artifactId` exists (HTTP error `404`)\n* No version\ + \ with this `version` exists (HTTP error `404`)\n* A server error occurred\ + \ (HTTP error `500`)\n" + operationId: getArtifactVersionReferences + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The unique identifier of a specific version of the artifact content. + explode: false + in: path + name: version + required: true + schema: + $ref: '#/components/schemas/Version' + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + description: List of all the artifact references for this artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact version + tags: + - Versions + summary: Manage the references for a single version of an artifact in the registry. + /admin/config/properties: + get: + description: | + Returns a list of all configuration properties that have been set. The list is not paged. + + This operation may fail for one of the following reasons: + + * A server error occurred (HTTP error `500`) + operationId: listConfigProperties + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ConfigurationProperty' + type: array + description: On a successful response, returns a list of configuration properties. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List all configuration properties + tags: + - Admin + summary: Manage configuration properties. + /admin/config/properties/{propertyName}: + delete: + description: | + Resets the value of a single configuration property. This will return the property to + its default value (see external documentation for supported properties and their default + values). + + This operation may fail for one of the following reasons: + + * Property not found or not configured (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: resetConfigProperty + parameters: + - description: The name of a configuration property. + explode: false + in: path + name: propertyName + required: true + schema: + type: string + style: simple + responses: + "204": + description: The configuration property was deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Reset a configuration property + tags: + - Admin + get: + description: | + Returns the value of a single configuration property. + + This operation may fail for one of the following reasons: + + * Property not found or not configured (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getConfigProperty + parameters: + - description: The name of a configuration property. + explode: false + in: path + name: propertyName + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigurationProperty' + description: The configuration property value. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get configuration property value + tags: + - Admin + put: + description: | + Updates the value of a single configuration property. + + This operation may fail for one of the following reasons: + + * Property not found or not configured (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: updateConfigProperty + parameters: + - description: The name of a configuration property. + explode: false + in: path + name: propertyName + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateConfigurationProperty' + required: true + responses: + "204": + description: The configuration property was updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update a configuration property + tags: + - Admin + summary: Manage a single configuration property (by name). + /system/limits: + get: + description: This operation retrieves the list of limitations on used resources, + that are applied on the current instance of Registry. + operationId: getResourceLimits + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Limits' + description: On success, returns resource limits + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get resource limits information + tags: + - System + summary: Retrieve resource limits information + /groups/{groupId}/artifacts/{artifactId}: + delete: + description: |- + Deletes an artifact completely, resulting in all versions of the artifact also being + deleted. This may fail for one of the following reasons: + + * No artifact with the `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: deleteArtifact + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + responses: + "204": + description: Returned when the artifact was successfully deleted. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete artifact + tags: + - Artifacts + get: + description: "Returns the latest version of the artifact in its raw form. The\ + \ `Content-Type` of the\nresponse depends on the artifact type. In most cases,\ + \ this is `application/json`, but \nfor some types it may be different (for\ + \ example, `PROTOBUF`).\n\nThis operation may fail for one of the following\ + \ reasons:\n\n* No artifact with this `artifactId` exists (HTTP error `404`)\n\ + * A server error occurred (HTTP error `500`)\n" + operationId: getLatestArtifact + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: Allows the user to specify if the content should be dereferenced + when being returned + explode: true + in: query + name: dereference + required: false + schema: + type: boolean + style: form + responses: + "200": + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get latest artifact + tags: + - Artifacts + put: + description: |- + Updates an artifact by uploading new content. The body of the request can + be the raw content of the artifact or a JSON object containing both the raw content and + a set of references to other artifacts.. This is typically in JSON format for *most* + of the supported types, but may be in another format for a few (for example, `PROTOBUF`). + The type of the content should be compatible with the artifact's type (it would be + an error to update an `AVRO` artifact with new `OPENAPI` content, for example). + + The update could fail for a number of reasons including: + + * Provided content (request body) was empty (HTTP error `400`) + * No artifact with the `artifactId` exists (HTTP error `404`) + * The new content violates one of the rules configured for the artifact (HTTP error `409`) + * A server error occurred (HTTP error `500`) + + When successful, this creates a new version of the artifact, making it the most recent + (and therefore official) version of the artifact. + operationId: updateArtifact + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: |- + Specifies the version number of this new version of the artifact content. This would typically + be a simple integer or a SemVer value. If not provided, the server will assign a version number + automatically. + explode: false + in: header + name: X-Registry-Version + required: false + schema: + $ref: '#/components/schemas/Version' + style: simple + - description: |- + Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not + provided, the server will extract the name from the artifact content. + explode: false + in: header + name: X-Registry-Name + required: false + schema: + $ref: '#/components/schemas/ArtifactName' + style: simple + - description: Specifies the artifact name of this new version of the artifact + content. Value of this must be Base64 encoded string. If this is not provided, + the server will extract the name from the artifact content. + explode: false + in: header + name: X-Registry-Name-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactName' + style: simple + - description: Specifies the artifact description of this new version of the + artifact content. Description must be ASCII-only string. If this is not + provided, the server will extract the description from the artifact content. + explode: false + in: header + name: X-Registry-Description + required: false + schema: + $ref: '#/components/schemas/ArtifactDescription' + style: simple + - description: Specifies the artifact description of this new version of the + artifact content. Value of this must be Base64 encoded string. If this is + not provided, the server will extract the description from the artifact + content. + explode: false + in: header + name: X-Registry-Description-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactDescription' + style: simple + requestBody: + content: + '*/*': + examples: + OpenAPI Example: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.7 + description: An example API design using OpenAPI. + paths: + /widgets: + get: + responses: + "200": + content: + application/json: + schema: + type: array + items: + type: string + description: All widgets + summary: Get widgets + components: + schemas: + Widget: + title: Root Type for Widget + description: A sample data type. + type: object + properties: + property-1: + type: string + property-2: + type: boolean + example: + property-1: value1 + property-2: true + schema: {} + application/json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + description: | + The new content of the artifact being updated. This is often, but not always, JSON data + representing one of the supported artifact types: + + * Avro (`AVRO`) + * Protobuf (`PROTOBUF`) + * JSON Schema (`JSON`) + * Kafka Connect (`KCONNECT`) + * OpenAPI (`OPENAPI`) + * AsyncAPI (`ASYNCAPI`) + * GraphQL (`GRAPHQL`) + * Web Services Description Language (`WSDL`) + * XML Schema (`XSD`) + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactMetaData' + description: When successful, returns the updated artifact metadata. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "409": + content: + application/json: + examples: + ConflictExample: + value: + error_code: 409 + message: The artifact content was invalid. + schema: + $ref: '#/components/schemas/Error' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact + tags: + - Artifacts + summary: Manage a single artifact. + /groups/{groupId}/artifacts: + delete: + description: Deletes all of the artifacts that exist in a given group. + operationId: deleteArtifactsInGroup + parameters: + - description: Unique ID of an artifact group. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + responses: + "204": + description: When the delete operation is successful, a simple 204 is returned. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Delete artifacts in group + tags: + - Artifacts + get: + description: Returns a list of all artifacts in the group. This list is paged. + operationId: listArtifactsInGroup + parameters: + - description: Unique ID of an artifact group. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The number of artifacts to return. Defaults to 20. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: The number of artifacts to skip before starting the result set. Defaults + to 0. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: Sort order, ascending (`asc`) or descending (`desc`). + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortOrder' + style: form + - description: | + The field to sort by. Can be one of: + + * `name` + * `createdOn` + explode: true + in: query + name: orderby + required: false + schema: + $ref: '#/components/schemas/SortBy' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactSearchResults' + description: On a successful response, returns a bounded set of artifacts. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List artifacts in group + tags: + - Artifacts + post: + description: "Creates a new artifact by posting the artifact content. The body\ + \ of the request should\nbe the raw content of the artifact. This is typically\ + \ in JSON format for *most* of the \nsupported types, but may be in another\ + \ format for a few (for example, `PROTOBUF`).\n\nThe registry attempts to\ + \ figure out what kind of artifact is being added from the\nfollowing supported\ + \ list:\n\n* Avro (`AVRO`)\n* Protobuf (`PROTOBUF`)\n* JSON Schema (`JSON`)\n\ + * Kafka Connect (`KCONNECT`)\n* OpenAPI (`OPENAPI`)\n* AsyncAPI (`ASYNCAPI`)\n\ + * GraphQL (`GRAPHQL`)\n* Web Services Description Language (`WSDL`)\n* XML\ + \ Schema (`XSD`)\n\nAlternatively, you can specify the artifact type using\ + \ the `X-Registry-ArtifactType` \nHTTP request header, or include a hint in\ + \ the request's `Content-Type`. For example:\n\n```\nContent-Type: application/json;\ + \ artifactType=AVRO\n```\n\nAn artifact is created using the content provided\ + \ in the body of the request. This\ncontent is created under a unique artifact\ + \ ID that can be provided in the request\nusing the `X-Registry-ArtifactId`\ + \ request header. If not provided in the request,\nthe server generates a\ + \ unique ID for the artifact. It is typically recommended\nthat callers provide\ + \ the ID, because this is typically a meaningful identifier, \nand for most\ + \ use cases should be supplied by the caller.\n\nIf an artifact with the provided\ + \ artifact ID already exists, the default behavior\nis for the server to reject\ + \ the content with a 409 error. However, the caller can\nsupply the `ifExists`\ + \ query parameter to alter this default behavior. The `ifExists`\nquery parameter\ + \ can have one of the following values:\n\n* `FAIL` (*default*) - server rejects\ + \ the content with a 409 error\n* `UPDATE` - server updates the existing artifact\ + \ and returns the new metadata\n* `RETURN` - server does not create or add\ + \ content to the server, but instead \nreturns the metadata for the existing\ + \ artifact\n* `RETURN_OR_UPDATE` - server returns an existing **version**\ + \ that matches the \nprovided content if such a version exists, otherwise\ + \ a new version is created\n\nThis operation may fail for one of the following\ + \ reasons:\n\n* An invalid `ArtifactType` was indicated (HTTP error `400`)\n\ + * No `ArtifactType` was indicated and the server could not determine one from\ + \ the content (HTTP error `400`)\n* Provided content (request body) was empty\ + \ (HTTP error `400`)\n* An artifact with the provided ID already exists (HTTP\ + \ error `409`)\n* The content violates one of the configured global rules\ + \ (HTTP error `409`)\n* A server error occurred (HTTP error `500`)\n" + operationId: createArtifact + parameters: + - description: Unique ID of an artifact group. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: |- + Specifies the type of the artifact being added. Possible values include: + + * Avro (`AVRO`) + * Protobuf (`PROTOBUF`) + * JSON Schema (`JSON`) + * Kafka Connect (`KCONNECT`) + * OpenAPI (`OPENAPI`) + * AsyncAPI (`ASYNCAPI`) + * GraphQL (`GRAPHQL`) + * Web Services Description Language (`WSDL`) + * XML Schema (`XSD`) + explode: false + in: header + name: X-Registry-ArtifactType + required: false + schema: + $ref: '#/components/schemas/ArtifactType' + style: simple + - description: A client-provided, globally unique identifier for the new artifact. + explode: false + in: header + name: X-Registry-ArtifactId + required: false + schema: + type: string + style: simple + - description: |- + Specifies the version number of this initial version of the artifact content. This would typically + be a simple integer or a SemVer value. If not provided, the server will assign a version number + automatically (starting with version `1`). + explode: false + in: header + name: X-Registry-Version + required: false + schema: + $ref: '#/components/schemas/Version' + style: simple + - description: Set this option to instruct the server on what to do if the artifact + already exists. + explode: true + in: query + name: ifExists + required: false + schema: + $ref: '#/components/schemas/IfExists' + style: form + - description: Used only when the `ifExists` query parameter is set to `RETURN_OR_UPDATE`, + this parameter can be set to `true` to indicate that the server should "canonicalize" + the content when searching for a matching version. The canonicalization + algorithm is unique to each artifact type, but typically involves removing + extra whitespace and formatting the content in a consistent manner. + explode: true + in: query + name: canonical + required: false + schema: + type: boolean + style: form + - description: Specifies the description of artifact being added. Description + must be ASCII-only string. If this is not provided, the server will extract + the description from the artifact content. + explode: false + in: header + name: X-Registry-Description + required: false + schema: + $ref: '#/components/schemas/ArtifactDescription' + style: simple + - description: Specifies the description of artifact being added. Value of this + must be Base64 encoded string. If this is not provided, the server will + extract the description from the artifact content. + explode: false + in: header + name: X-Registry-Description-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactDescription' + style: simple + - description: Specifies the name of artifact being added. Name must be ASCII-only + string. If this is not provided, the server will extract the name from the + artifact content. + explode: false + in: header + name: X-Registry-Name + required: false + schema: + $ref: '#/components/schemas/ArtifactName' + style: simple + - description: Specifies the name of artifact being added. Value of this must + be Base64 encoded string. If this is not provided, the server will extract + the name from the artifact content. + explode: false + in: header + name: X-Registry-Name-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactName' + style: simple + - description: Specifies the (optional) hash of the artifact to be verified. + explode: false + in: header + name: X-Registry-Content-Hash + required: false + schema: + type: string + style: simple + - description: 'The algorithm to use when checking the content validity. (available: + SHA256, MD5; default: SHA256)' + explode: false + in: header + name: X-Registry-Hash-Algorithm + required: false + schema: + enum: + - SHA256 + - MD5 + type: string + style: simple + requestBody: + content: + '*/*': + examples: + OpenAPI Example: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.7 + description: An example API design using OpenAPI. + paths: + /widgets: + get: + responses: + "200": + content: + application/json: + schema: + type: array + items: + type: string + description: All widgets + summary: Get widgets + components: + schemas: + Widget: + title: Root Type for Widget + description: A sample data type. + type: object + properties: + property-1: + type: string + property-2: + type: boolean + example: + property-1: value1 + property-2: true + schema: {} + application/json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + description: | + The content of the artifact being created. This is often, but not always, JSON data + representing one of the supported artifact types: + + * Avro (`AVRO`) + * Protobuf (`PROTOBUF`) + * JSON Schema (`JSON`) + * Kafka Connect (`KCONNECT`) + * OpenAPI (`OPENAPI`) + * AsyncAPI (`ASYNCAPI`) + * GraphQL (`GRAPHQL`) + * Web Services Description Language (`WSDL`) + * XML Schema (`XSD`) + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactMetaData' + description: Artifact was successfully created. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` + error. + "409": + content: + application/json: + examples: + RuleViolationConflictExample: + value: + error_code: 409 + message: The artifact content was invalid + causes: + - description: API is missing a title + context: /info[title] + - description: Operation IDs must be unique + context: /paths[/invoices]/put[operationId] + schema: + $ref: '#/components/schemas/RuleViolationError' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create artifact + tags: + - Artifacts + summary: Manage the collection of artifacts within a single group in the registry. + /groups/{groupId}/artifacts/{artifactId}/test: + put: + description: "Tests whether an update to the artifact's content *would* succeed\ + \ for the provided content.\nUltimately, this applies any rules configured\ + \ for the artifact against the given content\nto determine whether the rules\ + \ would pass or fail, but without actually updating the artifact\ncontent.\n\ + \nThe body of the request should be the raw content of the artifact. This\ + \ is typically in \nJSON format for *most* of the supported types, but may\ + \ be in another format for a few \n(for example, `PROTOBUF`).\n\nThe update\ + \ could fail for a number of reasons including:\n\n* Provided content (request\ + \ body) was empty (HTTP error `400`)\n* No artifact with the `artifactId`\ + \ exists (HTTP error `404`)\n* The new content violates one of the rules configured\ + \ for the artifact (HTTP error `409`)\n* The provided artifact type is not\ + \ recognized (HTTP error `404`)\n* A server error occurred (HTTP error `500`)\n\ + \nWhen successful, this operation simply returns a *No Content* response.\ + \ This response\nindicates that the content is valid against the configured\ + \ content rules for the \nartifact (or the global rules if no artifact rules\ + \ are enabled)." + operationId: testUpdateArtifact + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + requestBody: + content: + '*/*': + schema: {} + description: | + The content of the artifact being tested. This is often, but not always, JSON data + representing one of the supported artifact types: + + * Avro (`AVRO`) + * Protobuf (`PROTOBUF`) + * JSON Schema (`JSON`) + * Kafka Connect (`KCONNECT`) + * OpenAPI (`OPENAPI`) + * AsyncAPI (`ASYNCAPI`) + * GraphQL (`GRAPHQL`) + * Web Services Description Language (`WSDL`) + * XML Schema (`XSD`) + required: true + responses: + "204": + description: |- + When successful, returns "No Content" to indicate that the rules passed, and the + content was not updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "409": + content: + application/json: + examples: + RuleViolationConflictExample: + value: + error_code: 409 + message: The artifact content was invalid + causes: + - description: API is missing a title + context: /info[title] + - description: Operation IDs must be unique + context: /paths[/invoices]/put[operationId] + schema: + $ref: '#/components/schemas/RuleViolationError' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Test update artifact + tags: + - Artifact rules + summary: Test whether content would pass update rules. + /groups/{groupId}/artifacts/{artifactId}/versions: + get: + description: | + Returns a list of all versions of the artifact. The result set is paged. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: listArtifactVersions + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: The number of versions to skip before starting to collect the + result set. Defaults to 0. + explode: true + in: query + name: offset + required: false + schema: + type: integer + style: form + - description: The number of versions to return. Defaults to 20. + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + responses: + "200": + content: + application/json: + examples: + All Versions: + value: + - 5 + - 6 + - 10 + - 103 + schema: + $ref: '#/components/schemas/VersionSearchResults' + description: List of all artifact versions. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: List artifact versions + tags: + - Versions + post: + description: "Creates a new version of the artifact by uploading new content.\ + \ The configured rules for\nthe artifact are applied, and if they all pass,\ + \ the new content is added as the most recent \nversion of the artifact. \ + \ If any of the rules fail, an error is returned.\n\nThe body of the request\ + \ can be the raw content of the new artifact version, or the raw content \n\ + and a set of references pointing to other artifacts, and the type\nof that\ + \ content should match the artifact's type (for example if the artifact type\ + \ is `AVRO`\nthen the content of the request should be an Apache Avro document).\n\ + \nThis operation can fail for the following reasons:\n\n* Provided content\ + \ (request body) was empty (HTTP error `400`)\n* No artifact with this `artifactId`\ + \ exists (HTTP error `404`)\n* The new content violates one of the rules configured\ + \ for the artifact (HTTP error `409`)\n* A server error occurred (HTTP error\ + \ `500`)\n" + operationId: createArtifactVersion + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: |- + Specifies the version number of this new version of the artifact content. This would typically + be a simple integer or a SemVer value. It must be unique within the artifact. If this is not + provided, the server will generate a new, unique version number for this new updated content. + explode: false + in: header + name: X-Registry-Version + required: false + schema: + $ref: '#/components/schemas/Version' + style: simple + - description: |- + Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not + provided, the server will extract the name from the artifact content. + explode: false + in: header + name: X-Registry-Name + required: false + schema: + $ref: '#/components/schemas/ArtifactName' + style: simple + - description: Specifies the artifact description of this new version of the + artifact content. Description must be ASCII-only string. If this is not + provided, the server will extract the description from the artifact content. + explode: false + in: header + name: X-Registry-Description + required: false + schema: + $ref: '#/components/schemas/ArtifactDescription' + style: simple + - description: Specifies the artifact description of this new version of the + artifact content. Value of this must be Base64 encoded string. If this is + not provided, the server will extract the description from the artifact + content. + explode: false + in: header + name: X-Registry-Description-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactDescription' + style: simple + - description: Specifies the artifact name of this new version of the artifact + content. Value of this must be Base64 encoded string. If this is not provided, + the server will extract the name from the artifact content. + explode: false + in: header + name: X-Registry-Name-Encoded + required: false + schema: + $ref: '#/components/schemas/EncodedArtifactName' + style: simple + requestBody: + content: + '*/*': + examples: + OpenAPI Example: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.7 + description: An example API design using OpenAPI. + paths: + /widgets: + get: + responses: + "200": + content: + application/json: + schema: + type: array + items: + type: string + description: All widgets + summary: Get widgets + components: + schemas: + Widget: + title: Root Type for Widget + description: A sample data type. + type: object + properties: + property-1: + type: string + property-2: + type: boolean + example: + property-1: value1 + property-2: true + schema: {} + application/json: + schema: + $ref: '#/components/schemas/ContentCreateRequest' + description: | + The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data + representing one of the supported artifact types: + + * Avro (`AVRO`) + * Protobuf (`PROTOBUF`) + * JSON Schema (`JSON`) + * Kafka Connect (`KCONNECT`) + * OpenAPI (`OPENAPI`) + * AsyncAPI (`ASYNCAPI`) + * GraphQL (`GRAPHQL`) + * Web Services Description Language (`WSDL`) + * XML Schema (`XSD`) + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VersionMetaData' + description: The artifact version was successfully created. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "409": + content: + application/json: + examples: + RuleViolationConflictExample: + value: + error_code: 409 + message: The artifact content was invalid + causes: + - description: API is missing a title + context: /info[title] + - description: Operation IDs must be unique + context: /paths[/invoices]/put[operationId] + schema: + $ref: '#/components/schemas/RuleViolationError' + description: Common response used when an input conflicts with existing + data. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Create artifact version + tags: + - Versions + summary: Manage all the versions of an artifact in the registry. + /groups/{groupId}/artifacts/{artifactId}/meta: + get: + description: |- + Gets the metadata for an artifact in the registry. The returned metadata includes + both generated (read-only) and editable metadata (such as name and description). + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getArtifactMetaData + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactMetaData' + description: The artifact's metadata. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact metadata + tags: + - Metadata + post: + description: | + Gets the metadata for an artifact that matches the raw content. Searches the registry + for a version of the given artifact matching the content provided in the body of the + POST. + + This operation can fail for the following reasons: + + * Provided content (request body) was empty (HTTP error `400`) + * No artifact with the `artifactId` exists (HTTP error `404`) + * No artifact version matching the provided content exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getArtifactVersionMetaDataByContent + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + - description: Parameter that can be set to `true` to indicate that the server + should "canonicalize" the content when searching for a matching version. Canonicalization + is unique to each artifact type, but typically involves removing any extra + whitespace and formatting the content in a consistent manner. + explode: true + in: query + name: canonical + required: false + schema: + type: boolean + style: form + requestBody: + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.7 + description: An example API design using OpenAPI. + paths: + /widgets: + get: + responses: + "200": + content: + application/json: + schema: + type: array + items: + type: string + description: All widgets + summary: Get widgets + components: + schemas: + Widget: + title: Root Type for Widget + description: A sample data type. + type: object + properties: + property-1: + type: string + property-2: + type: boolean + example: + property-1: value1 + property-2: true + schema: {} + description: The content of an artifact version. + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VersionMetaData' + description: The metadata of the artifact version matching the provided + content. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact version metadata by content + tags: + - Metadata + put: + description: |- + Updates the editable parts of the artifact's metadata. Not all metadata fields can + be updated. For example, `createdOn` and `createdBy` are both read-only properties. + + This operation can fail for the following reasons: + + * No artifact with the `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: updateArtifactMetaData + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditableMetaData' + description: Updated artifact metadata. + required: true + responses: + "204": + description: The artifact's metadata was updated. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact metadata + tags: + - Metadata + summary: Manage the metadata of a single artifact. + /groups/{groupId}/artifacts/{artifactId}/owner: + get: + description: |- + Gets the owner of an artifact in the registry. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: getArtifactOwner + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactOwner' + description: The artifact's owner. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Get artifact owner + tags: + - Metadata + put: + description: |- + Changes the ownership of an artifact. + + This operation can fail for the following reasons: + + * No artifact with this `artifactId` exists (HTTP error `404`) + * A server error occurred (HTTP error `500`) + operationId: updateArtifactOwner + parameters: + - description: The artifact group ID. Must be a string provided by the client, + representing the name of the grouping of artifacts. + explode: false + in: path + name: groupId + required: true + schema: + $ref: '#/components/schemas/GroupId' + style: simple + - description: The artifact ID. Can be a string (client-provided) or UUID (server-generated), + representing the unique artifact identifier. + explode: false + in: path + name: artifactId + required: true + schema: + $ref: '#/components/schemas/ArtifactId' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ArtifactOwner' + required: true + responses: + "204": + description: The owner was successfully changed. + "404": + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` + error. + "500": + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + summary: Update artifact owner + tags: + - Metadata + summary: Manage the ownership of a single artifact. +components: + responses: + NotFound: + content: + application/json: + examples: + NotFoundExample: + value: + error_code: 404 + message: No artifact with id 'Topic-1/Inbound' could be found. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `404` error. + ServerError: + content: + application/json: + examples: + ErrorExample: + value: + error_code: 500 + message: Lost connection to the database. + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can fail with an unexpected + server error. + BadRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Common response for all operations that can return a `400` error. + Conflict: + content: + application/json: + examples: + ConflictExample: + value: + error_code: 409 + message: The artifact content was invalid. + schema: + $ref: '#/components/schemas/Error' + description: Common response used when an input conflicts with existing data. + RuleViolationConflict: + content: + application/json: + examples: + RuleViolationConflictExample: + value: + error_code: 409 + message: The artifact content was invalid + causes: + - description: API is missing a title + context: /info[title] + - description: Operation IDs must be unique + context: /paths[/invoices]/put[operationId] + schema: + $ref: '#/components/schemas/RuleViolationError' + description: Common response used when an input conflicts with existing data. + ArtifactContent: + content: + '*/*': + examples: + OpenAPI: + value: + openapi: 3.0.2 + info: + title: Empty API + version: 1.0.0 + description: An example API design using OpenAPI. + schema: + $ref: '#/components/schemas/FileContent' + description: The content of one version of one artifact. + schemas: + EditableMetaData: + example: + name: Artifact Name + description: The description of the artifact. + labels: + - regional + - global + properties: + custom-1: foo + custom-2: bar + properties: + name: + type: string + description: + type: string + labels: + items: + type: string + type: array + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + title: Root Type for EditableArtifactMetaData + type: object + Rule: + example: + type: VALIDITY + config: FULL + properties: + config: + type: string + type: + $ref: '#/components/schemas/RuleType' + required: + - config + title: Root Type for Rule + type: object + Error: + description: |- + All error responses, whether `4xx` or `5xx` will include one of these as the response + body. + example: + error_code: 500 + message: An error occurred somewhere. + properties: + message: + description: The short error message. + type: string + error_code: + description: The server-side error code. + format: int32 + type: integer + detail: + description: Full details about the error. This might contain a server + stack trace, for example. + type: string + name: + description: The error name - typically the classname of the exception thrown + by the server. + type: string + title: Root Type for Error + type: object + RuleType: + enum: + - VALIDITY + - COMPATIBILITY + example: VALIDITY + type: string + x-codegen-package: io.apicurio.registry.types + ArtifactType: + enum: + - AVRO + - PROTOBUF + - JSON + - OPENAPI + - ASYNCAPI + - GRAPHQL + - KCONNECT + - WSDL + - XSD + - XML + example: AVRO + type: string + x-codegen-package: io.apicurio.registry.types + UpdateState: + example: + state: DISABLED + properties: + state: + $ref: '#/components/schemas/ArtifactState' + required: + - state + title: Root Type for UpdateState + type: object + ArtifactState: + description: | + Describes the state of an artifact or artifact version. The following states + are possible: + + * ENABLED + * DISABLED + * DEPRECATED + enum: + - ENABLED + - DISABLED + - DEPRECATED + type: string + x-codegen-package: io.apicurio.registry.types + ArtifactSearchResults: + description: Describes the response received when searching for artifacts. + example: + count: 0 + artifacts: + - groupId: My-Group + id: Procurement-Invoice + name: Artifact Name + description: Description of the artifact + labels: + - current + - internal + type: AVRO + state: ENABLED + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + - groupId: My-Group + id: Procurement-Invoice + name: Artifact Name + description: Description of the artifact + labels: + - current + - internal + type: AVRO + state: ENABLED + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + properties: + artifacts: + description: The artifacts returned in the result set. + items: + $ref: '#/components/schemas/SearchedArtifact' + type: array + count: + description: "The total number of artifacts that matched the query that\ + \ produced the result set (may be \nmore than the number of artifacts\ + \ in the result set)." + type: integer + required: + - artifacts + - count + type: object + SortOrder: + enum: + - asc + - desc + type: string + VersionSearchResults: + description: Describes the response received when searching for artifacts. + example: + versions: + - name: Artifact Version Name + description: Description of the artifact version + labels: + - current + - internal + type: AVRO + state: ENABLED + createdOn: 2018-02-10T09:30Z + createdBy: some text + globalId: 37 + version: 85 + properties: {} + contentId: 62 + references: {} + - name: Artifact Version Name + description: Description of the artifact version + labels: + - current + - internal + type: AVRO + state: ENABLED + createdOn: 2018-02-10T09:30Z + createdBy: some text + globalId: 37 + version: 85 + properties: {} + contentId: 62 + references: {} + count: 0 + properties: + count: + description: |- + The total number of versions that matched the query (may be more than the number of versions + returned in the result set). + type: integer + versions: + description: The collection of artifact versions returned in the result + set. + items: + $ref: '#/components/schemas/SearchedVersion' + type: array + required: + - count + - versions + type: object + RuleViolationCause: + example: + description: External documentation URL is not valid (it must be formatted + as a URL). + context: /info/externalDocs[url] + properties: + description: + type: string + context: + type: string + title: Root Type for RuleViolationCause + type: object + GroupId: + description: An ID of a single artifact group. + example: my-group + type: string + ArtifactId: + description: The ID of a single artifact. + example: example-artifact + type: string + Version: + description: |- + A single version of an artifact. Can be provided by the client when creating a new version, + or it can be server-generated. The value can be any string unique to the artifact, but it is + recommended to use a simple integer or a semver value. + example: 3.1.6 + type: string + LogConfiguration: + example: {} + properties: + level: + $ref: '#/components/schemas/LogLevel' + required: + - level + type: object + NamedLogConfiguration: + allOf: + - $ref: '#/components/schemas/NamedLogConfiguration_allOf' + - $ref: '#/components/schemas/LogConfiguration' + type: object + Properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + IfExists: + enum: + - FAIL + - UPDATE + - RETURN + - RETURN_OR_UPDATE + type: string + SortBy: + enum: + - name + - createdOn + type: string + LogLevel: + enum: + - DEBUG + - TRACE + - WARN + - ERROR + - SEVERE + - WARNING + - INFO + - CONFIG + - FINE + - FINER + - FINEST + type: string + x-codegen-package: io.apicurio.registry.types + SystemInfo: + example: + name: Apicurio Registry (SQL) + description: The Apicurio Registry application. + version: 2.0.0.Final + builtOn: 2021-03-19T12:55:00Z + properties: + name: + type: string + description: + type: string + version: + type: string + builtOn: + format: utc-date + type: string + title: Root Type for SystemInfo + type: object + FileContent: + format: binary + type: string + x-codegen-inline: true + RoleMapping: + description: The mapping between a user/principal and their role. + example: + principalId: svc_account_84874587_123484 + principalName: famartin-svc-account + role: READ_ONLY + properties: + principalId: + type: string + role: + $ref: '#/components/schemas/RoleType' + principalName: + description: A friendly name for the principal. + type: string + required: + - principalId + - role + type: object + RoleType: + enum: + - READ_ONLY + - DEVELOPER + - ADMIN + type: string + x-codegen-package: io.apicurio.registry.types + UpdateRole: + example: + role: READ_ONLY + properties: + role: + $ref: '#/components/schemas/RoleType' + required: + - role + title: Root Type for UpdateRole + type: object + UserInfo: + description: Information about a single user. + example: + username: dprince + displayName: Diana Prince + admin: true + developer: false + viewer: false + properties: + username: + type: string + displayName: + type: string + admin: + type: boolean + developer: + type: boolean + viewer: + type: boolean + title: Root Type for UserInfo + type: object + EncodedArtifactName: + description: Base64 encoded name of the artifact. + example: QXJ0aWZhY3QgbmFtZQo= + type: string + x-codegen-inline: true + EncodedArtifactDescription: + description: Base64 encoded description of the artifact. + example: QXJ0aWZhY3QgZGVzY3JpcHRpb24K + type: string + x-codegen-inline: true + ArtifactName: + description: Name of the artifact. + example: Artifact name + type: string + x-codegen-inline: true + ArtifactDescription: + description: Description of the artifact. + example: Artifact description + type: string + x-codegen-inline: true + DownloadRef: + description: Models a download "link". Useful for browser use-cases. + example: + downloadId: 247-4987490-297845 + href: https://54321.registry.examples.org/apis/registry/v2/downloads/247-4987490-297845 + properties: + downloadId: + type: string + href: + type: string + required: + - downloadId + title: Root Type for Download + type: object + ArtifactMetaData: + example: + groupId: My-Group + id: Procurement-Invoice + name: Artifact Name + description: Description of the artifact + type: AVRO + version: 18 + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + modifiedBy: user2 + modifiedOn: 2019-07-19T15:09:00Z + globalId: 12984719247 + contentId: 82736 + labels: + - label-1 + - label-2 + properties: + custom-1: foo + custom-2: bar + references: + - groupId: mygroup + artifactId: 13842090-2ce3-11ec-8d3d-0242ac130003 + version: 2 + name: foo.bar.Open + properties: + name: + type: string + description: + type: string + createdBy: + type: string + createdOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + modifiedBy: + type: string + modifiedOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + id: + description: The ID of a single artifact. + example: example-artifact + type: string + version: + type: string + type: + $ref: '#/components/schemas/ArtifactType' + globalId: + format: int64 + type: integer + state: + $ref: '#/components/schemas/ArtifactState' + labels: + items: + type: string + type: array + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + groupId: + description: An ID of a single artifact group. + example: my-group + type: string + contentId: + format: int64 + type: integer + references: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + required: + - contentId + - createdBy + - createdOn + - globalId + - group + - id + - modifiedBy + - modifiedOn + - state + - type + - version + title: Root Type for ArtifactMetaData + type: object + SearchedArtifact: + description: Models a single artifact from the result set returned when searching + for artifacts. + example: + groupId: My-Group + id: Procurement-Invoice + name: Artifact Name + description: Description of the artifact + labels: + - current + - internal + type: AVRO + state: ENABLED + createdBy: user1 + createdOn: 2019-03-22T12:51:19Z + properties: + id: + description: The ID of a single artifact. + example: example-artifact + type: string + name: + type: string + description: + type: string + createdOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + createdBy: + type: string + type: + $ref: '#/components/schemas/ArtifactType' + labels: + items: + type: string + type: array + state: + $ref: '#/components/schemas/ArtifactState' + modifiedOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + modifiedBy: + type: string + groupId: + description: An ID of a single artifact group. + example: my-group + type: string + required: + - createdBy + - createdOn + - group + - id + - state + - type + type: object + VersionMetaData: + example: + groupId: My-Group + id: my-artifact-id + version: 1221432 + type: PROTOBUF + name: Artifact Name + description: The description of the artifact + createdBy: user1 + createdOn: 2019-05-17T12:00:00Z + globalId: 183282932983 + contentId: 12347 + labels: + - label-1 + - label-2 + properties: + custom-1: foo + custom-2: bar + references: + - groupId: mygroup + artifactId: 13842090-2ce3-11ec-8d3d-0242ac130003 + version: 2 + name: foo.bar.Open + properties: + version: + type: string + name: + type: string + description: + type: string + createdBy: + type: string + createdOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + type: + $ref: '#/components/schemas/ArtifactType' + globalId: + format: int64 + type: integer + state: + $ref: '#/components/schemas/ArtifactState' + id: + description: The ID of a single artifact. + example: example-artifact + type: string + labels: + items: + type: string + type: array + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + groupId: + description: An ID of a single artifact group. + example: my-group + type: string + contentId: + format: int64 + type: integer + required: + - contentId + - createdBy + - createdOn + - globalId + - id + - type + - version + title: Root Type for ArtifactVersionMetaData + type: object + SearchedVersion: + description: Models a single artifact from the result set returned when searching + for artifacts. + example: + name: Artifact Version Name + description: Description of the artifact version + labels: + - current + - internal + type: AVRO + state: ENABLED + createdOn: 2018-02-10T09:30Z + createdBy: some text + globalId: 37 + version: 85 + properties: {} + contentId: 62 + references: {} + properties: + name: + type: string + description: + type: string + createdOn: + format: utc-date + type: string + x-codegen-formatPattern: yyyy-MM-dd'T'HH:mm:ssZ + createdBy: + type: string + type: + $ref: '#/components/schemas/ArtifactType' + labels: + items: + type: string + type: array + state: + $ref: '#/components/schemas/ArtifactState' + globalId: + format: int64 + type: integer + version: + type: string + properties: + additionalProperties: + type: string + description: User-defined name-value pairs. Name and value must be strings. + type: object + x-codegen-inline: true + x-codegen-type: StringMap + contentId: + format: int64 + type: integer + references: + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + required: + - contentId + - createdBy + - createdOn + - globalId + - references + - state + - type + - version + type: object + RuleViolationError: + allOf: + - $ref: '#/components/schemas/RuleViolationError_allOf' + - $ref: '#/components/schemas/Error' + description: |- + All error responses, whether `4xx` or `5xx` will include one of these as the response + body. + example: + error_code: 409 + message: Artifact failed validation + causes: + - description: API is missing a title + context: /info[title] + - description: Operation IDs must be unique + context: /paths[/invoices]/put[operationId] + title: Root Type for Error + type: object + x-codegen-extendsClass: io.apicurio.registry.rest.v2.beans.Error + ArtifactReference: + description: A reference to a different artifact. Typically used with artifact + types that can have dependencies like Protobuf. + example: + groupId: mygroup + artifactId: 13842090-2ce3-11ec-8d3d-0242ac130003 + version: "2" + name: foo.bar.Open + properties: + groupId: + type: string + artifactId: + type: string + version: + type: string + name: + type: string + required: + - artifactId + - groupId + - name + title: Root Type for ArtifactReference + type: object + ContentCreateRequest: + properties: + content: + description: Raw content of the artifact or a valid (and accessible) URL + where the content can be found. + example: "" + type: string + references: + description: Collection of references to other artifacts. + items: + $ref: '#/components/schemas/ArtifactReference' + type: array + required: + - content + - references + type: object + ConfigurationProperty: + example: + name: registry.auth.owner-only-authorization + value: "true" + type: boolean + label: Owner Only Authorization + description: When enabled, the registry will allow only the artifact owner + (creator) to modify an artifact. + properties: + name: + type: string + value: + type: string + type: + type: string + label: + type: string + description: + type: string + required: + - description + - label + - name + - type + - value + title: Root Type for ConfigurationProperty + type: object + UpdateConfigurationProperty: + example: + value: "true" + properties: + value: + type: string + required: + - value + title: Root Type for UpdateConfigurationProperty + type: object + Limits: + description: |- + List of limitations on used resources, that are applied on the current instance of Registry. + Keys represent the resource type and are suffixed by the corresponding unit. + Values are integers. Only non-negative values are allowed, with the exception of -1, which means that the limit is not applied. + example: + maxTotalSchemasCount: -1 + maxSchemaSizeBytes: -1 + maxArtifactsCount: -1 + maxVersionsPerArtifactCount: -1 + maxArtifactPropertiesCount: -1 + maxPropertyKeySizeBytes: -1 + maxPropertyValueSizeBytes: -1 + maxArtifactLabelsCount: -1 + maxLabelSizeBytes: -1 + maxArtifactNameLengthChars: -1 + maxArtifactDescriptionLengthChars: -1 + maxRequestsPerSecondCount: -1 + properties: + maxTotalSchemasCount: + format: int64 + type: integer + maxSchemaSizeBytes: + format: int64 + type: integer + maxArtifactsCount: + format: int64 + type: integer + maxVersionsPerArtifactCount: + format: int64 + type: integer + maxArtifactPropertiesCount: + format: int64 + type: integer + maxPropertyKeySizeBytes: + format: int64 + type: integer + maxPropertyValueSizeBytes: + format: int64 + type: integer + maxArtifactLabelsCount: + format: int64 + type: integer + maxLabelSizeBytes: + format: int64 + type: integer + maxArtifactNameLengthChars: + format: int64 + type: integer + maxArtifactDescriptionLengthChars: + format: int64 + type: integer + maxRequestsPerSecondCount: + format: int64 + type: integer + title: Root Type for Limits + type: object + ArtifactOwner: + description: Describes the ownership of an artifact. + example: + owner: bwayne + properties: + owner: + type: string + title: Root Type for ArtifactOwner + type: object + NamedLogConfiguration_allOf: + properties: + name: + type: string + required: + - name + type: object + RuleViolationError_allOf: + properties: + causes: + description: List of rule violation causes. + items: + $ref: '#/components/schemas/RuleViolationCause' + type: array + required: + - causes + type: object diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_admin.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_admin.go new file mode 100644 index 00000000..c9d6ee8b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_admin.go @@ -0,0 +1,2125 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "os" +) + +// Linger please +var ( + _ _context.Context +) + +type AdminApi interface { + + /* + * CreateRoleMapping Create a new role mapping + * Creates a new mapping between a user/principal and a role. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateRoleMappingRequest + */ + CreateRoleMapping(ctx _context.Context) ApiCreateRoleMappingRequest + + /* + * CreateRoleMappingExecute executes the request + */ + CreateRoleMappingExecute(r ApiCreateRoleMappingRequest) (*_nethttp.Response, error) + + /* + * DeleteRoleMapping Delete a role mapping + * Deletes a single role mapping, effectively denying access to a user/principal. + +This operation can fail for the following reasons: + +* No role mapping for the principalId exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiDeleteRoleMappingRequest + */ + DeleteRoleMapping(ctx _context.Context, principalId string) ApiDeleteRoleMappingRequest + + /* + * DeleteRoleMappingExecute executes the request + */ + DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest) (*_nethttp.Response, error) + + /* + * ExportData Export registry data + * Exports registry data as a ZIP archive. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiExportDataRequest + */ + ExportData(ctx _context.Context) ApiExportDataRequest + + /* + * ExportDataExecute executes the request + * @return *os.File + */ + ExportDataExecute(r ApiExportDataRequest) (*os.File, *_nethttp.Response, error) + + /* + * GetConfigProperty Get configuration property value + * Returns the value of a single configuration property. + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiGetConfigPropertyRequest + */ + GetConfigProperty(ctx _context.Context, propertyName string) ApiGetConfigPropertyRequest + + /* + * GetConfigPropertyExecute executes the request + * @return ConfigurationProperty + */ + GetConfigPropertyExecute(r ApiGetConfigPropertyRequest) (ConfigurationProperty, *_nethttp.Response, error) + + /* + * GetLogConfiguration Get a single logger configuration + * Returns the configured logger configuration for the provided logger name, if no logger configuration is persisted it will return the current default log configuration in the system. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiGetLogConfigurationRequest + */ + GetLogConfiguration(ctx _context.Context, logger string) ApiGetLogConfigurationRequest + + /* + * GetLogConfigurationExecute executes the request + * @return NamedLogConfiguration + */ + GetLogConfigurationExecute(r ApiGetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) + + /* + * GetRoleMapping Return a single role mapping + * Gets the details of a single role mapping (by `principalId`). + +This operation can fail for the following reasons: + +* No role mapping for the `principalId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiGetRoleMappingRequest + */ + GetRoleMapping(ctx _context.Context, principalId string) ApiGetRoleMappingRequest + + /* + * GetRoleMappingExecute executes the request + * @return RoleMapping + */ + GetRoleMappingExecute(r ApiGetRoleMappingRequest) (RoleMapping, *_nethttp.Response, error) + + /* + * ImportData Import registry data + * Imports registry data that was previously exported using the `/admin/export` operation. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiImportDataRequest + */ + ImportData(ctx _context.Context) ApiImportDataRequest + + /* + * ImportDataExecute executes the request + */ + ImportDataExecute(r ApiImportDataRequest) (*_nethttp.Response, error) + + /* + * ListConfigProperties List all configuration properties + * Returns a list of all configuration properties that have been set. The list is not paged. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConfigPropertiesRequest + */ + ListConfigProperties(ctx _context.Context) ApiListConfigPropertiesRequest + + /* + * ListConfigPropertiesExecute executes the request + * @return []ConfigurationProperty + */ + ListConfigPropertiesExecute(r ApiListConfigPropertiesRequest) ([]ConfigurationProperty, *_nethttp.Response, error) + + /* + * ListLogConfigurations List logging configurations + * List all of the configured logging levels. These override the default +logging configuration. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListLogConfigurationsRequest + */ + ListLogConfigurations(ctx _context.Context) ApiListLogConfigurationsRequest + + /* + * ListLogConfigurationsExecute executes the request + * @return []NamedLogConfiguration + */ + ListLogConfigurationsExecute(r ApiListLogConfigurationsRequest) ([]NamedLogConfiguration, *_nethttp.Response, error) + + /* + * ListRoleMappings List all role mappings + * Gets a list of all role mappings configured in the registry (if any). + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListRoleMappingsRequest + */ + ListRoleMappings(ctx _context.Context) ApiListRoleMappingsRequest + + /* + * ListRoleMappingsExecute executes the request + * @return []RoleMapping + */ + ListRoleMappingsExecute(r ApiListRoleMappingsRequest) ([]RoleMapping, *_nethttp.Response, error) + + /* + * RemoveLogConfiguration Removes logger configuration + * Removes the configured logger configuration (if any) for the given logger. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiRemoveLogConfigurationRequest + */ + RemoveLogConfiguration(ctx _context.Context, logger string) ApiRemoveLogConfigurationRequest + + /* + * RemoveLogConfigurationExecute executes the request + * @return NamedLogConfiguration + */ + RemoveLogConfigurationExecute(r ApiRemoveLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) + + /* + * ResetConfigProperty Reset a configuration property + * Resets the value of a single configuration property. This will return the property to +its default value (see external documentation for supported properties and their default +values). + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiResetConfigPropertyRequest + */ + ResetConfigProperty(ctx _context.Context, propertyName string) ApiResetConfigPropertyRequest + + /* + * ResetConfigPropertyExecute executes the request + */ + ResetConfigPropertyExecute(r ApiResetConfigPropertyRequest) (*_nethttp.Response, error) + + /* + * SetLogConfiguration Set a logger's configuration + * Configures the logger referenced by the provided logger name with the given configuration. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiSetLogConfigurationRequest + */ + SetLogConfiguration(ctx _context.Context, logger string) ApiSetLogConfigurationRequest + + /* + * SetLogConfigurationExecute executes the request + * @return NamedLogConfiguration + */ + SetLogConfigurationExecute(r ApiSetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) + + /* + * UpdateConfigProperty Update a configuration property + * Updates the value of a single configuration property. + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiUpdateConfigPropertyRequest + */ + UpdateConfigProperty(ctx _context.Context, propertyName string) ApiUpdateConfigPropertyRequest + + /* + * UpdateConfigPropertyExecute executes the request + */ + UpdateConfigPropertyExecute(r ApiUpdateConfigPropertyRequest) (*_nethttp.Response, error) + + /* + * UpdateRoleMapping Update a role mapping + * Updates a single role mapping for one user/principal. + +This operation can fail for the following reasons: + +* No role mapping for the principalId exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiUpdateRoleMappingRequest + */ + UpdateRoleMapping(ctx _context.Context, principalId string) ApiUpdateRoleMappingRequest + + /* + * UpdateRoleMappingExecute executes the request + */ + UpdateRoleMappingExecute(r ApiUpdateRoleMappingRequest) (*_nethttp.Response, error) +} + +// AdminApiService AdminApi service +type AdminApiService service + +type ApiCreateRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + roleMapping *RoleMapping +} + +func (r ApiCreateRoleMappingRequest) RoleMapping(roleMapping RoleMapping) ApiCreateRoleMappingRequest { + r.roleMapping = &roleMapping + return r +} + +func (r ApiCreateRoleMappingRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateRoleMappingExecute(r) +} + +/* + * CreateRoleMapping Create a new role mapping + * Creates a new mapping between a user/principal and a role. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateRoleMappingRequest + */ +func (a *AdminApiService) CreateRoleMapping(ctx _context.Context) ApiCreateRoleMappingRequest { + return ApiCreateRoleMappingRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) CreateRoleMappingExecute(r ApiCreateRoleMappingRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.CreateRoleMapping") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.roleMapping == nil { + return nil, reportError("roleMapping is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.roleMapping + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + principalId string +} + + +func (r ApiDeleteRoleMappingRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteRoleMappingExecute(r) +} + +/* + * DeleteRoleMapping Delete a role mapping + * Deletes a single role mapping, effectively denying access to a user/principal. + +This operation can fail for the following reasons: + +* No role mapping for the principalId exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiDeleteRoleMappingRequest + */ +func (a *AdminApiService) DeleteRoleMapping(ctx _context.Context, principalId string) ApiDeleteRoleMappingRequest { + return ApiDeleteRoleMappingRequest{ + ApiService: a, + ctx: ctx, + principalId: principalId, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) DeleteRoleMappingExecute(r ApiDeleteRoleMappingRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.DeleteRoleMapping") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings/{principalId}" + localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExportDataRequest struct { + ctx _context.Context + ApiService AdminApi + forBrowser *bool +} + +func (r ApiExportDataRequest) ForBrowser(forBrowser bool) ApiExportDataRequest { + r.forBrowser = &forBrowser + return r +} + +func (r ApiExportDataRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.ExportDataExecute(r) +} + +/* + * ExportData Export registry data + * Exports registry data as a ZIP archive. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiExportDataRequest + */ +func (a *AdminApiService) ExportData(ctx _context.Context) ApiExportDataRequest { + return ApiExportDataRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *AdminApiService) ExportDataExecute(r ApiExportDataRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ExportData") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/export" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.forBrowser != nil { + localVarQueryParams.Add("forBrowser", parameterToString(*r.forBrowser, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConfigPropertyRequest struct { + ctx _context.Context + ApiService AdminApi + propertyName string +} + + +func (r ApiGetConfigPropertyRequest) Execute() (ConfigurationProperty, *_nethttp.Response, error) { + return r.ApiService.GetConfigPropertyExecute(r) +} + +/* + * GetConfigProperty Get configuration property value + * Returns the value of a single configuration property. + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiGetConfigPropertyRequest + */ +func (a *AdminApiService) GetConfigProperty(ctx _context.Context, propertyName string) ApiGetConfigPropertyRequest { + return ApiGetConfigPropertyRequest{ + ApiService: a, + ctx: ctx, + propertyName: propertyName, + } +} + +/* + * Execute executes the request + * @return ConfigurationProperty + */ +func (a *AdminApiService) GetConfigPropertyExecute(r ApiGetConfigPropertyRequest) (ConfigurationProperty, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConfigurationProperty + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetConfigProperty") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/config/properties/{propertyName}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyName"+"}", _neturl.PathEscape(parameterToString(r.propertyName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetLogConfigurationRequest struct { + ctx _context.Context + ApiService AdminApi + logger string +} + + +func (r ApiGetLogConfigurationRequest) Execute() (NamedLogConfiguration, *_nethttp.Response, error) { + return r.ApiService.GetLogConfigurationExecute(r) +} + +/* + * GetLogConfiguration Get a single logger configuration + * Returns the configured logger configuration for the provided logger name, if no logger configuration is persisted it will return the current default log configuration in the system. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiGetLogConfigurationRequest + */ +func (a *AdminApiService) GetLogConfiguration(ctx _context.Context, logger string) ApiGetLogConfigurationRequest { + return ApiGetLogConfigurationRequest{ + ApiService: a, + ctx: ctx, + logger: logger, + } +} + +/* + * Execute executes the request + * @return NamedLogConfiguration + */ +func (a *AdminApiService) GetLogConfigurationExecute(r ApiGetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NamedLogConfiguration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetLogConfiguration") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/loggers/{logger}" + localVarPath = strings.Replace(localVarPath, "{"+"logger"+"}", _neturl.PathEscape(parameterToString(r.logger, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + principalId string +} + + +func (r ApiGetRoleMappingRequest) Execute() (RoleMapping, *_nethttp.Response, error) { + return r.ApiService.GetRoleMappingExecute(r) +} + +/* + * GetRoleMapping Return a single role mapping + * Gets the details of a single role mapping (by `principalId`). + +This operation can fail for the following reasons: + +* No role mapping for the `principalId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiGetRoleMappingRequest + */ +func (a *AdminApiService) GetRoleMapping(ctx _context.Context, principalId string) ApiGetRoleMappingRequest { + return ApiGetRoleMappingRequest{ + ApiService: a, + ctx: ctx, + principalId: principalId, + } +} + +/* + * Execute executes the request + * @return RoleMapping + */ +func (a *AdminApiService) GetRoleMappingExecute(r ApiGetRoleMappingRequest) (RoleMapping, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RoleMapping + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.GetRoleMapping") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings/{principalId}" + localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiImportDataRequest struct { + ctx _context.Context + ApiService AdminApi + body **os.File + xRegistryPreserveGlobalId *bool + xRegistryPreserveContentId *bool +} + +func (r ApiImportDataRequest) Body(body *os.File) ApiImportDataRequest { + r.body = &body + return r +} +func (r ApiImportDataRequest) XRegistryPreserveGlobalId(xRegistryPreserveGlobalId bool) ApiImportDataRequest { + r.xRegistryPreserveGlobalId = &xRegistryPreserveGlobalId + return r +} +func (r ApiImportDataRequest) XRegistryPreserveContentId(xRegistryPreserveContentId bool) ApiImportDataRequest { + r.xRegistryPreserveContentId = &xRegistryPreserveContentId + return r +} + +func (r ApiImportDataRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ImportDataExecute(r) +} + +/* + * ImportData Import registry data + * Imports registry data that was previously exported using the `/admin/export` operation. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiImportDataRequest + */ +func (a *AdminApiService) ImportData(ctx _context.Context) ApiImportDataRequest { + return ApiImportDataRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) ImportDataExecute(r ApiImportDataRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ImportData") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/import" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/zip"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xRegistryPreserveGlobalId != nil { + localVarHeaderParams["X-Registry-Preserve-GlobalId"] = parameterToString(*r.xRegistryPreserveGlobalId, "") + } + if r.xRegistryPreserveContentId != nil { + localVarHeaderParams["X-Registry-Preserve-ContentId"] = parameterToString(*r.xRegistryPreserveContentId, "") + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiListConfigPropertiesRequest struct { + ctx _context.Context + ApiService AdminApi +} + + +func (r ApiListConfigPropertiesRequest) Execute() ([]ConfigurationProperty, *_nethttp.Response, error) { + return r.ApiService.ListConfigPropertiesExecute(r) +} + +/* + * ListConfigProperties List all configuration properties + * Returns a list of all configuration properties that have been set. The list is not paged. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListConfigPropertiesRequest + */ +func (a *AdminApiService) ListConfigProperties(ctx _context.Context) ApiListConfigPropertiesRequest { + return ApiListConfigPropertiesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []ConfigurationProperty + */ +func (a *AdminApiService) ListConfigPropertiesExecute(r ApiListConfigPropertiesRequest) ([]ConfigurationProperty, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ConfigurationProperty + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListConfigProperties") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/config/properties" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListLogConfigurationsRequest struct { + ctx _context.Context + ApiService AdminApi +} + + +func (r ApiListLogConfigurationsRequest) Execute() ([]NamedLogConfiguration, *_nethttp.Response, error) { + return r.ApiService.ListLogConfigurationsExecute(r) +} + +/* + * ListLogConfigurations List logging configurations + * List all of the configured logging levels. These override the default +logging configuration. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListLogConfigurationsRequest + */ +func (a *AdminApiService) ListLogConfigurations(ctx _context.Context) ApiListLogConfigurationsRequest { + return ApiListLogConfigurationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []NamedLogConfiguration + */ +func (a *AdminApiService) ListLogConfigurationsExecute(r ApiListLogConfigurationsRequest) ([]NamedLogConfiguration, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []NamedLogConfiguration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListLogConfigurations") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/loggers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListRoleMappingsRequest struct { + ctx _context.Context + ApiService AdminApi +} + + +func (r ApiListRoleMappingsRequest) Execute() ([]RoleMapping, *_nethttp.Response, error) { + return r.ApiService.ListRoleMappingsExecute(r) +} + +/* + * ListRoleMappings List all role mappings + * Gets a list of all role mappings configured in the registry (if any). + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListRoleMappingsRequest + */ +func (a *AdminApiService) ListRoleMappings(ctx _context.Context) ApiListRoleMappingsRequest { + return ApiListRoleMappingsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []RoleMapping + */ +func (a *AdminApiService) ListRoleMappingsExecute(r ApiListRoleMappingsRequest) ([]RoleMapping, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []RoleMapping + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ListRoleMappings") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRemoveLogConfigurationRequest struct { + ctx _context.Context + ApiService AdminApi + logger string +} + + +func (r ApiRemoveLogConfigurationRequest) Execute() (NamedLogConfiguration, *_nethttp.Response, error) { + return r.ApiService.RemoveLogConfigurationExecute(r) +} + +/* + * RemoveLogConfiguration Removes logger configuration + * Removes the configured logger configuration (if any) for the given logger. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiRemoveLogConfigurationRequest + */ +func (a *AdminApiService) RemoveLogConfiguration(ctx _context.Context, logger string) ApiRemoveLogConfigurationRequest { + return ApiRemoveLogConfigurationRequest{ + ApiService: a, + ctx: ctx, + logger: logger, + } +} + +/* + * Execute executes the request + * @return NamedLogConfiguration + */ +func (a *AdminApiService) RemoveLogConfigurationExecute(r ApiRemoveLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NamedLogConfiguration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.RemoveLogConfiguration") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/loggers/{logger}" + localVarPath = strings.Replace(localVarPath, "{"+"logger"+"}", _neturl.PathEscape(parameterToString(r.logger, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResetConfigPropertyRequest struct { + ctx _context.Context + ApiService AdminApi + propertyName string +} + + +func (r ApiResetConfigPropertyRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ResetConfigPropertyExecute(r) +} + +/* + * ResetConfigProperty Reset a configuration property + * Resets the value of a single configuration property. This will return the property to +its default value (see external documentation for supported properties and their default +values). + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiResetConfigPropertyRequest + */ +func (a *AdminApiService) ResetConfigProperty(ctx _context.Context, propertyName string) ApiResetConfigPropertyRequest { + return ApiResetConfigPropertyRequest{ + ApiService: a, + ctx: ctx, + propertyName: propertyName, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) ResetConfigPropertyExecute(r ApiResetConfigPropertyRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.ResetConfigProperty") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/config/properties/{propertyName}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyName"+"}", _neturl.PathEscape(parameterToString(r.propertyName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiSetLogConfigurationRequest struct { + ctx _context.Context + ApiService AdminApi + logger string + logConfiguration *LogConfiguration +} + +func (r ApiSetLogConfigurationRequest) LogConfiguration(logConfiguration LogConfiguration) ApiSetLogConfigurationRequest { + r.logConfiguration = &logConfiguration + return r +} + +func (r ApiSetLogConfigurationRequest) Execute() (NamedLogConfiguration, *_nethttp.Response, error) { + return r.ApiService.SetLogConfigurationExecute(r) +} + +/* + * SetLogConfiguration Set a logger's configuration + * Configures the logger referenced by the provided logger name with the given configuration. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param logger The name of a single logger. + * @return ApiSetLogConfigurationRequest + */ +func (a *AdminApiService) SetLogConfiguration(ctx _context.Context, logger string) ApiSetLogConfigurationRequest { + return ApiSetLogConfigurationRequest{ + ApiService: a, + ctx: ctx, + logger: logger, + } +} + +/* + * Execute executes the request + * @return NamedLogConfiguration + */ +func (a *AdminApiService) SetLogConfigurationExecute(r ApiSetLogConfigurationRequest) (NamedLogConfiguration, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue NamedLogConfiguration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.SetLogConfiguration") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/loggers/{logger}" + localVarPath = strings.Replace(localVarPath, "{"+"logger"+"}", _neturl.PathEscape(parameterToString(r.logger, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.logConfiguration == nil { + return localVarReturnValue, nil, reportError("logConfiguration is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.logConfiguration + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateConfigPropertyRequest struct { + ctx _context.Context + ApiService AdminApi + propertyName string + updateConfigurationProperty *UpdateConfigurationProperty +} + +func (r ApiUpdateConfigPropertyRequest) UpdateConfigurationProperty(updateConfigurationProperty UpdateConfigurationProperty) ApiUpdateConfigPropertyRequest { + r.updateConfigurationProperty = &updateConfigurationProperty + return r +} + +func (r ApiUpdateConfigPropertyRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateConfigPropertyExecute(r) +} + +/* + * UpdateConfigProperty Update a configuration property + * Updates the value of a single configuration property. + +This operation may fail for one of the following reasons: + +* Property not found or not configured (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param propertyName The name of a configuration property. + * @return ApiUpdateConfigPropertyRequest + */ +func (a *AdminApiService) UpdateConfigProperty(ctx _context.Context, propertyName string) ApiUpdateConfigPropertyRequest { + return ApiUpdateConfigPropertyRequest{ + ApiService: a, + ctx: ctx, + propertyName: propertyName, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) UpdateConfigPropertyExecute(r ApiUpdateConfigPropertyRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.UpdateConfigProperty") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/config/properties/{propertyName}" + localVarPath = strings.Replace(localVarPath, "{"+"propertyName"+"}", _neturl.PathEscape(parameterToString(r.propertyName, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.updateConfigurationProperty == nil { + return nil, reportError("updateConfigurationProperty is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateConfigurationProperty + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateRoleMappingRequest struct { + ctx _context.Context + ApiService AdminApi + principalId string + updateRole *UpdateRole +} + +func (r ApiUpdateRoleMappingRequest) UpdateRole(updateRole UpdateRole) ApiUpdateRoleMappingRequest { + r.updateRole = &updateRole + return r +} + +func (r ApiUpdateRoleMappingRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateRoleMappingExecute(r) +} + +/* + * UpdateRoleMapping Update a role mapping + * Updates a single role mapping for one user/principal. + +This operation can fail for the following reasons: + +* No role mapping for the principalId exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param principalId Unique id of a principal (typically either a user or service account). + * @return ApiUpdateRoleMappingRequest + */ +func (a *AdminApiService) UpdateRoleMapping(ctx _context.Context, principalId string) ApiUpdateRoleMappingRequest { + return ApiUpdateRoleMappingRequest{ + ApiService: a, + ctx: ctx, + principalId: principalId, + } +} + +/* + * Execute executes the request + */ +func (a *AdminApiService) UpdateRoleMappingExecute(r ApiUpdateRoleMappingRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.UpdateRoleMapping") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/roleMappings/{principalId}" + localVarPath = strings.Replace(localVarPath, "{"+"principalId"+"}", _neturl.PathEscape(parameterToString(r.principalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.updateRole == nil { + return nil, reportError("updateRole is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateRole + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifact_rules.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifact_rules.go new file mode 100644 index 00000000..0c85a19f --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifact_rules.go @@ -0,0 +1,1200 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ArtifactRulesApi interface { + + /* + * CreateArtifactRule Create artifact rule + * Adds a rule to the list of rules that get applied to the artifact when adding new +versions. All configured rules must pass to successfully add a new artifact version. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* Rule (named in the request body) is unknown (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiCreateArtifactRuleRequest + */ + CreateArtifactRule(ctx _context.Context, groupId string, artifactId string) ApiCreateArtifactRuleRequest + + /* + * CreateArtifactRuleExecute executes the request + */ + CreateArtifactRuleExecute(r ApiCreateArtifactRuleRequest) (*_nethttp.Response, error) + + /* + * DeleteArtifactRule Delete artifact rule + * Deletes a rule from the artifact. This results in the rule no longer applying for +this artifact. If this is the only rule configured for the artifact, this is the +same as deleting **all** rules, and the globally configured rules now apply to +this artifact. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiDeleteArtifactRuleRequest + */ + DeleteArtifactRule(ctx _context.Context, groupId string, artifactId string, rule string) ApiDeleteArtifactRuleRequest + + /* + * DeleteArtifactRuleExecute executes the request + */ + DeleteArtifactRuleExecute(r ApiDeleteArtifactRuleRequest) (*_nethttp.Response, error) + + /* + * DeleteArtifactRules Delete artifact rules + * Deletes all of the rules configured for the artifact. After this is done, the global +rules apply to the artifact again. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiDeleteArtifactRulesRequest + */ + DeleteArtifactRules(ctx _context.Context, groupId string, artifactId string) ApiDeleteArtifactRulesRequest + + /* + * DeleteArtifactRulesExecute executes the request + */ + DeleteArtifactRulesExecute(r ApiDeleteArtifactRulesRequest) (*_nethttp.Response, error) + + /* + * GetArtifactRuleConfig Get artifact rule configuration + * Returns information about a single rule configured for an artifact. This is useful +when you want to know what the current configuration settings are for a specific rule. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiGetArtifactRuleConfigRequest + */ + GetArtifactRuleConfig(ctx _context.Context, groupId string, artifactId string, rule string) ApiGetArtifactRuleConfigRequest + + /* + * GetArtifactRuleConfigExecute executes the request + * @return Rule + */ + GetArtifactRuleConfigExecute(r ApiGetArtifactRuleConfigRequest) (Rule, *_nethttp.Response, error) + + /* + * ListArtifactRules List artifact rules + * Returns a list of all rules configured for the artifact. The set of rules determines +how the content of an artifact can evolve over time. If no rules are configured for +an artifact, the set of globally configured rules are used. If no global rules +are defined, there are no restrictions on content evolution. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiListArtifactRulesRequest + */ + ListArtifactRules(ctx _context.Context, groupId string, artifactId string) ApiListArtifactRulesRequest + + /* + * ListArtifactRulesExecute executes the request + * @return []RuleType + */ + ListArtifactRulesExecute(r ApiListArtifactRulesRequest) ([]RuleType, *_nethttp.Response, error) + + /* + * TestUpdateArtifact Test update artifact + * Tests whether an update to the artifact's content *would* succeed for the provided content. +Ultimately, this applies any rules configured for the artifact against the given content +to determine whether the rules would pass or fail, but without actually updating the artifact +content. + +The body of the request should be the raw content of the artifact. This is typically in +JSON format for *most* of the supported types, but may be in another format for a few +(for example, `PROTOBUF`). + +The update could fail for a number of reasons including: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* The provided artifact type is not recognized (HTTP error `404`) +* A server error occurred (HTTP error `500`) + +When successful, this operation simply returns a *No Content* response. This response +indicates that the content is valid against the configured content rules for the +artifact (or the global rules if no artifact rules are enabled). + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiTestUpdateArtifactRequest + */ + TestUpdateArtifact(ctx _context.Context, groupId string, artifactId string) ApiTestUpdateArtifactRequest + + /* + * TestUpdateArtifactExecute executes the request + */ + TestUpdateArtifactExecute(r ApiTestUpdateArtifactRequest) (*_nethttp.Response, error) + + /* + * UpdateArtifactRuleConfig Update artifact rule configuration + * Updates the configuration of a single rule for the artifact. The configuration data +is specific to each rule type, so the configuration of the `COMPATIBILITY` rule +is in a different format from the configuration of the `VALIDITY` rule. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiUpdateArtifactRuleConfigRequest + */ + UpdateArtifactRuleConfig(ctx _context.Context, groupId string, artifactId string, rule string) ApiUpdateArtifactRuleConfigRequest + + /* + * UpdateArtifactRuleConfigExecute executes the request + * @return Rule + */ + UpdateArtifactRuleConfigExecute(r ApiUpdateArtifactRuleConfigRequest) (Rule, *_nethttp.Response, error) +} + +// ArtifactRulesApiService ArtifactRulesApi service +type ArtifactRulesApiService service + +type ApiCreateArtifactRuleRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string + rule *Rule +} + +func (r ApiCreateArtifactRuleRequest) Rule(rule Rule) ApiCreateArtifactRuleRequest { + r.rule = &rule + return r +} + +func (r ApiCreateArtifactRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateArtifactRuleExecute(r) +} + +/* + * CreateArtifactRule Create artifact rule + * Adds a rule to the list of rules that get applied to the artifact when adding new +versions. All configured rules must pass to successfully add a new artifact version. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* Rule (named in the request body) is unknown (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiCreateArtifactRuleRequest + */ +func (a *ArtifactRulesApiService) CreateArtifactRule(ctx _context.Context, groupId string, artifactId string) ApiCreateArtifactRuleRequest { + return ApiCreateArtifactRuleRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactRulesApiService) CreateArtifactRuleExecute(r ApiCreateArtifactRuleRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.CreateArtifactRule") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.rule == nil { + return nil, reportError("rule is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rule + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteArtifactRuleRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string + rule string +} + + +func (r ApiDeleteArtifactRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteArtifactRuleExecute(r) +} + +/* + * DeleteArtifactRule Delete artifact rule + * Deletes a rule from the artifact. This results in the rule no longer applying for +this artifact. If this is the only rule configured for the artifact, this is the +same as deleting **all** rules, and the globally configured rules now apply to +this artifact. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiDeleteArtifactRuleRequest + */ +func (a *ArtifactRulesApiService) DeleteArtifactRule(ctx _context.Context, groupId string, artifactId string, rule string) ApiDeleteArtifactRuleRequest { + return ApiDeleteArtifactRuleRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + rule: rule, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactRulesApiService) DeleteArtifactRuleExecute(r ApiDeleteArtifactRuleRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.DeleteArtifactRule") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteArtifactRulesRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string +} + + +func (r ApiDeleteArtifactRulesRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteArtifactRulesExecute(r) +} + +/* + * DeleteArtifactRules Delete artifact rules + * Deletes all of the rules configured for the artifact. After this is done, the global +rules apply to the artifact again. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiDeleteArtifactRulesRequest + */ +func (a *ArtifactRulesApiService) DeleteArtifactRules(ctx _context.Context, groupId string, artifactId string) ApiDeleteArtifactRulesRequest { + return ApiDeleteArtifactRulesRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactRulesApiService) DeleteArtifactRulesExecute(r ApiDeleteArtifactRulesRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.DeleteArtifactRules") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetArtifactRuleConfigRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string + rule string +} + + +func (r ApiGetArtifactRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.GetArtifactRuleConfigExecute(r) +} + +/* + * GetArtifactRuleConfig Get artifact rule configuration + * Returns information about a single rule configured for an artifact. This is useful +when you want to know what the current configuration settings are for a specific rule. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiGetArtifactRuleConfigRequest + */ +func (a *ArtifactRulesApiService) GetArtifactRuleConfig(ctx _context.Context, groupId string, artifactId string, rule string) ApiGetArtifactRuleConfigRequest { + return ApiGetArtifactRuleConfigRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *ArtifactRulesApiService) GetArtifactRuleConfigExecute(r ApiGetArtifactRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.GetArtifactRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListArtifactRulesRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string +} + + +func (r ApiListArtifactRulesRequest) Execute() ([]RuleType, *_nethttp.Response, error) { + return r.ApiService.ListArtifactRulesExecute(r) +} + +/* + * ListArtifactRules List artifact rules + * Returns a list of all rules configured for the artifact. The set of rules determines +how the content of an artifact can evolve over time. If no rules are configured for +an artifact, the set of globally configured rules are used. If no global rules +are defined, there are no restrictions on content evolution. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiListArtifactRulesRequest + */ +func (a *ArtifactRulesApiService) ListArtifactRules(ctx _context.Context, groupId string, artifactId string) ApiListArtifactRulesRequest { + return ApiListArtifactRulesRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return []RuleType + */ +func (a *ArtifactRulesApiService) ListArtifactRulesExecute(r ApiListArtifactRulesRequest) ([]RuleType, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []RuleType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.ListArtifactRules") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTestUpdateArtifactRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string + body *interface{} +} + +func (r ApiTestUpdateArtifactRequest) Body(body interface{}) ApiTestUpdateArtifactRequest { + r.body = &body + return r +} + +func (r ApiTestUpdateArtifactRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.TestUpdateArtifactExecute(r) +} + +/* + * TestUpdateArtifact Test update artifact + * Tests whether an update to the artifact's content *would* succeed for the provided content. +Ultimately, this applies any rules configured for the artifact against the given content +to determine whether the rules would pass or fail, but without actually updating the artifact +content. + +The body of the request should be the raw content of the artifact. This is typically in +JSON format for *most* of the supported types, but may be in another format for a few +(for example, `PROTOBUF`). + +The update could fail for a number of reasons including: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* The provided artifact type is not recognized (HTTP error `404`) +* A server error occurred (HTTP error `500`) + +When successful, this operation simply returns a *No Content* response. This response +indicates that the content is valid against the configured content rules for the +artifact (or the global rules if no artifact rules are enabled). + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiTestUpdateArtifactRequest + */ +func (a *ArtifactRulesApiService) TestUpdateArtifact(ctx _context.Context, groupId string, artifactId string) ApiTestUpdateArtifactRequest { + return ApiTestUpdateArtifactRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactRulesApiService) TestUpdateArtifactExecute(r ApiTestUpdateArtifactRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.TestUpdateArtifact") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/test" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v RuleViolationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateArtifactRuleConfigRequest struct { + ctx _context.Context + ApiService ArtifactRulesApi + groupId string + artifactId string + rule string + rule2 *Rule +} + +func (r ApiUpdateArtifactRuleConfigRequest) Rule2(rule2 Rule) ApiUpdateArtifactRuleConfigRequest { + r.rule2 = &rule2 + return r +} + +func (r ApiUpdateArtifactRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.UpdateArtifactRuleConfigExecute(r) +} + +/* + * UpdateArtifactRuleConfig Update artifact rule configuration + * Updates the configuration of a single rule for the artifact. The configuration data +is specific to each rule type, so the configuration of the `COMPATIBILITY` rule +is in a different format from the configuration of the `VALIDITY` rule. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No rule with this name/type is configured for this artifact (HTTP error `404`) +* Invalid rule type (HTTP error `400`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param rule The unique name/type of a rule. + * @return ApiUpdateArtifactRuleConfigRequest + */ +func (a *ArtifactRulesApiService) UpdateArtifactRuleConfig(ctx _context.Context, groupId string, artifactId string, rule string) ApiUpdateArtifactRuleConfigRequest { + return ApiUpdateArtifactRuleConfigRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *ArtifactRulesApiService) UpdateArtifactRuleConfigExecute(r ApiUpdateArtifactRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactRulesApiService.UpdateArtifactRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.rule2 == nil { + return localVarReturnValue, nil, reportError("rule2 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rule2 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifacts.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifacts.go new file mode 100644 index 00000000..0c728e28 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_artifacts.go @@ -0,0 +1,2240 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "os" +) + +// Linger please +var ( + _ _context.Context +) + +type ArtifactsApi interface { + + /* + * CreateArtifact Create artifact + * Creates a new artifact by posting the artifact content. The body of the request should +be the raw content of the artifact. This is typically in JSON format for *most* of the +supported types, but may be in another format for a few (for example, `PROTOBUF`). + +The registry attempts to figure out what kind of artifact is being added from the +following supported list: + +* Avro (`AVRO`) +* Protobuf (`PROTOBUF`) +* JSON Schema (`JSON`) +* Kafka Connect (`KCONNECT`) +* OpenAPI (`OPENAPI`) +* AsyncAPI (`ASYNCAPI`) +* GraphQL (`GRAPHQL`) +* Web Services Description Language (`WSDL`) +* XML Schema (`XSD`) + +Alternatively, you can specify the artifact type using the `X-Registry-ArtifactType` +HTTP request header, or include a hint in the request's `Content-Type`. For example: + +``` +Content-Type: application/json; artifactType=AVRO +``` + +An artifact is created using the content provided in the body of the request. This +content is created under a unique artifact ID that can be provided in the request +using the `X-Registry-ArtifactId` request header. If not provided in the request, +the server generates a unique ID for the artifact. It is typically recommended +that callers provide the ID, because this is typically a meaningful identifier, +and for most use cases should be supplied by the caller. + +If an artifact with the provided artifact ID already exists, the default behavior +is for the server to reject the content with a 409 error. However, the caller can +supply the `ifExists` query parameter to alter this default behavior. The `ifExists` +query parameter can have one of the following values: + +* `FAIL` (*default*) - server rejects the content with a 409 error +* `UPDATE` - server updates the existing artifact and returns the new metadata +* `RETURN` - server does not create or add content to the server, but instead +returns the metadata for the existing artifact +* `RETURN_OR_UPDATE` - server returns an existing **version** that matches the +provided content if such a version exists, otherwise a new version is created + +This operation may fail for one of the following reasons: + +* An invalid `ArtifactType` was indicated (HTTP error `400`) +* No `ArtifactType` was indicated and the server could not determine one from the content (HTTP error `400`) +* Provided content (request body) was empty (HTTP error `400`) +* An artifact with the provided ID already exists (HTTP error `409`) +* The content violates one of the configured global rules (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiCreateArtifactRequest + */ + CreateArtifact(ctx _context.Context, groupId string) ApiCreateArtifactRequest + + /* + * CreateArtifactExecute executes the request + * @return ArtifactMetaData + */ + CreateArtifactExecute(r ApiCreateArtifactRequest) (ArtifactMetaData, *_nethttp.Response, error) + + /* + * DeleteArtifact Delete artifact + * Deletes an artifact completely, resulting in all versions of the artifact also being +deleted. This may fail for one of the following reasons: + +* No artifact with the `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiDeleteArtifactRequest + */ + DeleteArtifact(ctx _context.Context, groupId string, artifactId string) ApiDeleteArtifactRequest + + /* + * DeleteArtifactExecute executes the request + */ + DeleteArtifactExecute(r ApiDeleteArtifactRequest) (*_nethttp.Response, error) + + /* + * DeleteArtifactsInGroup Delete artifacts in group + * Deletes all of the artifacts that exist in a given group. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiDeleteArtifactsInGroupRequest + */ + DeleteArtifactsInGroup(ctx _context.Context, groupId string) ApiDeleteArtifactsInGroupRequest + + /* + * DeleteArtifactsInGroupExecute executes the request + */ + DeleteArtifactsInGroupExecute(r ApiDeleteArtifactsInGroupRequest) (*_nethttp.Response, error) + + /* + * GetContentByGlobalId Get artifact by global ID + * Gets the content for an artifact version in the registry using its globally unique +identifier. + +This operation may fail for one of the following reasons: + +* No artifact version with this `globalId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param globalId Global identifier for an artifact version. + * @return ApiGetContentByGlobalIdRequest + */ + GetContentByGlobalId(ctx _context.Context, globalId int64) ApiGetContentByGlobalIdRequest + + /* + * GetContentByGlobalIdExecute executes the request + * @return *os.File + */ + GetContentByGlobalIdExecute(r ApiGetContentByGlobalIdRequest) (*os.File, *_nethttp.Response, error) + + /* + * GetContentByHash Get artifact content by SHA-256 hash + * Gets the content for an artifact version in the registry using the +SHA-256 hash of the content. This content hash may be shared by multiple artifact +versions in the case where the artifact versions have identical content. + +This operation may fail for one of the following reasons: + +* No content with this `contentHash` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentHash SHA-256 content hash for a single artifact content. + * @return ApiGetContentByHashRequest + */ + GetContentByHash(ctx _context.Context, contentHash string) ApiGetContentByHashRequest + + /* + * GetContentByHashExecute executes the request + * @return *os.File + */ + GetContentByHashExecute(r ApiGetContentByHashRequest) (*os.File, *_nethttp.Response, error) + + /* + * GetContentById Get artifact content by ID + * Gets the content for an artifact version in the registry using the unique content +identifier for that content. This content ID may be shared by multiple artifact +versions in the case where the artifact versions are identical. + +This operation may fail for one of the following reasons: + +* No content with this `contentId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentId Global identifier for a single artifact content. + * @return ApiGetContentByIdRequest + */ + GetContentById(ctx _context.Context, contentId int64) ApiGetContentByIdRequest + + /* + * GetContentByIdExecute executes the request + * @return *os.File + */ + GetContentByIdExecute(r ApiGetContentByIdRequest) (*os.File, *_nethttp.Response, error) + + /* + * GetLatestArtifact Get latest artifact + * Returns the latest version of the artifact in its raw form. The `Content-Type` of the +response depends on the artifact type. In most cases, this is `application/json`, but +for some types it may be different (for example, `PROTOBUF`). + +This operation may fail for one of the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetLatestArtifactRequest + */ + GetLatestArtifact(ctx _context.Context, groupId string, artifactId string) ApiGetLatestArtifactRequest + + /* + * GetLatestArtifactExecute executes the request + * @return *os.File + */ + GetLatestArtifactExecute(r ApiGetLatestArtifactRequest) (*os.File, *_nethttp.Response, error) + + /* + * ListArtifactsInGroup List artifacts in group + * Returns a list of all artifacts in the group. This list is paged. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiListArtifactsInGroupRequest + */ + ListArtifactsInGroup(ctx _context.Context, groupId string) ApiListArtifactsInGroupRequest + + /* + * ListArtifactsInGroupExecute executes the request + * @return ArtifactSearchResults + */ + ListArtifactsInGroupExecute(r ApiListArtifactsInGroupRequest) (ArtifactSearchResults, *_nethttp.Response, error) + + /* + * ReferencesByContentHash List artifact references by hash + * Returns a list containing all the artifact references using the artifact content hash. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentHash SHA-256 content hash for a single artifact content. + * @return ApiReferencesByContentHashRequest + */ + ReferencesByContentHash(ctx _context.Context, contentHash string) ApiReferencesByContentHashRequest + + /* + * ReferencesByContentHashExecute executes the request + * @return []ArtifactReference + */ + ReferencesByContentHashExecute(r ApiReferencesByContentHashRequest) ([]ArtifactReference, *_nethttp.Response, error) + + /* + * ReferencesByContentId List artifact references by content ID + * Returns a list containing all the artifact references using the artifact content ID. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentId Global identifier for a single artifact content. + * @return ApiReferencesByContentIdRequest + */ + ReferencesByContentId(ctx _context.Context, contentId int64) ApiReferencesByContentIdRequest + + /* + * ReferencesByContentIdExecute executes the request + * @return []ArtifactReference + */ + ReferencesByContentIdExecute(r ApiReferencesByContentIdRequest) ([]ArtifactReference, *_nethttp.Response, error) + + /* + * ReferencesByGlobalId Returns a list with all the references for the artifact with the given global id. + * Returns a list containing all the artifact references using the artifact global id. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param globalId Global identifier for an artifact version. + * @return ApiReferencesByGlobalIdRequest + */ + ReferencesByGlobalId(ctx _context.Context, globalId int64) ApiReferencesByGlobalIdRequest + + /* + * ReferencesByGlobalIdExecute executes the request + * @return []ArtifactReference + */ + ReferencesByGlobalIdExecute(r ApiReferencesByGlobalIdRequest) ([]ArtifactReference, *_nethttp.Response, error) + + /* + * UpdateArtifact Update artifact + * Updates an artifact by uploading new content. The body of the request can +be the raw content of the artifact or a JSON object containing both the raw content and +a set of references to other artifacts.. This is typically in JSON format for *most* +of the supported types, but may be in another format for a few (for example, `PROTOBUF`). +The type of the content should be compatible with the artifact's type (it would be +an error to update an `AVRO` artifact with new `OPENAPI` content, for example). + +The update could fail for a number of reasons including: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* A server error occurred (HTTP error `500`) + +When successful, this creates a new version of the artifact, making it the most recent +(and therefore official) version of the artifact. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactRequest + */ + UpdateArtifact(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactRequest + + /* + * UpdateArtifactExecute executes the request + * @return ArtifactMetaData + */ + UpdateArtifactExecute(r ApiUpdateArtifactRequest) (ArtifactMetaData, *_nethttp.Response, error) + + /* + * UpdateArtifactState Update artifact state + * Updates the state of the artifact. For example, you can use this to mark the latest +version of an artifact as `DEPRECATED`. The operation changes the state of the latest +version of the artifact. If multiple versions exist, only the most recent is changed. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactStateRequest + */ + UpdateArtifactState(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactStateRequest + + /* + * UpdateArtifactStateExecute executes the request + */ + UpdateArtifactStateExecute(r ApiUpdateArtifactStateRequest) (*_nethttp.Response, error) +} + +// ArtifactsApiService ArtifactsApi service +type ArtifactsApiService service + +type ApiCreateArtifactRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + body *interface{} + xRegistryArtifactType *ArtifactType + xRegistryArtifactId *string + xRegistryVersion *string + ifExists *IfExists + canonical *bool + xRegistryDescription *string + xRegistryDescriptionEncoded *string + xRegistryName *string + xRegistryNameEncoded *string + xRegistryContentHash *string + xRegistryHashAlgorithm *string +} + +func (r ApiCreateArtifactRequest) Body(body interface{}) ApiCreateArtifactRequest { + r.body = &body + return r +} +func (r ApiCreateArtifactRequest) XRegistryArtifactType(xRegistryArtifactType ArtifactType) ApiCreateArtifactRequest { + r.xRegistryArtifactType = &xRegistryArtifactType + return r +} +func (r ApiCreateArtifactRequest) XRegistryArtifactId(xRegistryArtifactId string) ApiCreateArtifactRequest { + r.xRegistryArtifactId = &xRegistryArtifactId + return r +} +func (r ApiCreateArtifactRequest) XRegistryVersion(xRegistryVersion string) ApiCreateArtifactRequest { + r.xRegistryVersion = &xRegistryVersion + return r +} +func (r ApiCreateArtifactRequest) IfExists(ifExists IfExists) ApiCreateArtifactRequest { + r.ifExists = &ifExists + return r +} +func (r ApiCreateArtifactRequest) Canonical(canonical bool) ApiCreateArtifactRequest { + r.canonical = &canonical + return r +} +func (r ApiCreateArtifactRequest) XRegistryDescription(xRegistryDescription string) ApiCreateArtifactRequest { + r.xRegistryDescription = &xRegistryDescription + return r +} +func (r ApiCreateArtifactRequest) XRegistryDescriptionEncoded(xRegistryDescriptionEncoded string) ApiCreateArtifactRequest { + r.xRegistryDescriptionEncoded = &xRegistryDescriptionEncoded + return r +} +func (r ApiCreateArtifactRequest) XRegistryName(xRegistryName string) ApiCreateArtifactRequest { + r.xRegistryName = &xRegistryName + return r +} +func (r ApiCreateArtifactRequest) XRegistryNameEncoded(xRegistryNameEncoded string) ApiCreateArtifactRequest { + r.xRegistryNameEncoded = &xRegistryNameEncoded + return r +} +func (r ApiCreateArtifactRequest) XRegistryContentHash(xRegistryContentHash string) ApiCreateArtifactRequest { + r.xRegistryContentHash = &xRegistryContentHash + return r +} +func (r ApiCreateArtifactRequest) XRegistryHashAlgorithm(xRegistryHashAlgorithm string) ApiCreateArtifactRequest { + r.xRegistryHashAlgorithm = &xRegistryHashAlgorithm + return r +} + +func (r ApiCreateArtifactRequest) Execute() (ArtifactMetaData, *_nethttp.Response, error) { + return r.ApiService.CreateArtifactExecute(r) +} + +/* + * CreateArtifact Create artifact + * Creates a new artifact by posting the artifact content. The body of the request should +be the raw content of the artifact. This is typically in JSON format for *most* of the +supported types, but may be in another format for a few (for example, `PROTOBUF`). + +The registry attempts to figure out what kind of artifact is being added from the +following supported list: + +* Avro (`AVRO`) +* Protobuf (`PROTOBUF`) +* JSON Schema (`JSON`) +* Kafka Connect (`KCONNECT`) +* OpenAPI (`OPENAPI`) +* AsyncAPI (`ASYNCAPI`) +* GraphQL (`GRAPHQL`) +* Web Services Description Language (`WSDL`) +* XML Schema (`XSD`) + +Alternatively, you can specify the artifact type using the `X-Registry-ArtifactType` +HTTP request header, or include a hint in the request's `Content-Type`. For example: + +``` +Content-Type: application/json; artifactType=AVRO +``` + +An artifact is created using the content provided in the body of the request. This +content is created under a unique artifact ID that can be provided in the request +using the `X-Registry-ArtifactId` request header. If not provided in the request, +the server generates a unique ID for the artifact. It is typically recommended +that callers provide the ID, because this is typically a meaningful identifier, +and for most use cases should be supplied by the caller. + +If an artifact with the provided artifact ID already exists, the default behavior +is for the server to reject the content with a 409 error. However, the caller can +supply the `ifExists` query parameter to alter this default behavior. The `ifExists` +query parameter can have one of the following values: + +* `FAIL` (*default*) - server rejects the content with a 409 error +* `UPDATE` - server updates the existing artifact and returns the new metadata +* `RETURN` - server does not create or add content to the server, but instead +returns the metadata for the existing artifact +* `RETURN_OR_UPDATE` - server returns an existing **version** that matches the +provided content if such a version exists, otherwise a new version is created + +This operation may fail for one of the following reasons: + +* An invalid `ArtifactType` was indicated (HTTP error `400`) +* No `ArtifactType` was indicated and the server could not determine one from the content (HTTP error `400`) +* Provided content (request body) was empty (HTTP error `400`) +* An artifact with the provided ID already exists (HTTP error `409`) +* The content violates one of the configured global rules (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiCreateArtifactRequest + */ +func (a *ArtifactsApiService) CreateArtifact(ctx _context.Context, groupId string) ApiCreateArtifactRequest { + return ApiCreateArtifactRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + } +} + +/* + * Execute executes the request + * @return ArtifactMetaData + */ +func (a *ArtifactsApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (ArtifactMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.CreateArtifact") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.ifExists != nil { + localVarQueryParams.Add("ifExists", parameterToString(*r.ifExists, "")) + } + if r.canonical != nil { + localVarQueryParams.Add("canonical", parameterToString(*r.canonical, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xRegistryArtifactType != nil { + localVarHeaderParams["X-Registry-ArtifactType"] = parameterToString(*r.xRegistryArtifactType, "") + } + if r.xRegistryArtifactId != nil { + localVarHeaderParams["X-Registry-ArtifactId"] = parameterToString(*r.xRegistryArtifactId, "") + } + if r.xRegistryVersion != nil { + localVarHeaderParams["X-Registry-Version"] = parameterToString(*r.xRegistryVersion, "") + } + if r.xRegistryDescription != nil { + localVarHeaderParams["X-Registry-Description"] = parameterToString(*r.xRegistryDescription, "") + } + if r.xRegistryDescriptionEncoded != nil { + localVarHeaderParams["X-Registry-Description-Encoded"] = parameterToString(*r.xRegistryDescriptionEncoded, "") + } + if r.xRegistryName != nil { + localVarHeaderParams["X-Registry-Name"] = parameterToString(*r.xRegistryName, "") + } + if r.xRegistryNameEncoded != nil { + localVarHeaderParams["X-Registry-Name-Encoded"] = parameterToString(*r.xRegistryNameEncoded, "") + } + if r.xRegistryContentHash != nil { + localVarHeaderParams["X-Registry-Content-Hash"] = parameterToString(*r.xRegistryContentHash, "") + } + if r.xRegistryHashAlgorithm != nil { + localVarHeaderParams["X-Registry-Hash-Algorithm"] = parameterToString(*r.xRegistryHashAlgorithm, "") + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v RuleViolationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteArtifactRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + artifactId string +} + + +func (r ApiDeleteArtifactRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteArtifactExecute(r) +} + +/* + * DeleteArtifact Delete artifact + * Deletes an artifact completely, resulting in all versions of the artifact also being +deleted. This may fail for one of the following reasons: + +* No artifact with the `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiDeleteArtifactRequest + */ +func (a *ArtifactsApiService) DeleteArtifact(ctx _context.Context, groupId string, artifactId string) ApiDeleteArtifactRequest { + return ApiDeleteArtifactRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactsApiService) DeleteArtifactExecute(r ApiDeleteArtifactRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.DeleteArtifact") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteArtifactsInGroupRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string +} + + +func (r ApiDeleteArtifactsInGroupRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteArtifactsInGroupExecute(r) +} + +/* + * DeleteArtifactsInGroup Delete artifacts in group + * Deletes all of the artifacts that exist in a given group. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiDeleteArtifactsInGroupRequest + */ +func (a *ArtifactsApiService) DeleteArtifactsInGroup(ctx _context.Context, groupId string) ApiDeleteArtifactsInGroupRequest { + return ApiDeleteArtifactsInGroupRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactsApiService) DeleteArtifactsInGroupExecute(r ApiDeleteArtifactsInGroupRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.DeleteArtifactsInGroup") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetContentByGlobalIdRequest struct { + ctx _context.Context + ApiService ArtifactsApi + globalId int64 + dereference *bool +} + +func (r ApiGetContentByGlobalIdRequest) Dereference(dereference bool) ApiGetContentByGlobalIdRequest { + r.dereference = &dereference + return r +} + +func (r ApiGetContentByGlobalIdRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.GetContentByGlobalIdExecute(r) +} + +/* + * GetContentByGlobalId Get artifact by global ID + * Gets the content for an artifact version in the registry using its globally unique +identifier. + +This operation may fail for one of the following reasons: + +* No artifact version with this `globalId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param globalId Global identifier for an artifact version. + * @return ApiGetContentByGlobalIdRequest + */ +func (a *ArtifactsApiService) GetContentByGlobalId(ctx _context.Context, globalId int64) ApiGetContentByGlobalIdRequest { + return ApiGetContentByGlobalIdRequest{ + ApiService: a, + ctx: ctx, + globalId: globalId, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *ArtifactsApiService) GetContentByGlobalIdExecute(r ApiGetContentByGlobalIdRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.GetContentByGlobalId") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/globalIds/{globalId}" + localVarPath = strings.Replace(localVarPath, "{"+"globalId"+"}", _neturl.PathEscape(parameterToString(r.globalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.dereference != nil { + localVarQueryParams.Add("dereference", parameterToString(*r.dereference, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetContentByHashRequest struct { + ctx _context.Context + ApiService ArtifactsApi + contentHash string +} + + +func (r ApiGetContentByHashRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.GetContentByHashExecute(r) +} + +/* + * GetContentByHash Get artifact content by SHA-256 hash + * Gets the content for an artifact version in the registry using the +SHA-256 hash of the content. This content hash may be shared by multiple artifact +versions in the case where the artifact versions have identical content. + +This operation may fail for one of the following reasons: + +* No content with this `contentHash` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentHash SHA-256 content hash for a single artifact content. + * @return ApiGetContentByHashRequest + */ +func (a *ArtifactsApiService) GetContentByHash(ctx _context.Context, contentHash string) ApiGetContentByHashRequest { + return ApiGetContentByHashRequest{ + ApiService: a, + ctx: ctx, + contentHash: contentHash, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *ArtifactsApiService) GetContentByHashExecute(r ApiGetContentByHashRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.GetContentByHash") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/contentHashes/{contentHash}/" + localVarPath = strings.Replace(localVarPath, "{"+"contentHash"+"}", _neturl.PathEscape(parameterToString(r.contentHash, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetContentByIdRequest struct { + ctx _context.Context + ApiService ArtifactsApi + contentId int64 +} + + +func (r ApiGetContentByIdRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.GetContentByIdExecute(r) +} + +/* + * GetContentById Get artifact content by ID + * Gets the content for an artifact version in the registry using the unique content +identifier for that content. This content ID may be shared by multiple artifact +versions in the case where the artifact versions are identical. + +This operation may fail for one of the following reasons: + +* No content with this `contentId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentId Global identifier for a single artifact content. + * @return ApiGetContentByIdRequest + */ +func (a *ArtifactsApiService) GetContentById(ctx _context.Context, contentId int64) ApiGetContentByIdRequest { + return ApiGetContentByIdRequest{ + ApiService: a, + ctx: ctx, + contentId: contentId, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *ArtifactsApiService) GetContentByIdExecute(r ApiGetContentByIdRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.GetContentById") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/contentIds/{contentId}/" + localVarPath = strings.Replace(localVarPath, "{"+"contentId"+"}", _neturl.PathEscape(parameterToString(r.contentId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetLatestArtifactRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + artifactId string + dereference *bool +} + +func (r ApiGetLatestArtifactRequest) Dereference(dereference bool) ApiGetLatestArtifactRequest { + r.dereference = &dereference + return r +} + +func (r ApiGetLatestArtifactRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.GetLatestArtifactExecute(r) +} + +/* + * GetLatestArtifact Get latest artifact + * Returns the latest version of the artifact in its raw form. The `Content-Type` of the +response depends on the artifact type. In most cases, this is `application/json`, but +for some types it may be different (for example, `PROTOBUF`). + +This operation may fail for one of the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetLatestArtifactRequest + */ +func (a *ArtifactsApiService) GetLatestArtifact(ctx _context.Context, groupId string, artifactId string) ApiGetLatestArtifactRequest { + return ApiGetLatestArtifactRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *ArtifactsApiService) GetLatestArtifactExecute(r ApiGetLatestArtifactRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.GetLatestArtifact") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.dereference != nil { + localVarQueryParams.Add("dereference", parameterToString(*r.dereference, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListArtifactsInGroupRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + limit *int32 + offset *int32 + order *SortOrder + orderby *SortBy +} + +func (r ApiListArtifactsInGroupRequest) Limit(limit int32) ApiListArtifactsInGroupRequest { + r.limit = &limit + return r +} +func (r ApiListArtifactsInGroupRequest) Offset(offset int32) ApiListArtifactsInGroupRequest { + r.offset = &offset + return r +} +func (r ApiListArtifactsInGroupRequest) Order(order SortOrder) ApiListArtifactsInGroupRequest { + r.order = &order + return r +} +func (r ApiListArtifactsInGroupRequest) Orderby(orderby SortBy) ApiListArtifactsInGroupRequest { + r.orderby = &orderby + return r +} + +func (r ApiListArtifactsInGroupRequest) Execute() (ArtifactSearchResults, *_nethttp.Response, error) { + return r.ApiService.ListArtifactsInGroupExecute(r) +} + +/* + * ListArtifactsInGroup List artifacts in group + * Returns a list of all artifacts in the group. This list is paged. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId Unique ID of an artifact group. + * @return ApiListArtifactsInGroupRequest + */ +func (a *ArtifactsApiService) ListArtifactsInGroup(ctx _context.Context, groupId string) ApiListArtifactsInGroupRequest { + return ApiListArtifactsInGroupRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + } +} + +/* + * Execute executes the request + * @return ArtifactSearchResults + */ +func (a *ArtifactsApiService) ListArtifactsInGroupExecute(r ApiListArtifactsInGroupRequest) (ArtifactSearchResults, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactSearchResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.ListArtifactsInGroup") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderby != nil { + localVarQueryParams.Add("orderby", parameterToString(*r.orderby, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReferencesByContentHashRequest struct { + ctx _context.Context + ApiService ArtifactsApi + contentHash string +} + + +func (r ApiReferencesByContentHashRequest) Execute() ([]ArtifactReference, *_nethttp.Response, error) { + return r.ApiService.ReferencesByContentHashExecute(r) +} + +/* + * ReferencesByContentHash List artifact references by hash + * Returns a list containing all the artifact references using the artifact content hash. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentHash SHA-256 content hash for a single artifact content. + * @return ApiReferencesByContentHashRequest + */ +func (a *ArtifactsApiService) ReferencesByContentHash(ctx _context.Context, contentHash string) ApiReferencesByContentHashRequest { + return ApiReferencesByContentHashRequest{ + ApiService: a, + ctx: ctx, + contentHash: contentHash, + } +} + +/* + * Execute executes the request + * @return []ArtifactReference + */ +func (a *ArtifactsApiService) ReferencesByContentHashExecute(r ApiReferencesByContentHashRequest) ([]ArtifactReference, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ArtifactReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.ReferencesByContentHash") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/contentHashes/{contentHash}/references" + localVarPath = strings.Replace(localVarPath, "{"+"contentHash"+"}", _neturl.PathEscape(parameterToString(r.contentHash, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReferencesByContentIdRequest struct { + ctx _context.Context + ApiService ArtifactsApi + contentId int64 +} + + +func (r ApiReferencesByContentIdRequest) Execute() ([]ArtifactReference, *_nethttp.Response, error) { + return r.ApiService.ReferencesByContentIdExecute(r) +} + +/* + * ReferencesByContentId List artifact references by content ID + * Returns a list containing all the artifact references using the artifact content ID. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param contentId Global identifier for a single artifact content. + * @return ApiReferencesByContentIdRequest + */ +func (a *ArtifactsApiService) ReferencesByContentId(ctx _context.Context, contentId int64) ApiReferencesByContentIdRequest { + return ApiReferencesByContentIdRequest{ + ApiService: a, + ctx: ctx, + contentId: contentId, + } +} + +/* + * Execute executes the request + * @return []ArtifactReference + */ +func (a *ArtifactsApiService) ReferencesByContentIdExecute(r ApiReferencesByContentIdRequest) ([]ArtifactReference, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ArtifactReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.ReferencesByContentId") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/contentIds/{contentId}/references" + localVarPath = strings.Replace(localVarPath, "{"+"contentId"+"}", _neturl.PathEscape(parameterToString(r.contentId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReferencesByGlobalIdRequest struct { + ctx _context.Context + ApiService ArtifactsApi + globalId int64 +} + + +func (r ApiReferencesByGlobalIdRequest) Execute() ([]ArtifactReference, *_nethttp.Response, error) { + return r.ApiService.ReferencesByGlobalIdExecute(r) +} + +/* + * ReferencesByGlobalId Returns a list with all the references for the artifact with the given global id. + * Returns a list containing all the artifact references using the artifact global id. + +This operation may fail for one of the following reasons: + +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param globalId Global identifier for an artifact version. + * @return ApiReferencesByGlobalIdRequest + */ +func (a *ArtifactsApiService) ReferencesByGlobalId(ctx _context.Context, globalId int64) ApiReferencesByGlobalIdRequest { + return ApiReferencesByGlobalIdRequest{ + ApiService: a, + ctx: ctx, + globalId: globalId, + } +} + +/* + * Execute executes the request + * @return []ArtifactReference + */ +func (a *ArtifactsApiService) ReferencesByGlobalIdExecute(r ApiReferencesByGlobalIdRequest) ([]ArtifactReference, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ArtifactReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.ReferencesByGlobalId") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/ids/globalIds/{globalId}/references" + localVarPath = strings.Replace(localVarPath, "{"+"globalId"+"}", _neturl.PathEscape(parameterToString(r.globalId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateArtifactRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + artifactId string + body *interface{} + xRegistryVersion *string + xRegistryName *string + xRegistryNameEncoded *string + xRegistryDescription *string + xRegistryDescriptionEncoded *string +} + +func (r ApiUpdateArtifactRequest) Body(body interface{}) ApiUpdateArtifactRequest { + r.body = &body + return r +} +func (r ApiUpdateArtifactRequest) XRegistryVersion(xRegistryVersion string) ApiUpdateArtifactRequest { + r.xRegistryVersion = &xRegistryVersion + return r +} +func (r ApiUpdateArtifactRequest) XRegistryName(xRegistryName string) ApiUpdateArtifactRequest { + r.xRegistryName = &xRegistryName + return r +} +func (r ApiUpdateArtifactRequest) XRegistryNameEncoded(xRegistryNameEncoded string) ApiUpdateArtifactRequest { + r.xRegistryNameEncoded = &xRegistryNameEncoded + return r +} +func (r ApiUpdateArtifactRequest) XRegistryDescription(xRegistryDescription string) ApiUpdateArtifactRequest { + r.xRegistryDescription = &xRegistryDescription + return r +} +func (r ApiUpdateArtifactRequest) XRegistryDescriptionEncoded(xRegistryDescriptionEncoded string) ApiUpdateArtifactRequest { + r.xRegistryDescriptionEncoded = &xRegistryDescriptionEncoded + return r +} + +func (r ApiUpdateArtifactRequest) Execute() (ArtifactMetaData, *_nethttp.Response, error) { + return r.ApiService.UpdateArtifactExecute(r) +} + +/* + * UpdateArtifact Update artifact + * Updates an artifact by uploading new content. The body of the request can +be the raw content of the artifact or a JSON object containing both the raw content and +a set of references to other artifacts.. This is typically in JSON format for *most* +of the supported types, but may be in another format for a few (for example, `PROTOBUF`). +The type of the content should be compatible with the artifact's type (it would be +an error to update an `AVRO` artifact with new `OPENAPI` content, for example). + +The update could fail for a number of reasons including: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* A server error occurred (HTTP error `500`) + +When successful, this creates a new version of the artifact, making it the most recent +(and therefore official) version of the artifact. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactRequest + */ +func (a *ArtifactsApiService) UpdateArtifact(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactRequest { + return ApiUpdateArtifactRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return ArtifactMetaData + */ +func (a *ArtifactsApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (ArtifactMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.UpdateArtifact") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xRegistryVersion != nil { + localVarHeaderParams["X-Registry-Version"] = parameterToString(*r.xRegistryVersion, "") + } + if r.xRegistryName != nil { + localVarHeaderParams["X-Registry-Name"] = parameterToString(*r.xRegistryName, "") + } + if r.xRegistryNameEncoded != nil { + localVarHeaderParams["X-Registry-Name-Encoded"] = parameterToString(*r.xRegistryNameEncoded, "") + } + if r.xRegistryDescription != nil { + localVarHeaderParams["X-Registry-Description"] = parameterToString(*r.xRegistryDescription, "") + } + if r.xRegistryDescriptionEncoded != nil { + localVarHeaderParams["X-Registry-Description-Encoded"] = parameterToString(*r.xRegistryDescriptionEncoded, "") + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateArtifactStateRequest struct { + ctx _context.Context + ApiService ArtifactsApi + groupId string + artifactId string + updateState *UpdateState +} + +func (r ApiUpdateArtifactStateRequest) UpdateState(updateState UpdateState) ApiUpdateArtifactStateRequest { + r.updateState = &updateState + return r +} + +func (r ApiUpdateArtifactStateRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateArtifactStateExecute(r) +} + +/* + * UpdateArtifactState Update artifact state + * Updates the state of the artifact. For example, you can use this to mark the latest +version of an artifact as `DEPRECATED`. The operation changes the state of the latest +version of the artifact. If multiple versions exist, only the most recent is changed. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactStateRequest + */ +func (a *ArtifactsApiService) UpdateArtifactState(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactStateRequest { + return ApiUpdateArtifactStateRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *ArtifactsApiService) UpdateArtifactStateExecute(r ApiUpdateArtifactStateRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ArtifactsApiService.UpdateArtifactState") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/state" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.updateState == nil { + return nil, reportError("updateState is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateState + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_global_rules.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_global_rules.go new file mode 100644 index 00000000..25aacffb --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_global_rules.go @@ -0,0 +1,911 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type GlobalRulesApi interface { + + /* + * CreateGlobalRule Create global rule + * Adds a rule to the list of globally configured rules. + +This operation can fail for the following reasons: + +* The rule type is unknown (HTTP error `400`) +* The rule already exists (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateGlobalRuleRequest + */ + CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest + + /* + * CreateGlobalRuleExecute executes the request + */ + CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) + + /* + * DeleteAllGlobalRules Delete all global rules + * Deletes all globally configured rules. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteAllGlobalRulesRequest + */ + DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest + + /* + * DeleteAllGlobalRulesExecute executes the request + */ + DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) + + /* + * DeleteGlobalRule Delete global rule + * Deletes a single global rule. If this is the only rule configured, this is the same +as deleting **all** rules. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* Rule cannot be deleted (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiDeleteGlobalRuleRequest + */ + DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest + + /* + * DeleteGlobalRuleExecute executes the request + */ + DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) + + /* + * GetGlobalRuleConfig Get global rule configuration + * Returns information about the named globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiGetGlobalRuleConfigRequest + */ + GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest + + /* + * GetGlobalRuleConfigExecute executes the request + * @return Rule + */ + GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) + + /* + * ListGlobalRules List global rules + * Gets a list of all the currently configured global rules (if any). + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListGlobalRulesRequest + */ + ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest + + /* + * ListGlobalRulesExecute executes the request + * @return []RuleType + */ + ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) + + /* + * UpdateGlobalRuleConfig Update global rule configuration + * Updates the configuration for a globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiUpdateGlobalRuleConfigRequest + */ + UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest + + /* + * UpdateGlobalRuleConfigExecute executes the request + * @return Rule + */ + UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) +} + +// GlobalRulesApiService GlobalRulesApi service +type GlobalRulesApiService service + +type ApiCreateGlobalRuleRequest struct { + ctx _context.Context + ApiService GlobalRulesApi + rule *Rule +} + +func (r ApiCreateGlobalRuleRequest) Rule(rule Rule) ApiCreateGlobalRuleRequest { + r.rule = &rule + return r +} + +func (r ApiCreateGlobalRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.CreateGlobalRuleExecute(r) +} + +/* + * CreateGlobalRule Create global rule + * Adds a rule to the list of globally configured rules. + +This operation can fail for the following reasons: + +* The rule type is unknown (HTTP error `400`) +* The rule already exists (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateGlobalRuleRequest + */ +func (a *GlobalRulesApiService) CreateGlobalRule(ctx _context.Context) ApiCreateGlobalRuleRequest { + return ApiCreateGlobalRuleRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *GlobalRulesApiService) CreateGlobalRuleExecute(r ApiCreateGlobalRuleRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.CreateGlobalRule") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.rule == nil { + return nil, reportError("rule is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rule + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteAllGlobalRulesRequest struct { + ctx _context.Context + ApiService GlobalRulesApi +} + + +func (r ApiDeleteAllGlobalRulesRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteAllGlobalRulesExecute(r) +} + +/* + * DeleteAllGlobalRules Delete all global rules + * Deletes all globally configured rules. + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiDeleteAllGlobalRulesRequest + */ +func (a *GlobalRulesApiService) DeleteAllGlobalRules(ctx _context.Context) ApiDeleteAllGlobalRulesRequest { + return ApiDeleteAllGlobalRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *GlobalRulesApiService) DeleteAllGlobalRulesExecute(r ApiDeleteAllGlobalRulesRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.DeleteAllGlobalRules") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteGlobalRuleRequest struct { + ctx _context.Context + ApiService GlobalRulesApi + rule RuleType +} + + +func (r ApiDeleteGlobalRuleRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteGlobalRuleExecute(r) +} + +/* + * DeleteGlobalRule Delete global rule + * Deletes a single global rule. If this is the only rule configured, this is the same +as deleting **all** rules. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* Rule cannot be deleted (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiDeleteGlobalRuleRequest + */ +func (a *GlobalRulesApiService) DeleteGlobalRule(ctx _context.Context, rule RuleType) ApiDeleteGlobalRuleRequest { + return ApiDeleteGlobalRuleRequest{ + ApiService: a, + ctx: ctx, + rule: rule, + } +} + +/* + * Execute executes the request + */ +func (a *GlobalRulesApiService) DeleteGlobalRuleExecute(r ApiDeleteGlobalRuleRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.DeleteGlobalRule") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetGlobalRuleConfigRequest struct { + ctx _context.Context + ApiService GlobalRulesApi + rule RuleType +} + + +func (r ApiGetGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.GetGlobalRuleConfigExecute(r) +} + +/* + * GetGlobalRuleConfig Get global rule configuration + * Returns information about the named globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiGetGlobalRuleConfigRequest + */ +func (a *GlobalRulesApiService) GetGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiGetGlobalRuleConfigRequest { + return ApiGetGlobalRuleConfigRequest{ + ApiService: a, + ctx: ctx, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *GlobalRulesApiService) GetGlobalRuleConfigExecute(r ApiGetGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.GetGlobalRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListGlobalRulesRequest struct { + ctx _context.Context + ApiService GlobalRulesApi +} + + +func (r ApiListGlobalRulesRequest) Execute() ([]RuleType, *_nethttp.Response, error) { + return r.ApiService.ListGlobalRulesExecute(r) +} + +/* + * ListGlobalRules List global rules + * Gets a list of all the currently configured global rules (if any). + +This operation can fail for the following reasons: + +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiListGlobalRulesRequest + */ +func (a *GlobalRulesApiService) ListGlobalRules(ctx _context.Context) ApiListGlobalRulesRequest { + return ApiListGlobalRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []RuleType + */ +func (a *GlobalRulesApiService) ListGlobalRulesExecute(r ApiListGlobalRulesRequest) ([]RuleType, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []RuleType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.ListGlobalRules") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateGlobalRuleConfigRequest struct { + ctx _context.Context + ApiService GlobalRulesApi + rule RuleType + rule2 *Rule +} + +func (r ApiUpdateGlobalRuleConfigRequest) Rule2(rule2 Rule) ApiUpdateGlobalRuleConfigRequest { + r.rule2 = &rule2 + return r +} + +func (r ApiUpdateGlobalRuleConfigRequest) Execute() (Rule, *_nethttp.Response, error) { + return r.ApiService.UpdateGlobalRuleConfigExecute(r) +} + +/* + * UpdateGlobalRuleConfig Update global rule configuration + * Updates the configuration for a globally configured rule. + +This operation can fail for the following reasons: + +* Invalid rule name/type (HTTP error `400`) +* No rule with name/type `rule` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param rule The unique name/type of a rule. + * @return ApiUpdateGlobalRuleConfigRequest + */ +func (a *GlobalRulesApiService) UpdateGlobalRuleConfig(ctx _context.Context, rule RuleType) ApiUpdateGlobalRuleConfigRequest { + return ApiUpdateGlobalRuleConfigRequest{ + ApiService: a, + ctx: ctx, + rule: rule, + } +} + +/* + * Execute executes the request + * @return Rule + */ +func (a *GlobalRulesApiService) UpdateGlobalRuleConfigExecute(r ApiUpdateGlobalRuleConfigRequest) (Rule, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Rule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GlobalRulesApiService.UpdateGlobalRuleConfig") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/admin/rules/{rule}" + localVarPath = strings.Replace(localVarPath, "{"+"rule"+"}", _neturl.PathEscape(parameterToString(r.rule, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.rule2 == nil { + return localVarReturnValue, nil, reportError("rule2 is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rule2 + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_metadata.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_metadata.go new file mode 100644 index 00000000..1283d3d9 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_metadata.go @@ -0,0 +1,1323 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type MetadataApi interface { + + /* + * DeleteArtifactVersionMetaData Delete artifact version metadata + * Deletes the user-editable metadata properties of the artifact version. Any properties +that are not user-editable are preserved. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiDeleteArtifactVersionMetaDataRequest + */ + DeleteArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiDeleteArtifactVersionMetaDataRequest + + /* + * DeleteArtifactVersionMetaDataExecute executes the request + */ + DeleteArtifactVersionMetaDataExecute(r ApiDeleteArtifactVersionMetaDataRequest) (*_nethttp.Response, error) + + /* + * GetArtifactMetaData Get artifact metadata + * Gets the metadata for an artifact in the registry. The returned metadata includes +both generated (read-only) and editable metadata (such as name and description). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactMetaDataRequest + */ + GetArtifactMetaData(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactMetaDataRequest + + /* + * GetArtifactMetaDataExecute executes the request + * @return ArtifactMetaData + */ + GetArtifactMetaDataExecute(r ApiGetArtifactMetaDataRequest) (ArtifactMetaData, *_nethttp.Response, error) + + /* + * GetArtifactOwner Get artifact owner + * Gets the owner of an artifact in the registry. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactOwnerRequest + */ + GetArtifactOwner(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactOwnerRequest + + /* + * GetArtifactOwnerExecute executes the request + * @return ArtifactOwner + */ + GetArtifactOwnerExecute(r ApiGetArtifactOwnerRequest) (ArtifactOwner, *_nethttp.Response, error) + + /* + * GetArtifactVersionMetaData Get artifact version metadata + * Retrieves the metadata for a single version of the artifact. The version metadata is +a subset of the artifact metadata and only includes the metadata that is specific to +the version (for example, this doesn't include `modifiedOn`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionMetaDataRequest + */ + GetArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionMetaDataRequest + + /* + * GetArtifactVersionMetaDataExecute executes the request + * @return VersionMetaData + */ + GetArtifactVersionMetaDataExecute(r ApiGetArtifactVersionMetaDataRequest) (VersionMetaData, *_nethttp.Response, error) + + /* + * GetArtifactVersionMetaDataByContent Get artifact version metadata by content + * Gets the metadata for an artifact that matches the raw content. Searches the registry +for a version of the given artifact matching the content provided in the body of the +POST. + +This operation can fail for the following reasons: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* No artifact version matching the provided content exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactVersionMetaDataByContentRequest + */ + GetArtifactVersionMetaDataByContent(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactVersionMetaDataByContentRequest + + /* + * GetArtifactVersionMetaDataByContentExecute executes the request + * @return VersionMetaData + */ + GetArtifactVersionMetaDataByContentExecute(r ApiGetArtifactVersionMetaDataByContentRequest) (VersionMetaData, *_nethttp.Response, error) + + /* + * UpdateArtifactMetaData Update artifact metadata + * Updates the editable parts of the artifact's metadata. Not all metadata fields can +be updated. For example, `createdOn` and `createdBy` are both read-only properties. + +This operation can fail for the following reasons: + +* No artifact with the `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactMetaDataRequest + */ + UpdateArtifactMetaData(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactMetaDataRequest + + /* + * UpdateArtifactMetaDataExecute executes the request + */ + UpdateArtifactMetaDataExecute(r ApiUpdateArtifactMetaDataRequest) (*_nethttp.Response, error) + + /* + * UpdateArtifactOwner Update artifact owner + * Changes the ownership of an artifact. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactOwnerRequest + */ + UpdateArtifactOwner(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactOwnerRequest + + /* + * UpdateArtifactOwnerExecute executes the request + */ + UpdateArtifactOwnerExecute(r ApiUpdateArtifactOwnerRequest) (*_nethttp.Response, error) + + /* + * UpdateArtifactVersionMetaData Update artifact version metadata + * Updates the user-editable portion of the artifact version's metadata. Only some of +the metadata fields are editable by the user. For example, `description` is editable, +but `createdOn` is not. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiUpdateArtifactVersionMetaDataRequest + */ + UpdateArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiUpdateArtifactVersionMetaDataRequest + + /* + * UpdateArtifactVersionMetaDataExecute executes the request + */ + UpdateArtifactVersionMetaDataExecute(r ApiUpdateArtifactVersionMetaDataRequest) (*_nethttp.Response, error) +} + +// MetadataApiService MetadataApi service +type MetadataApiService service + +type ApiDeleteArtifactVersionMetaDataRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + version string +} + + +func (r ApiDeleteArtifactVersionMetaDataRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteArtifactVersionMetaDataExecute(r) +} + +/* + * DeleteArtifactVersionMetaData Delete artifact version metadata + * Deletes the user-editable metadata properties of the artifact version. Any properties +that are not user-editable are preserved. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiDeleteArtifactVersionMetaDataRequest + */ +func (a *MetadataApiService) DeleteArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiDeleteArtifactVersionMetaDataRequest { + return ApiDeleteArtifactVersionMetaDataRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + */ +func (a *MetadataApiService) DeleteArtifactVersionMetaDataExecute(r ApiDeleteArtifactVersionMetaDataRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.DeleteArtifactVersionMetaData") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetArtifactMetaDataRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string +} + + +func (r ApiGetArtifactMetaDataRequest) Execute() (ArtifactMetaData, *_nethttp.Response, error) { + return r.ApiService.GetArtifactMetaDataExecute(r) +} + +/* + * GetArtifactMetaData Get artifact metadata + * Gets the metadata for an artifact in the registry. The returned metadata includes +both generated (read-only) and editable metadata (such as name and description). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactMetaDataRequest + */ +func (a *MetadataApiService) GetArtifactMetaData(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactMetaDataRequest { + return ApiGetArtifactMetaDataRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return ArtifactMetaData + */ +func (a *MetadataApiService) GetArtifactMetaDataExecute(r ApiGetArtifactMetaDataRequest) (ArtifactMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetArtifactMetaData") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetArtifactOwnerRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string +} + + +func (r ApiGetArtifactOwnerRequest) Execute() (ArtifactOwner, *_nethttp.Response, error) { + return r.ApiService.GetArtifactOwnerExecute(r) +} + +/* + * GetArtifactOwner Get artifact owner + * Gets the owner of an artifact in the registry. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactOwnerRequest + */ +func (a *MetadataApiService) GetArtifactOwner(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactOwnerRequest { + return ApiGetArtifactOwnerRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return ArtifactOwner + */ +func (a *MetadataApiService) GetArtifactOwnerExecute(r ApiGetArtifactOwnerRequest) (ArtifactOwner, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactOwner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetArtifactOwner") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/owner" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetArtifactVersionMetaDataRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + version string +} + + +func (r ApiGetArtifactVersionMetaDataRequest) Execute() (VersionMetaData, *_nethttp.Response, error) { + return r.ApiService.GetArtifactVersionMetaDataExecute(r) +} + +/* + * GetArtifactVersionMetaData Get artifact version metadata + * Retrieves the metadata for a single version of the artifact. The version metadata is +a subset of the artifact metadata and only includes the metadata that is specific to +the version (for example, this doesn't include `modifiedOn`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionMetaDataRequest + */ +func (a *MetadataApiService) GetArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionMetaDataRequest { + return ApiGetArtifactVersionMetaDataRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + * @return VersionMetaData + */ +func (a *MetadataApiService) GetArtifactVersionMetaDataExecute(r ApiGetArtifactVersionMetaDataRequest) (VersionMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetArtifactVersionMetaData") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetArtifactVersionMetaDataByContentRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + body *interface{} + canonical *bool +} + +func (r ApiGetArtifactVersionMetaDataByContentRequest) Body(body interface{}) ApiGetArtifactVersionMetaDataByContentRequest { + r.body = &body + return r +} +func (r ApiGetArtifactVersionMetaDataByContentRequest) Canonical(canonical bool) ApiGetArtifactVersionMetaDataByContentRequest { + r.canonical = &canonical + return r +} + +func (r ApiGetArtifactVersionMetaDataByContentRequest) Execute() (VersionMetaData, *_nethttp.Response, error) { + return r.ApiService.GetArtifactVersionMetaDataByContentExecute(r) +} + +/* + * GetArtifactVersionMetaDataByContent Get artifact version metadata by content + * Gets the metadata for an artifact that matches the raw content. Searches the registry +for a version of the given artifact matching the content provided in the body of the +POST. + +This operation can fail for the following reasons: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with the `artifactId` exists (HTTP error `404`) +* No artifact version matching the provided content exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiGetArtifactVersionMetaDataByContentRequest + */ +func (a *MetadataApiService) GetArtifactVersionMetaDataByContent(ctx _context.Context, groupId string, artifactId string) ApiGetArtifactVersionMetaDataByContentRequest { + return ApiGetArtifactVersionMetaDataByContentRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return VersionMetaData + */ +func (a *MetadataApiService) GetArtifactVersionMetaDataByContentExecute(r ApiGetArtifactVersionMetaDataByContentRequest) (VersionMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetArtifactVersionMetaDataByContent") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.canonical != nil { + localVarQueryParams.Add("canonical", parameterToString(*r.canonical, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateArtifactMetaDataRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + editableMetaData *EditableMetaData +} + +func (r ApiUpdateArtifactMetaDataRequest) EditableMetaData(editableMetaData EditableMetaData) ApiUpdateArtifactMetaDataRequest { + r.editableMetaData = &editableMetaData + return r +} + +func (r ApiUpdateArtifactMetaDataRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateArtifactMetaDataExecute(r) +} + +/* + * UpdateArtifactMetaData Update artifact metadata + * Updates the editable parts of the artifact's metadata. Not all metadata fields can +be updated. For example, `createdOn` and `createdBy` are both read-only properties. + +This operation can fail for the following reasons: + +* No artifact with the `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactMetaDataRequest + */ +func (a *MetadataApiService) UpdateArtifactMetaData(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactMetaDataRequest { + return ApiUpdateArtifactMetaDataRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *MetadataApiService) UpdateArtifactMetaDataExecute(r ApiUpdateArtifactMetaDataRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.UpdateArtifactMetaData") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.editableMetaData == nil { + return nil, reportError("editableMetaData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.editableMetaData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateArtifactOwnerRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + artifactOwner *ArtifactOwner +} + +func (r ApiUpdateArtifactOwnerRequest) ArtifactOwner(artifactOwner ArtifactOwner) ApiUpdateArtifactOwnerRequest { + r.artifactOwner = &artifactOwner + return r +} + +func (r ApiUpdateArtifactOwnerRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateArtifactOwnerExecute(r) +} + +/* + * UpdateArtifactOwner Update artifact owner + * Changes the ownership of an artifact. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiUpdateArtifactOwnerRequest + */ +func (a *MetadataApiService) UpdateArtifactOwner(ctx _context.Context, groupId string, artifactId string) ApiUpdateArtifactOwnerRequest { + return ApiUpdateArtifactOwnerRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + */ +func (a *MetadataApiService) UpdateArtifactOwnerExecute(r ApiUpdateArtifactOwnerRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.UpdateArtifactOwner") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/owner" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.artifactOwner == nil { + return nil, reportError("artifactOwner is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.artifactOwner + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiUpdateArtifactVersionMetaDataRequest struct { + ctx _context.Context + ApiService MetadataApi + groupId string + artifactId string + version string + editableMetaData *EditableMetaData +} + +func (r ApiUpdateArtifactVersionMetaDataRequest) EditableMetaData(editableMetaData EditableMetaData) ApiUpdateArtifactVersionMetaDataRequest { + r.editableMetaData = &editableMetaData + return r +} + +func (r ApiUpdateArtifactVersionMetaDataRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateArtifactVersionMetaDataExecute(r) +} + +/* + * UpdateArtifactVersionMetaData Update artifact version metadata + * Updates the user-editable portion of the artifact version's metadata. Only some of +the metadata fields are editable by the user. For example, `description` is editable, +but `createdOn` is not. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiUpdateArtifactVersionMetaDataRequest + */ +func (a *MetadataApiService) UpdateArtifactVersionMetaData(ctx _context.Context, groupId string, artifactId string, version string) ApiUpdateArtifactVersionMetaDataRequest { + return ApiUpdateArtifactVersionMetaDataRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + */ +func (a *MetadataApiService) UpdateArtifactVersionMetaDataExecute(r ApiUpdateArtifactVersionMetaDataRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.UpdateArtifactVersionMetaData") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.editableMetaData == nil { + return nil, reportError("editableMetaData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.editableMetaData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_search.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_search.go new file mode 100644 index 00000000..a4f41d3d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_search.go @@ -0,0 +1,451 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "reflect" + "os" +) + +// Linger please +var ( + _ _context.Context +) + +type SearchApi interface { + + /* + * SearchArtifacts Search for artifacts + * Returns a paginated list of all artifacts that match the provided filter criteria. + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSearchArtifactsRequest + */ + SearchArtifacts(ctx _context.Context) ApiSearchArtifactsRequest + + /* + * SearchArtifactsExecute executes the request + * @return ArtifactSearchResults + */ + SearchArtifactsExecute(r ApiSearchArtifactsRequest) (ArtifactSearchResults, *_nethttp.Response, error) + + /* + * SearchArtifactsByContent Search for artifacts by content + * Returns a paginated list of all artifacts with at least one version that matches the +posted content. + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSearchArtifactsByContentRequest + */ + SearchArtifactsByContent(ctx _context.Context) ApiSearchArtifactsByContentRequest + + /* + * SearchArtifactsByContentExecute executes the request + * @return ArtifactSearchResults + */ + SearchArtifactsByContentExecute(r ApiSearchArtifactsByContentRequest) (ArtifactSearchResults, *_nethttp.Response, error) +} + +// SearchApiService SearchApi service +type SearchApiService service + +type ApiSearchArtifactsRequest struct { + ctx _context.Context + ApiService SearchApi + name *string + offset *int32 + limit *int32 + order *SortOrder + orderby *SortBy + labels *[]string + properties *[]string + description *string + group *string + globalId *int64 + contentId *int64 +} + +func (r ApiSearchArtifactsRequest) Name(name string) ApiSearchArtifactsRequest { + r.name = &name + return r +} +func (r ApiSearchArtifactsRequest) Offset(offset int32) ApiSearchArtifactsRequest { + r.offset = &offset + return r +} +func (r ApiSearchArtifactsRequest) Limit(limit int32) ApiSearchArtifactsRequest { + r.limit = &limit + return r +} +func (r ApiSearchArtifactsRequest) Order(order SortOrder) ApiSearchArtifactsRequest { + r.order = &order + return r +} +func (r ApiSearchArtifactsRequest) Orderby(orderby SortBy) ApiSearchArtifactsRequest { + r.orderby = &orderby + return r +} +func (r ApiSearchArtifactsRequest) Labels(labels []string) ApiSearchArtifactsRequest { + r.labels = &labels + return r +} +func (r ApiSearchArtifactsRequest) Properties(properties []string) ApiSearchArtifactsRequest { + r.properties = &properties + return r +} +func (r ApiSearchArtifactsRequest) Description(description string) ApiSearchArtifactsRequest { + r.description = &description + return r +} +func (r ApiSearchArtifactsRequest) Group(group string) ApiSearchArtifactsRequest { + r.group = &group + return r +} +func (r ApiSearchArtifactsRequest) GlobalId(globalId int64) ApiSearchArtifactsRequest { + r.globalId = &globalId + return r +} +func (r ApiSearchArtifactsRequest) ContentId(contentId int64) ApiSearchArtifactsRequest { + r.contentId = &contentId + return r +} + +func (r ApiSearchArtifactsRequest) Execute() (ArtifactSearchResults, *_nethttp.Response, error) { + return r.ApiService.SearchArtifactsExecute(r) +} + +/* + * SearchArtifacts Search for artifacts + * Returns a paginated list of all artifacts that match the provided filter criteria. + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSearchArtifactsRequest + */ +func (a *SearchApiService) SearchArtifacts(ctx _context.Context) ApiSearchArtifactsRequest { + return ApiSearchArtifactsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ArtifactSearchResults + */ +func (a *SearchApiService) SearchArtifactsExecute(r ApiSearchArtifactsRequest) (ArtifactSearchResults, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactSearchResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchApiService.SearchArtifacts") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/search/artifacts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderby != nil { + localVarQueryParams.Add("orderby", parameterToString(*r.orderby, "")) + } + if r.labels != nil { + t := *r.labels + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("labels", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("labels", parameterToString(t, "multi")) + } + } + if r.properties != nil { + t := *r.properties + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("properties", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("properties", parameterToString(t, "multi")) + } + } + if r.description != nil { + localVarQueryParams.Add("description", parameterToString(*r.description, "")) + } + if r.group != nil { + localVarQueryParams.Add("group", parameterToString(*r.group, "")) + } + if r.globalId != nil { + localVarQueryParams.Add("globalId", parameterToString(*r.globalId, "")) + } + if r.contentId != nil { + localVarQueryParams.Add("contentId", parameterToString(*r.contentId, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSearchArtifactsByContentRequest struct { + ctx _context.Context + ApiService SearchApi + body **os.File + canonical *bool + artifactType *ArtifactType + offset *int32 + limit *int32 + order *string + orderby *string +} + +func (r ApiSearchArtifactsByContentRequest) Body(body *os.File) ApiSearchArtifactsByContentRequest { + r.body = &body + return r +} +func (r ApiSearchArtifactsByContentRequest) Canonical(canonical bool) ApiSearchArtifactsByContentRequest { + r.canonical = &canonical + return r +} +func (r ApiSearchArtifactsByContentRequest) ArtifactType(artifactType ArtifactType) ApiSearchArtifactsByContentRequest { + r.artifactType = &artifactType + return r +} +func (r ApiSearchArtifactsByContentRequest) Offset(offset int32) ApiSearchArtifactsByContentRequest { + r.offset = &offset + return r +} +func (r ApiSearchArtifactsByContentRequest) Limit(limit int32) ApiSearchArtifactsByContentRequest { + r.limit = &limit + return r +} +func (r ApiSearchArtifactsByContentRequest) Order(order string) ApiSearchArtifactsByContentRequest { + r.order = &order + return r +} +func (r ApiSearchArtifactsByContentRequest) Orderby(orderby string) ApiSearchArtifactsByContentRequest { + r.orderby = &orderby + return r +} + +func (r ApiSearchArtifactsByContentRequest) Execute() (ArtifactSearchResults, *_nethttp.Response, error) { + return r.ApiService.SearchArtifactsByContentExecute(r) +} + +/* + * SearchArtifactsByContent Search for artifacts by content + * Returns a paginated list of all artifacts with at least one version that matches the +posted content. + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSearchArtifactsByContentRequest + */ +func (a *SearchApiService) SearchArtifactsByContent(ctx _context.Context) ApiSearchArtifactsByContentRequest { + return ApiSearchArtifactsByContentRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ArtifactSearchResults + */ +func (a *SearchApiService) SearchArtifactsByContentExecute(r ApiSearchArtifactsByContentRequest) (ArtifactSearchResults, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ArtifactSearchResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchApiService.SearchArtifactsByContent") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/search/artifacts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.canonical != nil { + localVarQueryParams.Add("canonical", parameterToString(*r.canonical, "")) + } + if r.artifactType != nil { + localVarQueryParams.Add("artifactType", parameterToString(*r.artifactType, "")) + } + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.order != nil { + localVarQueryParams.Add("order", parameterToString(*r.order, "")) + } + if r.orderby != nil { + localVarQueryParams.Add("orderby", parameterToString(*r.orderby, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_system.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_system.go new file mode 100644 index 00000000..187abeb8 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_system.go @@ -0,0 +1,283 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type SystemApi interface { + + /* + * GetResourceLimits Get resource limits information + * This operation retrieves the list of limitations on used resources, that are applied on the current instance of Registry. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetResourceLimitsRequest + */ + GetResourceLimits(ctx _context.Context) ApiGetResourceLimitsRequest + + /* + * GetResourceLimitsExecute executes the request + * @return Limits + */ + GetResourceLimitsExecute(r ApiGetResourceLimitsRequest) (Limits, *_nethttp.Response, error) + + /* + * GetSystemInfo Get system information + * This operation retrieves information about the running registry system, such as the version +of the software and when it was built. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSystemInfoRequest + */ + GetSystemInfo(ctx _context.Context) ApiGetSystemInfoRequest + + /* + * GetSystemInfoExecute executes the request + * @return SystemInfo + */ + GetSystemInfoExecute(r ApiGetSystemInfoRequest) (SystemInfo, *_nethttp.Response, error) +} + +// SystemApiService SystemApi service +type SystemApiService service + +type ApiGetResourceLimitsRequest struct { + ctx _context.Context + ApiService SystemApi +} + + +func (r ApiGetResourceLimitsRequest) Execute() (Limits, *_nethttp.Response, error) { + return r.ApiService.GetResourceLimitsExecute(r) +} + +/* + * GetResourceLimits Get resource limits information + * This operation retrieves the list of limitations on used resources, that are applied on the current instance of Registry. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetResourceLimitsRequest + */ +func (a *SystemApiService) GetResourceLimits(ctx _context.Context) ApiGetResourceLimitsRequest { + return ApiGetResourceLimitsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Limits + */ +func (a *SystemApiService) GetResourceLimitsExecute(r ApiGetResourceLimitsRequest) (Limits, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Limits + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SystemApiService.GetResourceLimits") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/system/limits" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetSystemInfoRequest struct { + ctx _context.Context + ApiService SystemApi +} + + +func (r ApiGetSystemInfoRequest) Execute() (SystemInfo, *_nethttp.Response, error) { + return r.ApiService.GetSystemInfoExecute(r) +} + +/* + * GetSystemInfo Get system information + * This operation retrieves information about the running registry system, such as the version +of the software and when it was built. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSystemInfoRequest + */ +func (a *SystemApiService) GetSystemInfo(ctx _context.Context) ApiGetSystemInfoRequest { + return ApiGetSystemInfoRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SystemInfo + */ +func (a *SystemApiService) GetSystemInfoExecute(r ApiGetSystemInfoRequest) (SystemInfo, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue SystemInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SystemApiService.GetSystemInfo") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/system/info" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_users.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_users.go new file mode 100644 index 00000000..dc2ef31d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_users.go @@ -0,0 +1,156 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type UsersApi interface { + + /* + * GetCurrentUserInfo Get current user + * Returns information about the currently authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetCurrentUserInfoRequest + */ + GetCurrentUserInfo(ctx _context.Context) ApiGetCurrentUserInfoRequest + + /* + * GetCurrentUserInfoExecute executes the request + * @return UserInfo + */ + GetCurrentUserInfoExecute(r ApiGetCurrentUserInfoRequest) (UserInfo, *_nethttp.Response, error) +} + +// UsersApiService UsersApi service +type UsersApiService service + +type ApiGetCurrentUserInfoRequest struct { + ctx _context.Context + ApiService UsersApi +} + + +func (r ApiGetCurrentUserInfoRequest) Execute() (UserInfo, *_nethttp.Response, error) { + return r.ApiService.GetCurrentUserInfoExecute(r) +} + +/* + * GetCurrentUserInfo Get current user + * Returns information about the currently authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetCurrentUserInfoRequest + */ +func (a *UsersApiService) GetCurrentUserInfo(ctx _context.Context) ApiGetCurrentUserInfoRequest { + return ApiGetCurrentUserInfoRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return UserInfo + */ +func (a *UsersApiService) GetCurrentUserInfoExecute(r ApiGetCurrentUserInfoRequest) (UserInfo, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UserInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.GetCurrentUserInfo") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/me" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/api_versions.go b/app-services-sdk-go/registryinstance/apiv1internal/client/api_versions.go new file mode 100644 index 00000000..52cd2ec9 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/api_versions.go @@ -0,0 +1,963 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "os" +) + +// Linger please +var ( + _ _context.Context +) + +type VersionsApi interface { + + /* + * CreateArtifactVersion Create artifact version + * Creates a new version of the artifact by uploading new content. The configured rules for +the artifact are applied, and if they all pass, the new content is added as the most recent +version of the artifact. If any of the rules fail, an error is returned. + +The body of the request can be the raw content of the new artifact version, or the raw content +and a set of references pointing to other artifacts, and the type +of that content should match the artifact's type (for example if the artifact type is `AVRO` +then the content of the request should be an Apache Avro document). + +This operation can fail for the following reasons: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with this `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiCreateArtifactVersionRequest + */ + CreateArtifactVersion(ctx _context.Context, groupId string, artifactId string) ApiCreateArtifactVersionRequest + + /* + * CreateArtifactVersionExecute executes the request + * @return VersionMetaData + */ + CreateArtifactVersionExecute(r ApiCreateArtifactVersionRequest) (VersionMetaData, *_nethttp.Response, error) + + /* + * GetArtifactVersion Get artifact version + * Retrieves a single version of the artifact content. Both the `artifactId` and the +unique `version` number must be provided. The `Content-Type` of the response depends +on the artifact type. In most cases, this is `application/json`, but for some types +it may be different (for example, `PROTOBUF`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionRequest + */ + GetArtifactVersion(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionRequest + + /* + * GetArtifactVersionExecute executes the request + * @return *os.File + */ + GetArtifactVersionExecute(r ApiGetArtifactVersionRequest) (*os.File, *_nethttp.Response, error) + + /* + * GetArtifactVersionReferences Get artifact version + * Retrieves a single version of the artifact content. Both the `artifactId` and the +unique `version` number must be provided. The `Content-Type` of the response depends +on the artifact type. In most cases, this is `application/json`, but for some types +it may be different (for example, `PROTOBUF`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionReferencesRequest + */ + GetArtifactVersionReferences(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionReferencesRequest + + /* + * GetArtifactVersionReferencesExecute executes the request + * @return []ArtifactReference + */ + GetArtifactVersionReferencesExecute(r ApiGetArtifactVersionReferencesRequest) ([]ArtifactReference, *_nethttp.Response, error) + + /* + * ListArtifactVersions List artifact versions + * Returns a list of all versions of the artifact. The result set is paged. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiListArtifactVersionsRequest + */ + ListArtifactVersions(ctx _context.Context, groupId string, artifactId string) ApiListArtifactVersionsRequest + + /* + * ListArtifactVersionsExecute executes the request + * @return VersionSearchResults + */ + ListArtifactVersionsExecute(r ApiListArtifactVersionsRequest) (VersionSearchResults, *_nethttp.Response, error) + + /* + * UpdateArtifactVersionState Update artifact version state + * Updates the state of a specific version of an artifact. For example, you can use +this operation to disable a specific version. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiUpdateArtifactVersionStateRequest + */ + UpdateArtifactVersionState(ctx _context.Context, groupId string, artifactId string, version string) ApiUpdateArtifactVersionStateRequest + + /* + * UpdateArtifactVersionStateExecute executes the request + */ + UpdateArtifactVersionStateExecute(r ApiUpdateArtifactVersionStateRequest) (*_nethttp.Response, error) +} + +// VersionsApiService VersionsApi service +type VersionsApiService service + +type ApiCreateArtifactVersionRequest struct { + ctx _context.Context + ApiService VersionsApi + groupId string + artifactId string + body *interface{} + xRegistryVersion *string + xRegistryName *string + xRegistryDescription *string + xRegistryDescriptionEncoded *string + xRegistryNameEncoded *string +} + +func (r ApiCreateArtifactVersionRequest) Body(body interface{}) ApiCreateArtifactVersionRequest { + r.body = &body + return r +} +func (r ApiCreateArtifactVersionRequest) XRegistryVersion(xRegistryVersion string) ApiCreateArtifactVersionRequest { + r.xRegistryVersion = &xRegistryVersion + return r +} +func (r ApiCreateArtifactVersionRequest) XRegistryName(xRegistryName string) ApiCreateArtifactVersionRequest { + r.xRegistryName = &xRegistryName + return r +} +func (r ApiCreateArtifactVersionRequest) XRegistryDescription(xRegistryDescription string) ApiCreateArtifactVersionRequest { + r.xRegistryDescription = &xRegistryDescription + return r +} +func (r ApiCreateArtifactVersionRequest) XRegistryDescriptionEncoded(xRegistryDescriptionEncoded string) ApiCreateArtifactVersionRequest { + r.xRegistryDescriptionEncoded = &xRegistryDescriptionEncoded + return r +} +func (r ApiCreateArtifactVersionRequest) XRegistryNameEncoded(xRegistryNameEncoded string) ApiCreateArtifactVersionRequest { + r.xRegistryNameEncoded = &xRegistryNameEncoded + return r +} + +func (r ApiCreateArtifactVersionRequest) Execute() (VersionMetaData, *_nethttp.Response, error) { + return r.ApiService.CreateArtifactVersionExecute(r) +} + +/* + * CreateArtifactVersion Create artifact version + * Creates a new version of the artifact by uploading new content. The configured rules for +the artifact are applied, and if they all pass, the new content is added as the most recent +version of the artifact. If any of the rules fail, an error is returned. + +The body of the request can be the raw content of the new artifact version, or the raw content +and a set of references pointing to other artifacts, and the type +of that content should match the artifact's type (for example if the artifact type is `AVRO` +then the content of the request should be an Apache Avro document). + +This operation can fail for the following reasons: + +* Provided content (request body) was empty (HTTP error `400`) +* No artifact with this `artifactId` exists (HTTP error `404`) +* The new content violates one of the rules configured for the artifact (HTTP error `409`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiCreateArtifactVersionRequest + */ +func (a *VersionsApiService) CreateArtifactVersion(ctx _context.Context, groupId string, artifactId string) ApiCreateArtifactVersionRequest { + return ApiCreateArtifactVersionRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return VersionMetaData + */ +func (a *VersionsApiService) CreateArtifactVersionExecute(r ApiCreateArtifactVersionRequest) (VersionMetaData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionMetaData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.CreateArtifactVersion") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.xRegistryVersion != nil { + localVarHeaderParams["X-Registry-Version"] = parameterToString(*r.xRegistryVersion, "") + } + if r.xRegistryName != nil { + localVarHeaderParams["X-Registry-Name"] = parameterToString(*r.xRegistryName, "") + } + if r.xRegistryDescription != nil { + localVarHeaderParams["X-Registry-Description"] = parameterToString(*r.xRegistryDescription, "") + } + if r.xRegistryDescriptionEncoded != nil { + localVarHeaderParams["X-Registry-Description-Encoded"] = parameterToString(*r.xRegistryDescriptionEncoded, "") + } + if r.xRegistryNameEncoded != nil { + localVarHeaderParams["X-Registry-Name-Encoded"] = parameterToString(*r.xRegistryNameEncoded, "") + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v RuleViolationError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetArtifactVersionRequest struct { + ctx _context.Context + ApiService VersionsApi + groupId string + artifactId string + version string + dereference *bool +} + +func (r ApiGetArtifactVersionRequest) Dereference(dereference bool) ApiGetArtifactVersionRequest { + r.dereference = &dereference + return r +} + +func (r ApiGetArtifactVersionRequest) Execute() (*os.File, *_nethttp.Response, error) { + return r.ApiService.GetArtifactVersionExecute(r) +} + +/* + * GetArtifactVersion Get artifact version + * Retrieves a single version of the artifact content. Both the `artifactId` and the +unique `version` number must be provided. The `Content-Type` of the response depends +on the artifact type. In most cases, this is `application/json`, but for some types +it may be different (for example, `PROTOBUF`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionRequest + */ +func (a *VersionsApiService) GetArtifactVersion(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionRequest { + return ApiGetArtifactVersionRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + * @return *os.File + */ +func (a *VersionsApiService) GetArtifactVersionExecute(r ApiGetArtifactVersionRequest) (*os.File, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GetArtifactVersion") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.dereference != nil { + localVarQueryParams.Add("dereference", parameterToString(*r.dereference, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetArtifactVersionReferencesRequest struct { + ctx _context.Context + ApiService VersionsApi + groupId string + artifactId string + version string +} + + +func (r ApiGetArtifactVersionReferencesRequest) Execute() ([]ArtifactReference, *_nethttp.Response, error) { + return r.ApiService.GetArtifactVersionReferencesExecute(r) +} + +/* + * GetArtifactVersionReferences Get artifact version + * Retrieves a single version of the artifact content. Both the `artifactId` and the +unique `version` number must be provided. The `Content-Type` of the response depends +on the artifact type. In most cases, this is `application/json`, but for some types +it may be different (for example, `PROTOBUF`). + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiGetArtifactVersionReferencesRequest + */ +func (a *VersionsApiService) GetArtifactVersionReferences(ctx _context.Context, groupId string, artifactId string, version string) ApiGetArtifactVersionReferencesRequest { + return ApiGetArtifactVersionReferencesRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + * @return []ArtifactReference + */ +func (a *VersionsApiService) GetArtifactVersionReferencesExecute(r ApiGetArtifactVersionReferencesRequest) ([]ArtifactReference, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ArtifactReference + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GetArtifactVersionReferences") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}/references" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListArtifactVersionsRequest struct { + ctx _context.Context + ApiService VersionsApi + groupId string + artifactId string + offset *int32 + limit *int32 +} + +func (r ApiListArtifactVersionsRequest) Offset(offset int32) ApiListArtifactVersionsRequest { + r.offset = &offset + return r +} +func (r ApiListArtifactVersionsRequest) Limit(limit int32) ApiListArtifactVersionsRequest { + r.limit = &limit + return r +} + +func (r ApiListArtifactVersionsRequest) Execute() (VersionSearchResults, *_nethttp.Response, error) { + return r.ApiService.ListArtifactVersionsExecute(r) +} + +/* + * ListArtifactVersions List artifact versions + * Returns a list of all versions of the artifact. The result set is paged. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @return ApiListArtifactVersionsRequest + */ +func (a *VersionsApiService) ListArtifactVersions(ctx _context.Context, groupId string, artifactId string) ApiListArtifactVersionsRequest { + return ApiListArtifactVersionsRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + } +} + +/* + * Execute executes the request + * @return VersionSearchResults + */ +func (a *VersionsApiService) ListArtifactVersionsExecute(r ApiListArtifactVersionsRequest) (VersionSearchResults, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VersionSearchResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.ListArtifactVersions") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.offset != nil { + localVarQueryParams.Add("offset", parameterToString(*r.offset, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateArtifactVersionStateRequest struct { + ctx _context.Context + ApiService VersionsApi + groupId string + artifactId string + version string + updateState *UpdateState +} + +func (r ApiUpdateArtifactVersionStateRequest) UpdateState(updateState UpdateState) ApiUpdateArtifactVersionStateRequest { + r.updateState = &updateState + return r +} + +func (r ApiUpdateArtifactVersionStateRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.UpdateArtifactVersionStateExecute(r) +} + +/* + * UpdateArtifactVersionState Update artifact version state + * Updates the state of a specific version of an artifact. For example, you can use +this operation to disable a specific version. + +This operation can fail for the following reasons: + +* No artifact with this `artifactId` exists (HTTP error `404`) +* No version with this `version` exists (HTTP error `404`) +* A server error occurred (HTTP error `500`) + + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param groupId The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + * @param artifactId The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + * @param version The unique identifier of a specific version of the artifact content. + * @return ApiUpdateArtifactVersionStateRequest + */ +func (a *VersionsApiService) UpdateArtifactVersionState(ctx _context.Context, groupId string, artifactId string, version string) ApiUpdateArtifactVersionStateRequest { + return ApiUpdateArtifactVersionStateRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + artifactId: artifactId, + version: version, + } +} + +/* + * Execute executes the request + */ +func (a *VersionsApiService) UpdateArtifactVersionStateExecute(r ApiUpdateArtifactVersionStateRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.UpdateArtifactVersionState") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{groupId}/artifacts/{artifactId}/versions/{version}/state" + localVarPath = strings.Replace(localVarPath, "{"+"groupId"+"}", _neturl.PathEscape(parameterToString(r.groupId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactId"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", _neturl.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.updateState == nil { + return nil, reportError("updateState is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateState + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/client.go b/app-services-sdk-go/registryinstance/apiv1internal/client/client.go new file mode 100644 index 00000000..69a14866 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/client.go @@ -0,0 +1,570 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Service Registry API API v2.2.5.Final +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AdminApi AdminApi + + ArtifactRulesApi ArtifactRulesApi + + ArtifactsApi ArtifactsApi + + GlobalRulesApi GlobalRulesApi + + MetadataApi MetadataApi + + SearchApi SearchApi + + SystemApi SystemApi + + UsersApi UsersApi + + VersionsApi VersionsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AdminApi = (*AdminApiService)(&c.common) + c.ArtifactRulesApi = (*ArtifactRulesApiService)(&c.common) + c.ArtifactsApi = (*ArtifactsApiService)(&c.common) + c.GlobalRulesApi = (*GlobalRulesApiService)(&c.common) + c.MetadataApi = (*MetadataApiService)(&c.common) + c.SearchApi = (*SearchApiService)(&c.common) + c.SystemApi = (*SystemApiService)(&c.common) + c.UsersApi = (*UsersApiService)(&c.common) + c.VersionsApi = (*VersionsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/configuration.go b/app-services-sdk-go/registryinstance/apiv1internal/client/configuration.go new file mode 100644 index 00000000..a85150ed --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/configuration.go @@ -0,0 +1,231 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/AdminApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/AdminApi.md new file mode 100644 index 00000000..c848eb33 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/AdminApi.md @@ -0,0 +1,1032 @@ +# \AdminApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateRoleMapping**](AdminApi.md#CreateRoleMapping) | **Post** /admin/roleMappings | Create a new role mapping +[**DeleteRoleMapping**](AdminApi.md#DeleteRoleMapping) | **Delete** /admin/roleMappings/{principalId} | Delete a role mapping +[**ExportData**](AdminApi.md#ExportData) | **Get** /admin/export | Export registry data +[**GetConfigProperty**](AdminApi.md#GetConfigProperty) | **Get** /admin/config/properties/{propertyName} | Get configuration property value +[**GetLogConfiguration**](AdminApi.md#GetLogConfiguration) | **Get** /admin/loggers/{logger} | Get a single logger configuration +[**GetRoleMapping**](AdminApi.md#GetRoleMapping) | **Get** /admin/roleMappings/{principalId} | Return a single role mapping +[**ImportData**](AdminApi.md#ImportData) | **Post** /admin/import | Import registry data +[**ListConfigProperties**](AdminApi.md#ListConfigProperties) | **Get** /admin/config/properties | List all configuration properties +[**ListLogConfigurations**](AdminApi.md#ListLogConfigurations) | **Get** /admin/loggers | List logging configurations +[**ListRoleMappings**](AdminApi.md#ListRoleMappings) | **Get** /admin/roleMappings | List all role mappings +[**RemoveLogConfiguration**](AdminApi.md#RemoveLogConfiguration) | **Delete** /admin/loggers/{logger} | Removes logger configuration +[**ResetConfigProperty**](AdminApi.md#ResetConfigProperty) | **Delete** /admin/config/properties/{propertyName} | Reset a configuration property +[**SetLogConfiguration**](AdminApi.md#SetLogConfiguration) | **Put** /admin/loggers/{logger} | Set a logger's configuration +[**UpdateConfigProperty**](AdminApi.md#UpdateConfigProperty) | **Put** /admin/config/properties/{propertyName} | Update a configuration property +[**UpdateRoleMapping**](AdminApi.md#UpdateRoleMapping) | **Put** /admin/roleMappings/{principalId} | Update a role mapping + + + +## CreateRoleMapping + +> CreateRoleMapping(ctx).RoleMapping(roleMapping).Execute() + +Create a new role mapping + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + roleMapping := *openapiclient.NewRoleMapping("PrincipalId_example", openapiclient.RoleType("READ_ONLY")) // RoleMapping | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.CreateRoleMapping(context.Background()).RoleMapping(roleMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.CreateRoleMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRoleMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roleMapping** | [**RoleMapping**](RoleMapping.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteRoleMapping + +> DeleteRoleMapping(ctx, principalId).Execute() + +Delete a role mapping + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + principalId := "principalId_example" // string | Unique id of a principal (typically either a user or service account). + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.DeleteRoleMapping(context.Background(), principalId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.DeleteRoleMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**principalId** | **string** | Unique id of a principal (typically either a user or service account). | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteRoleMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExportData + +> *os.File ExportData(ctx).ForBrowser(forBrowser).Execute() + +Export registry data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + forBrowser := true // bool | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ExportData(context.Background()).ForBrowser(forBrowser).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ExportData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportData`: *os.File + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ExportData`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExportDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **forBrowser** | **bool** | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/zip, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetConfigProperty + +> ConfigurationProperty GetConfigProperty(ctx, propertyName).Execute() + +Get configuration property value + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + propertyName := "propertyName_example" // string | The name of a configuration property. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.GetConfigProperty(context.Background(), propertyName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetConfigProperty``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConfigProperty`: ConfigurationProperty + fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetConfigProperty`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**propertyName** | **string** | The name of a configuration property. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConfigPropertyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ConfigurationProperty**](ConfigurationProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetLogConfiguration + +> NamedLogConfiguration GetLogConfiguration(ctx, logger).Execute() + +Get a single logger configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + logger := "logger_example" // string | The name of a single logger. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.GetLogConfiguration(context.Background(), logger).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLogConfiguration`: NamedLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetLogConfiguration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**logger** | **string** | The name of a single logger. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLogConfigurationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**NamedLogConfiguration**](NamedLogConfiguration.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetRoleMapping + +> RoleMapping GetRoleMapping(ctx, principalId).Execute() + +Return a single role mapping + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + principalId := "principalId_example" // string | Unique id of a principal (typically either a user or service account). + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.GetRoleMapping(context.Background(), principalId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.GetRoleMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMapping`: RoleMapping + fmt.Fprintf(os.Stdout, "Response from `AdminApi.GetRoleMapping`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**principalId** | **string** | Unique id of a principal (typically either a user or service account). | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRoleMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RoleMapping**](RoleMapping.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ImportData + +> ImportData(ctx).Body(body).XRegistryPreserveGlobalId(xRegistryPreserveGlobalId).XRegistryPreserveContentId(xRegistryPreserveContentId).Execute() + +Import registry data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := os.NewFile(1234, "some_file") // *os.File | The ZIP file representing the previously exported registry data. + xRegistryPreserveGlobalId := true // bool | If this header is set to false, global ids of imported data will be ignored and replaced by next id in global id sequence. This allows to import any data even thought the global ids would cause a conflict. (optional) + xRegistryPreserveContentId := true // bool | If this header is set to false, content ids of imported data will be ignored and replaced by next id in content id sequence. The mapping between content and artifacts will be preserved. This allows to import any data even thought the content ids would cause a conflict. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ImportData(context.Background()).Body(body).XRegistryPreserveGlobalId(xRegistryPreserveGlobalId).XRegistryPreserveContentId(xRegistryPreserveContentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ImportData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiImportDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | ***os.File** | The ZIP file representing the previously exported registry data. | + **xRegistryPreserveGlobalId** | **bool** | If this header is set to false, global ids of imported data will be ignored and replaced by next id in global id sequence. This allows to import any data even thought the global ids would cause a conflict. | + **xRegistryPreserveContentId** | **bool** | If this header is set to false, content ids of imported data will be ignored and replaced by next id in content id sequence. The mapping between content and artifacts will be preserved. This allows to import any data even thought the content ids would cause a conflict. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/zip +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListConfigProperties + +> []ConfigurationProperty ListConfigProperties(ctx).Execute() + +List all configuration properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ListConfigProperties(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListConfigProperties``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConfigProperties`: []ConfigurationProperty + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ListConfigProperties`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListConfigPropertiesRequest struct via the builder pattern + + +### Return type + +[**[]ConfigurationProperty**](ConfigurationProperty.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListLogConfigurations + +> []NamedLogConfiguration ListLogConfigurations(ctx).Execute() + +List logging configurations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ListLogConfigurations(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListLogConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListLogConfigurations`: []NamedLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ListLogConfigurations`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListLogConfigurationsRequest struct via the builder pattern + + +### Return type + +[**[]NamedLogConfiguration**](NamedLogConfiguration.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListRoleMappings + +> []RoleMapping ListRoleMappings(ctx).Execute() + +List all role mappings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ListRoleMappings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ListRoleMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoleMappings`: []RoleMapping + fmt.Fprintf(os.Stdout, "Response from `AdminApi.ListRoleMappings`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListRoleMappingsRequest struct via the builder pattern + + +### Return type + +[**[]RoleMapping**](RoleMapping.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RemoveLogConfiguration + +> NamedLogConfiguration RemoveLogConfiguration(ctx, logger).Execute() + +Removes logger configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + logger := "logger_example" // string | The name of a single logger. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.RemoveLogConfiguration(context.Background(), logger).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.RemoveLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RemoveLogConfiguration`: NamedLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `AdminApi.RemoveLogConfiguration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**logger** | **string** | The name of a single logger. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveLogConfigurationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**NamedLogConfiguration**](NamedLogConfiguration.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetConfigProperty + +> ResetConfigProperty(ctx, propertyName).Execute() + +Reset a configuration property + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + propertyName := "propertyName_example" // string | The name of a configuration property. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.ResetConfigProperty(context.Background(), propertyName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ResetConfigProperty``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**propertyName** | **string** | The name of a configuration property. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetConfigPropertyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SetLogConfiguration + +> NamedLogConfiguration SetLogConfiguration(ctx, logger).LogConfiguration(logConfiguration).Execute() + +Set a logger's configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + logger := "logger_example" // string | The name of a single logger. + logConfiguration := *openapiclient.NewLogConfiguration(openapiclient.LogLevel("DEBUG")) // LogConfiguration | The new logger configuration. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.SetLogConfiguration(context.Background(), logger).LogConfiguration(logConfiguration).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.SetLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetLogConfiguration`: NamedLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `AdminApi.SetLogConfiguration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**logger** | **string** | The name of a single logger. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetLogConfigurationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **logConfiguration** | [**LogConfiguration**](LogConfiguration.md) | The new logger configuration. | + +### Return type + +[**NamedLogConfiguration**](NamedLogConfiguration.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateConfigProperty + +> UpdateConfigProperty(ctx, propertyName).UpdateConfigurationProperty(updateConfigurationProperty).Execute() + +Update a configuration property + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + propertyName := "propertyName_example" // string | The name of a configuration property. + updateConfigurationProperty := *openapiclient.NewUpdateConfigurationProperty("Value_example") // UpdateConfigurationProperty | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.UpdateConfigProperty(context.Background(), propertyName).UpdateConfigurationProperty(updateConfigurationProperty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.UpdateConfigProperty``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**propertyName** | **string** | The name of a configuration property. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateConfigPropertyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateConfigurationProperty** | [**UpdateConfigurationProperty**](UpdateConfigurationProperty.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateRoleMapping + +> UpdateRoleMapping(ctx, principalId).UpdateRole(updateRole).Execute() + +Update a role mapping + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + principalId := "principalId_example" // string | Unique id of a principal (typically either a user or service account). + updateRole := *openapiclient.NewUpdateRole(openapiclient.RoleType("READ_ONLY")) // UpdateRole | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.AdminApi.UpdateRoleMapping(context.Background(), principalId).UpdateRole(updateRole).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.UpdateRoleMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**principalId** | **string** | Unique id of a principal (typically either a user or service account). | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateRoleMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateRole** | [**UpdateRole**](UpdateRole.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md new file mode 100644 index 00000000..ccdcee6c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactMetaData.md @@ -0,0 +1,396 @@ +# ArtifactMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CreatedBy** | **string** | | +**CreatedOn** | **string** | | +**ModifiedBy** | **string** | | +**ModifiedOn** | **string** | | +**Id** | **string** | The ID of a single artifact. | +**Version** | **string** | | +**Type** | [**ArtifactType**](ArtifactType.md) | | +**GlobalId** | **int64** | | +**State** | [**ArtifactState**](ArtifactState.md) | | +**Labels** | Pointer to **[]string** | | [optional] +**Properties** | Pointer to **map[string]string** | User-defined name-value pairs. Name and value must be strings. | [optional] +**GroupId** | Pointer to **string** | An ID of a single artifact group. | [optional] +**ContentId** | **int64** | | +**References** | Pointer to [**[]ArtifactReference**](ArtifactReference.md) | | [optional] + +## Methods + +### NewArtifactMetaData + +`func NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ ArtifactType, globalId int64, state ArtifactState, contentId int64, ) *ArtifactMetaData` + +NewArtifactMetaData instantiates a new ArtifactMetaData 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 + +### NewArtifactMetaDataWithDefaults + +`func NewArtifactMetaDataWithDefaults() *ArtifactMetaData` + +NewArtifactMetaDataWithDefaults instantiates a new ArtifactMetaData 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 *ArtifactMetaData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ArtifactMetaData) 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 *ArtifactMetaData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ArtifactMetaData) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ArtifactMetaData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ArtifactMetaData) 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 *ArtifactMetaData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ArtifactMetaData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ArtifactMetaData) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ArtifactMetaData) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ArtifactMetaData) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetCreatedOn + +`func (o *ArtifactMetaData) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *ArtifactMetaData) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *ArtifactMetaData) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetModifiedBy + +`func (o *ArtifactMetaData) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *ArtifactMetaData) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *ArtifactMetaData) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + + +### GetModifiedOn + +`func (o *ArtifactMetaData) GetModifiedOn() string` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *ArtifactMetaData) GetModifiedOnOk() (*string, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *ArtifactMetaData) SetModifiedOn(v string)` + +SetModifiedOn sets ModifiedOn field to given value. + + +### GetId + +`func (o *ArtifactMetaData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ArtifactMetaData) 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 *ArtifactMetaData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetVersion + +`func (o *ArtifactMetaData) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ArtifactMetaData) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ArtifactMetaData) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetType + +`func (o *ArtifactMetaData) GetType() ArtifactType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ArtifactMetaData) GetTypeOk() (*ArtifactType, 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 *ArtifactMetaData) SetType(v ArtifactType)` + +SetType sets Type field to given value. + + +### GetGlobalId + +`func (o *ArtifactMetaData) GetGlobalId() int64` + +GetGlobalId returns the GlobalId field if non-nil, zero value otherwise. + +### GetGlobalIdOk + +`func (o *ArtifactMetaData) GetGlobalIdOk() (*int64, bool)` + +GetGlobalIdOk returns a tuple with the GlobalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalId + +`func (o *ArtifactMetaData) SetGlobalId(v int64)` + +SetGlobalId sets GlobalId field to given value. + + +### GetState + +`func (o *ArtifactMetaData) GetState() ArtifactState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ArtifactMetaData) GetStateOk() (*ArtifactState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ArtifactMetaData) SetState(v ArtifactState)` + +SetState sets State field to given value. + + +### GetLabels + +`func (o *ArtifactMetaData) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ArtifactMetaData) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ArtifactMetaData) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ArtifactMetaData) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetProperties + +`func (o *ArtifactMetaData) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ArtifactMetaData) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ArtifactMetaData) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ArtifactMetaData) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetGroupId + +`func (o *ArtifactMetaData) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ArtifactMetaData) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ArtifactMetaData) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *ArtifactMetaData) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetContentId + +`func (o *ArtifactMetaData) GetContentId() int64` + +GetContentId returns the ContentId field if non-nil, zero value otherwise. + +### GetContentIdOk + +`func (o *ArtifactMetaData) GetContentIdOk() (*int64, bool)` + +GetContentIdOk returns a tuple with the ContentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentId + +`func (o *ArtifactMetaData) SetContentId(v int64)` + +SetContentId sets ContentId field to given value. + + +### GetReferences + +`func (o *ArtifactMetaData) GetReferences() []ArtifactReference` + +GetReferences returns the References field if non-nil, zero value otherwise. + +### GetReferencesOk + +`func (o *ArtifactMetaData) GetReferencesOk() (*[]ArtifactReference, bool)` + +GetReferencesOk returns a tuple with the References field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferences + +`func (o *ArtifactMetaData) SetReferences(v []ArtifactReference)` + +SetReferences sets References field to given value. + +### HasReferences + +`func (o *ArtifactMetaData) HasReferences() bool` + +HasReferences 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactOwner.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactOwner.md new file mode 100644 index 00000000..752ac8ac --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactOwner.md @@ -0,0 +1,56 @@ +# ArtifactOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Owner** | Pointer to **string** | | [optional] + +## Methods + +### NewArtifactOwner + +`func NewArtifactOwner() *ArtifactOwner` + +NewArtifactOwner instantiates a new ArtifactOwner 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 + +### NewArtifactOwnerWithDefaults + +`func NewArtifactOwnerWithDefaults() *ArtifactOwner` + +NewArtifactOwnerWithDefaults instantiates a new ArtifactOwner 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 + +### GetOwner + +`func (o *ArtifactOwner) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ArtifactOwner) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ArtifactOwner) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ArtifactOwner) HasOwner() bool` + +HasOwner 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactReference.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactReference.md new file mode 100644 index 00000000..b94f8e0e --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactReference.md @@ -0,0 +1,119 @@ +# ArtifactReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | | +**ArtifactId** | **string** | | +**Version** | Pointer to **string** | | [optional] +**Name** | **string** | | + +## Methods + +### NewArtifactReference + +`func NewArtifactReference(groupId string, artifactId string, name string, ) *ArtifactReference` + +NewArtifactReference instantiates a new ArtifactReference 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 + +### NewArtifactReferenceWithDefaults + +`func NewArtifactReferenceWithDefaults() *ArtifactReference` + +NewArtifactReferenceWithDefaults instantiates a new ArtifactReference 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 + +### GetGroupId + +`func (o *ArtifactReference) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *ArtifactReference) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *ArtifactReference) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + + +### GetArtifactId + +`func (o *ArtifactReference) GetArtifactId() string` + +GetArtifactId returns the ArtifactId field if non-nil, zero value otherwise. + +### GetArtifactIdOk + +`func (o *ArtifactReference) GetArtifactIdOk() (*string, bool)` + +GetArtifactIdOk returns a tuple with the ArtifactId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactId + +`func (o *ArtifactReference) SetArtifactId(v string)` + +SetArtifactId sets ArtifactId field to given value. + + +### GetVersion + +`func (o *ArtifactReference) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ArtifactReference) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ArtifactReference) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ArtifactReference) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetName + +`func (o *ArtifactReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ArtifactReference) 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 *ArtifactReference) 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md new file mode 100644 index 00000000..d23245ef --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactRulesApi.md @@ -0,0 +1,533 @@ +# \ArtifactRulesApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateArtifactRule**](ArtifactRulesApi.md#CreateArtifactRule) | **Post** /groups/{groupId}/artifacts/{artifactId}/rules | Create artifact rule +[**DeleteArtifactRule**](ArtifactRulesApi.md#DeleteArtifactRule) | **Delete** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Delete artifact rule +[**DeleteArtifactRules**](ArtifactRulesApi.md#DeleteArtifactRules) | **Delete** /groups/{groupId}/artifacts/{artifactId}/rules | Delete artifact rules +[**GetArtifactRuleConfig**](ArtifactRulesApi.md#GetArtifactRuleConfig) | **Get** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Get artifact rule configuration +[**ListArtifactRules**](ArtifactRulesApi.md#ListArtifactRules) | **Get** /groups/{groupId}/artifacts/{artifactId}/rules | List artifact rules +[**TestUpdateArtifact**](ArtifactRulesApi.md#TestUpdateArtifact) | **Put** /groups/{groupId}/artifacts/{artifactId}/test | Test update artifact +[**UpdateArtifactRuleConfig**](ArtifactRulesApi.md#UpdateArtifactRuleConfig) | **Put** /groups/{groupId}/artifacts/{artifactId}/rules/{rule} | Update artifact rule configuration + + + +## CreateArtifactRule + +> CreateArtifactRule(ctx, groupId, artifactId).Rule(rule).Execute() + +Create artifact rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + rule := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.CreateArtifactRule(context.Background(), groupId, artifactId).Rule(rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.CreateArtifactRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateArtifactRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **rule** | [**Rule**](Rule.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteArtifactRule + +> DeleteArtifactRule(ctx, groupId, artifactId, rule).Execute() + +Delete artifact rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + rule := "rule_example" // string | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.DeleteArtifactRule(context.Background(), groupId, artifactId, rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.DeleteArtifactRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**rule** | **string** | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteArtifactRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteArtifactRules + +> DeleteArtifactRules(ctx, groupId, artifactId).Execute() + +Delete artifact rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.DeleteArtifactRules(context.Background(), groupId, artifactId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.DeleteArtifactRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteArtifactRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactRuleConfig + +> Rule GetArtifactRuleConfig(ctx, groupId, artifactId, rule).Execute() + +Get artifact rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + rule := "rule_example" // string | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.GetArtifactRuleConfig(context.Background(), groupId, artifactId, rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.GetArtifactRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `ArtifactRulesApi.GetArtifactRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**rule** | **string** | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListArtifactRules + +> []RuleType ListArtifactRules(ctx, groupId, artifactId).Execute() + +List artifact rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.ListArtifactRules(context.Background(), groupId, artifactId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.ListArtifactRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListArtifactRules`: []RuleType + fmt.Fprintf(os.Stdout, "Response from `ArtifactRulesApi.ListArtifactRules`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListArtifactRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**[]RuleType**](RuleType.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TestUpdateArtifact + +> TestUpdateArtifact(ctx, groupId, artifactId).Body(body).Execute() + +Test update artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + body := interface{}(987) // interface{} | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.TestUpdateArtifact(context.Background(), groupId, artifactId).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.TestUpdateArtifact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTestUpdateArtifactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **interface{}** | The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactRuleConfig + +> Rule UpdateArtifactRuleConfig(ctx, groupId, artifactId, rule).Rule2(rule2).Execute() + +Update artifact rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + rule := "rule_example" // string | The unique name/type of a rule. + rule2 := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactRulesApi.UpdateArtifactRuleConfig(context.Background(), groupId, artifactId, rule).Rule2(rule2).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactRulesApi.UpdateArtifactRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateArtifactRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `ArtifactRulesApi.UpdateArtifactRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**rule** | **string** | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **rule2** | [**Rule**](Rule.md) | | + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactSearchResults.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactSearchResults.md new file mode 100644 index 00000000..bc3a4668 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactSearchResults.md @@ -0,0 +1,72 @@ +# ArtifactSearchResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifacts** | [**[]SearchedArtifact**](SearchedArtifact.md) | The artifacts returned in the result set. | +**Count** | **int32** | The total number of artifacts that matched the query that produced the result set (may be more than the number of artifacts in the result set). | + +## Methods + +### NewArtifactSearchResults + +`func NewArtifactSearchResults(artifacts []SearchedArtifact, count int32, ) *ArtifactSearchResults` + +NewArtifactSearchResults instantiates a new ArtifactSearchResults 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 + +### NewArtifactSearchResultsWithDefaults + +`func NewArtifactSearchResultsWithDefaults() *ArtifactSearchResults` + +NewArtifactSearchResultsWithDefaults instantiates a new ArtifactSearchResults 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 + +### GetArtifacts + +`func (o *ArtifactSearchResults) GetArtifacts() []SearchedArtifact` + +GetArtifacts returns the Artifacts field if non-nil, zero value otherwise. + +### GetArtifactsOk + +`func (o *ArtifactSearchResults) GetArtifactsOk() (*[]SearchedArtifact, bool)` + +GetArtifactsOk returns a tuple with the Artifacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifacts + +`func (o *ArtifactSearchResults) SetArtifacts(v []SearchedArtifact)` + +SetArtifacts sets Artifacts field to given value. + + +### GetCount + +`func (o *ArtifactSearchResults) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ArtifactSearchResults) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ArtifactSearchResults) SetCount(v int32)` + +SetCount sets Count 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactState.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactState.md new file mode 100644 index 00000000..4f195a6b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactState.md @@ -0,0 +1,15 @@ +# ArtifactState + +## Enum + + +* `ENABLED` (value: `"ENABLED"`) + +* `DISABLED` (value: `"DISABLED"`) + +* `DEPRECATED` (value: `"DEPRECATED"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactType.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactType.md new file mode 100644 index 00000000..87984c83 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactType.md @@ -0,0 +1,29 @@ +# ArtifactType + +## Enum + + +* `AVRO` (value: `"AVRO"`) + +* `PROTOBUF` (value: `"PROTOBUF"`) + +* `JSON` (value: `"JSON"`) + +* `OPENAPI` (value: `"OPENAPI"`) + +* `ASYNCAPI` (value: `"ASYNCAPI"`) + +* `GRAPHQL` (value: `"GRAPHQL"`) + +* `KCONNECT` (value: `"KCONNECT"`) + +* `WSDL` (value: `"WSDL"`) + +* `XSD` (value: `"XSD"`) + +* `XML` (value: `"XML"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactsApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactsApi.md new file mode 100644 index 00000000..d5be8a69 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ArtifactsApi.md @@ -0,0 +1,987 @@ +# \ArtifactsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateArtifact**](ArtifactsApi.md#CreateArtifact) | **Post** /groups/{groupId}/artifacts | Create artifact +[**DeleteArtifact**](ArtifactsApi.md#DeleteArtifact) | **Delete** /groups/{groupId}/artifacts/{artifactId} | Delete artifact +[**DeleteArtifactsInGroup**](ArtifactsApi.md#DeleteArtifactsInGroup) | **Delete** /groups/{groupId}/artifacts | Delete artifacts in group +[**GetContentByGlobalId**](ArtifactsApi.md#GetContentByGlobalId) | **Get** /ids/globalIds/{globalId} | Get artifact by global ID +[**GetContentByHash**](ArtifactsApi.md#GetContentByHash) | **Get** /ids/contentHashes/{contentHash}/ | Get artifact content by SHA-256 hash +[**GetContentById**](ArtifactsApi.md#GetContentById) | **Get** /ids/contentIds/{contentId}/ | Get artifact content by ID +[**GetLatestArtifact**](ArtifactsApi.md#GetLatestArtifact) | **Get** /groups/{groupId}/artifacts/{artifactId} | Get latest artifact +[**ListArtifactsInGroup**](ArtifactsApi.md#ListArtifactsInGroup) | **Get** /groups/{groupId}/artifacts | List artifacts in group +[**ReferencesByContentHash**](ArtifactsApi.md#ReferencesByContentHash) | **Get** /ids/contentHashes/{contentHash}/references | List artifact references by hash +[**ReferencesByContentId**](ArtifactsApi.md#ReferencesByContentId) | **Get** /ids/contentIds/{contentId}/references | List artifact references by content ID +[**ReferencesByGlobalId**](ArtifactsApi.md#ReferencesByGlobalId) | **Get** /ids/globalIds/{globalId}/references | Returns a list with all the references for the artifact with the given global id. +[**UpdateArtifact**](ArtifactsApi.md#UpdateArtifact) | **Put** /groups/{groupId}/artifacts/{artifactId} | Update artifact +[**UpdateArtifactState**](ArtifactsApi.md#UpdateArtifactState) | **Put** /groups/{groupId}/artifacts/{artifactId}/state | Update artifact state + + + +## CreateArtifact + +> ArtifactMetaData CreateArtifact(ctx, groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).Execute() + +Create artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | Unique ID of an artifact group. + body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The content of the artifact being created. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + xRegistryArtifactType := openapiclient.ArtifactType("AVRO") // ArtifactType | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) (optional) + xRegistryArtifactId := "xRegistryArtifactId_example" // string | A client-provided, globally unique identifier for the new artifact. (optional) + xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this initial version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically (starting with version `1`). (optional) + ifExists := openapiclient.IfExists("FAIL") // IfExists | Set this option to instruct the server on what to do if the artifact already exists. (optional) + canonical := true // bool | Used only when the `ifExists` query parameter is set to `RETURN_OR_UPDATE`, this parameter can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. The canonicalization algorithm is unique to each artifact type, but typically involves removing extra whitespace and formatting the content in a consistent manner. (optional) + xRegistryDescription := "xRegistryDescription_example" // string | Specifies the description of artifact being added. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. (optional) + xRegistryDescriptionEncoded := "xRegistryDescriptionEncoded_example" // string | Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. (optional) + xRegistryName := "xRegistryName_example" // string | Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. (optional) + xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) + xRegistryContentHash := "xRegistryContentHash_example" // string | Specifies the (optional) hash of the artifact to be verified. (optional) + xRegistryHashAlgorithm := "xRegistryHashAlgorithm_example" // string | The algorithm to use when checking the content validity. (available: SHA256, MD5; default: SHA256) (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.CreateArtifact(context.Background(), groupId).Body(body).XRegistryArtifactType(xRegistryArtifactType).XRegistryArtifactId(xRegistryArtifactId).XRegistryVersion(xRegistryVersion).IfExists(ifExists).Canonical(canonical).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryContentHash(xRegistryContentHash).XRegistryHashAlgorithm(xRegistryHashAlgorithm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.CreateArtifact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateArtifact`: ArtifactMetaData + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.CreateArtifact`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | Unique ID of an artifact group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateArtifactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **interface{}** | The content of the artifact being created. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **xRegistryArtifactType** | [**ArtifactType**](ArtifactType.md) | Specifies the type of the artifact being added. Possible values include: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **xRegistryArtifactId** | **string** | A client-provided, globally unique identifier for the new artifact. | + **xRegistryVersion** | **string** | Specifies the version number of this initial version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically (starting with version `1`). | + **ifExists** | [**IfExists**](IfExists.md) | Set this option to instruct the server on what to do if the artifact already exists. | + **canonical** | **bool** | Used only when the `ifExists` query parameter is set to `RETURN_OR_UPDATE`, this parameter can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. The canonicalization algorithm is unique to each artifact type, but typically involves removing extra whitespace and formatting the content in a consistent manner. | + **xRegistryDescription** | **string** | Specifies the description of artifact being added. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. | + **xRegistryDescriptionEncoded** | **string** | Specifies the description of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. | + **xRegistryName** | **string** | Specifies the name of artifact being added. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. | + **xRegistryNameEncoded** | **string** | Specifies the name of artifact being added. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | + **xRegistryContentHash** | **string** | Specifies the (optional) hash of the artifact to be verified. | + **xRegistryHashAlgorithm** | **string** | The algorithm to use when checking the content validity. (available: SHA256, MD5; default: SHA256) | + +### Return type + +[**ArtifactMetaData**](ArtifactMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteArtifact + +> DeleteArtifact(ctx, groupId, artifactId).Execute() + +Delete artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.DeleteArtifact(context.Background(), groupId, artifactId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.DeleteArtifact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteArtifactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteArtifactsInGroup + +> DeleteArtifactsInGroup(ctx, groupId).Execute() + +Delete artifacts in group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | Unique ID of an artifact group. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.DeleteArtifactsInGroup(context.Background(), groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.DeleteArtifactsInGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | Unique ID of an artifact group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteArtifactsInGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetContentByGlobalId + +> *os.File GetContentByGlobalId(ctx, globalId).Dereference(dereference).Execute() + +Get artifact by global ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + globalId := int64(789) // int64 | Global identifier for an artifact version. + dereference := true // bool | Allows the user to specify if the content should be dereferenced when being returned (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.GetContentByGlobalId(context.Background(), globalId).Dereference(dereference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.GetContentByGlobalId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetContentByGlobalId`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.GetContentByGlobalId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**globalId** | **int64** | Global identifier for an artifact version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetContentByGlobalIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dereference** | **bool** | Allows the user to specify if the content should be dereferenced when being returned | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */*, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetContentByHash + +> *os.File GetContentByHash(ctx, contentHash).Execute() + +Get artifact content by SHA-256 hash + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + contentHash := "contentHash_example" // string | SHA-256 content hash for a single artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.GetContentByHash(context.Background(), contentHash).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.GetContentByHash``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetContentByHash`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.GetContentByHash`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**contentHash** | **string** | SHA-256 content hash for a single artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetContentByHashRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */*, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetContentById + +> *os.File GetContentById(ctx, contentId).Execute() + +Get artifact content by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + contentId := int64(789) // int64 | Global identifier for a single artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.GetContentById(context.Background(), contentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.GetContentById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetContentById`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.GetContentById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**contentId** | **int64** | Global identifier for a single artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetContentByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */*, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetLatestArtifact + +> *os.File GetLatestArtifact(ctx, groupId, artifactId).Dereference(dereference).Execute() + +Get latest artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + dereference := true // bool | Allows the user to specify if the content should be dereferenced when being returned (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.GetLatestArtifact(context.Background(), groupId, artifactId).Dereference(dereference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.GetLatestArtifact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLatestArtifact`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.GetLatestArtifact`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLatestArtifactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **dereference** | **bool** | Allows the user to specify if the content should be dereferenced when being returned | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */*, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListArtifactsInGroup + +> ArtifactSearchResults ListArtifactsInGroup(ctx, groupId).Limit(limit).Offset(offset).Order(order).Orderby(orderby).Execute() + +List artifacts in group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | Unique ID of an artifact group. + limit := int32(56) // int32 | The number of artifacts to return. Defaults to 20. (optional) + offset := int32(56) // int32 | The number of artifacts to skip before starting the result set. Defaults to 0. (optional) + order := openapiclient.SortOrder("asc") // SortOrder | Sort order, ascending (`asc`) or descending (`desc`). (optional) + orderby := openapiclient.SortBy("name") // SortBy | The field to sort by. Can be one of: * `name` * `createdOn` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.ListArtifactsInGroup(context.Background(), groupId).Limit(limit).Offset(offset).Order(order).Orderby(orderby).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.ListArtifactsInGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListArtifactsInGroup`: ArtifactSearchResults + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.ListArtifactsInGroup`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | Unique ID of an artifact group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListArtifactsInGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **limit** | **int32** | The number of artifacts to return. Defaults to 20. | + **offset** | **int32** | The number of artifacts to skip before starting the result set. Defaults to 0. | + **order** | [**SortOrder**](SortOrder.md) | Sort order, ascending (`asc`) or descending (`desc`). | + **orderby** | [**SortBy**](SortBy.md) | The field to sort by. Can be one of: * `name` * `createdOn` | + +### Return type + +[**ArtifactSearchResults**](ArtifactSearchResults.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReferencesByContentHash + +> []ArtifactReference ReferencesByContentHash(ctx, contentHash).Execute() + +List artifact references by hash + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + contentHash := "contentHash_example" // string | SHA-256 content hash for a single artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.ReferencesByContentHash(context.Background(), contentHash).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.ReferencesByContentHash``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReferencesByContentHash`: []ArtifactReference + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.ReferencesByContentHash`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**contentHash** | **string** | SHA-256 content hash for a single artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReferencesByContentHashRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ArtifactReference**](ArtifactReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReferencesByContentId + +> []ArtifactReference ReferencesByContentId(ctx, contentId).Execute() + +List artifact references by content ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + contentId := int64(789) // int64 | Global identifier for a single artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.ReferencesByContentId(context.Background(), contentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.ReferencesByContentId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReferencesByContentId`: []ArtifactReference + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.ReferencesByContentId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**contentId** | **int64** | Global identifier for a single artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReferencesByContentIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ArtifactReference**](ArtifactReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReferencesByGlobalId + +> []ArtifactReference ReferencesByGlobalId(ctx, globalId).Execute() + +Returns a list with all the references for the artifact with the given global id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + globalId := int64(789) // int64 | Global identifier for an artifact version. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.ReferencesByGlobalId(context.Background(), globalId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.ReferencesByGlobalId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReferencesByGlobalId`: []ArtifactReference + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.ReferencesByGlobalId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**globalId** | **int64** | Global identifier for an artifact version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReferencesByGlobalIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]ArtifactReference**](ArtifactReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifact + +> ArtifactMetaData UpdateArtifact(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).Execute() + +Update artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically. (optional) + xRegistryName := "xRegistryName_example" // string | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. (optional) + xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) + xRegistryDescription := "xRegistryDescription_example" // string | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. (optional) + xRegistryDescriptionEncoded := "xRegistryDescriptionEncoded_example" // string | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.UpdateArtifact(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryNameEncoded(xRegistryNameEncoded).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.UpdateArtifact``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateArtifact`: ArtifactMetaData + fmt.Fprintf(os.Stdout, "Response from `ArtifactsApi.UpdateArtifact`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **interface{}** | The new content of the artifact being updated. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **xRegistryVersion** | **string** | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. If not provided, the server will assign a version number automatically. | + **xRegistryName** | **string** | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. | + **xRegistryNameEncoded** | **string** | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | + **xRegistryDescription** | **string** | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. | + **xRegistryDescriptionEncoded** | **string** | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. | + +### Return type + +[**ArtifactMetaData**](ArtifactMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactState + +> UpdateArtifactState(ctx, groupId, artifactId).UpdateState(updateState).Execute() + +Update artifact state + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + updateState := *openapiclient.NewUpdateState(openapiclient.ArtifactState("ENABLED")) // UpdateState | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ArtifactsApi.UpdateArtifactState(context.Background(), groupId, artifactId).UpdateState(updateState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ArtifactsApi.UpdateArtifactState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactStateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateState** | [**UpdateState**](UpdateState.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ConfigurationProperty.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ConfigurationProperty.md new file mode 100644 index 00000000..eda00fa4 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ConfigurationProperty.md @@ -0,0 +1,135 @@ +# ConfigurationProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Value** | **string** | | +**Type** | **string** | | +**Label** | **string** | | +**Description** | **string** | | + +## Methods + +### NewConfigurationProperty + +`func NewConfigurationProperty(name string, value string, type_ string, label string, description string, ) *ConfigurationProperty` + +NewConfigurationProperty instantiates a new ConfigurationProperty 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 + +### NewConfigurationPropertyWithDefaults + +`func NewConfigurationPropertyWithDefaults() *ConfigurationProperty` + +NewConfigurationPropertyWithDefaults instantiates a new ConfigurationProperty 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 *ConfigurationProperty) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConfigurationProperty) 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 *ConfigurationProperty) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *ConfigurationProperty) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ConfigurationProperty) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ConfigurationProperty) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetType + +`func (o *ConfigurationProperty) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ConfigurationProperty) GetTypeOk() (*string, 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 *ConfigurationProperty) SetType(v string)` + +SetType sets Type field to given value. + + +### GetLabel + +`func (o *ConfigurationProperty) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ConfigurationProperty) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ConfigurationProperty) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetDescription + +`func (o *ConfigurationProperty) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ConfigurationProperty) 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 *ConfigurationProperty) SetDescription(v string)` + +SetDescription sets Description 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ContentCreateRequest.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ContentCreateRequest.md new file mode 100644 index 00000000..346c5072 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/ContentCreateRequest.md @@ -0,0 +1,72 @@ +# ContentCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | Raw content of the artifact or a valid (and accessible) URL where the content can be found. | +**References** | [**[]ArtifactReference**](ArtifactReference.md) | Collection of references to other artifacts. | + +## Methods + +### NewContentCreateRequest + +`func NewContentCreateRequest(content string, references []ArtifactReference, ) *ContentCreateRequest` + +NewContentCreateRequest instantiates a new ContentCreateRequest 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 + +### NewContentCreateRequestWithDefaults + +`func NewContentCreateRequestWithDefaults() *ContentCreateRequest` + +NewContentCreateRequestWithDefaults instantiates a new ContentCreateRequest 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 + +### GetContent + +`func (o *ContentCreateRequest) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *ContentCreateRequest) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *ContentCreateRequest) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetReferences + +`func (o *ContentCreateRequest) GetReferences() []ArtifactReference` + +GetReferences returns the References field if non-nil, zero value otherwise. + +### GetReferencesOk + +`func (o *ContentCreateRequest) GetReferencesOk() (*[]ArtifactReference, bool)` + +GetReferencesOk returns a tuple with the References field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferences + +`func (o *ContentCreateRequest) SetReferences(v []ArtifactReference)` + +SetReferences sets References 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/DownloadRef.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/DownloadRef.md new file mode 100644 index 00000000..d868e181 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/DownloadRef.md @@ -0,0 +1,77 @@ +# DownloadRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadId** | **string** | | +**Href** | Pointer to **string** | | [optional] + +## Methods + +### NewDownloadRef + +`func NewDownloadRef(downloadId string, ) *DownloadRef` + +NewDownloadRef instantiates a new DownloadRef 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 + +### NewDownloadRefWithDefaults + +`func NewDownloadRefWithDefaults() *DownloadRef` + +NewDownloadRefWithDefaults instantiates a new DownloadRef 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 + +### GetDownloadId + +`func (o *DownloadRef) GetDownloadId() string` + +GetDownloadId returns the DownloadId field if non-nil, zero value otherwise. + +### GetDownloadIdOk + +`func (o *DownloadRef) GetDownloadIdOk() (*string, bool)` + +GetDownloadIdOk returns a tuple with the DownloadId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadId + +`func (o *DownloadRef) SetDownloadId(v string)` + +SetDownloadId sets DownloadId field to given value. + + +### GetHref + +`func (o *DownloadRef) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *DownloadRef) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *DownloadRef) SetHref(v string)` + +SetHref sets Href field to given value. + +### HasHref + +`func (o *DownloadRef) HasHref() bool` + +HasHref 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/EditableMetaData.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/EditableMetaData.md new file mode 100644 index 00000000..4621c177 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/EditableMetaData.md @@ -0,0 +1,134 @@ +# EditableMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Labels** | Pointer to **[]string** | | [optional] +**Properties** | Pointer to **map[string]string** | User-defined name-value pairs. Name and value must be strings. | [optional] + +## Methods + +### NewEditableMetaData + +`func NewEditableMetaData() *EditableMetaData` + +NewEditableMetaData instantiates a new EditableMetaData 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 + +### NewEditableMetaDataWithDefaults + +`func NewEditableMetaDataWithDefaults() *EditableMetaData` + +NewEditableMetaDataWithDefaults instantiates a new EditableMetaData 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 *EditableMetaData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EditableMetaData) 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 *EditableMetaData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *EditableMetaData) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *EditableMetaData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EditableMetaData) 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 *EditableMetaData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *EditableMetaData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetLabels + +`func (o *EditableMetaData) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *EditableMetaData) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *EditableMetaData) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *EditableMetaData) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetProperties + +`func (o *EditableMetaData) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *EditableMetaData) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *EditableMetaData) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *EditableMetaData) HasProperties() bool` + +HasProperties 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Error.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Error.md new file mode 100644 index 00000000..9eecc1db --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Error.md @@ -0,0 +1,134 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | The short error message. | [optional] +**ErrorCode** | Pointer to **int32** | The server-side error code. | [optional] +**Detail** | Pointer to **string** | Full details about the error. This might contain a server stack trace, for example. | [optional] +**Name** | Pointer to **string** | The error name - typically the classname of the exception thrown by the server. | [optional] + +## Methods + +### NewError + +`func NewError() *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetMessage + +`func (o *Error) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *Error) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *Error) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *Error) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetErrorCode + +`func (o *Error) GetErrorCode() int32` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *Error) GetErrorCodeOk() (*int32, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *Error) SetErrorCode(v int32)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *Error) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetDetail + +`func (o *Error) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *Error) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *Error) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *Error) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetName + +`func (o *Error) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Error) 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 *Error) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Error) 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md new file mode 100644 index 00000000..e4e1703d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/GlobalRulesApi.md @@ -0,0 +1,408 @@ +# \GlobalRulesApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateGlobalRule**](GlobalRulesApi.md#CreateGlobalRule) | **Post** /admin/rules | Create global rule +[**DeleteAllGlobalRules**](GlobalRulesApi.md#DeleteAllGlobalRules) | **Delete** /admin/rules | Delete all global rules +[**DeleteGlobalRule**](GlobalRulesApi.md#DeleteGlobalRule) | **Delete** /admin/rules/{rule} | Delete global rule +[**GetGlobalRuleConfig**](GlobalRulesApi.md#GetGlobalRuleConfig) | **Get** /admin/rules/{rule} | Get global rule configuration +[**ListGlobalRules**](GlobalRulesApi.md#ListGlobalRules) | **Get** /admin/rules | List global rules +[**UpdateGlobalRuleConfig**](GlobalRulesApi.md#UpdateGlobalRuleConfig) | **Put** /admin/rules/{rule} | Update global rule configuration + + + +## CreateGlobalRule + +> CreateGlobalRule(ctx).Rule(rule).Execute() + +Create global rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.CreateGlobalRule(context.Background()).Rule(rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.CreateGlobalRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateGlobalRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rule** | [**Rule**](Rule.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAllGlobalRules + +> DeleteAllGlobalRules(ctx).Execute() + +Delete all global rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.DeleteAllGlobalRules(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.DeleteAllGlobalRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAllGlobalRulesRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteGlobalRule + +> DeleteGlobalRule(ctx, rule).Execute() + +Delete global rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.DeleteGlobalRule(context.Background(), rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.DeleteGlobalRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteGlobalRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetGlobalRuleConfig + +> Rule GetGlobalRuleConfig(ctx, rule).Execute() + +Get global rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.GetGlobalRuleConfig(context.Background(), rule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.GetGlobalRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetGlobalRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.GetGlobalRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetGlobalRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListGlobalRules + +> []RuleType ListGlobalRules(ctx).Execute() + +List global rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.ListGlobalRules(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.ListGlobalRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListGlobalRules`: []RuleType + fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.ListGlobalRules`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListGlobalRulesRequest struct via the builder pattern + + +### Return type + +[**[]RuleType**](RuleType.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateGlobalRuleConfig + +> Rule UpdateGlobalRuleConfig(ctx, rule).Rule2(rule2).Execute() + +Update global rule configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rule := openapiclient.RuleType("VALIDITY") // RuleType | The unique name/type of a rule. + rule2 := *openapiclient.NewRule("Config_example") // Rule | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.GlobalRulesApi.UpdateGlobalRuleConfig(context.Background(), rule).Rule2(rule2).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalRulesApi.UpdateGlobalRuleConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateGlobalRuleConfig`: Rule + fmt.Fprintf(os.Stdout, "Response from `GlobalRulesApi.UpdateGlobalRuleConfig`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**rule** | [**RuleType**](.md) | The unique name/type of a rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateGlobalRuleConfigRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rule2** | [**Rule**](Rule.md) | | + +### Return type + +[**Rule**](Rule.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/IfExists.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/IfExists.md new file mode 100644 index 00000000..d8079219 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/IfExists.md @@ -0,0 +1,17 @@ +# IfExists + +## Enum + + +* `FAIL` (value: `"FAIL"`) + +* `UPDATE` (value: `"UPDATE"`) + +* `RETURN` (value: `"RETURN"`) + +* `RETURN_OR_UPDATE` (value: `"RETURN_OR_UPDATE"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Limits.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Limits.md new file mode 100644 index 00000000..822876f7 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Limits.md @@ -0,0 +1,342 @@ +# Limits + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxTotalSchemasCount** | Pointer to **int64** | | [optional] +**MaxSchemaSizeBytes** | Pointer to **int64** | | [optional] +**MaxArtifactsCount** | Pointer to **int64** | | [optional] +**MaxVersionsPerArtifactCount** | Pointer to **int64** | | [optional] +**MaxArtifactPropertiesCount** | Pointer to **int64** | | [optional] +**MaxPropertyKeySizeBytes** | Pointer to **int64** | | [optional] +**MaxPropertyValueSizeBytes** | Pointer to **int64** | | [optional] +**MaxArtifactLabelsCount** | Pointer to **int64** | | [optional] +**MaxLabelSizeBytes** | Pointer to **int64** | | [optional] +**MaxArtifactNameLengthChars** | Pointer to **int64** | | [optional] +**MaxArtifactDescriptionLengthChars** | Pointer to **int64** | | [optional] +**MaxRequestsPerSecondCount** | Pointer to **int64** | | [optional] + +## Methods + +### NewLimits + +`func NewLimits() *Limits` + +NewLimits instantiates a new Limits 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 + +### NewLimitsWithDefaults + +`func NewLimitsWithDefaults() *Limits` + +NewLimitsWithDefaults instantiates a new Limits 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 + +### GetMaxTotalSchemasCount + +`func (o *Limits) GetMaxTotalSchemasCount() int64` + +GetMaxTotalSchemasCount returns the MaxTotalSchemasCount field if non-nil, zero value otherwise. + +### GetMaxTotalSchemasCountOk + +`func (o *Limits) GetMaxTotalSchemasCountOk() (*int64, bool)` + +GetMaxTotalSchemasCountOk returns a tuple with the MaxTotalSchemasCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTotalSchemasCount + +`func (o *Limits) SetMaxTotalSchemasCount(v int64)` + +SetMaxTotalSchemasCount sets MaxTotalSchemasCount field to given value. + +### HasMaxTotalSchemasCount + +`func (o *Limits) HasMaxTotalSchemasCount() bool` + +HasMaxTotalSchemasCount returns a boolean if a field has been set. + +### GetMaxSchemaSizeBytes + +`func (o *Limits) GetMaxSchemaSizeBytes() int64` + +GetMaxSchemaSizeBytes returns the MaxSchemaSizeBytes field if non-nil, zero value otherwise. + +### GetMaxSchemaSizeBytesOk + +`func (o *Limits) GetMaxSchemaSizeBytesOk() (*int64, bool)` + +GetMaxSchemaSizeBytesOk returns a tuple with the MaxSchemaSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSchemaSizeBytes + +`func (o *Limits) SetMaxSchemaSizeBytes(v int64)` + +SetMaxSchemaSizeBytes sets MaxSchemaSizeBytes field to given value. + +### HasMaxSchemaSizeBytes + +`func (o *Limits) HasMaxSchemaSizeBytes() bool` + +HasMaxSchemaSizeBytes returns a boolean if a field has been set. + +### GetMaxArtifactsCount + +`func (o *Limits) GetMaxArtifactsCount() int64` + +GetMaxArtifactsCount returns the MaxArtifactsCount field if non-nil, zero value otherwise. + +### GetMaxArtifactsCountOk + +`func (o *Limits) GetMaxArtifactsCountOk() (*int64, bool)` + +GetMaxArtifactsCountOk returns a tuple with the MaxArtifactsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxArtifactsCount + +`func (o *Limits) SetMaxArtifactsCount(v int64)` + +SetMaxArtifactsCount sets MaxArtifactsCount field to given value. + +### HasMaxArtifactsCount + +`func (o *Limits) HasMaxArtifactsCount() bool` + +HasMaxArtifactsCount returns a boolean if a field has been set. + +### GetMaxVersionsPerArtifactCount + +`func (o *Limits) GetMaxVersionsPerArtifactCount() int64` + +GetMaxVersionsPerArtifactCount returns the MaxVersionsPerArtifactCount field if non-nil, zero value otherwise. + +### GetMaxVersionsPerArtifactCountOk + +`func (o *Limits) GetMaxVersionsPerArtifactCountOk() (*int64, bool)` + +GetMaxVersionsPerArtifactCountOk returns a tuple with the MaxVersionsPerArtifactCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxVersionsPerArtifactCount + +`func (o *Limits) SetMaxVersionsPerArtifactCount(v int64)` + +SetMaxVersionsPerArtifactCount sets MaxVersionsPerArtifactCount field to given value. + +### HasMaxVersionsPerArtifactCount + +`func (o *Limits) HasMaxVersionsPerArtifactCount() bool` + +HasMaxVersionsPerArtifactCount returns a boolean if a field has been set. + +### GetMaxArtifactPropertiesCount + +`func (o *Limits) GetMaxArtifactPropertiesCount() int64` + +GetMaxArtifactPropertiesCount returns the MaxArtifactPropertiesCount field if non-nil, zero value otherwise. + +### GetMaxArtifactPropertiesCountOk + +`func (o *Limits) GetMaxArtifactPropertiesCountOk() (*int64, bool)` + +GetMaxArtifactPropertiesCountOk returns a tuple with the MaxArtifactPropertiesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxArtifactPropertiesCount + +`func (o *Limits) SetMaxArtifactPropertiesCount(v int64)` + +SetMaxArtifactPropertiesCount sets MaxArtifactPropertiesCount field to given value. + +### HasMaxArtifactPropertiesCount + +`func (o *Limits) HasMaxArtifactPropertiesCount() bool` + +HasMaxArtifactPropertiesCount returns a boolean if a field has been set. + +### GetMaxPropertyKeySizeBytes + +`func (o *Limits) GetMaxPropertyKeySizeBytes() int64` + +GetMaxPropertyKeySizeBytes returns the MaxPropertyKeySizeBytes field if non-nil, zero value otherwise. + +### GetMaxPropertyKeySizeBytesOk + +`func (o *Limits) GetMaxPropertyKeySizeBytesOk() (*int64, bool)` + +GetMaxPropertyKeySizeBytesOk returns a tuple with the MaxPropertyKeySizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPropertyKeySizeBytes + +`func (o *Limits) SetMaxPropertyKeySizeBytes(v int64)` + +SetMaxPropertyKeySizeBytes sets MaxPropertyKeySizeBytes field to given value. + +### HasMaxPropertyKeySizeBytes + +`func (o *Limits) HasMaxPropertyKeySizeBytes() bool` + +HasMaxPropertyKeySizeBytes returns a boolean if a field has been set. + +### GetMaxPropertyValueSizeBytes + +`func (o *Limits) GetMaxPropertyValueSizeBytes() int64` + +GetMaxPropertyValueSizeBytes returns the MaxPropertyValueSizeBytes field if non-nil, zero value otherwise. + +### GetMaxPropertyValueSizeBytesOk + +`func (o *Limits) GetMaxPropertyValueSizeBytesOk() (*int64, bool)` + +GetMaxPropertyValueSizeBytesOk returns a tuple with the MaxPropertyValueSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPropertyValueSizeBytes + +`func (o *Limits) SetMaxPropertyValueSizeBytes(v int64)` + +SetMaxPropertyValueSizeBytes sets MaxPropertyValueSizeBytes field to given value. + +### HasMaxPropertyValueSizeBytes + +`func (o *Limits) HasMaxPropertyValueSizeBytes() bool` + +HasMaxPropertyValueSizeBytes returns a boolean if a field has been set. + +### GetMaxArtifactLabelsCount + +`func (o *Limits) GetMaxArtifactLabelsCount() int64` + +GetMaxArtifactLabelsCount returns the MaxArtifactLabelsCount field if non-nil, zero value otherwise. + +### GetMaxArtifactLabelsCountOk + +`func (o *Limits) GetMaxArtifactLabelsCountOk() (*int64, bool)` + +GetMaxArtifactLabelsCountOk returns a tuple with the MaxArtifactLabelsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxArtifactLabelsCount + +`func (o *Limits) SetMaxArtifactLabelsCount(v int64)` + +SetMaxArtifactLabelsCount sets MaxArtifactLabelsCount field to given value. + +### HasMaxArtifactLabelsCount + +`func (o *Limits) HasMaxArtifactLabelsCount() bool` + +HasMaxArtifactLabelsCount returns a boolean if a field has been set. + +### GetMaxLabelSizeBytes + +`func (o *Limits) GetMaxLabelSizeBytes() int64` + +GetMaxLabelSizeBytes returns the MaxLabelSizeBytes field if non-nil, zero value otherwise. + +### GetMaxLabelSizeBytesOk + +`func (o *Limits) GetMaxLabelSizeBytesOk() (*int64, bool)` + +GetMaxLabelSizeBytesOk returns a tuple with the MaxLabelSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxLabelSizeBytes + +`func (o *Limits) SetMaxLabelSizeBytes(v int64)` + +SetMaxLabelSizeBytes sets MaxLabelSizeBytes field to given value. + +### HasMaxLabelSizeBytes + +`func (o *Limits) HasMaxLabelSizeBytes() bool` + +HasMaxLabelSizeBytes returns a boolean if a field has been set. + +### GetMaxArtifactNameLengthChars + +`func (o *Limits) GetMaxArtifactNameLengthChars() int64` + +GetMaxArtifactNameLengthChars returns the MaxArtifactNameLengthChars field if non-nil, zero value otherwise. + +### GetMaxArtifactNameLengthCharsOk + +`func (o *Limits) GetMaxArtifactNameLengthCharsOk() (*int64, bool)` + +GetMaxArtifactNameLengthCharsOk returns a tuple with the MaxArtifactNameLengthChars field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxArtifactNameLengthChars + +`func (o *Limits) SetMaxArtifactNameLengthChars(v int64)` + +SetMaxArtifactNameLengthChars sets MaxArtifactNameLengthChars field to given value. + +### HasMaxArtifactNameLengthChars + +`func (o *Limits) HasMaxArtifactNameLengthChars() bool` + +HasMaxArtifactNameLengthChars returns a boolean if a field has been set. + +### GetMaxArtifactDescriptionLengthChars + +`func (o *Limits) GetMaxArtifactDescriptionLengthChars() int64` + +GetMaxArtifactDescriptionLengthChars returns the MaxArtifactDescriptionLengthChars field if non-nil, zero value otherwise. + +### GetMaxArtifactDescriptionLengthCharsOk + +`func (o *Limits) GetMaxArtifactDescriptionLengthCharsOk() (*int64, bool)` + +GetMaxArtifactDescriptionLengthCharsOk returns a tuple with the MaxArtifactDescriptionLengthChars field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxArtifactDescriptionLengthChars + +`func (o *Limits) SetMaxArtifactDescriptionLengthChars(v int64)` + +SetMaxArtifactDescriptionLengthChars sets MaxArtifactDescriptionLengthChars field to given value. + +### HasMaxArtifactDescriptionLengthChars + +`func (o *Limits) HasMaxArtifactDescriptionLengthChars() bool` + +HasMaxArtifactDescriptionLengthChars returns a boolean if a field has been set. + +### GetMaxRequestsPerSecondCount + +`func (o *Limits) GetMaxRequestsPerSecondCount() int64` + +GetMaxRequestsPerSecondCount returns the MaxRequestsPerSecondCount field if non-nil, zero value otherwise. + +### GetMaxRequestsPerSecondCountOk + +`func (o *Limits) GetMaxRequestsPerSecondCountOk() (*int64, bool)` + +GetMaxRequestsPerSecondCountOk returns a tuple with the MaxRequestsPerSecondCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRequestsPerSecondCount + +`func (o *Limits) SetMaxRequestsPerSecondCount(v int64)` + +SetMaxRequestsPerSecondCount sets MaxRequestsPerSecondCount field to given value. + +### HasMaxRequestsPerSecondCount + +`func (o *Limits) HasMaxRequestsPerSecondCount() bool` + +HasMaxRequestsPerSecondCount 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogConfiguration.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogConfiguration.md new file mode 100644 index 00000000..e446fbd3 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogConfiguration.md @@ -0,0 +1,51 @@ +# LogConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Level** | [**LogLevel**](LogLevel.md) | | + +## Methods + +### NewLogConfiguration + +`func NewLogConfiguration(level LogLevel, ) *LogConfiguration` + +NewLogConfiguration instantiates a new LogConfiguration 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 + +### NewLogConfigurationWithDefaults + +`func NewLogConfigurationWithDefaults() *LogConfiguration` + +NewLogConfigurationWithDefaults instantiates a new LogConfiguration 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 + +### GetLevel + +`func (o *LogConfiguration) GetLevel() LogLevel` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *LogConfiguration) GetLevelOk() (*LogLevel, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *LogConfiguration) SetLevel(v LogLevel)` + +SetLevel sets Level 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogLevel.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogLevel.md new file mode 100644 index 00000000..4ce2261e --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/LogLevel.md @@ -0,0 +1,31 @@ +# LogLevel + +## Enum + + +* `DEBUG` (value: `"DEBUG"`) + +* `TRACE` (value: `"TRACE"`) + +* `WARN` (value: `"WARN"`) + +* `ERROR` (value: `"ERROR"`) + +* `SEVERE` (value: `"SEVERE"`) + +* `WARNING` (value: `"WARNING"`) + +* `INFO` (value: `"INFO"`) + +* `CONFIG` (value: `"CONFIG"`) + +* `FINE` (value: `"FINE"`) + +* `FINER` (value: `"FINER"`) + +* `FINEST` (value: `"FINEST"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/MetadataApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/MetadataApi.md new file mode 100644 index 00000000..9836985b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/MetadataApi.md @@ -0,0 +1,611 @@ +# \MetadataApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteArtifactVersionMetaData**](MetadataApi.md#DeleteArtifactVersionMetaData) | **Delete** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Delete artifact version metadata +[**GetArtifactMetaData**](MetadataApi.md#GetArtifactMetaData) | **Get** /groups/{groupId}/artifacts/{artifactId}/meta | Get artifact metadata +[**GetArtifactOwner**](MetadataApi.md#GetArtifactOwner) | **Get** /groups/{groupId}/artifacts/{artifactId}/owner | Get artifact owner +[**GetArtifactVersionMetaData**](MetadataApi.md#GetArtifactVersionMetaData) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Get artifact version metadata +[**GetArtifactVersionMetaDataByContent**](MetadataApi.md#GetArtifactVersionMetaDataByContent) | **Post** /groups/{groupId}/artifacts/{artifactId}/meta | Get artifact version metadata by content +[**UpdateArtifactMetaData**](MetadataApi.md#UpdateArtifactMetaData) | **Put** /groups/{groupId}/artifacts/{artifactId}/meta | Update artifact metadata +[**UpdateArtifactOwner**](MetadataApi.md#UpdateArtifactOwner) | **Put** /groups/{groupId}/artifacts/{artifactId}/owner | Update artifact owner +[**UpdateArtifactVersionMetaData**](MetadataApi.md#UpdateArtifactVersionMetaData) | **Put** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/meta | Update artifact version metadata + + + +## DeleteArtifactVersionMetaData + +> DeleteArtifactVersionMetaData(ctx, groupId, artifactId, version).Execute() + +Delete artifact version metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.DeleteArtifactVersionMetaData(context.Background(), groupId, artifactId, version).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.DeleteArtifactVersionMetaData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteArtifactVersionMetaDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactMetaData + +> ArtifactMetaData GetArtifactMetaData(ctx, groupId, artifactId).Execute() + +Get artifact metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.GetArtifactMetaData(context.Background(), groupId, artifactId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.GetArtifactMetaData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactMetaData`: ArtifactMetaData + fmt.Fprintf(os.Stdout, "Response from `MetadataApi.GetArtifactMetaData`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactMetaDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ArtifactMetaData**](ArtifactMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactOwner + +> ArtifactOwner GetArtifactOwner(ctx, groupId, artifactId).Execute() + +Get artifact owner + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.GetArtifactOwner(context.Background(), groupId, artifactId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.GetArtifactOwner``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactOwner`: ArtifactOwner + fmt.Fprintf(os.Stdout, "Response from `MetadataApi.GetArtifactOwner`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactOwnerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ArtifactOwner**](ArtifactOwner.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactVersionMetaData + +> VersionMetaData GetArtifactVersionMetaData(ctx, groupId, artifactId, version).Execute() + +Get artifact version metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.GetArtifactVersionMetaData(context.Background(), groupId, artifactId, version).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.GetArtifactVersionMetaData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactVersionMetaData`: VersionMetaData + fmt.Fprintf(os.Stdout, "Response from `MetadataApi.GetArtifactVersionMetaData`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactVersionMetaDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**VersionMetaData**](VersionMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactVersionMetaDataByContent + +> VersionMetaData GetArtifactVersionMetaDataByContent(ctx, groupId, artifactId).Body(body).Canonical(canonical).Execute() + +Get artifact version metadata by content + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The content of an artifact version. + canonical := true // bool | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.GetArtifactVersionMetaDataByContent(context.Background(), groupId, artifactId).Body(body).Canonical(canonical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.GetArtifactVersionMetaDataByContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactVersionMetaDataByContent`: VersionMetaData + fmt.Fprintf(os.Stdout, "Response from `MetadataApi.GetArtifactVersionMetaDataByContent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactVersionMetaDataByContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **interface{}** | The content of an artifact version. | + **canonical** | **bool** | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for a matching version. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. | + +### Return type + +[**VersionMetaData**](VersionMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactMetaData + +> UpdateArtifactMetaData(ctx, groupId, artifactId).EditableMetaData(editableMetaData).Execute() + +Update artifact metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + editableMetaData := *openapiclient.NewEditableMetaData() // EditableMetaData | Updated artifact metadata. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.UpdateArtifactMetaData(context.Background(), groupId, artifactId).EditableMetaData(editableMetaData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.UpdateArtifactMetaData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactMetaDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **editableMetaData** | [**EditableMetaData**](EditableMetaData.md) | Updated artifact metadata. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactOwner + +> UpdateArtifactOwner(ctx, groupId, artifactId).ArtifactOwner(artifactOwner).Execute() + +Update artifact owner + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + artifactOwner := *openapiclient.NewArtifactOwner() // ArtifactOwner | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.UpdateArtifactOwner(context.Background(), groupId, artifactId).ArtifactOwner(artifactOwner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.UpdateArtifactOwner``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactOwnerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **artifactOwner** | [**ArtifactOwner**](ArtifactOwner.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactVersionMetaData + +> UpdateArtifactVersionMetaData(ctx, groupId, artifactId, version).EditableMetaData(editableMetaData).Execute() + +Update artifact version metadata + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + editableMetaData := *openapiclient.NewEditableMetaData() // EditableMetaData | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.MetadataApi.UpdateArtifactVersionMetaData(context.Background(), groupId, artifactId, version).EditableMetaData(editableMetaData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataApi.UpdateArtifactVersionMetaData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactVersionMetaDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **editableMetaData** | [**EditableMetaData**](EditableMetaData.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfiguration.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfiguration.md new file mode 100644 index 00000000..1b6f5719 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfiguration.md @@ -0,0 +1,72 @@ +# NamedLogConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Level** | [**LogLevel**](LogLevel.md) | | + +## Methods + +### NewNamedLogConfiguration + +`func NewNamedLogConfiguration(name string, level LogLevel, ) *NamedLogConfiguration` + +NewNamedLogConfiguration instantiates a new NamedLogConfiguration 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 + +### NewNamedLogConfigurationWithDefaults + +`func NewNamedLogConfigurationWithDefaults() *NamedLogConfiguration` + +NewNamedLogConfigurationWithDefaults instantiates a new NamedLogConfiguration 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 *NamedLogConfiguration) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NamedLogConfiguration) 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 *NamedLogConfiguration) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLevel + +`func (o *NamedLogConfiguration) GetLevel() LogLevel` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *NamedLogConfiguration) GetLevelOk() (*LogLevel, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *NamedLogConfiguration) SetLevel(v LogLevel)` + +SetLevel sets Level 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfigurationAllOf.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfigurationAllOf.md new file mode 100644 index 00000000..e096ae8a --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/NamedLogConfigurationAllOf.md @@ -0,0 +1,51 @@ +# NamedLogConfigurationAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewNamedLogConfigurationAllOf + +`func NewNamedLogConfigurationAllOf(name string, ) *NamedLogConfigurationAllOf` + +NewNamedLogConfigurationAllOf instantiates a new NamedLogConfigurationAllOf 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 + +### NewNamedLogConfigurationAllOfWithDefaults + +`func NewNamedLogConfigurationAllOfWithDefaults() *NamedLogConfigurationAllOf` + +NewNamedLogConfigurationAllOfWithDefaults instantiates a new NamedLogConfigurationAllOf 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 *NamedLogConfigurationAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NamedLogConfigurationAllOf) 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 *NamedLogConfigurationAllOf) 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleMapping.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleMapping.md new file mode 100644 index 00000000..b74d88d5 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleMapping.md @@ -0,0 +1,98 @@ +# RoleMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrincipalId** | **string** | | +**Role** | [**RoleType**](RoleType.md) | | +**PrincipalName** | Pointer to **string** | A friendly name for the principal. | [optional] + +## Methods + +### NewRoleMapping + +`func NewRoleMapping(principalId string, role RoleType, ) *RoleMapping` + +NewRoleMapping instantiates a new RoleMapping 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 + +### NewRoleMappingWithDefaults + +`func NewRoleMappingWithDefaults() *RoleMapping` + +NewRoleMappingWithDefaults instantiates a new RoleMapping 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 + +### GetPrincipalId + +`func (o *RoleMapping) GetPrincipalId() string` + +GetPrincipalId returns the PrincipalId field if non-nil, zero value otherwise. + +### GetPrincipalIdOk + +`func (o *RoleMapping) GetPrincipalIdOk() (*string, bool)` + +GetPrincipalIdOk returns a tuple with the PrincipalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalId + +`func (o *RoleMapping) SetPrincipalId(v string)` + +SetPrincipalId sets PrincipalId field to given value. + + +### GetRole + +`func (o *RoleMapping) GetRole() RoleType` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RoleMapping) GetRoleOk() (*RoleType, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RoleMapping) SetRole(v RoleType)` + +SetRole sets Role field to given value. + + +### GetPrincipalName + +`func (o *RoleMapping) GetPrincipalName() string` + +GetPrincipalName returns the PrincipalName field if non-nil, zero value otherwise. + +### GetPrincipalNameOk + +`func (o *RoleMapping) GetPrincipalNameOk() (*string, bool)` + +GetPrincipalNameOk returns a tuple with the PrincipalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalName + +`func (o *RoleMapping) SetPrincipalName(v string)` + +SetPrincipalName sets PrincipalName field to given value. + +### HasPrincipalName + +`func (o *RoleMapping) HasPrincipalName() bool` + +HasPrincipalName 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleType.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleType.md new file mode 100644 index 00000000..9586dbb8 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RoleType.md @@ -0,0 +1,15 @@ +# RoleType + +## Enum + + +* `READ_ONLY` (value: `"READ_ONLY"`) + +* `DEVELOPER` (value: `"DEVELOPER"`) + +* `ADMIN` (value: `"ADMIN"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Rule.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Rule.md new file mode 100644 index 00000000..5d2f3b63 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/Rule.md @@ -0,0 +1,77 @@ +# Rule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | **string** | | +**Type** | Pointer to [**RuleType**](RuleType.md) | | [optional] + +## Methods + +### NewRule + +`func NewRule(config string, ) *Rule` + +NewRule instantiates a new Rule 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 + +### NewRuleWithDefaults + +`func NewRuleWithDefaults() *Rule` + +NewRuleWithDefaults instantiates a new Rule 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 + +### GetConfig + +`func (o *Rule) GetConfig() string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *Rule) GetConfigOk() (*string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *Rule) SetConfig(v string)` + +SetConfig sets Config field to given value. + + +### GetType + +`func (o *Rule) GetType() RuleType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Rule) GetTypeOk() (*RuleType, 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 *Rule) SetType(v RuleType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Rule) 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleType.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleType.md new file mode 100644 index 00000000..7b4bfe03 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleType.md @@ -0,0 +1,13 @@ +# RuleType + +## Enum + + +* `VALIDITY` (value: `"VALIDITY"`) + +* `COMPATIBILITY` (value: `"COMPATIBILITY"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationCause.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationCause.md new file mode 100644 index 00000000..c6856653 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationCause.md @@ -0,0 +1,82 @@ +# RuleViolationCause + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Context** | Pointer to **string** | | [optional] + +## Methods + +### NewRuleViolationCause + +`func NewRuleViolationCause() *RuleViolationCause` + +NewRuleViolationCause instantiates a new RuleViolationCause 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 + +### NewRuleViolationCauseWithDefaults + +`func NewRuleViolationCauseWithDefaults() *RuleViolationCause` + +NewRuleViolationCauseWithDefaults instantiates a new RuleViolationCause 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 *RuleViolationCause) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RuleViolationCause) 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 *RuleViolationCause) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RuleViolationCause) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContext + +`func (o *RuleViolationCause) GetContext() string` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *RuleViolationCause) GetContextOk() (*string, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *RuleViolationCause) SetContext(v string)` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *RuleViolationCause) HasContext() bool` + +HasContext 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationError.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationError.md new file mode 100644 index 00000000..d20bc545 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationError.md @@ -0,0 +1,155 @@ +# RuleViolationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Causes** | [**[]RuleViolationCause**](RuleViolationCause.md) | List of rule violation causes. | +**Message** | Pointer to **string** | The short error message. | [optional] +**ErrorCode** | Pointer to **int32** | The server-side error code. | [optional] +**Detail** | Pointer to **string** | Full details about the error. This might contain a server stack trace, for example. | [optional] +**Name** | Pointer to **string** | The error name - typically the classname of the exception thrown by the server. | [optional] + +## Methods + +### NewRuleViolationError + +`func NewRuleViolationError(causes []RuleViolationCause, ) *RuleViolationError` + +NewRuleViolationError instantiates a new RuleViolationError 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 + +### NewRuleViolationErrorWithDefaults + +`func NewRuleViolationErrorWithDefaults() *RuleViolationError` + +NewRuleViolationErrorWithDefaults instantiates a new RuleViolationError 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 + +### GetCauses + +`func (o *RuleViolationError) GetCauses() []RuleViolationCause` + +GetCauses returns the Causes field if non-nil, zero value otherwise. + +### GetCausesOk + +`func (o *RuleViolationError) GetCausesOk() (*[]RuleViolationCause, bool)` + +GetCausesOk returns a tuple with the Causes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCauses + +`func (o *RuleViolationError) SetCauses(v []RuleViolationCause)` + +SetCauses sets Causes field to given value. + + +### GetMessage + +`func (o *RuleViolationError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RuleViolationError) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RuleViolationError) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *RuleViolationError) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetErrorCode + +`func (o *RuleViolationError) GetErrorCode() int32` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *RuleViolationError) GetErrorCodeOk() (*int32, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *RuleViolationError) SetErrorCode(v int32)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *RuleViolationError) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetDetail + +`func (o *RuleViolationError) GetDetail() string` + +GetDetail returns the Detail field if non-nil, zero value otherwise. + +### GetDetailOk + +`func (o *RuleViolationError) GetDetailOk() (*string, bool)` + +GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetail + +`func (o *RuleViolationError) SetDetail(v string)` + +SetDetail sets Detail field to given value. + +### HasDetail + +`func (o *RuleViolationError) HasDetail() bool` + +HasDetail returns a boolean if a field has been set. + +### GetName + +`func (o *RuleViolationError) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RuleViolationError) 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 *RuleViolationError) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *RuleViolationError) 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationErrorAllOf.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationErrorAllOf.md new file mode 100644 index 00000000..03141f34 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/RuleViolationErrorAllOf.md @@ -0,0 +1,51 @@ +# RuleViolationErrorAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Causes** | [**[]RuleViolationCause**](RuleViolationCause.md) | List of rule violation causes. | + +## Methods + +### NewRuleViolationErrorAllOf + +`func NewRuleViolationErrorAllOf(causes []RuleViolationCause, ) *RuleViolationErrorAllOf` + +NewRuleViolationErrorAllOf instantiates a new RuleViolationErrorAllOf 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 + +### NewRuleViolationErrorAllOfWithDefaults + +`func NewRuleViolationErrorAllOfWithDefaults() *RuleViolationErrorAllOf` + +NewRuleViolationErrorAllOfWithDefaults instantiates a new RuleViolationErrorAllOf 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 + +### GetCauses + +`func (o *RuleViolationErrorAllOf) GetCauses() []RuleViolationCause` + +GetCauses returns the Causes field if non-nil, zero value otherwise. + +### GetCausesOk + +`func (o *RuleViolationErrorAllOf) GetCausesOk() (*[]RuleViolationCause, bool)` + +GetCausesOk returns a tuple with the Causes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCauses + +`func (o *RuleViolationErrorAllOf) SetCauses(v []RuleViolationCause)` + +SetCauses sets Causes 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchApi.md new file mode 100644 index 00000000..51587692 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchApi.md @@ -0,0 +1,174 @@ +# \SearchApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SearchArtifacts**](SearchApi.md#SearchArtifacts) | **Get** /search/artifacts | Search for artifacts +[**SearchArtifactsByContent**](SearchApi.md#SearchArtifactsByContent) | **Post** /search/artifacts | Search for artifacts by content + + + +## SearchArtifacts + +> ArtifactSearchResults SearchArtifacts(ctx).Name(name).Offset(offset).Limit(limit).Order(order).Orderby(orderby).Labels(labels).Properties(properties).Description(description).Group(group).GlobalId(globalId).ContentId(contentId).Execute() + +Search for artifacts + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Filter by artifact name. (optional) + offset := int32(56) // int32 | The number of artifacts to skip before starting to collect the result set. Defaults to 0. (optional) (default to 0) + limit := int32(56) // int32 | The number of artifacts to return. Defaults to 20. (optional) (default to 20) + order := openapiclient.SortOrder("asc") // SortOrder | Sort order, ascending (`asc`) or descending (`desc`). (optional) + orderby := openapiclient.SortBy("name") // SortBy | The field to sort by. Can be one of: * `name` * `createdOn` (optional) + labels := []string{"Inner_example"} // []string | Filter by label. Include one or more label to only return artifacts containing all of the specified labels. (optional) + properties := []string{"Inner_example"} // []string | Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. (optional) + description := "description_example" // string | Filter by description. (optional) + group := "group_example" // string | Filter by artifact group. (optional) + globalId := int64(789) // int64 | Filter by globalId. (optional) + contentId := int64(789) // int64 | Filter by contentId. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SearchApi.SearchArtifacts(context.Background()).Name(name).Offset(offset).Limit(limit).Order(order).Orderby(orderby).Labels(labels).Properties(properties).Description(description).Group(group).GlobalId(globalId).ContentId(contentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchApi.SearchArtifacts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchArtifacts`: ArtifactSearchResults + fmt.Fprintf(os.Stdout, "Response from `SearchApi.SearchArtifacts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchArtifactsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **string** | Filter by artifact name. | + **offset** | **int32** | The number of artifacts to skip before starting to collect the result set. Defaults to 0. | [default to 0] + **limit** | **int32** | The number of artifacts to return. Defaults to 20. | [default to 20] + **order** | [**SortOrder**](SortOrder.md) | Sort order, ascending (`asc`) or descending (`desc`). | + **orderby** | [**SortBy**](SortBy.md) | The field to sort by. Can be one of: * `name` * `createdOn` | + **labels** | **[]string** | Filter by label. Include one or more label to only return artifacts containing all of the specified labels. | + **properties** | **[]string** | Filter by one or more name/value property. Separate each name/value pair using a colon. For example `properties=foo:bar` will return only artifacts with a custom property named `foo` and value `bar`. | + **description** | **string** | Filter by description. | + **group** | **string** | Filter by artifact group. | + **globalId** | **int64** | Filter by globalId. | + **contentId** | **int64** | Filter by contentId. | + +### Return type + +[**ArtifactSearchResults**](ArtifactSearchResults.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SearchArtifactsByContent + +> ArtifactSearchResults SearchArtifactsByContent(ctx).Body(body).Canonical(canonical).ArtifactType(artifactType).Offset(offset).Limit(limit).Order(order).Orderby(orderby).Execute() + +Search for artifacts by content + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := os.NewFile(1234, "some_file") // *os.File | The content to search for. + canonical := true // bool | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. (optional) + artifactType := openapiclient.ArtifactType("AVRO") // ArtifactType | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. (optional) + offset := int32(56) // int32 | The number of artifacts to skip before starting to collect the result set. Defaults to 0. (optional) (default to 0) + limit := int32(56) // int32 | The number of artifacts to return. Defaults to 20. (optional) (default to 20) + order := "order_example" // string | Sort order, ascending (`asc`) or descending (`desc`). (optional) + orderby := "orderby_example" // string | The field to sort by. Can be one of: * `name` * `createdOn` (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SearchApi.SearchArtifactsByContent(context.Background()).Body(body).Canonical(canonical).ArtifactType(artifactType).Offset(offset).Limit(limit).Order(order).Orderby(orderby).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchApi.SearchArtifactsByContent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchArtifactsByContent`: ArtifactSearchResults + fmt.Fprintf(os.Stdout, "Response from `SearchApi.SearchArtifactsByContent`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchArtifactsByContentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | ***os.File** | The content to search for. | + **canonical** | **bool** | Parameter that can be set to `true` to indicate that the server should \"canonicalize\" the content when searching for matching artifacts. Canonicalization is unique to each artifact type, but typically involves removing any extra whitespace and formatting the content in a consistent manner. Must be used along with the `artifactType` query parameter. | + **artifactType** | [**ArtifactType**](ArtifactType.md) | Indicates the type of artifact represented by the content being used for the search. This is only needed when using the `canonical` query parameter, so that the server knows how to canonicalize the content prior to searching for matching artifacts. | + **offset** | **int32** | The number of artifacts to skip before starting to collect the result set. Defaults to 0. | [default to 0] + **limit** | **int32** | The number of artifacts to return. Defaults to 20. | [default to 20] + **order** | **string** | Sort order, ascending (`asc`) or descending (`desc`). | + **orderby** | **string** | The field to sort by. Can be one of: * `name` * `createdOn` | + +### Return type + +[**ArtifactSearchResults**](ArtifactSearchResults.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedArtifact.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedArtifact.md new file mode 100644 index 00000000..971c47df --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedArtifact.md @@ -0,0 +1,291 @@ +# SearchedArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of a single artifact. | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CreatedOn** | **string** | | +**CreatedBy** | **string** | | +**Type** | [**ArtifactType**](ArtifactType.md) | | +**Labels** | Pointer to **[]string** | | [optional] +**State** | [**ArtifactState**](ArtifactState.md) | | +**ModifiedOn** | Pointer to **string** | | [optional] +**ModifiedBy** | Pointer to **string** | | [optional] +**GroupId** | Pointer to **string** | An ID of a single artifact group. | [optional] + +## Methods + +### NewSearchedArtifact + +`func NewSearchedArtifact(id string, createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, ) *SearchedArtifact` + +NewSearchedArtifact instantiates a new SearchedArtifact 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 + +### NewSearchedArtifactWithDefaults + +`func NewSearchedArtifactWithDefaults() *SearchedArtifact` + +NewSearchedArtifactWithDefaults instantiates a new SearchedArtifact 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 *SearchedArtifact) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SearchedArtifact) 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 *SearchedArtifact) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *SearchedArtifact) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SearchedArtifact) 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 *SearchedArtifact) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SearchedArtifact) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *SearchedArtifact) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SearchedArtifact) 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 *SearchedArtifact) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SearchedArtifact) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedOn + +`func (o *SearchedArtifact) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *SearchedArtifact) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *SearchedArtifact) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetCreatedBy + +`func (o *SearchedArtifact) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *SearchedArtifact) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *SearchedArtifact) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetType + +`func (o *SearchedArtifact) GetType() ArtifactType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SearchedArtifact) GetTypeOk() (*ArtifactType, 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 *SearchedArtifact) SetType(v ArtifactType)` + +SetType sets Type field to given value. + + +### GetLabels + +`func (o *SearchedArtifact) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *SearchedArtifact) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *SearchedArtifact) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *SearchedArtifact) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetState + +`func (o *SearchedArtifact) GetState() ArtifactState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *SearchedArtifact) GetStateOk() (*ArtifactState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *SearchedArtifact) SetState(v ArtifactState)` + +SetState sets State field to given value. + + +### GetModifiedOn + +`func (o *SearchedArtifact) GetModifiedOn() string` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *SearchedArtifact) GetModifiedOnOk() (*string, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *SearchedArtifact) SetModifiedOn(v string)` + +SetModifiedOn sets ModifiedOn field to given value. + +### HasModifiedOn + +`func (o *SearchedArtifact) HasModifiedOn() bool` + +HasModifiedOn returns a boolean if a field has been set. + +### GetModifiedBy + +`func (o *SearchedArtifact) GetModifiedBy() string` + +GetModifiedBy returns the ModifiedBy field if non-nil, zero value otherwise. + +### GetModifiedByOk + +`func (o *SearchedArtifact) GetModifiedByOk() (*string, bool)` + +GetModifiedByOk returns a tuple with the ModifiedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedBy + +`func (o *SearchedArtifact) SetModifiedBy(v string)` + +SetModifiedBy sets ModifiedBy field to given value. + +### HasModifiedBy + +`func (o *SearchedArtifact) HasModifiedBy() bool` + +HasModifiedBy returns a boolean if a field has been set. + +### GetGroupId + +`func (o *SearchedArtifact) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *SearchedArtifact) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *SearchedArtifact) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *SearchedArtifact) HasGroupId() bool` + +HasGroupId 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedVersion.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedVersion.md new file mode 100644 index 00000000..eea316e9 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SearchedVersion.md @@ -0,0 +1,302 @@ +# SearchedVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CreatedOn** | **string** | | +**CreatedBy** | **string** | | +**Type** | [**ArtifactType**](ArtifactType.md) | | +**Labels** | Pointer to **[]string** | | [optional] +**State** | [**ArtifactState**](ArtifactState.md) | | +**GlobalId** | **int64** | | +**Version** | **string** | | +**Properties** | Pointer to **map[string]string** | User-defined name-value pairs. Name and value must be strings. | [optional] +**ContentId** | **int64** | | +**References** | [**[]ArtifactReference**](ArtifactReference.md) | | + +## Methods + +### NewSearchedVersion + +`func NewSearchedVersion(createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference, ) *SearchedVersion` + +NewSearchedVersion instantiates a new SearchedVersion 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 + +### NewSearchedVersionWithDefaults + +`func NewSearchedVersionWithDefaults() *SearchedVersion` + +NewSearchedVersionWithDefaults instantiates a new SearchedVersion 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 *SearchedVersion) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SearchedVersion) 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 *SearchedVersion) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SearchedVersion) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *SearchedVersion) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SearchedVersion) 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 *SearchedVersion) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SearchedVersion) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedOn + +`func (o *SearchedVersion) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *SearchedVersion) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *SearchedVersion) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetCreatedBy + +`func (o *SearchedVersion) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *SearchedVersion) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *SearchedVersion) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetType + +`func (o *SearchedVersion) GetType() ArtifactType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SearchedVersion) GetTypeOk() (*ArtifactType, 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 *SearchedVersion) SetType(v ArtifactType)` + +SetType sets Type field to given value. + + +### GetLabels + +`func (o *SearchedVersion) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *SearchedVersion) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *SearchedVersion) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *SearchedVersion) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetState + +`func (o *SearchedVersion) GetState() ArtifactState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *SearchedVersion) GetStateOk() (*ArtifactState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *SearchedVersion) SetState(v ArtifactState)` + +SetState sets State field to given value. + + +### GetGlobalId + +`func (o *SearchedVersion) GetGlobalId() int64` + +GetGlobalId returns the GlobalId field if non-nil, zero value otherwise. + +### GetGlobalIdOk + +`func (o *SearchedVersion) GetGlobalIdOk() (*int64, bool)` + +GetGlobalIdOk returns a tuple with the GlobalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalId + +`func (o *SearchedVersion) SetGlobalId(v int64)` + +SetGlobalId sets GlobalId field to given value. + + +### GetVersion + +`func (o *SearchedVersion) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SearchedVersion) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SearchedVersion) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetProperties + +`func (o *SearchedVersion) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *SearchedVersion) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *SearchedVersion) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *SearchedVersion) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetContentId + +`func (o *SearchedVersion) GetContentId() int64` + +GetContentId returns the ContentId field if non-nil, zero value otherwise. + +### GetContentIdOk + +`func (o *SearchedVersion) GetContentIdOk() (*int64, bool)` + +GetContentIdOk returns a tuple with the ContentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentId + +`func (o *SearchedVersion) SetContentId(v int64)` + +SetContentId sets ContentId field to given value. + + +### GetReferences + +`func (o *SearchedVersion) GetReferences() []ArtifactReference` + +GetReferences returns the References field if non-nil, zero value otherwise. + +### GetReferencesOk + +`func (o *SearchedVersion) GetReferencesOk() (*[]ArtifactReference, bool)` + +GetReferencesOk returns a tuple with the References field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferences + +`func (o *SearchedVersion) SetReferences(v []ArtifactReference)` + +SetReferences sets References 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortBy.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortBy.md new file mode 100644 index 00000000..5754c08c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortBy.md @@ -0,0 +1,13 @@ +# SortBy + +## Enum + + +* `NAME` (value: `"name"`) + +* `CREATED_ON` (value: `"createdOn"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortOrder.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortOrder.md new file mode 100644 index 00000000..85a00a31 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SortOrder.md @@ -0,0 +1,13 @@ +# SortOrder + +## Enum + + +* `ASC` (value: `"asc"`) + +* `DESC` (value: `"desc"`) + + +[[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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemApi.md new file mode 100644 index 00000000..9d3efde8 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemApi.md @@ -0,0 +1,132 @@ +# \SystemApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetResourceLimits**](SystemApi.md#GetResourceLimits) | **Get** /system/limits | Get resource limits information +[**GetSystemInfo**](SystemApi.md#GetSystemInfo) | **Get** /system/info | Get system information + + + +## GetResourceLimits + +> Limits GetResourceLimits(ctx).Execute() + +Get resource limits information + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SystemApi.GetResourceLimits(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SystemApi.GetResourceLimits``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetResourceLimits`: Limits + fmt.Fprintf(os.Stdout, "Response from `SystemApi.GetResourceLimits`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetResourceLimitsRequest struct via the builder pattern + + +### Return type + +[**Limits**](Limits.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSystemInfo + +> SystemInfo GetSystemInfo(ctx).Execute() + +Get system information + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SystemApi.GetSystemInfo(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SystemApi.GetSystemInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSystemInfo`: SystemInfo + fmt.Fprintf(os.Stdout, "Response from `SystemApi.GetSystemInfo`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSystemInfoRequest struct via the builder pattern + + +### Return type + +[**SystemInfo**](SystemInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemInfo.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemInfo.md new file mode 100644 index 00000000..d197b547 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/SystemInfo.md @@ -0,0 +1,134 @@ +# SystemInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] +**BuiltOn** | Pointer to **string** | | [optional] + +## Methods + +### NewSystemInfo + +`func NewSystemInfo() *SystemInfo` + +NewSystemInfo instantiates a new SystemInfo 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 + +### NewSystemInfoWithDefaults + +`func NewSystemInfoWithDefaults() *SystemInfo` + +NewSystemInfoWithDefaults instantiates a new SystemInfo 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 *SystemInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SystemInfo) 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 *SystemInfo) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SystemInfo) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *SystemInfo) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SystemInfo) 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 *SystemInfo) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SystemInfo) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVersion + +`func (o *SystemInfo) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SystemInfo) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SystemInfo) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SystemInfo) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetBuiltOn + +`func (o *SystemInfo) GetBuiltOn() string` + +GetBuiltOn returns the BuiltOn field if non-nil, zero value otherwise. + +### GetBuiltOnOk + +`func (o *SystemInfo) GetBuiltOnOk() (*string, bool)` + +GetBuiltOnOk returns a tuple with the BuiltOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuiltOn + +`func (o *SystemInfo) SetBuiltOn(v string)` + +SetBuiltOn sets BuiltOn field to given value. + +### HasBuiltOn + +`func (o *SystemInfo) HasBuiltOn() bool` + +HasBuiltOn 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateConfigurationProperty.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateConfigurationProperty.md new file mode 100644 index 00000000..07cf647b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateConfigurationProperty.md @@ -0,0 +1,51 @@ +# UpdateConfigurationProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **string** | | + +## Methods + +### NewUpdateConfigurationProperty + +`func NewUpdateConfigurationProperty(value string, ) *UpdateConfigurationProperty` + +NewUpdateConfigurationProperty instantiates a new UpdateConfigurationProperty 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 + +### NewUpdateConfigurationPropertyWithDefaults + +`func NewUpdateConfigurationPropertyWithDefaults() *UpdateConfigurationProperty` + +NewUpdateConfigurationPropertyWithDefaults instantiates a new UpdateConfigurationProperty 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 + +### GetValue + +`func (o *UpdateConfigurationProperty) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *UpdateConfigurationProperty) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *UpdateConfigurationProperty) SetValue(v string)` + +SetValue sets Value 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateRole.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateRole.md new file mode 100644 index 00000000..8172cf4c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateRole.md @@ -0,0 +1,51 @@ +# UpdateRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | [**RoleType**](RoleType.md) | | + +## Methods + +### NewUpdateRole + +`func NewUpdateRole(role RoleType, ) *UpdateRole` + +NewUpdateRole instantiates a new UpdateRole 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 + +### NewUpdateRoleWithDefaults + +`func NewUpdateRoleWithDefaults() *UpdateRole` + +NewUpdateRoleWithDefaults instantiates a new UpdateRole 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 + +### GetRole + +`func (o *UpdateRole) GetRole() RoleType` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *UpdateRole) GetRoleOk() (*RoleType, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *UpdateRole) SetRole(v RoleType)` + +SetRole sets Role 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateState.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateState.md new file mode 100644 index 00000000..0e18c89c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UpdateState.md @@ -0,0 +1,51 @@ +# UpdateState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | [**ArtifactState**](ArtifactState.md) | | + +## Methods + +### NewUpdateState + +`func NewUpdateState(state ArtifactState, ) *UpdateState` + +NewUpdateState instantiates a new UpdateState 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 + +### NewUpdateStateWithDefaults + +`func NewUpdateStateWithDefaults() *UpdateState` + +NewUpdateStateWithDefaults instantiates a new UpdateState 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 + +### GetState + +`func (o *UpdateState) GetState() ArtifactState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *UpdateState) GetStateOk() (*ArtifactState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *UpdateState) SetState(v ArtifactState)` + +SetState sets State 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UserInfo.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UserInfo.md new file mode 100644 index 00000000..d930193b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UserInfo.md @@ -0,0 +1,160 @@ +# UserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Admin** | Pointer to **bool** | | [optional] +**Developer** | Pointer to **bool** | | [optional] +**Viewer** | Pointer to **bool** | | [optional] + +## Methods + +### NewUserInfo + +`func NewUserInfo() *UserInfo` + +NewUserInfo instantiates a new UserInfo 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 + +### NewUserInfoWithDefaults + +`func NewUserInfoWithDefaults() *UserInfo` + +NewUserInfoWithDefaults instantiates a new UserInfo 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 + +### GetUsername + +`func (o *UserInfo) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserInfo) 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 *UserInfo) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *UserInfo) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *UserInfo) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *UserInfo) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *UserInfo) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *UserInfo) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetAdmin + +`func (o *UserInfo) GetAdmin() bool` + +GetAdmin returns the Admin field if non-nil, zero value otherwise. + +### GetAdminOk + +`func (o *UserInfo) GetAdminOk() (*bool, bool)` + +GetAdminOk returns a tuple with the Admin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdmin + +`func (o *UserInfo) SetAdmin(v bool)` + +SetAdmin sets Admin field to given value. + +### HasAdmin + +`func (o *UserInfo) HasAdmin() bool` + +HasAdmin returns a boolean if a field has been set. + +### GetDeveloper + +`func (o *UserInfo) GetDeveloper() bool` + +GetDeveloper returns the Developer field if non-nil, zero value otherwise. + +### GetDeveloperOk + +`func (o *UserInfo) GetDeveloperOk() (*bool, bool)` + +GetDeveloperOk returns a tuple with the Developer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeveloper + +`func (o *UserInfo) SetDeveloper(v bool)` + +SetDeveloper sets Developer field to given value. + +### HasDeveloper + +`func (o *UserInfo) HasDeveloper() bool` + +HasDeveloper returns a boolean if a field has been set. + +### GetViewer + +`func (o *UserInfo) GetViewer() bool` + +GetViewer returns the Viewer field if non-nil, zero value otherwise. + +### GetViewerOk + +`func (o *UserInfo) GetViewerOk() (*bool, bool)` + +GetViewerOk returns a tuple with the Viewer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewer + +`func (o *UserInfo) SetViewer(v bool)` + +SetViewer sets Viewer field to given value. + +### HasViewer + +`func (o *UserInfo) HasViewer() bool` + +HasViewer 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UsersApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UsersApi.md new file mode 100644 index 00000000..ad4b1172 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/UsersApi.md @@ -0,0 +1,70 @@ +# \UsersApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCurrentUserInfo**](UsersApi.md#GetCurrentUserInfo) | **Get** /users/me | Get current user + + + +## GetCurrentUserInfo + +> UserInfo GetCurrentUserInfo(ctx).Execute() + +Get current user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.UsersApi.GetCurrentUserInfo(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.GetCurrentUserInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCurrentUserInfo`: UserInfo + fmt.Fprintf(os.Stdout, "Response from `UsersApi.GetCurrentUserInfo`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCurrentUserInfoRequest struct via the builder pattern + + +### Return type + +[**UserInfo**](UserInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionMetaData.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionMetaData.md new file mode 100644 index 00000000..92ce8d77 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionMetaData.md @@ -0,0 +1,333 @@ +# VersionMetaData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CreatedBy** | **string** | | +**CreatedOn** | **string** | | +**Type** | [**ArtifactType**](ArtifactType.md) | | +**GlobalId** | **int64** | | +**State** | Pointer to [**ArtifactState**](ArtifactState.md) | | [optional] +**Id** | **string** | The ID of a single artifact. | +**Labels** | Pointer to **[]string** | | [optional] +**Properties** | Pointer to **map[string]string** | User-defined name-value pairs. Name and value must be strings. | [optional] +**GroupId** | Pointer to **string** | An ID of a single artifact group. | [optional] +**ContentId** | **int64** | | + +## Methods + +### NewVersionMetaData + +`func NewVersionMetaData(version string, createdBy string, createdOn string, type_ ArtifactType, globalId int64, id string, contentId int64, ) *VersionMetaData` + +NewVersionMetaData instantiates a new VersionMetaData 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 + +### NewVersionMetaDataWithDefaults + +`func NewVersionMetaDataWithDefaults() *VersionMetaData` + +NewVersionMetaDataWithDefaults instantiates a new VersionMetaData 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 + +### GetVersion + +`func (o *VersionMetaData) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *VersionMetaData) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *VersionMetaData) SetVersion(v string)` + +SetVersion sets Version field to given value. + + +### GetName + +`func (o *VersionMetaData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VersionMetaData) 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 *VersionMetaData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VersionMetaData) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *VersionMetaData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VersionMetaData) 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 *VersionMetaData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VersionMetaData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *VersionMetaData) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *VersionMetaData) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *VersionMetaData) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetCreatedOn + +`func (o *VersionMetaData) GetCreatedOn() string` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *VersionMetaData) GetCreatedOnOk() (*string, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *VersionMetaData) SetCreatedOn(v string)` + +SetCreatedOn sets CreatedOn field to given value. + + +### GetType + +`func (o *VersionMetaData) GetType() ArtifactType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VersionMetaData) GetTypeOk() (*ArtifactType, 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 *VersionMetaData) SetType(v ArtifactType)` + +SetType sets Type field to given value. + + +### GetGlobalId + +`func (o *VersionMetaData) GetGlobalId() int64` + +GetGlobalId returns the GlobalId field if non-nil, zero value otherwise. + +### GetGlobalIdOk + +`func (o *VersionMetaData) GetGlobalIdOk() (*int64, bool)` + +GetGlobalIdOk returns a tuple with the GlobalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGlobalId + +`func (o *VersionMetaData) SetGlobalId(v int64)` + +SetGlobalId sets GlobalId field to given value. + + +### GetState + +`func (o *VersionMetaData) GetState() ArtifactState` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *VersionMetaData) GetStateOk() (*ArtifactState, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *VersionMetaData) SetState(v ArtifactState)` + +SetState sets State field to given value. + +### HasState + +`func (o *VersionMetaData) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetId + +`func (o *VersionMetaData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VersionMetaData) 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 *VersionMetaData) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLabels + +`func (o *VersionMetaData) GetLabels() []string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *VersionMetaData) GetLabelsOk() (*[]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *VersionMetaData) SetLabels(v []string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *VersionMetaData) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetProperties + +`func (o *VersionMetaData) GetProperties() map[string]string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *VersionMetaData) GetPropertiesOk() (*map[string]string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *VersionMetaData) SetProperties(v map[string]string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *VersionMetaData) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetGroupId + +`func (o *VersionMetaData) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *VersionMetaData) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *VersionMetaData) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + +### HasGroupId + +`func (o *VersionMetaData) HasGroupId() bool` + +HasGroupId returns a boolean if a field has been set. + +### GetContentId + +`func (o *VersionMetaData) GetContentId() int64` + +GetContentId returns the ContentId field if non-nil, zero value otherwise. + +### GetContentIdOk + +`func (o *VersionMetaData) GetContentIdOk() (*int64, bool)` + +GetContentIdOk returns a tuple with the ContentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentId + +`func (o *VersionMetaData) SetContentId(v int64)` + +SetContentId sets ContentId 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionSearchResults.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionSearchResults.md new file mode 100644 index 00000000..0ecc393c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionSearchResults.md @@ -0,0 +1,72 @@ +# VersionSearchResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | The total number of versions that matched the query (may be more than the number of versions returned in the result set). | +**Versions** | [**[]SearchedVersion**](SearchedVersion.md) | The collection of artifact versions returned in the result set. | + +## Methods + +### NewVersionSearchResults + +`func NewVersionSearchResults(count int32, versions []SearchedVersion, ) *VersionSearchResults` + +NewVersionSearchResults instantiates a new VersionSearchResults 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 + +### NewVersionSearchResultsWithDefaults + +`func NewVersionSearchResultsWithDefaults() *VersionSearchResults` + +NewVersionSearchResultsWithDefaults instantiates a new VersionSearchResults 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 + +### GetCount + +`func (o *VersionSearchResults) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *VersionSearchResults) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *VersionSearchResults) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetVersions + +`func (o *VersionSearchResults) GetVersions() []SearchedVersion` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *VersionSearchResults) GetVersionsOk() (*[]SearchedVersion, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *VersionSearchResults) SetVersions(v []SearchedVersion)` + +SetVersions sets Versions 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/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionsApi.md b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionsApi.md new file mode 100644 index 00000000..1e86de39 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/docs/VersionsApi.md @@ -0,0 +1,405 @@ +# \VersionsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateArtifactVersion**](VersionsApi.md#CreateArtifactVersion) | **Post** /groups/{groupId}/artifacts/{artifactId}/versions | Create artifact version +[**GetArtifactVersion**](VersionsApi.md#GetArtifactVersion) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version} | Get artifact version +[**GetArtifactVersionReferences**](VersionsApi.md#GetArtifactVersionReferences) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/references | Get artifact version +[**ListArtifactVersions**](VersionsApi.md#ListArtifactVersions) | **Get** /groups/{groupId}/artifacts/{artifactId}/versions | List artifact versions +[**UpdateArtifactVersionState**](VersionsApi.md#UpdateArtifactVersionState) | **Put** /groups/{groupId}/artifacts/{artifactId}/versions/{version}/state | Update artifact version state + + + +## CreateArtifactVersion + +> VersionMetaData CreateArtifactVersion(ctx, groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).Execute() + +Create artifact version + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + body := interface{}({"openapi":"3.0.2","info":{"title":"Empty API","version":"1.0.7","description":"An example API design using OpenAPI."},"paths":{"/widgets":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"description":"All widgets"}},"summary":"Get widgets"}}},"components":{"schemas":{"Widget":{"title":"Root Type for Widget","description":"A sample data type.","type":"object","properties":{"property-1":{"type":"string"},"property-2":{"type":"boolean"}},"example":{"property-1":"value1","property-2":true}}}}}) // interface{} | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) + xRegistryVersion := "xRegistryVersion_example" // string | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. It must be unique within the artifact. If this is not provided, the server will generate a new, unique version number for this new updated content. (optional) + xRegistryName := "xRegistryName_example" // string | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. (optional) + xRegistryDescription := "xRegistryDescription_example" // string | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. (optional) + xRegistryDescriptionEncoded := "xRegistryDescriptionEncoded_example" // string | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. (optional) + xRegistryNameEncoded := "xRegistryNameEncoded_example" // string | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.VersionsApi.CreateArtifactVersion(context.Background(), groupId, artifactId).Body(body).XRegistryVersion(xRegistryVersion).XRegistryName(xRegistryName).XRegistryDescription(xRegistryDescription).XRegistryDescriptionEncoded(xRegistryDescriptionEncoded).XRegistryNameEncoded(xRegistryNameEncoded).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.CreateArtifactVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateArtifactVersion`: VersionMetaData + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.CreateArtifactVersion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateArtifactVersionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **interface{}** | The content of the artifact version being created or the content and a set of references to other artifacts. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`) | + **xRegistryVersion** | **string** | Specifies the version number of this new version of the artifact content. This would typically be a simple integer or a SemVer value. It must be unique within the artifact. If this is not provided, the server will generate a new, unique version number for this new updated content. | + **xRegistryName** | **string** | Specifies the artifact name of this new version of the artifact content. Name must be ASCII-only string. If this is not provided, the server will extract the name from the artifact content. | + **xRegistryDescription** | **string** | Specifies the artifact description of this new version of the artifact content. Description must be ASCII-only string. If this is not provided, the server will extract the description from the artifact content. | + **xRegistryDescriptionEncoded** | **string** | Specifies the artifact description of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the description from the artifact content. | + **xRegistryNameEncoded** | **string** | Specifies the artifact name of this new version of the artifact content. Value of this must be Base64 encoded string. If this is not provided, the server will extract the name from the artifact content. | + +### Return type + +[**VersionMetaData**](VersionMetaData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactVersion + +> *os.File GetArtifactVersion(ctx, groupId, artifactId, version).Dereference(dereference).Execute() + +Get artifact version + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + dereference := true // bool | Allows the user to specify if the content should be dereferenced when being returned (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.VersionsApi.GetArtifactVersion(context.Background(), groupId, artifactId, version).Dereference(dereference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GetArtifactVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactVersion`: *os.File + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.GetArtifactVersion`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactVersionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **dereference** | **bool** | Allows the user to specify if the content should be dereferenced when being returned | + +### Return type + +[***os.File**](*os.File.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */*, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetArtifactVersionReferences + +> []ArtifactReference GetArtifactVersionReferences(ctx, groupId, artifactId, version).Execute() + +Get artifact version + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.VersionsApi.GetArtifactVersionReferences(context.Background(), groupId, artifactId, version).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GetArtifactVersionReferences``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetArtifactVersionReferences`: []ArtifactReference + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.GetArtifactVersionReferences`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetArtifactVersionReferencesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**[]ArtifactReference**](ArtifactReference.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListArtifactVersions + +> VersionSearchResults ListArtifactVersions(ctx, groupId, artifactId).Offset(offset).Limit(limit).Execute() + +List artifact versions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + offset := int32(56) // int32 | The number of versions to skip before starting to collect the result set. Defaults to 0. (optional) + limit := int32(56) // int32 | The number of versions to return. Defaults to 20. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.VersionsApi.ListArtifactVersions(context.Background(), groupId, artifactId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.ListArtifactVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListArtifactVersions`: VersionSearchResults + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.ListArtifactVersions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListArtifactVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **offset** | **int32** | The number of versions to skip before starting to collect the result set. Defaults to 0. | + **limit** | **int32** | The number of versions to return. Defaults to 20. | + +### Return type + +[**VersionSearchResults**](VersionSearchResults.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateArtifactVersionState + +> UpdateArtifactVersionState(ctx, groupId, artifactId, version).UpdateState(updateState).Execute() + +Update artifact version state + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + groupId := "groupId_example" // string | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. + artifactId := "artifactId_example" // string | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. + version := "version_example" // string | The unique identifier of a specific version of the artifact content. + updateState := *openapiclient.NewUpdateState(openapiclient.ArtifactState("ENABLED")) // UpdateState | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.VersionsApi.UpdateArtifactVersionState(context.Background(), groupId, artifactId, version).UpdateState(updateState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.UpdateArtifactVersionState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts. | +**artifactId** | **string** | The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier. | +**version** | **string** | The unique identifier of a specific version of the artifact content. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateArtifactVersionStateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **updateState** | [**UpdateState**](UpdateState.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/git_push.sh b/app-services-sdk-go/registryinstance/apiv1internal/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/go.mod b/app-services-sdk-go/registryinstance/apiv1internal/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/go.sum b/app-services-sdk-go/registryinstance/apiv1internal/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_meta_data.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_meta_data.go new file mode 100644 index 00000000..8dcd46bf --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_meta_data.go @@ -0,0 +1,589 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ArtifactMetaData struct for ArtifactMetaData +type ArtifactMetaData struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + CreatedBy string `json:"createdBy"` + CreatedOn string `json:"createdOn"` + ModifiedBy string `json:"modifiedBy"` + ModifiedOn string `json:"modifiedOn"` + // The ID of a single artifact. + Id string `json:"id"` + Version string `json:"version"` + Type ArtifactType `json:"type"` + GlobalId int64 `json:"globalId"` + State ArtifactState `json:"state"` + Labels *[]string `json:"labels,omitempty"` + // User-defined name-value pairs. Name and value must be strings. + Properties *map[string]string `json:"properties,omitempty"` + // An ID of a single artifact group. + GroupId *string `json:"groupId,omitempty"` + ContentId int64 `json:"contentId"` + References *[]ArtifactReference `json:"references,omitempty"` +} + +// NewArtifactMetaData instantiates a new ArtifactMetaData 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 NewArtifactMetaData(createdBy string, createdOn string, modifiedBy string, modifiedOn string, id string, version string, type_ ArtifactType, globalId int64, state ArtifactState, contentId int64) *ArtifactMetaData { + this := ArtifactMetaData{} + this.CreatedBy = createdBy + this.CreatedOn = createdOn + this.ModifiedBy = modifiedBy + this.ModifiedOn = modifiedOn + this.Id = id + this.Version = version + this.Type = type_ + this.GlobalId = globalId + this.State = state + this.ContentId = contentId + return &this +} + +// NewArtifactMetaDataWithDefaults instantiates a new ArtifactMetaData 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 NewArtifactMetaDataWithDefaults() *ArtifactMetaData { + this := ArtifactMetaData{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetName() string { + if o == nil || o.Name == nil { + 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 *ArtifactMetaData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ArtifactMetaData) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ArtifactMetaData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ArtifactMetaData) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *ArtifactMetaData) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *ArtifactMetaData) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *ArtifactMetaData) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *ArtifactMetaData) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetModifiedBy returns the ModifiedBy field value +func (o *ArtifactMetaData) GetModifiedBy() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetModifiedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedBy, true +} + +// SetModifiedBy sets field value +func (o *ArtifactMetaData) SetModifiedBy(v string) { + o.ModifiedBy = v +} + +// GetModifiedOn returns the ModifiedOn field value +func (o *ArtifactMetaData) GetModifiedOn() string { + if o == nil { + var ret string + return ret + } + + return o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetModifiedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModifiedOn, true +} + +// SetModifiedOn sets field value +func (o *ArtifactMetaData) SetModifiedOn(v string) { + o.ModifiedOn = v +} + +// GetId returns the Id field value +func (o *ArtifactMetaData) 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 *ArtifactMetaData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ArtifactMetaData) SetId(v string) { + o.Id = v +} + +// GetVersion returns the Version field value +func (o *ArtifactMetaData) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *ArtifactMetaData) SetVersion(v string) { + o.Version = v +} + +// GetType returns the Type field value +func (o *ArtifactMetaData) GetType() ArtifactType { + if o == nil { + var ret ArtifactType + 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 *ArtifactMetaData) GetTypeOk() (*ArtifactType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ArtifactMetaData) SetType(v ArtifactType) { + o.Type = v +} + +// GetGlobalId returns the GlobalId field value +func (o *ArtifactMetaData) GetGlobalId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.GlobalId +} + +// GetGlobalIdOk returns a tuple with the GlobalId field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetGlobalIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.GlobalId, true +} + +// SetGlobalId sets field value +func (o *ArtifactMetaData) SetGlobalId(v int64) { + o.GlobalId = v +} + +// GetState returns the State field value +func (o *ArtifactMetaData) GetState() ArtifactState { + if o == nil { + var ret ArtifactState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetStateOk() (*ArtifactState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *ArtifactMetaData) SetState(v ArtifactState) { + o.State = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *ArtifactMetaData) SetLabels(v []string) { + o.Labels = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetProperties() map[string]string { + if o == nil || o.Properties == nil { + var ret map[string]string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetPropertiesOk() (*map[string]string, bool) { + if o == nil || o.Properties == nil { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasProperties() bool { + if o != nil && o.Properties != nil { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field. +func (o *ArtifactMetaData) SetProperties(v map[string]string) { + o.Properties = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetGroupId() string { + if o == nil || o.GroupId == nil { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetGroupIdOk() (*string, bool) { + if o == nil || o.GroupId == nil { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasGroupId() bool { + if o != nil && o.GroupId != nil { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *ArtifactMetaData) SetGroupId(v string) { + o.GroupId = &v +} + +// GetContentId returns the ContentId field value +func (o *ArtifactMetaData) GetContentId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ContentId +} + +// GetContentIdOk returns a tuple with the ContentId field value +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetContentIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ContentId, true +} + +// SetContentId sets field value +func (o *ArtifactMetaData) SetContentId(v int64) { + o.ContentId = v +} + +// GetReferences returns the References field value if set, zero value otherwise. +func (o *ArtifactMetaData) GetReferences() []ArtifactReference { + if o == nil || o.References == nil { + var ret []ArtifactReference + return ret + } + return *o.References +} + +// GetReferencesOk returns a tuple with the References field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactMetaData) GetReferencesOk() (*[]ArtifactReference, bool) { + if o == nil || o.References == nil { + return nil, false + } + return o.References, true +} + +// HasReferences returns a boolean if a field has been set. +func (o *ArtifactMetaData) HasReferences() bool { + if o != nil && o.References != nil { + return true + } + + return false +} + +// SetReferences gets a reference to the given []ArtifactReference and assigns it to the References field. +func (o *ArtifactMetaData) SetReferences(v []ArtifactReference) { + o.References = &v +} + +func (o ArtifactMetaData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["modifiedBy"] = o.ModifiedBy + } + if true { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["version"] = o.Version + } + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["globalId"] = o.GlobalId + } + if true { + toSerialize["state"] = o.State + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Properties != nil { + toSerialize["properties"] = o.Properties + } + if o.GroupId != nil { + toSerialize["groupId"] = o.GroupId + } + if true { + toSerialize["contentId"] = o.ContentId + } + if o.References != nil { + toSerialize["references"] = o.References + } + return json.Marshal(toSerialize) +} + +type NullableArtifactMetaData struct { + value *ArtifactMetaData + isSet bool +} + +func (v NullableArtifactMetaData) Get() *ArtifactMetaData { + return v.value +} + +func (v *NullableArtifactMetaData) Set(val *ArtifactMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactMetaData(val *ArtifactMetaData) *NullableArtifactMetaData { + return &NullableArtifactMetaData{value: val, isSet: true} +} + +func (v NullableArtifactMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_owner.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_owner.go new file mode 100644 index 00000000..5cffc0ad --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_owner.go @@ -0,0 +1,116 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ArtifactOwner Describes the ownership of an artifact. +type ArtifactOwner struct { + Owner *string `json:"owner,omitempty"` +} + +// NewArtifactOwner instantiates a new ArtifactOwner 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 NewArtifactOwner() *ArtifactOwner { + this := ArtifactOwner{} + return &this +} + +// NewArtifactOwnerWithDefaults instantiates a new ArtifactOwner 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 NewArtifactOwnerWithDefaults() *ArtifactOwner { + this := ArtifactOwner{} + return &this +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ArtifactOwner) GetOwner() string { + if o == nil || o.Owner == nil { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactOwner) GetOwnerOk() (*string, bool) { + if o == nil || o.Owner == nil { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ArtifactOwner) HasOwner() bool { + if o != nil && o.Owner != nil { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *ArtifactOwner) SetOwner(v string) { + o.Owner = &v +} + +func (o ArtifactOwner) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Owner != nil { + toSerialize["owner"] = o.Owner + } + return json.Marshal(toSerialize) +} + +type NullableArtifactOwner struct { + value *ArtifactOwner + isSet bool +} + +func (v NullableArtifactOwner) Get() *ArtifactOwner { + return v.value +} + +func (v *NullableArtifactOwner) Set(val *ArtifactOwner) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactOwner) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactOwner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactOwner(val *ArtifactOwner) *NullableArtifactOwner { + return &NullableArtifactOwner{value: val, isSet: true} +} + +func (v NullableArtifactOwner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactOwner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_reference.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_reference.go new file mode 100644 index 00000000..ba8b508a --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_reference.go @@ -0,0 +1,203 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ArtifactReference A reference to a different artifact. Typically used with artifact types that can have dependencies like Protobuf. +type ArtifactReference struct { + GroupId string `json:"groupId"` + ArtifactId string `json:"artifactId"` + Version *string `json:"version,omitempty"` + Name string `json:"name"` +} + +// NewArtifactReference instantiates a new ArtifactReference 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 NewArtifactReference(groupId string, artifactId string, name string) *ArtifactReference { + this := ArtifactReference{} + this.GroupId = groupId + this.ArtifactId = artifactId + this.Name = name + return &this +} + +// NewArtifactReferenceWithDefaults instantiates a new ArtifactReference 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 NewArtifactReferenceWithDefaults() *ArtifactReference { + this := ArtifactReference{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *ArtifactReference) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *ArtifactReference) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *ArtifactReference) SetGroupId(v string) { + o.GroupId = v +} + +// GetArtifactId returns the ArtifactId field value +func (o *ArtifactReference) GetArtifactId() string { + if o == nil { + var ret string + return ret + } + + return o.ArtifactId +} + +// GetArtifactIdOk returns a tuple with the ArtifactId field value +// and a boolean to check if the value has been set. +func (o *ArtifactReference) GetArtifactIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ArtifactId, true +} + +// SetArtifactId sets field value +func (o *ArtifactReference) SetArtifactId(v string) { + o.ArtifactId = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ArtifactReference) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ArtifactReference) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ArtifactReference) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ArtifactReference) SetVersion(v string) { + o.Version = &v +} + +// GetName returns the Name field value +func (o *ArtifactReference) 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 *ArtifactReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ArtifactReference) SetName(v string) { + o.Name = v +} + +func (o ArtifactReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["groupId"] = o.GroupId + } + if true { + toSerialize["artifactId"] = o.ArtifactId + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableArtifactReference struct { + value *ArtifactReference + isSet bool +} + +func (v NullableArtifactReference) Get() *ArtifactReference { + return v.value +} + +func (v *NullableArtifactReference) Set(val *ArtifactReference) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactReference) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactReference(val *ArtifactReference) *NullableArtifactReference { + return &NullableArtifactReference{value: val, isSet: true} +} + +func (v NullableArtifactReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_search_results.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_search_results.go new file mode 100644 index 00000000..86814c45 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_search_results.go @@ -0,0 +1,140 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ArtifactSearchResults Describes the response received when searching for artifacts. +type ArtifactSearchResults struct { + // The artifacts returned in the result set. + Artifacts []SearchedArtifact `json:"artifacts"` + // The total number of artifacts that matched the query that produced the result set (may be more than the number of artifacts in the result set). + Count int32 `json:"count"` +} + +// NewArtifactSearchResults instantiates a new ArtifactSearchResults 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 NewArtifactSearchResults(artifacts []SearchedArtifact, count int32) *ArtifactSearchResults { + this := ArtifactSearchResults{} + this.Artifacts = artifacts + this.Count = count + return &this +} + +// NewArtifactSearchResultsWithDefaults instantiates a new ArtifactSearchResults 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 NewArtifactSearchResultsWithDefaults() *ArtifactSearchResults { + this := ArtifactSearchResults{} + return &this +} + +// GetArtifacts returns the Artifacts field value +func (o *ArtifactSearchResults) GetArtifacts() []SearchedArtifact { + if o == nil { + var ret []SearchedArtifact + return ret + } + + return o.Artifacts +} + +// GetArtifactsOk returns a tuple with the Artifacts field value +// and a boolean to check if the value has been set. +func (o *ArtifactSearchResults) GetArtifactsOk() (*[]SearchedArtifact, bool) { + if o == nil { + return nil, false + } + return &o.Artifacts, true +} + +// SetArtifacts sets field value +func (o *ArtifactSearchResults) SetArtifacts(v []SearchedArtifact) { + o.Artifacts = v +} + +// GetCount returns the Count field value +func (o *ArtifactSearchResults) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ArtifactSearchResults) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ArtifactSearchResults) SetCount(v int32) { + o.Count = v +} + +func (o ArtifactSearchResults) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["artifacts"] = o.Artifacts + } + if true { + toSerialize["count"] = o.Count + } + return json.Marshal(toSerialize) +} + +type NullableArtifactSearchResults struct { + value *ArtifactSearchResults + isSet bool +} + +func (v NullableArtifactSearchResults) Get() *ArtifactSearchResults { + return v.value +} + +func (v *NullableArtifactSearchResults) Set(val *ArtifactSearchResults) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactSearchResults) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactSearchResults) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactSearchResults(val *ArtifactSearchResults) *NullableArtifactSearchResults { + return &NullableArtifactSearchResults{value: val, isSet: true} +} + +func (v NullableArtifactSearchResults) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactSearchResults) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_state.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_state.go new file mode 100644 index 00000000..958c9800 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_state.go @@ -0,0 +1,113 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// ArtifactState Describes the state of an artifact or artifact version. The following states are possible: * ENABLED * DISABLED * DEPRECATED +type ArtifactState string + +// List of ArtifactState +const ( + ARTIFACTSTATE_ENABLED ArtifactState = "ENABLED" + ARTIFACTSTATE_DISABLED ArtifactState = "DISABLED" + ARTIFACTSTATE_DEPRECATED ArtifactState = "DEPRECATED" +) + +var allowedArtifactStateEnumValues = []ArtifactState{ + "ENABLED", + "DISABLED", + "DEPRECATED", +} + +func (v *ArtifactState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ArtifactState(value) + for _, existing := range allowedArtifactStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ArtifactState", value) +} + +// NewArtifactStateFromValue returns a pointer to a valid ArtifactState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewArtifactStateFromValue(v string) (*ArtifactState, error) { + ev := ArtifactState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ArtifactState: valid values are %v", v, allowedArtifactStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ArtifactState) IsValid() bool { + for _, existing := range allowedArtifactStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ArtifactState value +func (v ArtifactState) Ptr() *ArtifactState { + return &v +} + +type NullableArtifactState struct { + value *ArtifactState + isSet bool +} + +func (v NullableArtifactState) Get() *ArtifactState { + return v.value +} + +func (v *NullableArtifactState) Set(val *ArtifactState) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactState) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactState(val *ArtifactState) *NullableArtifactState { + return &NullableArtifactState{value: val, isSet: true} +} + +func (v NullableArtifactState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_type.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_type.go new file mode 100644 index 00000000..84d6e81b --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_artifact_type.go @@ -0,0 +1,127 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// ArtifactType the model 'ArtifactType' +type ArtifactType string + +// List of ArtifactType +const ( + ARTIFACTTYPE_AVRO ArtifactType = "AVRO" + ARTIFACTTYPE_PROTOBUF ArtifactType = "PROTOBUF" + ARTIFACTTYPE_JSON ArtifactType = "JSON" + ARTIFACTTYPE_OPENAPI ArtifactType = "OPENAPI" + ARTIFACTTYPE_ASYNCAPI ArtifactType = "ASYNCAPI" + ARTIFACTTYPE_GRAPHQL ArtifactType = "GRAPHQL" + ARTIFACTTYPE_KCONNECT ArtifactType = "KCONNECT" + ARTIFACTTYPE_WSDL ArtifactType = "WSDL" + ARTIFACTTYPE_XSD ArtifactType = "XSD" + ARTIFACTTYPE_XML ArtifactType = "XML" +) + +var allowedArtifactTypeEnumValues = []ArtifactType{ + "AVRO", + "PROTOBUF", + "JSON", + "OPENAPI", + "ASYNCAPI", + "GRAPHQL", + "KCONNECT", + "WSDL", + "XSD", + "XML", +} + +func (v *ArtifactType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ArtifactType(value) + for _, existing := range allowedArtifactTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ArtifactType", value) +} + +// NewArtifactTypeFromValue returns a pointer to a valid ArtifactType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewArtifactTypeFromValue(v string) (*ArtifactType, error) { + ev := ArtifactType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ArtifactType: valid values are %v", v, allowedArtifactTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ArtifactType) IsValid() bool { + for _, existing := range allowedArtifactTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ArtifactType value +func (v ArtifactType) Ptr() *ArtifactType { + return &v +} + +type NullableArtifactType struct { + value *ArtifactType + isSet bool +} + +func (v NullableArtifactType) Get() *ArtifactType { + return v.value +} + +func (v *NullableArtifactType) Set(val *ArtifactType) { + v.value = val + v.isSet = true +} + +func (v NullableArtifactType) IsSet() bool { + return v.isSet +} + +func (v *NullableArtifactType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableArtifactType(val *ArtifactType) *NullableArtifactType { + return &NullableArtifactType{value: val, isSet: true} +} + +func (v NullableArtifactType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableArtifactType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_configuration_property.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_configuration_property.go new file mode 100644 index 00000000..e9accefd --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_configuration_property.go @@ -0,0 +1,225 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ConfigurationProperty struct for ConfigurationProperty +type ConfigurationProperty struct { + Name string `json:"name"` + Value string `json:"value"` + Type string `json:"type"` + Label string `json:"label"` + Description string `json:"description"` +} + +// NewConfigurationProperty instantiates a new ConfigurationProperty 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 NewConfigurationProperty(name string, value string, type_ string, label string, description string) *ConfigurationProperty { + this := ConfigurationProperty{} + this.Name = name + this.Value = value + this.Type = type_ + this.Label = label + this.Description = description + return &this +} + +// NewConfigurationPropertyWithDefaults instantiates a new ConfigurationProperty 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 NewConfigurationPropertyWithDefaults() *ConfigurationProperty { + this := ConfigurationProperty{} + return &this +} + +// GetName returns the Name field value +func (o *ConfigurationProperty) 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 *ConfigurationProperty) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ConfigurationProperty) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *ConfigurationProperty) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ConfigurationProperty) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ConfigurationProperty) SetValue(v string) { + o.Value = v +} + +// GetType returns the Type field value +func (o *ConfigurationProperty) GetType() string { + if o == nil { + var ret string + 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 *ConfigurationProperty) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ConfigurationProperty) SetType(v string) { + o.Type = v +} + +// GetLabel returns the Label field value +func (o *ConfigurationProperty) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *ConfigurationProperty) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *ConfigurationProperty) SetLabel(v string) { + o.Label = v +} + +// GetDescription returns the Description field value +func (o *ConfigurationProperty) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ConfigurationProperty) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ConfigurationProperty) SetDescription(v string) { + o.Description = v +} + +func (o ConfigurationProperty) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["value"] = o.Value + } + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["label"] = o.Label + } + if true { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableConfigurationProperty struct { + value *ConfigurationProperty + isSet bool +} + +func (v NullableConfigurationProperty) Get() *ConfigurationProperty { + return v.value +} + +func (v *NullableConfigurationProperty) Set(val *ConfigurationProperty) { + v.value = val + v.isSet = true +} + +func (v NullableConfigurationProperty) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigurationProperty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigurationProperty(val *ConfigurationProperty) *NullableConfigurationProperty { + return &NullableConfigurationProperty{value: val, isSet: true} +} + +func (v NullableConfigurationProperty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigurationProperty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_content_create_request.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_content_create_request.go new file mode 100644 index 00000000..f2c17c9d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_content_create_request.go @@ -0,0 +1,140 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// ContentCreateRequest struct for ContentCreateRequest +type ContentCreateRequest struct { + // Raw content of the artifact or a valid (and accessible) URL where the content can be found. + Content string `json:"content"` + // Collection of references to other artifacts. + References []ArtifactReference `json:"references"` +} + +// NewContentCreateRequest instantiates a new ContentCreateRequest 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 NewContentCreateRequest(content string, references []ArtifactReference) *ContentCreateRequest { + this := ContentCreateRequest{} + this.Content = content + this.References = references + return &this +} + +// NewContentCreateRequestWithDefaults instantiates a new ContentCreateRequest 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 NewContentCreateRequestWithDefaults() *ContentCreateRequest { + this := ContentCreateRequest{} + return &this +} + +// GetContent returns the Content field value +func (o *ContentCreateRequest) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *ContentCreateRequest) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *ContentCreateRequest) SetContent(v string) { + o.Content = v +} + +// GetReferences returns the References field value +func (o *ContentCreateRequest) GetReferences() []ArtifactReference { + if o == nil { + var ret []ArtifactReference + return ret + } + + return o.References +} + +// GetReferencesOk returns a tuple with the References field value +// and a boolean to check if the value has been set. +func (o *ContentCreateRequest) GetReferencesOk() (*[]ArtifactReference, bool) { + if o == nil { + return nil, false + } + return &o.References, true +} + +// SetReferences sets field value +func (o *ContentCreateRequest) SetReferences(v []ArtifactReference) { + o.References = v +} + +func (o ContentCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["content"] = o.Content + } + if true { + toSerialize["references"] = o.References + } + return json.Marshal(toSerialize) +} + +type NullableContentCreateRequest struct { + value *ContentCreateRequest + isSet bool +} + +func (v NullableContentCreateRequest) Get() *ContentCreateRequest { + return v.value +} + +func (v *NullableContentCreateRequest) Set(val *ContentCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableContentCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableContentCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableContentCreateRequest(val *ContentCreateRequest) *NullableContentCreateRequest { + return &NullableContentCreateRequest{value: val, isSet: true} +} + +func (v NullableContentCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableContentCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_download_ref.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_download_ref.go new file mode 100644 index 00000000..4d12fb06 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_download_ref.go @@ -0,0 +1,145 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// DownloadRef Models a download \"link\". Useful for browser use-cases. +type DownloadRef struct { + DownloadId string `json:"downloadId"` + Href *string `json:"href,omitempty"` +} + +// NewDownloadRef instantiates a new DownloadRef 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 NewDownloadRef(downloadId string) *DownloadRef { + this := DownloadRef{} + this.DownloadId = downloadId + return &this +} + +// NewDownloadRefWithDefaults instantiates a new DownloadRef 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 NewDownloadRefWithDefaults() *DownloadRef { + this := DownloadRef{} + return &this +} + +// GetDownloadId returns the DownloadId field value +func (o *DownloadRef) GetDownloadId() string { + if o == nil { + var ret string + return ret + } + + return o.DownloadId +} + +// GetDownloadIdOk returns a tuple with the DownloadId field value +// and a boolean to check if the value has been set. +func (o *DownloadRef) GetDownloadIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DownloadId, true +} + +// SetDownloadId sets field value +func (o *DownloadRef) SetDownloadId(v string) { + o.DownloadId = v +} + +// GetHref returns the Href field value if set, zero value otherwise. +func (o *DownloadRef) GetHref() string { + if o == nil || o.Href == nil { + var ret string + return ret + } + return *o.Href +} + +// GetHrefOk returns a tuple with the Href field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DownloadRef) GetHrefOk() (*string, bool) { + if o == nil || o.Href == nil { + return nil, false + } + return o.Href, true +} + +// HasHref returns a boolean if a field has been set. +func (o *DownloadRef) HasHref() bool { + if o != nil && o.Href != nil { + return true + } + + return false +} + +// SetHref gets a reference to the given string and assigns it to the Href field. +func (o *DownloadRef) SetHref(v string) { + o.Href = &v +} + +func (o DownloadRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["downloadId"] = o.DownloadId + } + if o.Href != nil { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableDownloadRef struct { + value *DownloadRef + isSet bool +} + +func (v NullableDownloadRef) Get() *DownloadRef { + return v.value +} + +func (v *NullableDownloadRef) Set(val *DownloadRef) { + v.value = val + v.isSet = true +} + +func (v NullableDownloadRef) IsSet() bool { + return v.isSet +} + +func (v *NullableDownloadRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDownloadRef(val *DownloadRef) *NullableDownloadRef { + return &NullableDownloadRef{value: val, isSet: true} +} + +func (v NullableDownloadRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDownloadRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_editable_meta_data.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_editable_meta_data.go new file mode 100644 index 00000000..3906cc39 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_editable_meta_data.go @@ -0,0 +1,225 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// EditableMetaData struct for EditableMetaData +type EditableMetaData struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Labels *[]string `json:"labels,omitempty"` + // User-defined name-value pairs. Name and value must be strings. + Properties *map[string]string `json:"properties,omitempty"` +} + +// NewEditableMetaData instantiates a new EditableMetaData 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 NewEditableMetaData() *EditableMetaData { + this := EditableMetaData{} + return &this +} + +// NewEditableMetaDataWithDefaults instantiates a new EditableMetaData 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 NewEditableMetaDataWithDefaults() *EditableMetaData { + this := EditableMetaData{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *EditableMetaData) GetName() string { + if o == nil || o.Name == nil { + 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 *EditableMetaData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *EditableMetaData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *EditableMetaData) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *EditableMetaData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *EditableMetaData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *EditableMetaData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *EditableMetaData) SetDescription(v string) { + o.Description = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *EditableMetaData) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EditableMetaData) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *EditableMetaData) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *EditableMetaData) SetLabels(v []string) { + o.Labels = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *EditableMetaData) GetProperties() map[string]string { + if o == nil || o.Properties == nil { + var ret map[string]string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EditableMetaData) GetPropertiesOk() (*map[string]string, bool) { + if o == nil || o.Properties == nil { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *EditableMetaData) HasProperties() bool { + if o != nil && o.Properties != nil { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field. +func (o *EditableMetaData) SetProperties(v map[string]string) { + o.Properties = &v +} + +func (o EditableMetaData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Properties != nil { + toSerialize["properties"] = o.Properties + } + return json.Marshal(toSerialize) +} + +type NullableEditableMetaData struct { + value *EditableMetaData + isSet bool +} + +func (v NullableEditableMetaData) Get() *EditableMetaData { + return v.value +} + +func (v *NullableEditableMetaData) Set(val *EditableMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableEditableMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableEditableMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEditableMetaData(val *EditableMetaData) *NullableEditableMetaData { + return &NullableEditableMetaData{value: val, isSet: true} +} + +func (v NullableEditableMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEditableMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_error.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_error.go new file mode 100644 index 00000000..0d98e648 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_error.go @@ -0,0 +1,228 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// Error All error responses, whether `4xx` or `5xx` will include one of these as the response body. +type Error struct { + // The short error message. + Message *string `json:"message,omitempty"` + // The server-side error code. + ErrorCode *int32 `json:"error_code,omitempty"` + // Full details about the error. This might contain a server stack trace, for example. + Detail *string `json:"detail,omitempty"` + // The error name - typically the classname of the exception thrown by the server. + Name *string `json:"name,omitempty"` +} + +// NewError instantiates a new Error 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 NewError() *Error { + this := Error{} + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *Error) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *Error) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *Error) SetMessage(v string) { + o.Message = &v +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *Error) GetErrorCode() int32 { + if o == nil || o.ErrorCode == nil { + var ret int32 + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetErrorCodeOk() (*int32, bool) { + if o == nil || o.ErrorCode == nil { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *Error) HasErrorCode() bool { + if o != nil && o.ErrorCode != nil { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given int32 and assigns it to the ErrorCode field. +func (o *Error) SetErrorCode(v int32) { + o.ErrorCode = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *Error) GetDetail() string { + if o == nil || o.Detail == nil { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetDetailOk() (*string, bool) { + if o == nil || o.Detail == nil { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *Error) HasDetail() bool { + if o != nil && o.Detail != nil { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *Error) SetDetail(v string) { + o.Detail = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Error) GetName() string { + if o == nil || o.Name == nil { + 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 *Error) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Error) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Error) SetName(v string) { + o.Name = &v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ErrorCode != nil { + toSerialize["error_code"] = o.ErrorCode + } + if o.Detail != nil { + toSerialize["detail"] = o.Detail + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_if_exists.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_if_exists.go new file mode 100644 index 00000000..aee526c8 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_if_exists.go @@ -0,0 +1,115 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// IfExists the model 'IfExists' +type IfExists string + +// List of IfExists +const ( + IFEXISTS_FAIL IfExists = "FAIL" + IFEXISTS_UPDATE IfExists = "UPDATE" + IFEXISTS_RETURN IfExists = "RETURN" + IFEXISTS_RETURN_OR_UPDATE IfExists = "RETURN_OR_UPDATE" +) + +var allowedIfExistsEnumValues = []IfExists{ + "FAIL", + "UPDATE", + "RETURN", + "RETURN_OR_UPDATE", +} + +func (v *IfExists) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IfExists(value) + for _, existing := range allowedIfExistsEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IfExists", value) +} + +// NewIfExistsFromValue returns a pointer to a valid IfExists +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIfExistsFromValue(v string) (*IfExists, error) { + ev := IfExists(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IfExists: valid values are %v", v, allowedIfExistsEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IfExists) IsValid() bool { + for _, existing := range allowedIfExistsEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IfExists value +func (v IfExists) Ptr() *IfExists { + return &v +} + +type NullableIfExists struct { + value *IfExists + isSet bool +} + +func (v NullableIfExists) Get() *IfExists { + return v.value +} + +func (v *NullableIfExists) Set(val *IfExists) { + v.value = val + v.isSet = true +} + +func (v NullableIfExists) IsSet() bool { + return v.isSet +} + +func (v *NullableIfExists) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIfExists(val *IfExists) *NullableIfExists { + return &NullableIfExists{value: val, isSet: true} +} + +func (v NullableIfExists) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIfExists) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_limits.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_limits.go new file mode 100644 index 00000000..37b64ea7 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_limits.go @@ -0,0 +1,512 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// Limits List of limitations on used resources, that are applied on the current instance of Registry. Keys represent the resource type and are suffixed by the corresponding unit. Values are integers. Only non-negative values are allowed, with the exception of -1, which means that the limit is not applied. +type Limits struct { + MaxTotalSchemasCount *int64 `json:"maxTotalSchemasCount,omitempty"` + MaxSchemaSizeBytes *int64 `json:"maxSchemaSizeBytes,omitempty"` + MaxArtifactsCount *int64 `json:"maxArtifactsCount,omitempty"` + MaxVersionsPerArtifactCount *int64 `json:"maxVersionsPerArtifactCount,omitempty"` + MaxArtifactPropertiesCount *int64 `json:"maxArtifactPropertiesCount,omitempty"` + MaxPropertyKeySizeBytes *int64 `json:"maxPropertyKeySizeBytes,omitempty"` + MaxPropertyValueSizeBytes *int64 `json:"maxPropertyValueSizeBytes,omitempty"` + MaxArtifactLabelsCount *int64 `json:"maxArtifactLabelsCount,omitempty"` + MaxLabelSizeBytes *int64 `json:"maxLabelSizeBytes,omitempty"` + MaxArtifactNameLengthChars *int64 `json:"maxArtifactNameLengthChars,omitempty"` + MaxArtifactDescriptionLengthChars *int64 `json:"maxArtifactDescriptionLengthChars,omitempty"` + MaxRequestsPerSecondCount *int64 `json:"maxRequestsPerSecondCount,omitempty"` +} + +// NewLimits instantiates a new Limits 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 NewLimits() *Limits { + this := Limits{} + return &this +} + +// NewLimitsWithDefaults instantiates a new Limits 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 NewLimitsWithDefaults() *Limits { + this := Limits{} + return &this +} + +// GetMaxTotalSchemasCount returns the MaxTotalSchemasCount field value if set, zero value otherwise. +func (o *Limits) GetMaxTotalSchemasCount() int64 { + if o == nil || o.MaxTotalSchemasCount == nil { + var ret int64 + return ret + } + return *o.MaxTotalSchemasCount +} + +// GetMaxTotalSchemasCountOk returns a tuple with the MaxTotalSchemasCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxTotalSchemasCountOk() (*int64, bool) { + if o == nil || o.MaxTotalSchemasCount == nil { + return nil, false + } + return o.MaxTotalSchemasCount, true +} + +// HasMaxTotalSchemasCount returns a boolean if a field has been set. +func (o *Limits) HasMaxTotalSchemasCount() bool { + if o != nil && o.MaxTotalSchemasCount != nil { + return true + } + + return false +} + +// SetMaxTotalSchemasCount gets a reference to the given int64 and assigns it to the MaxTotalSchemasCount field. +func (o *Limits) SetMaxTotalSchemasCount(v int64) { + o.MaxTotalSchemasCount = &v +} + +// GetMaxSchemaSizeBytes returns the MaxSchemaSizeBytes field value if set, zero value otherwise. +func (o *Limits) GetMaxSchemaSizeBytes() int64 { + if o == nil || o.MaxSchemaSizeBytes == nil { + var ret int64 + return ret + } + return *o.MaxSchemaSizeBytes +} + +// GetMaxSchemaSizeBytesOk returns a tuple with the MaxSchemaSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxSchemaSizeBytesOk() (*int64, bool) { + if o == nil || o.MaxSchemaSizeBytes == nil { + return nil, false + } + return o.MaxSchemaSizeBytes, true +} + +// HasMaxSchemaSizeBytes returns a boolean if a field has been set. +func (o *Limits) HasMaxSchemaSizeBytes() bool { + if o != nil && o.MaxSchemaSizeBytes != nil { + return true + } + + return false +} + +// SetMaxSchemaSizeBytes gets a reference to the given int64 and assigns it to the MaxSchemaSizeBytes field. +func (o *Limits) SetMaxSchemaSizeBytes(v int64) { + o.MaxSchemaSizeBytes = &v +} + +// GetMaxArtifactsCount returns the MaxArtifactsCount field value if set, zero value otherwise. +func (o *Limits) GetMaxArtifactsCount() int64 { + if o == nil || o.MaxArtifactsCount == nil { + var ret int64 + return ret + } + return *o.MaxArtifactsCount +} + +// GetMaxArtifactsCountOk returns a tuple with the MaxArtifactsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxArtifactsCountOk() (*int64, bool) { + if o == nil || o.MaxArtifactsCount == nil { + return nil, false + } + return o.MaxArtifactsCount, true +} + +// HasMaxArtifactsCount returns a boolean if a field has been set. +func (o *Limits) HasMaxArtifactsCount() bool { + if o != nil && o.MaxArtifactsCount != nil { + return true + } + + return false +} + +// SetMaxArtifactsCount gets a reference to the given int64 and assigns it to the MaxArtifactsCount field. +func (o *Limits) SetMaxArtifactsCount(v int64) { + o.MaxArtifactsCount = &v +} + +// GetMaxVersionsPerArtifactCount returns the MaxVersionsPerArtifactCount field value if set, zero value otherwise. +func (o *Limits) GetMaxVersionsPerArtifactCount() int64 { + if o == nil || o.MaxVersionsPerArtifactCount == nil { + var ret int64 + return ret + } + return *o.MaxVersionsPerArtifactCount +} + +// GetMaxVersionsPerArtifactCountOk returns a tuple with the MaxVersionsPerArtifactCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxVersionsPerArtifactCountOk() (*int64, bool) { + if o == nil || o.MaxVersionsPerArtifactCount == nil { + return nil, false + } + return o.MaxVersionsPerArtifactCount, true +} + +// HasMaxVersionsPerArtifactCount returns a boolean if a field has been set. +func (o *Limits) HasMaxVersionsPerArtifactCount() bool { + if o != nil && o.MaxVersionsPerArtifactCount != nil { + return true + } + + return false +} + +// SetMaxVersionsPerArtifactCount gets a reference to the given int64 and assigns it to the MaxVersionsPerArtifactCount field. +func (o *Limits) SetMaxVersionsPerArtifactCount(v int64) { + o.MaxVersionsPerArtifactCount = &v +} + +// GetMaxArtifactPropertiesCount returns the MaxArtifactPropertiesCount field value if set, zero value otherwise. +func (o *Limits) GetMaxArtifactPropertiesCount() int64 { + if o == nil || o.MaxArtifactPropertiesCount == nil { + var ret int64 + return ret + } + return *o.MaxArtifactPropertiesCount +} + +// GetMaxArtifactPropertiesCountOk returns a tuple with the MaxArtifactPropertiesCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxArtifactPropertiesCountOk() (*int64, bool) { + if o == nil || o.MaxArtifactPropertiesCount == nil { + return nil, false + } + return o.MaxArtifactPropertiesCount, true +} + +// HasMaxArtifactPropertiesCount returns a boolean if a field has been set. +func (o *Limits) HasMaxArtifactPropertiesCount() bool { + if o != nil && o.MaxArtifactPropertiesCount != nil { + return true + } + + return false +} + +// SetMaxArtifactPropertiesCount gets a reference to the given int64 and assigns it to the MaxArtifactPropertiesCount field. +func (o *Limits) SetMaxArtifactPropertiesCount(v int64) { + o.MaxArtifactPropertiesCount = &v +} + +// GetMaxPropertyKeySizeBytes returns the MaxPropertyKeySizeBytes field value if set, zero value otherwise. +func (o *Limits) GetMaxPropertyKeySizeBytes() int64 { + if o == nil || o.MaxPropertyKeySizeBytes == nil { + var ret int64 + return ret + } + return *o.MaxPropertyKeySizeBytes +} + +// GetMaxPropertyKeySizeBytesOk returns a tuple with the MaxPropertyKeySizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxPropertyKeySizeBytesOk() (*int64, bool) { + if o == nil || o.MaxPropertyKeySizeBytes == nil { + return nil, false + } + return o.MaxPropertyKeySizeBytes, true +} + +// HasMaxPropertyKeySizeBytes returns a boolean if a field has been set. +func (o *Limits) HasMaxPropertyKeySizeBytes() bool { + if o != nil && o.MaxPropertyKeySizeBytes != nil { + return true + } + + return false +} + +// SetMaxPropertyKeySizeBytes gets a reference to the given int64 and assigns it to the MaxPropertyKeySizeBytes field. +func (o *Limits) SetMaxPropertyKeySizeBytes(v int64) { + o.MaxPropertyKeySizeBytes = &v +} + +// GetMaxPropertyValueSizeBytes returns the MaxPropertyValueSizeBytes field value if set, zero value otherwise. +func (o *Limits) GetMaxPropertyValueSizeBytes() int64 { + if o == nil || o.MaxPropertyValueSizeBytes == nil { + var ret int64 + return ret + } + return *o.MaxPropertyValueSizeBytes +} + +// GetMaxPropertyValueSizeBytesOk returns a tuple with the MaxPropertyValueSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxPropertyValueSizeBytesOk() (*int64, bool) { + if o == nil || o.MaxPropertyValueSizeBytes == nil { + return nil, false + } + return o.MaxPropertyValueSizeBytes, true +} + +// HasMaxPropertyValueSizeBytes returns a boolean if a field has been set. +func (o *Limits) HasMaxPropertyValueSizeBytes() bool { + if o != nil && o.MaxPropertyValueSizeBytes != nil { + return true + } + + return false +} + +// SetMaxPropertyValueSizeBytes gets a reference to the given int64 and assigns it to the MaxPropertyValueSizeBytes field. +func (o *Limits) SetMaxPropertyValueSizeBytes(v int64) { + o.MaxPropertyValueSizeBytes = &v +} + +// GetMaxArtifactLabelsCount returns the MaxArtifactLabelsCount field value if set, zero value otherwise. +func (o *Limits) GetMaxArtifactLabelsCount() int64 { + if o == nil || o.MaxArtifactLabelsCount == nil { + var ret int64 + return ret + } + return *o.MaxArtifactLabelsCount +} + +// GetMaxArtifactLabelsCountOk returns a tuple with the MaxArtifactLabelsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxArtifactLabelsCountOk() (*int64, bool) { + if o == nil || o.MaxArtifactLabelsCount == nil { + return nil, false + } + return o.MaxArtifactLabelsCount, true +} + +// HasMaxArtifactLabelsCount returns a boolean if a field has been set. +func (o *Limits) HasMaxArtifactLabelsCount() bool { + if o != nil && o.MaxArtifactLabelsCount != nil { + return true + } + + return false +} + +// SetMaxArtifactLabelsCount gets a reference to the given int64 and assigns it to the MaxArtifactLabelsCount field. +func (o *Limits) SetMaxArtifactLabelsCount(v int64) { + o.MaxArtifactLabelsCount = &v +} + +// GetMaxLabelSizeBytes returns the MaxLabelSizeBytes field value if set, zero value otherwise. +func (o *Limits) GetMaxLabelSizeBytes() int64 { + if o == nil || o.MaxLabelSizeBytes == nil { + var ret int64 + return ret + } + return *o.MaxLabelSizeBytes +} + +// GetMaxLabelSizeBytesOk returns a tuple with the MaxLabelSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxLabelSizeBytesOk() (*int64, bool) { + if o == nil || o.MaxLabelSizeBytes == nil { + return nil, false + } + return o.MaxLabelSizeBytes, true +} + +// HasMaxLabelSizeBytes returns a boolean if a field has been set. +func (o *Limits) HasMaxLabelSizeBytes() bool { + if o != nil && o.MaxLabelSizeBytes != nil { + return true + } + + return false +} + +// SetMaxLabelSizeBytes gets a reference to the given int64 and assigns it to the MaxLabelSizeBytes field. +func (o *Limits) SetMaxLabelSizeBytes(v int64) { + o.MaxLabelSizeBytes = &v +} + +// GetMaxArtifactNameLengthChars returns the MaxArtifactNameLengthChars field value if set, zero value otherwise. +func (o *Limits) GetMaxArtifactNameLengthChars() int64 { + if o == nil || o.MaxArtifactNameLengthChars == nil { + var ret int64 + return ret + } + return *o.MaxArtifactNameLengthChars +} + +// GetMaxArtifactNameLengthCharsOk returns a tuple with the MaxArtifactNameLengthChars field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxArtifactNameLengthCharsOk() (*int64, bool) { + if o == nil || o.MaxArtifactNameLengthChars == nil { + return nil, false + } + return o.MaxArtifactNameLengthChars, true +} + +// HasMaxArtifactNameLengthChars returns a boolean if a field has been set. +func (o *Limits) HasMaxArtifactNameLengthChars() bool { + if o != nil && o.MaxArtifactNameLengthChars != nil { + return true + } + + return false +} + +// SetMaxArtifactNameLengthChars gets a reference to the given int64 and assigns it to the MaxArtifactNameLengthChars field. +func (o *Limits) SetMaxArtifactNameLengthChars(v int64) { + o.MaxArtifactNameLengthChars = &v +} + +// GetMaxArtifactDescriptionLengthChars returns the MaxArtifactDescriptionLengthChars field value if set, zero value otherwise. +func (o *Limits) GetMaxArtifactDescriptionLengthChars() int64 { + if o == nil || o.MaxArtifactDescriptionLengthChars == nil { + var ret int64 + return ret + } + return *o.MaxArtifactDescriptionLengthChars +} + +// GetMaxArtifactDescriptionLengthCharsOk returns a tuple with the MaxArtifactDescriptionLengthChars field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxArtifactDescriptionLengthCharsOk() (*int64, bool) { + if o == nil || o.MaxArtifactDescriptionLengthChars == nil { + return nil, false + } + return o.MaxArtifactDescriptionLengthChars, true +} + +// HasMaxArtifactDescriptionLengthChars returns a boolean if a field has been set. +func (o *Limits) HasMaxArtifactDescriptionLengthChars() bool { + if o != nil && o.MaxArtifactDescriptionLengthChars != nil { + return true + } + + return false +} + +// SetMaxArtifactDescriptionLengthChars gets a reference to the given int64 and assigns it to the MaxArtifactDescriptionLengthChars field. +func (o *Limits) SetMaxArtifactDescriptionLengthChars(v int64) { + o.MaxArtifactDescriptionLengthChars = &v +} + +// GetMaxRequestsPerSecondCount returns the MaxRequestsPerSecondCount field value if set, zero value otherwise. +func (o *Limits) GetMaxRequestsPerSecondCount() int64 { + if o == nil || o.MaxRequestsPerSecondCount == nil { + var ret int64 + return ret + } + return *o.MaxRequestsPerSecondCount +} + +// GetMaxRequestsPerSecondCountOk returns a tuple with the MaxRequestsPerSecondCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Limits) GetMaxRequestsPerSecondCountOk() (*int64, bool) { + if o == nil || o.MaxRequestsPerSecondCount == nil { + return nil, false + } + return o.MaxRequestsPerSecondCount, true +} + +// HasMaxRequestsPerSecondCount returns a boolean if a field has been set. +func (o *Limits) HasMaxRequestsPerSecondCount() bool { + if o != nil && o.MaxRequestsPerSecondCount != nil { + return true + } + + return false +} + +// SetMaxRequestsPerSecondCount gets a reference to the given int64 and assigns it to the MaxRequestsPerSecondCount field. +func (o *Limits) SetMaxRequestsPerSecondCount(v int64) { + o.MaxRequestsPerSecondCount = &v +} + +func (o Limits) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.MaxTotalSchemasCount != nil { + toSerialize["maxTotalSchemasCount"] = o.MaxTotalSchemasCount + } + if o.MaxSchemaSizeBytes != nil { + toSerialize["maxSchemaSizeBytes"] = o.MaxSchemaSizeBytes + } + if o.MaxArtifactsCount != nil { + toSerialize["maxArtifactsCount"] = o.MaxArtifactsCount + } + if o.MaxVersionsPerArtifactCount != nil { + toSerialize["maxVersionsPerArtifactCount"] = o.MaxVersionsPerArtifactCount + } + if o.MaxArtifactPropertiesCount != nil { + toSerialize["maxArtifactPropertiesCount"] = o.MaxArtifactPropertiesCount + } + if o.MaxPropertyKeySizeBytes != nil { + toSerialize["maxPropertyKeySizeBytes"] = o.MaxPropertyKeySizeBytes + } + if o.MaxPropertyValueSizeBytes != nil { + toSerialize["maxPropertyValueSizeBytes"] = o.MaxPropertyValueSizeBytes + } + if o.MaxArtifactLabelsCount != nil { + toSerialize["maxArtifactLabelsCount"] = o.MaxArtifactLabelsCount + } + if o.MaxLabelSizeBytes != nil { + toSerialize["maxLabelSizeBytes"] = o.MaxLabelSizeBytes + } + if o.MaxArtifactNameLengthChars != nil { + toSerialize["maxArtifactNameLengthChars"] = o.MaxArtifactNameLengthChars + } + if o.MaxArtifactDescriptionLengthChars != nil { + toSerialize["maxArtifactDescriptionLengthChars"] = o.MaxArtifactDescriptionLengthChars + } + if o.MaxRequestsPerSecondCount != nil { + toSerialize["maxRequestsPerSecondCount"] = o.MaxRequestsPerSecondCount + } + return json.Marshal(toSerialize) +} + +type NullableLimits struct { + value *Limits + isSet bool +} + +func (v NullableLimits) Get() *Limits { + return v.value +} + +func (v *NullableLimits) Set(val *Limits) { + v.value = val + v.isSet = true +} + +func (v NullableLimits) IsSet() bool { + return v.isSet +} + +func (v *NullableLimits) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLimits(val *Limits) *NullableLimits { + return &NullableLimits{value: val, isSet: true} +} + +func (v NullableLimits) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLimits) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_configuration.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_configuration.go new file mode 100644 index 00000000..b54ac650 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_configuration.go @@ -0,0 +1,109 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// LogConfiguration struct for LogConfiguration +type LogConfiguration struct { + Level LogLevel `json:"level"` +} + +// NewLogConfiguration instantiates a new LogConfiguration 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 NewLogConfiguration(level LogLevel) *LogConfiguration { + this := LogConfiguration{} + this.Level = level + return &this +} + +// NewLogConfigurationWithDefaults instantiates a new LogConfiguration 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 NewLogConfigurationWithDefaults() *LogConfiguration { + this := LogConfiguration{} + return &this +} + +// GetLevel returns the Level field value +func (o *LogConfiguration) GetLevel() LogLevel { + if o == nil { + var ret LogLevel + return ret + } + + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value +// and a boolean to check if the value has been set. +func (o *LogConfiguration) GetLevelOk() (*LogLevel, bool) { + if o == nil { + return nil, false + } + return &o.Level, true +} + +// SetLevel sets field value +func (o *LogConfiguration) SetLevel(v LogLevel) { + o.Level = v +} + +func (o LogConfiguration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["level"] = o.Level + } + return json.Marshal(toSerialize) +} + +type NullableLogConfiguration struct { + value *LogConfiguration + isSet bool +} + +func (v NullableLogConfiguration) Get() *LogConfiguration { + return v.value +} + +func (v *NullableLogConfiguration) Set(val *LogConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableLogConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableLogConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogConfiguration(val *LogConfiguration) *NullableLogConfiguration { + return &NullableLogConfiguration{value: val, isSet: true} +} + +func (v NullableLogConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_level.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_level.go new file mode 100644 index 00000000..f958da58 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_log_level.go @@ -0,0 +1,129 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// LogLevel the model 'LogLevel' +type LogLevel string + +// List of LogLevel +const ( + LOGLEVEL_DEBUG LogLevel = "DEBUG" + LOGLEVEL_TRACE LogLevel = "TRACE" + LOGLEVEL_WARN LogLevel = "WARN" + LOGLEVEL_ERROR LogLevel = "ERROR" + LOGLEVEL_SEVERE LogLevel = "SEVERE" + LOGLEVEL_WARNING LogLevel = "WARNING" + LOGLEVEL_INFO LogLevel = "INFO" + LOGLEVEL_CONFIG LogLevel = "CONFIG" + LOGLEVEL_FINE LogLevel = "FINE" + LOGLEVEL_FINER LogLevel = "FINER" + LOGLEVEL_FINEST LogLevel = "FINEST" +) + +var allowedLogLevelEnumValues = []LogLevel{ + "DEBUG", + "TRACE", + "WARN", + "ERROR", + "SEVERE", + "WARNING", + "INFO", + "CONFIG", + "FINE", + "FINER", + "FINEST", +} + +func (v *LogLevel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LogLevel(value) + for _, existing := range allowedLogLevelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LogLevel", value) +} + +// NewLogLevelFromValue returns a pointer to a valid LogLevel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLogLevelFromValue(v string) (*LogLevel, error) { + ev := LogLevel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LogLevel: valid values are %v", v, allowedLogLevelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LogLevel) IsValid() bool { + for _, existing := range allowedLogLevelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to LogLevel value +func (v LogLevel) Ptr() *LogLevel { + return &v +} + +type NullableLogLevel struct { + value *LogLevel + isSet bool +} + +func (v NullableLogLevel) Get() *LogLevel { + return v.value +} + +func (v *NullableLogLevel) Set(val *LogLevel) { + v.value = val + v.isSet = true +} + +func (v NullableLogLevel) IsSet() bool { + return v.isSet +} + +func (v *NullableLogLevel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLogLevel(val *LogLevel) *NullableLogLevel { + return &NullableLogLevel{value: val, isSet: true} +} + +func (v NullableLogLevel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLogLevel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration.go new file mode 100644 index 00000000..8dda4b01 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration.go @@ -0,0 +1,138 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// NamedLogConfiguration struct for NamedLogConfiguration +type NamedLogConfiguration struct { + Name string `json:"name"` + Level LogLevel `json:"level"` +} + +// NewNamedLogConfiguration instantiates a new NamedLogConfiguration 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 NewNamedLogConfiguration(name string, level LogLevel) *NamedLogConfiguration { + this := NamedLogConfiguration{} + this.Name = name + this.Level = level + return &this +} + +// NewNamedLogConfigurationWithDefaults instantiates a new NamedLogConfiguration 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 NewNamedLogConfigurationWithDefaults() *NamedLogConfiguration { + this := NamedLogConfiguration{} + return &this +} + +// GetName returns the Name field value +func (o *NamedLogConfiguration) 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 *NamedLogConfiguration) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NamedLogConfiguration) SetName(v string) { + o.Name = v +} + +// GetLevel returns the Level field value +func (o *NamedLogConfiguration) GetLevel() LogLevel { + if o == nil { + var ret LogLevel + return ret + } + + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value +// and a boolean to check if the value has been set. +func (o *NamedLogConfiguration) GetLevelOk() (*LogLevel, bool) { + if o == nil { + return nil, false + } + return &o.Level, true +} + +// SetLevel sets field value +func (o *NamedLogConfiguration) SetLevel(v LogLevel) { + o.Level = v +} + +func (o NamedLogConfiguration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["level"] = o.Level + } + return json.Marshal(toSerialize) +} + +type NullableNamedLogConfiguration struct { + value *NamedLogConfiguration + isSet bool +} + +func (v NullableNamedLogConfiguration) Get() *NamedLogConfiguration { + return v.value +} + +func (v *NullableNamedLogConfiguration) Set(val *NamedLogConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableNamedLogConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableNamedLogConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNamedLogConfiguration(val *NamedLogConfiguration) *NullableNamedLogConfiguration { + return &NullableNamedLogConfiguration{value: val, isSet: true} +} + +func (v NullableNamedLogConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNamedLogConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go new file mode 100644 index 00000000..0dfe8f1e --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_named_log_configuration_all_of.go @@ -0,0 +1,109 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// NamedLogConfigurationAllOf struct for NamedLogConfigurationAllOf +type NamedLogConfigurationAllOf struct { + Name string `json:"name"` +} + +// NewNamedLogConfigurationAllOf instantiates a new NamedLogConfigurationAllOf 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 NewNamedLogConfigurationAllOf(name string) *NamedLogConfigurationAllOf { + this := NamedLogConfigurationAllOf{} + this.Name = name + return &this +} + +// NewNamedLogConfigurationAllOfWithDefaults instantiates a new NamedLogConfigurationAllOf 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 NewNamedLogConfigurationAllOfWithDefaults() *NamedLogConfigurationAllOf { + this := NamedLogConfigurationAllOf{} + return &this +} + +// GetName returns the Name field value +func (o *NamedLogConfigurationAllOf) 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 *NamedLogConfigurationAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NamedLogConfigurationAllOf) SetName(v string) { + o.Name = v +} + +func (o NamedLogConfigurationAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableNamedLogConfigurationAllOf struct { + value *NamedLogConfigurationAllOf + isSet bool +} + +func (v NullableNamedLogConfigurationAllOf) Get() *NamedLogConfigurationAllOf { + return v.value +} + +func (v *NullableNamedLogConfigurationAllOf) Set(val *NamedLogConfigurationAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableNamedLogConfigurationAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableNamedLogConfigurationAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNamedLogConfigurationAllOf(val *NamedLogConfigurationAllOf) *NullableNamedLogConfigurationAllOf { + return &NullableNamedLogConfigurationAllOf{value: val, isSet: true} +} + +func (v NullableNamedLogConfigurationAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNamedLogConfigurationAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_mapping.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_mapping.go new file mode 100644 index 00000000..c664a995 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_mapping.go @@ -0,0 +1,175 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// RoleMapping The mapping between a user/principal and their role. +type RoleMapping struct { + PrincipalId string `json:"principalId"` + Role RoleType `json:"role"` + // A friendly name for the principal. + PrincipalName *string `json:"principalName,omitempty"` +} + +// NewRoleMapping instantiates a new RoleMapping 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 NewRoleMapping(principalId string, role RoleType) *RoleMapping { + this := RoleMapping{} + this.PrincipalId = principalId + this.Role = role + return &this +} + +// NewRoleMappingWithDefaults instantiates a new RoleMapping 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 NewRoleMappingWithDefaults() *RoleMapping { + this := RoleMapping{} + return &this +} + +// GetPrincipalId returns the PrincipalId field value +func (o *RoleMapping) GetPrincipalId() string { + if o == nil { + var ret string + return ret + } + + return o.PrincipalId +} + +// GetPrincipalIdOk returns a tuple with the PrincipalId field value +// and a boolean to check if the value has been set. +func (o *RoleMapping) GetPrincipalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrincipalId, true +} + +// SetPrincipalId sets field value +func (o *RoleMapping) SetPrincipalId(v string) { + o.PrincipalId = v +} + +// GetRole returns the Role field value +func (o *RoleMapping) GetRole() RoleType { + if o == nil { + var ret RoleType + return ret + } + + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *RoleMapping) GetRoleOk() (*RoleType, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *RoleMapping) SetRole(v RoleType) { + o.Role = v +} + +// GetPrincipalName returns the PrincipalName field value if set, zero value otherwise. +func (o *RoleMapping) GetPrincipalName() string { + if o == nil || o.PrincipalName == nil { + var ret string + return ret + } + return *o.PrincipalName +} + +// GetPrincipalNameOk returns a tuple with the PrincipalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleMapping) GetPrincipalNameOk() (*string, bool) { + if o == nil || o.PrincipalName == nil { + return nil, false + } + return o.PrincipalName, true +} + +// HasPrincipalName returns a boolean if a field has been set. +func (o *RoleMapping) HasPrincipalName() bool { + if o != nil && o.PrincipalName != nil { + return true + } + + return false +} + +// SetPrincipalName gets a reference to the given string and assigns it to the PrincipalName field. +func (o *RoleMapping) SetPrincipalName(v string) { + o.PrincipalName = &v +} + +func (o RoleMapping) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["principalId"] = o.PrincipalId + } + if true { + toSerialize["role"] = o.Role + } + if o.PrincipalName != nil { + toSerialize["principalName"] = o.PrincipalName + } + return json.Marshal(toSerialize) +} + +type NullableRoleMapping struct { + value *RoleMapping + isSet bool +} + +func (v NullableRoleMapping) Get() *RoleMapping { + return v.value +} + +func (v *NullableRoleMapping) Set(val *RoleMapping) { + v.value = val + v.isSet = true +} + +func (v NullableRoleMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleMapping(val *RoleMapping) *NullableRoleMapping { + return &NullableRoleMapping{value: val, isSet: true} +} + +func (v NullableRoleMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_type.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_type.go new file mode 100644 index 00000000..494d9a77 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_role_type.go @@ -0,0 +1,113 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// RoleType the model 'RoleType' +type RoleType string + +// List of RoleType +const ( + ROLETYPE_READ_ONLY RoleType = "READ_ONLY" + ROLETYPE_DEVELOPER RoleType = "DEVELOPER" + ROLETYPE_ADMIN RoleType = "ADMIN" +) + +var allowedRoleTypeEnumValues = []RoleType{ + "READ_ONLY", + "DEVELOPER", + "ADMIN", +} + +func (v *RoleType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RoleType(value) + for _, existing := range allowedRoleTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RoleType", value) +} + +// NewRoleTypeFromValue returns a pointer to a valid RoleType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRoleTypeFromValue(v string) (*RoleType, error) { + ev := RoleType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RoleType: valid values are %v", v, allowedRoleTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RoleType) IsValid() bool { + for _, existing := range allowedRoleTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RoleType value +func (v RoleType) Ptr() *RoleType { + return &v +} + +type NullableRoleType struct { + value *RoleType + isSet bool +} + +func (v NullableRoleType) Get() *RoleType { + return v.value +} + +func (v *NullableRoleType) Set(val *RoleType) { + v.value = val + v.isSet = true +} + +func (v NullableRoleType) IsSet() bool { + return v.isSet +} + +func (v *NullableRoleType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRoleType(val *RoleType) *NullableRoleType { + return &NullableRoleType{value: val, isSet: true} +} + +func (v NullableRoleType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRoleType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule.go new file mode 100644 index 00000000..6aaf1d5d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule.go @@ -0,0 +1,145 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// Rule struct for Rule +type Rule struct { + Config string `json:"config"` + Type *RuleType `json:"type,omitempty"` +} + +// NewRule instantiates a new Rule 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 NewRule(config string) *Rule { + this := Rule{} + this.Config = config + return &this +} + +// NewRuleWithDefaults instantiates a new Rule 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 NewRuleWithDefaults() *Rule { + this := Rule{} + return &this +} + +// GetConfig returns the Config field value +func (o *Rule) GetConfig() string { + if o == nil { + var ret string + return ret + } + + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value +// and a boolean to check if the value has been set. +func (o *Rule) GetConfigOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Config, true +} + +// SetConfig sets field value +func (o *Rule) SetConfig(v string) { + o.Config = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Rule) GetType() RuleType { + if o == nil || o.Type == nil { + var ret RuleType + 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 *Rule) GetTypeOk() (*RuleType, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Rule) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given RuleType and assigns it to the Type field. +func (o *Rule) SetType(v RuleType) { + o.Type = &v +} + +func (o Rule) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["config"] = o.Config + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableRule struct { + value *Rule + isSet bool +} + +func (v NullableRule) Get() *Rule { + return v.value +} + +func (v *NullableRule) Set(val *Rule) { + v.value = val + v.isSet = true +} + +func (v NullableRule) IsSet() bool { + return v.isSet +} + +func (v *NullableRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRule(val *Rule) *NullableRule { + return &NullableRule{value: val, isSet: true} +} + +func (v NullableRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_type.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_type.go new file mode 100644 index 00000000..8f63aa00 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_type.go @@ -0,0 +1,111 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// RuleType the model 'RuleType' +type RuleType string + +// List of RuleType +const ( + RULETYPE_VALIDITY RuleType = "VALIDITY" + RULETYPE_COMPATIBILITY RuleType = "COMPATIBILITY" +) + +var allowedRuleTypeEnumValues = []RuleType{ + "VALIDITY", + "COMPATIBILITY", +} + +func (v *RuleType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RuleType(value) + for _, existing := range allowedRuleTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RuleType", value) +} + +// NewRuleTypeFromValue returns a pointer to a valid RuleType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRuleTypeFromValue(v string) (*RuleType, error) { + ev := RuleType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RuleType: valid values are %v", v, allowedRuleTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RuleType) IsValid() bool { + for _, existing := range allowedRuleTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RuleType value +func (v RuleType) Ptr() *RuleType { + return &v +} + +type NullableRuleType struct { + value *RuleType + isSet bool +} + +func (v NullableRuleType) Get() *RuleType { + return v.value +} + +func (v *NullableRuleType) Set(val *RuleType) { + v.value = val + v.isSet = true +} + +func (v NullableRuleType) IsSet() bool { + return v.isSet +} + +func (v *NullableRuleType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRuleType(val *RuleType) *NullableRuleType { + return &NullableRuleType{value: val, isSet: true} +} + +func (v NullableRuleType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRuleType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_cause.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_cause.go new file mode 100644 index 00000000..df7684fd --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_cause.go @@ -0,0 +1,152 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// RuleViolationCause struct for RuleViolationCause +type RuleViolationCause struct { + Description *string `json:"description,omitempty"` + Context *string `json:"context,omitempty"` +} + +// NewRuleViolationCause instantiates a new RuleViolationCause 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 NewRuleViolationCause() *RuleViolationCause { + this := RuleViolationCause{} + return &this +} + +// NewRuleViolationCauseWithDefaults instantiates a new RuleViolationCause 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 NewRuleViolationCauseWithDefaults() *RuleViolationCause { + this := RuleViolationCause{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RuleViolationCause) GetDescription() string { + if o == nil || o.Description == nil { + 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 *RuleViolationCause) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RuleViolationCause) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RuleViolationCause) SetDescription(v string) { + o.Description = &v +} + +// GetContext returns the Context field value if set, zero value otherwise. +func (o *RuleViolationCause) GetContext() string { + if o == nil || o.Context == nil { + var ret string + return ret + } + return *o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RuleViolationCause) GetContextOk() (*string, bool) { + if o == nil || o.Context == nil { + return nil, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *RuleViolationCause) HasContext() bool { + if o != nil && o.Context != nil { + return true + } + + return false +} + +// SetContext gets a reference to the given string and assigns it to the Context field. +func (o *RuleViolationCause) SetContext(v string) { + o.Context = &v +} + +func (o RuleViolationCause) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Context != nil { + toSerialize["context"] = o.Context + } + return json.Marshal(toSerialize) +} + +type NullableRuleViolationCause struct { + value *RuleViolationCause + isSet bool +} + +func (v NullableRuleViolationCause) Get() *RuleViolationCause { + return v.value +} + +func (v *NullableRuleViolationCause) Set(val *RuleViolationCause) { + v.value = val + v.isSet = true +} + +func (v NullableRuleViolationCause) IsSet() bool { + return v.isSet +} + +func (v *NullableRuleViolationCause) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRuleViolationCause(val *RuleViolationCause) *NullableRuleViolationCause { + return &NullableRuleViolationCause{value: val, isSet: true} +} + +func (v NullableRuleViolationCause) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRuleViolationCause) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error.go new file mode 100644 index 00000000..217ffabd --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error.go @@ -0,0 +1,258 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// RuleViolationError All error responses, whether `4xx` or `5xx` will include one of these as the response body. +type RuleViolationError struct { + // List of rule violation causes. + Causes []RuleViolationCause `json:"causes"` + // The short error message. + Message *string `json:"message,omitempty"` + // The server-side error code. + ErrorCode *int32 `json:"error_code,omitempty"` + // Full details about the error. This might contain a server stack trace, for example. + Detail *string `json:"detail,omitempty"` + // The error name - typically the classname of the exception thrown by the server. + Name *string `json:"name,omitempty"` +} + +// NewRuleViolationError instantiates a new RuleViolationError 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 NewRuleViolationError(causes []RuleViolationCause) *RuleViolationError { + this := RuleViolationError{} + this.Causes = causes + return &this +} + +// NewRuleViolationErrorWithDefaults instantiates a new RuleViolationError 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 NewRuleViolationErrorWithDefaults() *RuleViolationError { + this := RuleViolationError{} + return &this +} + +// GetCauses returns the Causes field value +func (o *RuleViolationError) GetCauses() []RuleViolationCause { + if o == nil { + var ret []RuleViolationCause + return ret + } + + return o.Causes +} + +// GetCausesOk returns a tuple with the Causes field value +// and a boolean to check if the value has been set. +func (o *RuleViolationError) GetCausesOk() (*[]RuleViolationCause, bool) { + if o == nil { + return nil, false + } + return &o.Causes, true +} + +// SetCauses sets field value +func (o *RuleViolationError) SetCauses(v []RuleViolationCause) { + o.Causes = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *RuleViolationError) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RuleViolationError) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *RuleViolationError) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *RuleViolationError) SetMessage(v string) { + o.Message = &v +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *RuleViolationError) GetErrorCode() int32 { + if o == nil || o.ErrorCode == nil { + var ret int32 + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RuleViolationError) GetErrorCodeOk() (*int32, bool) { + if o == nil || o.ErrorCode == nil { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *RuleViolationError) HasErrorCode() bool { + if o != nil && o.ErrorCode != nil { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given int32 and assigns it to the ErrorCode field. +func (o *RuleViolationError) SetErrorCode(v int32) { + o.ErrorCode = &v +} + +// GetDetail returns the Detail field value if set, zero value otherwise. +func (o *RuleViolationError) GetDetail() string { + if o == nil || o.Detail == nil { + var ret string + return ret + } + return *o.Detail +} + +// GetDetailOk returns a tuple with the Detail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RuleViolationError) GetDetailOk() (*string, bool) { + if o == nil || o.Detail == nil { + return nil, false + } + return o.Detail, true +} + +// HasDetail returns a boolean if a field has been set. +func (o *RuleViolationError) HasDetail() bool { + if o != nil && o.Detail != nil { + return true + } + + return false +} + +// SetDetail gets a reference to the given string and assigns it to the Detail field. +func (o *RuleViolationError) SetDetail(v string) { + o.Detail = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *RuleViolationError) GetName() string { + if o == nil || o.Name == nil { + 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 *RuleViolationError) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *RuleViolationError) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *RuleViolationError) SetName(v string) { + o.Name = &v +} + +func (o RuleViolationError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["causes"] = o.Causes + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ErrorCode != nil { + toSerialize["error_code"] = o.ErrorCode + } + if o.Detail != nil { + toSerialize["detail"] = o.Detail + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableRuleViolationError struct { + value *RuleViolationError + isSet bool +} + +func (v NullableRuleViolationError) Get() *RuleViolationError { + return v.value +} + +func (v *NullableRuleViolationError) Set(val *RuleViolationError) { + v.value = val + v.isSet = true +} + +func (v NullableRuleViolationError) IsSet() bool { + return v.isSet +} + +func (v *NullableRuleViolationError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRuleViolationError(val *RuleViolationError) *NullableRuleViolationError { + return &NullableRuleViolationError{value: val, isSet: true} +} + +func (v NullableRuleViolationError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRuleViolationError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go new file mode 100644 index 00000000..d5fd7da7 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_rule_violation_error_all_of.go @@ -0,0 +1,110 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// RuleViolationErrorAllOf struct for RuleViolationErrorAllOf +type RuleViolationErrorAllOf struct { + // List of rule violation causes. + Causes []RuleViolationCause `json:"causes"` +} + +// NewRuleViolationErrorAllOf instantiates a new RuleViolationErrorAllOf 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 NewRuleViolationErrorAllOf(causes []RuleViolationCause) *RuleViolationErrorAllOf { + this := RuleViolationErrorAllOf{} + this.Causes = causes + return &this +} + +// NewRuleViolationErrorAllOfWithDefaults instantiates a new RuleViolationErrorAllOf 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 NewRuleViolationErrorAllOfWithDefaults() *RuleViolationErrorAllOf { + this := RuleViolationErrorAllOf{} + return &this +} + +// GetCauses returns the Causes field value +func (o *RuleViolationErrorAllOf) GetCauses() []RuleViolationCause { + if o == nil { + var ret []RuleViolationCause + return ret + } + + return o.Causes +} + +// GetCausesOk returns a tuple with the Causes field value +// and a boolean to check if the value has been set. +func (o *RuleViolationErrorAllOf) GetCausesOk() (*[]RuleViolationCause, bool) { + if o == nil { + return nil, false + } + return &o.Causes, true +} + +// SetCauses sets field value +func (o *RuleViolationErrorAllOf) SetCauses(v []RuleViolationCause) { + o.Causes = v +} + +func (o RuleViolationErrorAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["causes"] = o.Causes + } + return json.Marshal(toSerialize) +} + +type NullableRuleViolationErrorAllOf struct { + value *RuleViolationErrorAllOf + isSet bool +} + +func (v NullableRuleViolationErrorAllOf) Get() *RuleViolationErrorAllOf { + return v.value +} + +func (v *NullableRuleViolationErrorAllOf) Set(val *RuleViolationErrorAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRuleViolationErrorAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRuleViolationErrorAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRuleViolationErrorAllOf(val *RuleViolationErrorAllOf) *NullableRuleViolationErrorAllOf { + return &NullableRuleViolationErrorAllOf{value: val, isSet: true} +} + +func (v NullableRuleViolationErrorAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRuleViolationErrorAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_artifact.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_artifact.go new file mode 100644 index 00000000..414ce2f2 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_artifact.go @@ -0,0 +1,443 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// SearchedArtifact Models a single artifact from the result set returned when searching for artifacts. +type SearchedArtifact struct { + // The ID of a single artifact. + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + CreatedOn string `json:"createdOn"` + CreatedBy string `json:"createdBy"` + Type ArtifactType `json:"type"` + Labels *[]string `json:"labels,omitempty"` + State ArtifactState `json:"state"` + ModifiedOn *string `json:"modifiedOn,omitempty"` + ModifiedBy *string `json:"modifiedBy,omitempty"` + // An ID of a single artifact group. + GroupId *string `json:"groupId,omitempty"` +} + +// NewSearchedArtifact instantiates a new SearchedArtifact 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 NewSearchedArtifact(id string, createdOn string, createdBy string, type_ ArtifactType, state ArtifactState) *SearchedArtifact { + this := SearchedArtifact{} + this.Id = id + this.CreatedOn = createdOn + this.CreatedBy = createdBy + this.Type = type_ + this.State = state + return &this +} + +// NewSearchedArtifactWithDefaults instantiates a new SearchedArtifact 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 NewSearchedArtifactWithDefaults() *SearchedArtifact { + this := SearchedArtifact{} + return &this +} + +// GetId returns the Id field value +func (o *SearchedArtifact) 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 *SearchedArtifact) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SearchedArtifact) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SearchedArtifact) GetName() string { + if o == nil || o.Name == nil { + 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 *SearchedArtifact) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SearchedArtifact) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SearchedArtifact) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SearchedArtifact) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SearchedArtifact) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SearchedArtifact) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SearchedArtifact) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *SearchedArtifact) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *SearchedArtifact) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *SearchedArtifact) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *SearchedArtifact) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetType returns the Type field value +func (o *SearchedArtifact) GetType() ArtifactType { + if o == nil { + var ret ArtifactType + 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 *SearchedArtifact) GetTypeOk() (*ArtifactType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *SearchedArtifact) SetType(v ArtifactType) { + o.Type = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *SearchedArtifact) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *SearchedArtifact) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *SearchedArtifact) SetLabels(v []string) { + o.Labels = &v +} + +// GetState returns the State field value +func (o *SearchedArtifact) GetState() ArtifactState { + if o == nil { + var ret ArtifactState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetStateOk() (*ArtifactState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *SearchedArtifact) SetState(v ArtifactState) { + o.State = v +} + +// GetModifiedOn returns the ModifiedOn field value if set, zero value otherwise. +func (o *SearchedArtifact) GetModifiedOn() string { + if o == nil || o.ModifiedOn == nil { + var ret string + return ret + } + return *o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetModifiedOnOk() (*string, bool) { + if o == nil || o.ModifiedOn == nil { + return nil, false + } + return o.ModifiedOn, true +} + +// HasModifiedOn returns a boolean if a field has been set. +func (o *SearchedArtifact) HasModifiedOn() bool { + if o != nil && o.ModifiedOn != nil { + return true + } + + return false +} + +// SetModifiedOn gets a reference to the given string and assigns it to the ModifiedOn field. +func (o *SearchedArtifact) SetModifiedOn(v string) { + o.ModifiedOn = &v +} + +// GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise. +func (o *SearchedArtifact) GetModifiedBy() string { + if o == nil || o.ModifiedBy == nil { + var ret string + return ret + } + return *o.ModifiedBy +} + +// GetModifiedByOk returns a tuple with the ModifiedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetModifiedByOk() (*string, bool) { + if o == nil || o.ModifiedBy == nil { + return nil, false + } + return o.ModifiedBy, true +} + +// HasModifiedBy returns a boolean if a field has been set. +func (o *SearchedArtifact) HasModifiedBy() bool { + if o != nil && o.ModifiedBy != nil { + return true + } + + return false +} + +// SetModifiedBy gets a reference to the given string and assigns it to the ModifiedBy field. +func (o *SearchedArtifact) SetModifiedBy(v string) { + o.ModifiedBy = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *SearchedArtifact) GetGroupId() string { + if o == nil || o.GroupId == nil { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedArtifact) GetGroupIdOk() (*string, bool) { + if o == nil || o.GroupId == nil { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *SearchedArtifact) HasGroupId() bool { + if o != nil && o.GroupId != nil { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *SearchedArtifact) SetGroupId(v string) { + o.GroupId = &v +} + +func (o SearchedArtifact) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["type"] = o.Type + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if true { + toSerialize["state"] = o.State + } + if o.ModifiedOn != nil { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if o.ModifiedBy != nil { + toSerialize["modifiedBy"] = o.ModifiedBy + } + if o.GroupId != nil { + toSerialize["groupId"] = o.GroupId + } + return json.Marshal(toSerialize) +} + +type NullableSearchedArtifact struct { + value *SearchedArtifact + isSet bool +} + +func (v NullableSearchedArtifact) Get() *SearchedArtifact { + return v.value +} + +func (v *NullableSearchedArtifact) Set(val *SearchedArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableSearchedArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchedArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchedArtifact(val *SearchedArtifact) *NullableSearchedArtifact { + return &NullableSearchedArtifact{value: val, isSet: true} +} + +func (v NullableSearchedArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchedArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_version.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_version.go new file mode 100644 index 00000000..afde7074 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_searched_version.go @@ -0,0 +1,457 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// SearchedVersion Models a single artifact from the result set returned when searching for artifacts. +type SearchedVersion struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + CreatedOn string `json:"createdOn"` + CreatedBy string `json:"createdBy"` + Type ArtifactType `json:"type"` + Labels *[]string `json:"labels,omitempty"` + State ArtifactState `json:"state"` + GlobalId int64 `json:"globalId"` + Version string `json:"version"` + // User-defined name-value pairs. Name and value must be strings. + Properties *map[string]string `json:"properties,omitempty"` + ContentId int64 `json:"contentId"` + References []ArtifactReference `json:"references"` +} + +// NewSearchedVersion instantiates a new SearchedVersion 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 NewSearchedVersion(createdOn string, createdBy string, type_ ArtifactType, state ArtifactState, globalId int64, version string, contentId int64, references []ArtifactReference) *SearchedVersion { + this := SearchedVersion{} + this.CreatedOn = createdOn + this.CreatedBy = createdBy + this.Type = type_ + this.State = state + this.GlobalId = globalId + this.Version = version + this.ContentId = contentId + this.References = references + return &this +} + +// NewSearchedVersionWithDefaults instantiates a new SearchedVersion 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 NewSearchedVersionWithDefaults() *SearchedVersion { + this := SearchedVersion{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SearchedVersion) GetName() string { + if o == nil || o.Name == nil { + 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 *SearchedVersion) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SearchedVersion) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SearchedVersion) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SearchedVersion) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SearchedVersion) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SearchedVersion) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SearchedVersion) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *SearchedVersion) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *SearchedVersion) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *SearchedVersion) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *SearchedVersion) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetType returns the Type field value +func (o *SearchedVersion) GetType() ArtifactType { + if o == nil { + var ret ArtifactType + 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 *SearchedVersion) GetTypeOk() (*ArtifactType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *SearchedVersion) SetType(v ArtifactType) { + o.Type = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *SearchedVersion) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *SearchedVersion) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *SearchedVersion) SetLabels(v []string) { + o.Labels = &v +} + +// GetState returns the State field value +func (o *SearchedVersion) GetState() ArtifactState { + if o == nil { + var ret ArtifactState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetStateOk() (*ArtifactState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *SearchedVersion) SetState(v ArtifactState) { + o.State = v +} + +// GetGlobalId returns the GlobalId field value +func (o *SearchedVersion) GetGlobalId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.GlobalId +} + +// GetGlobalIdOk returns a tuple with the GlobalId field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetGlobalIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.GlobalId, true +} + +// SetGlobalId sets field value +func (o *SearchedVersion) SetGlobalId(v int64) { + o.GlobalId = v +} + +// GetVersion returns the Version field value +func (o *SearchedVersion) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *SearchedVersion) SetVersion(v string) { + o.Version = v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *SearchedVersion) GetProperties() map[string]string { + if o == nil || o.Properties == nil { + var ret map[string]string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetPropertiesOk() (*map[string]string, bool) { + if o == nil || o.Properties == nil { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *SearchedVersion) HasProperties() bool { + if o != nil && o.Properties != nil { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field. +func (o *SearchedVersion) SetProperties(v map[string]string) { + o.Properties = &v +} + +// GetContentId returns the ContentId field value +func (o *SearchedVersion) GetContentId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ContentId +} + +// GetContentIdOk returns a tuple with the ContentId field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetContentIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ContentId, true +} + +// SetContentId sets field value +func (o *SearchedVersion) SetContentId(v int64) { + o.ContentId = v +} + +// GetReferences returns the References field value +func (o *SearchedVersion) GetReferences() []ArtifactReference { + if o == nil { + var ret []ArtifactReference + return ret + } + + return o.References +} + +// GetReferencesOk returns a tuple with the References field value +// and a boolean to check if the value has been set. +func (o *SearchedVersion) GetReferencesOk() (*[]ArtifactReference, bool) { + if o == nil { + return nil, false + } + return &o.References, true +} + +// SetReferences sets field value +func (o *SearchedVersion) SetReferences(v []ArtifactReference) { + o.References = v +} + +func (o SearchedVersion) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["type"] = o.Type + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if true { + toSerialize["state"] = o.State + } + if true { + toSerialize["globalId"] = o.GlobalId + } + if true { + toSerialize["version"] = o.Version + } + if o.Properties != nil { + toSerialize["properties"] = o.Properties + } + if true { + toSerialize["contentId"] = o.ContentId + } + if true { + toSerialize["references"] = o.References + } + return json.Marshal(toSerialize) +} + +type NullableSearchedVersion struct { + value *SearchedVersion + isSet bool +} + +func (v NullableSearchedVersion) Get() *SearchedVersion { + return v.value +} + +func (v *NullableSearchedVersion) Set(val *SearchedVersion) { + v.value = val + v.isSet = true +} + +func (v NullableSearchedVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableSearchedVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSearchedVersion(val *SearchedVersion) *NullableSearchedVersion { + return &NullableSearchedVersion{value: val, isSet: true} +} + +func (v NullableSearchedVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSearchedVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_by.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_by.go new file mode 100644 index 00000000..565b2282 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_by.go @@ -0,0 +1,111 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// SortBy the model 'SortBy' +type SortBy string + +// List of SortBy +const ( + SORTBY_NAME SortBy = "name" + SORTBY_CREATED_ON SortBy = "createdOn" +) + +var allowedSortByEnumValues = []SortBy{ + "name", + "createdOn", +} + +func (v *SortBy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SortBy(value) + for _, existing := range allowedSortByEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SortBy", value) +} + +// NewSortByFromValue returns a pointer to a valid SortBy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSortByFromValue(v string) (*SortBy, error) { + ev := SortBy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SortBy: valid values are %v", v, allowedSortByEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SortBy) IsValid() bool { + for _, existing := range allowedSortByEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SortBy value +func (v SortBy) Ptr() *SortBy { + return &v +} + +type NullableSortBy struct { + value *SortBy + isSet bool +} + +func (v NullableSortBy) Get() *SortBy { + return v.value +} + +func (v *NullableSortBy) Set(val *SortBy) { + v.value = val + v.isSet = true +} + +func (v NullableSortBy) IsSet() bool { + return v.isSet +} + +func (v *NullableSortBy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSortBy(val *SortBy) *NullableSortBy { + return &NullableSortBy{value: val, isSet: true} +} + +func (v NullableSortBy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSortBy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_order.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_order.go new file mode 100644 index 00000000..9a624904 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_sort_order.go @@ -0,0 +1,111 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "fmt" +) + +// SortOrder the model 'SortOrder' +type SortOrder string + +// List of SortOrder +const ( + SORTORDER_ASC SortOrder = "asc" + SORTORDER_DESC SortOrder = "desc" +) + +var allowedSortOrderEnumValues = []SortOrder{ + "asc", + "desc", +} + +func (v *SortOrder) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SortOrder(value) + for _, existing := range allowedSortOrderEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SortOrder", value) +} + +// NewSortOrderFromValue returns a pointer to a valid SortOrder +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSortOrderFromValue(v string) (*SortOrder, error) { + ev := SortOrder(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SortOrder: valid values are %v", v, allowedSortOrderEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SortOrder) IsValid() bool { + for _, existing := range allowedSortOrderEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SortOrder value +func (v SortOrder) Ptr() *SortOrder { + return &v +} + +type NullableSortOrder struct { + value *SortOrder + isSet bool +} + +func (v NullableSortOrder) Get() *SortOrder { + return v.value +} + +func (v *NullableSortOrder) Set(val *SortOrder) { + v.value = val + v.isSet = true +} + +func (v NullableSortOrder) IsSet() bool { + return v.isSet +} + +func (v *NullableSortOrder) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSortOrder(val *SortOrder) *NullableSortOrder { + return &NullableSortOrder{value: val, isSet: true} +} + +func (v NullableSortOrder) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSortOrder) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_system_info.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_system_info.go new file mode 100644 index 00000000..1935a90f --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_system_info.go @@ -0,0 +1,224 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// SystemInfo struct for SystemInfo +type SystemInfo struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Version *string `json:"version,omitempty"` + BuiltOn *string `json:"builtOn,omitempty"` +} + +// NewSystemInfo instantiates a new SystemInfo 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 NewSystemInfo() *SystemInfo { + this := SystemInfo{} + return &this +} + +// NewSystemInfoWithDefaults instantiates a new SystemInfo 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 NewSystemInfoWithDefaults() *SystemInfo { + this := SystemInfo{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SystemInfo) GetName() string { + if o == nil || o.Name == nil { + 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 *SystemInfo) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SystemInfo) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SystemInfo) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SystemInfo) GetDescription() string { + if o == nil || o.Description == nil { + 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 *SystemInfo) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SystemInfo) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SystemInfo) SetDescription(v string) { + o.Description = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SystemInfo) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SystemInfo) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SystemInfo) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SystemInfo) SetVersion(v string) { + o.Version = &v +} + +// GetBuiltOn returns the BuiltOn field value if set, zero value otherwise. +func (o *SystemInfo) GetBuiltOn() string { + if o == nil || o.BuiltOn == nil { + var ret string + return ret + } + return *o.BuiltOn +} + +// GetBuiltOnOk returns a tuple with the BuiltOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SystemInfo) GetBuiltOnOk() (*string, bool) { + if o == nil || o.BuiltOn == nil { + return nil, false + } + return o.BuiltOn, true +} + +// HasBuiltOn returns a boolean if a field has been set. +func (o *SystemInfo) HasBuiltOn() bool { + if o != nil && o.BuiltOn != nil { + return true + } + + return false +} + +// SetBuiltOn gets a reference to the given string and assigns it to the BuiltOn field. +func (o *SystemInfo) SetBuiltOn(v string) { + o.BuiltOn = &v +} + +func (o SystemInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if o.BuiltOn != nil { + toSerialize["builtOn"] = o.BuiltOn + } + return json.Marshal(toSerialize) +} + +type NullableSystemInfo struct { + value *SystemInfo + isSet bool +} + +func (v NullableSystemInfo) Get() *SystemInfo { + return v.value +} + +func (v *NullableSystemInfo) Set(val *SystemInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSystemInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSystemInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSystemInfo(val *SystemInfo) *NullableSystemInfo { + return &NullableSystemInfo{value: val, isSet: true} +} + +func (v NullableSystemInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSystemInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_configuration_property.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_configuration_property.go new file mode 100644 index 00000000..2f7333f9 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_configuration_property.go @@ -0,0 +1,109 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// UpdateConfigurationProperty struct for UpdateConfigurationProperty +type UpdateConfigurationProperty struct { + Value string `json:"value"` +} + +// NewUpdateConfigurationProperty instantiates a new UpdateConfigurationProperty 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 NewUpdateConfigurationProperty(value string) *UpdateConfigurationProperty { + this := UpdateConfigurationProperty{} + this.Value = value + return &this +} + +// NewUpdateConfigurationPropertyWithDefaults instantiates a new UpdateConfigurationProperty 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 NewUpdateConfigurationPropertyWithDefaults() *UpdateConfigurationProperty { + this := UpdateConfigurationProperty{} + return &this +} + +// GetValue returns the Value field value +func (o *UpdateConfigurationProperty) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *UpdateConfigurationProperty) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *UpdateConfigurationProperty) SetValue(v string) { + o.Value = v +} + +func (o UpdateConfigurationProperty) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableUpdateConfigurationProperty struct { + value *UpdateConfigurationProperty + isSet bool +} + +func (v NullableUpdateConfigurationProperty) Get() *UpdateConfigurationProperty { + return v.value +} + +func (v *NullableUpdateConfigurationProperty) Set(val *UpdateConfigurationProperty) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateConfigurationProperty) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateConfigurationProperty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateConfigurationProperty(val *UpdateConfigurationProperty) *NullableUpdateConfigurationProperty { + return &NullableUpdateConfigurationProperty{value: val, isSet: true} +} + +func (v NullableUpdateConfigurationProperty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateConfigurationProperty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_role.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_role.go new file mode 100644 index 00000000..803fd862 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_role.go @@ -0,0 +1,109 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// UpdateRole struct for UpdateRole +type UpdateRole struct { + Role RoleType `json:"role"` +} + +// NewUpdateRole instantiates a new UpdateRole 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 NewUpdateRole(role RoleType) *UpdateRole { + this := UpdateRole{} + this.Role = role + return &this +} + +// NewUpdateRoleWithDefaults instantiates a new UpdateRole 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 NewUpdateRoleWithDefaults() *UpdateRole { + this := UpdateRole{} + return &this +} + +// GetRole returns the Role field value +func (o *UpdateRole) GetRole() RoleType { + if o == nil { + var ret RoleType + return ret + } + + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *UpdateRole) GetRoleOk() (*RoleType, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *UpdateRole) SetRole(v RoleType) { + o.Role = v +} + +func (o UpdateRole) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["role"] = o.Role + } + return json.Marshal(toSerialize) +} + +type NullableUpdateRole struct { + value *UpdateRole + isSet bool +} + +func (v NullableUpdateRole) Get() *UpdateRole { + return v.value +} + +func (v *NullableUpdateRole) Set(val *UpdateRole) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateRole) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateRole(val *UpdateRole) *NullableUpdateRole { + return &NullableUpdateRole{value: val, isSet: true} +} + +func (v NullableUpdateRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_state.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_state.go new file mode 100644 index 00000000..3693cbba --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_update_state.go @@ -0,0 +1,109 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// UpdateState struct for UpdateState +type UpdateState struct { + State ArtifactState `json:"state"` +} + +// NewUpdateState instantiates a new UpdateState 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 NewUpdateState(state ArtifactState) *UpdateState { + this := UpdateState{} + this.State = state + return &this +} + +// NewUpdateStateWithDefaults instantiates a new UpdateState 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 NewUpdateStateWithDefaults() *UpdateState { + this := UpdateState{} + return &this +} + +// GetState returns the State field value +func (o *UpdateState) GetState() ArtifactState { + if o == nil { + var ret ArtifactState + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *UpdateState) GetStateOk() (*ArtifactState, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *UpdateState) SetState(v ArtifactState) { + o.State = v +} + +func (o UpdateState) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["state"] = o.State + } + return json.Marshal(toSerialize) +} + +type NullableUpdateState struct { + value *UpdateState + isSet bool +} + +func (v NullableUpdateState) Get() *UpdateState { + return v.value +} + +func (v *NullableUpdateState) Set(val *UpdateState) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateState) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateState(val *UpdateState) *NullableUpdateState { + return &NullableUpdateState{value: val, isSet: true} +} + +func (v NullableUpdateState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_user_info.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_user_info.go new file mode 100644 index 00000000..7de8c16c --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_user_info.go @@ -0,0 +1,260 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// UserInfo Information about a single user. +type UserInfo struct { + Username *string `json:"username,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Admin *bool `json:"admin,omitempty"` + Developer *bool `json:"developer,omitempty"` + Viewer *bool `json:"viewer,omitempty"` +} + +// NewUserInfo instantiates a new UserInfo 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 NewUserInfo() *UserInfo { + this := UserInfo{} + return &this +} + +// NewUserInfoWithDefaults instantiates a new UserInfo 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 NewUserInfoWithDefaults() *UserInfo { + this := UserInfo{} + return &this +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *UserInfo) GetUsername() string { + if o == nil || o.Username == nil { + 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 *UserInfo) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *UserInfo) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *UserInfo) SetUsername(v string) { + o.Username = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *UserInfo) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserInfo) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *UserInfo) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *UserInfo) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetAdmin returns the Admin field value if set, zero value otherwise. +func (o *UserInfo) GetAdmin() bool { + if o == nil || o.Admin == nil { + var ret bool + return ret + } + return *o.Admin +} + +// GetAdminOk returns a tuple with the Admin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserInfo) GetAdminOk() (*bool, bool) { + if o == nil || o.Admin == nil { + return nil, false + } + return o.Admin, true +} + +// HasAdmin returns a boolean if a field has been set. +func (o *UserInfo) HasAdmin() bool { + if o != nil && o.Admin != nil { + return true + } + + return false +} + +// SetAdmin gets a reference to the given bool and assigns it to the Admin field. +func (o *UserInfo) SetAdmin(v bool) { + o.Admin = &v +} + +// GetDeveloper returns the Developer field value if set, zero value otherwise. +func (o *UserInfo) GetDeveloper() bool { + if o == nil || o.Developer == nil { + var ret bool + return ret + } + return *o.Developer +} + +// GetDeveloperOk returns a tuple with the Developer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserInfo) GetDeveloperOk() (*bool, bool) { + if o == nil || o.Developer == nil { + return nil, false + } + return o.Developer, true +} + +// HasDeveloper returns a boolean if a field has been set. +func (o *UserInfo) HasDeveloper() bool { + if o != nil && o.Developer != nil { + return true + } + + return false +} + +// SetDeveloper gets a reference to the given bool and assigns it to the Developer field. +func (o *UserInfo) SetDeveloper(v bool) { + o.Developer = &v +} + +// GetViewer returns the Viewer field value if set, zero value otherwise. +func (o *UserInfo) GetViewer() bool { + if o == nil || o.Viewer == nil { + var ret bool + return ret + } + return *o.Viewer +} + +// GetViewerOk returns a tuple with the Viewer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserInfo) GetViewerOk() (*bool, bool) { + if o == nil || o.Viewer == nil { + return nil, false + } + return o.Viewer, true +} + +// HasViewer returns a boolean if a field has been set. +func (o *UserInfo) HasViewer() bool { + if o != nil && o.Viewer != nil { + return true + } + + return false +} + +// SetViewer gets a reference to the given bool and assigns it to the Viewer field. +func (o *UserInfo) SetViewer(v bool) { + o.Viewer = &v +} + +func (o UserInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Username != nil { + toSerialize["username"] = o.Username + } + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if o.Admin != nil { + toSerialize["admin"] = o.Admin + } + if o.Developer != nil { + toSerialize["developer"] = o.Developer + } + if o.Viewer != nil { + toSerialize["viewer"] = o.Viewer + } + return json.Marshal(toSerialize) +} + +type NullableUserInfo struct { + value *UserInfo + isSet bool +} + +func (v NullableUserInfo) Get() *UserInfo { + return v.value +} + +func (v *NullableUserInfo) Set(val *UserInfo) { + v.value = val + v.isSet = true +} + +func (v NullableUserInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableUserInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserInfo(val *UserInfo) *NullableUserInfo { + return &NullableUserInfo{value: val, isSet: true} +} + +func (v NullableUserInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_meta_data.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_meta_data.go new file mode 100644 index 00000000..89ea840a --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_meta_data.go @@ -0,0 +1,502 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// VersionMetaData struct for VersionMetaData +type VersionMetaData struct { + Version string `json:"version"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + CreatedBy string `json:"createdBy"` + CreatedOn string `json:"createdOn"` + Type ArtifactType `json:"type"` + GlobalId int64 `json:"globalId"` + State *ArtifactState `json:"state,omitempty"` + // The ID of a single artifact. + Id string `json:"id"` + Labels *[]string `json:"labels,omitempty"` + // User-defined name-value pairs. Name and value must be strings. + Properties *map[string]string `json:"properties,omitempty"` + // An ID of a single artifact group. + GroupId *string `json:"groupId,omitempty"` + ContentId int64 `json:"contentId"` +} + +// NewVersionMetaData instantiates a new VersionMetaData 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 NewVersionMetaData(version string, createdBy string, createdOn string, type_ ArtifactType, globalId int64, id string, contentId int64) *VersionMetaData { + this := VersionMetaData{} + this.Version = version + this.CreatedBy = createdBy + this.CreatedOn = createdOn + this.Type = type_ + this.GlobalId = globalId + this.Id = id + this.ContentId = contentId + return &this +} + +// NewVersionMetaDataWithDefaults instantiates a new VersionMetaData 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 NewVersionMetaDataWithDefaults() *VersionMetaData { + this := VersionMetaData{} + return &this +} + +// GetVersion returns the Version field value +func (o *VersionMetaData) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *VersionMetaData) SetVersion(v string) { + o.Version = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *VersionMetaData) GetName() string { + if o == nil || o.Name == nil { + 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 *VersionMetaData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *VersionMetaData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *VersionMetaData) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VersionMetaData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *VersionMetaData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *VersionMetaData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *VersionMetaData) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *VersionMetaData) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *VersionMetaData) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetCreatedOn returns the CreatedOn field value +func (o *VersionMetaData) GetCreatedOn() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetCreatedOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedOn, true +} + +// SetCreatedOn sets field value +func (o *VersionMetaData) SetCreatedOn(v string) { + o.CreatedOn = v +} + +// GetType returns the Type field value +func (o *VersionMetaData) GetType() ArtifactType { + if o == nil { + var ret ArtifactType + 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 *VersionMetaData) GetTypeOk() (*ArtifactType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VersionMetaData) SetType(v ArtifactType) { + o.Type = v +} + +// GetGlobalId returns the GlobalId field value +func (o *VersionMetaData) GetGlobalId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.GlobalId +} + +// GetGlobalIdOk returns a tuple with the GlobalId field value +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetGlobalIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.GlobalId, true +} + +// SetGlobalId sets field value +func (o *VersionMetaData) SetGlobalId(v int64) { + o.GlobalId = v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *VersionMetaData) GetState() ArtifactState { + if o == nil || o.State == nil { + var ret ArtifactState + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetStateOk() (*ArtifactState, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *VersionMetaData) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given ArtifactState and assigns it to the State field. +func (o *VersionMetaData) SetState(v ArtifactState) { + o.State = &v +} + +// GetId returns the Id field value +func (o *VersionMetaData) 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 *VersionMetaData) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VersionMetaData) SetId(v string) { + o.Id = v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *VersionMetaData) GetLabels() []string { + if o == nil || o.Labels == nil { + var ret []string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetLabelsOk() (*[]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *VersionMetaData) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given []string and assigns it to the Labels field. +func (o *VersionMetaData) SetLabels(v []string) { + o.Labels = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *VersionMetaData) GetProperties() map[string]string { + if o == nil || o.Properties == nil { + var ret map[string]string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetPropertiesOk() (*map[string]string, bool) { + if o == nil || o.Properties == nil { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *VersionMetaData) HasProperties() bool { + if o != nil && o.Properties != nil { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field. +func (o *VersionMetaData) SetProperties(v map[string]string) { + o.Properties = &v +} + +// GetGroupId returns the GroupId field value if set, zero value otherwise. +func (o *VersionMetaData) GetGroupId() string { + if o == nil || o.GroupId == nil { + var ret string + return ret + } + return *o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetGroupIdOk() (*string, bool) { + if o == nil || o.GroupId == nil { + return nil, false + } + return o.GroupId, true +} + +// HasGroupId returns a boolean if a field has been set. +func (o *VersionMetaData) HasGroupId() bool { + if o != nil && o.GroupId != nil { + return true + } + + return false +} + +// SetGroupId gets a reference to the given string and assigns it to the GroupId field. +func (o *VersionMetaData) SetGroupId(v string) { + o.GroupId = &v +} + +// GetContentId returns the ContentId field value +func (o *VersionMetaData) GetContentId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ContentId +} + +// GetContentIdOk returns a tuple with the ContentId field value +// and a boolean to check if the value has been set. +func (o *VersionMetaData) GetContentIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ContentId, true +} + +// SetContentId sets field value +func (o *VersionMetaData) SetContentId(v int64) { + o.ContentId = v +} + +func (o VersionMetaData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["version"] = o.Version + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["createdBy"] = o.CreatedBy + } + if true { + toSerialize["createdOn"] = o.CreatedOn + } + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["globalId"] = o.GlobalId + } + if o.State != nil { + toSerialize["state"] = o.State + } + if true { + toSerialize["id"] = o.Id + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Properties != nil { + toSerialize["properties"] = o.Properties + } + if o.GroupId != nil { + toSerialize["groupId"] = o.GroupId + } + if true { + toSerialize["contentId"] = o.ContentId + } + return json.Marshal(toSerialize) +} + +type NullableVersionMetaData struct { + value *VersionMetaData + isSet bool +} + +func (v NullableVersionMetaData) Get() *VersionMetaData { + return v.value +} + +func (v *NullableVersionMetaData) Set(val *VersionMetaData) { + v.value = val + v.isSet = true +} + +func (v NullableVersionMetaData) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionMetaData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionMetaData(val *VersionMetaData) *NullableVersionMetaData { + return &NullableVersionMetaData{value: val, isSet: true} +} + +func (v NullableVersionMetaData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionMetaData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_search_results.go b/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_search_results.go new file mode 100644 index 00000000..73ed7aa8 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/model_version_search_results.go @@ -0,0 +1,140 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" +) + +// VersionSearchResults Describes the response received when searching for artifacts. +type VersionSearchResults struct { + // The total number of versions that matched the query (may be more than the number of versions returned in the result set). + Count int32 `json:"count"` + // The collection of artifact versions returned in the result set. + Versions []SearchedVersion `json:"versions"` +} + +// NewVersionSearchResults instantiates a new VersionSearchResults 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 NewVersionSearchResults(count int32, versions []SearchedVersion) *VersionSearchResults { + this := VersionSearchResults{} + this.Count = count + this.Versions = versions + return &this +} + +// NewVersionSearchResultsWithDefaults instantiates a new VersionSearchResults 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 NewVersionSearchResultsWithDefaults() *VersionSearchResults { + this := VersionSearchResults{} + return &this +} + +// GetCount returns the Count field value +func (o *VersionSearchResults) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *VersionSearchResults) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *VersionSearchResults) SetCount(v int32) { + o.Count = v +} + +// GetVersions returns the Versions field value +func (o *VersionSearchResults) GetVersions() []SearchedVersion { + if o == nil { + var ret []SearchedVersion + return ret + } + + return o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value +// and a boolean to check if the value has been set. +func (o *VersionSearchResults) GetVersionsOk() (*[]SearchedVersion, bool) { + if o == nil { + return nil, false + } + return &o.Versions, true +} + +// SetVersions sets field value +func (o *VersionSearchResults) SetVersions(v []SearchedVersion) { + o.Versions = v +} + +func (o VersionSearchResults) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["count"] = o.Count + } + if true { + toSerialize["versions"] = o.Versions + } + return json.Marshal(toSerialize) +} + +type NullableVersionSearchResults struct { + value *VersionSearchResults + isSet bool +} + +func (v NullableVersionSearchResults) Get() *VersionSearchResults { + return v.value +} + +func (v *NullableVersionSearchResults) Set(val *VersionSearchResults) { + v.value = val + v.isSet = true +} + +func (v NullableVersionSearchResults) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionSearchResults) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionSearchResults(val *VersionSearchResults) *NullableVersionSearchResults { + return &NullableVersionSearchResults{value: val, isSet: true} +} + +func (v NullableVersionSearchResults) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionSearchResults) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/response.go b/app-services-sdk-go/registryinstance/apiv1internal/client/response.go new file mode 100644 index 00000000..843bb40d --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/response.go @@ -0,0 +1,48 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/registryinstance/apiv1internal/client/utils.go b/app-services-sdk-go/registryinstance/apiv1internal/client/utils.go new file mode 100644 index 00000000..b87d6e43 --- /dev/null +++ b/app-services-sdk-go/registryinstance/apiv1internal/client/utils.go @@ -0,0 +1,329 @@ +/* + * Service Registry API + * + * Service Registry Instance API NOTE: This API cannot be called directly from the portal. + * + * API version: 2.2.5.Final + * Contact: apicurio@lists.jboss.org + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registryinstanceclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/.gitignore b/app-services-sdk-go/registrymgmt/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..9f0d2455 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,44 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_default.go +api_errors.go +api_registries.go +client.go +configuration.go +docs/DefaultApi.md +docs/Error.md +docs/ErrorList.md +docs/ErrorListAllOf.md +docs/ErrorsApi.md +docs/List.md +docs/ObjectReference.md +docs/RegistriesApi.md +docs/Registry.md +docs/RegistryCreate.md +docs/RegistryInstanceTypeValue.md +docs/RegistryList.md +docs/RegistryListAllOf.md +docs/RegistryStatusValue.md +docs/RootTypeForRegistry.md +docs/ServiceStatus.md +git_push.sh +go.mod +go.sum +model_error.go +model_error_list.go +model_error_list_all_of.go +model_list.go +model_object_reference.go +model_registry.go +model_registry_create.go +model_registry_instance_type_value.go +model_registry_list.go +model_registry_list_all_of.go +model_registry_status_value.go +model_root_type_for_registry.go +model_service_status.go +response.go +utils.go diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/.travis.yml b/app-services-sdk-go/registrymgmt/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/README.md b/app-services-sdk-go/registrymgmt/apiv1/client/README.md new file mode 100644 index 00000000..b4c0034e --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/README.md @@ -0,0 +1,143 @@ +# Go API client for registrymgmtclient + +Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.6 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen +For more information, please visit [https://console.redhat.com/application-services/service-registry/](https://console.redhat.com/application-services/service-registry/) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./registrymgmtclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.openshift.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetServiceStatus**](docs/DefaultApi.md#getservicestatus) | **Get** /api/serviceregistry_mgmt/v1/status | +*ErrorsApi* | [**GetError**](docs/ErrorsApi.md#geterror) | **Get** /api/serviceregistry_mgmt/v1/errors/{id} | +*ErrorsApi* | [**GetErrors**](docs/ErrorsApi.md#geterrors) | **Get** /api/serviceregistry_mgmt/v1/errors | +*RegistriesApi* | [**CreateRegistry**](docs/RegistriesApi.md#createregistry) | **Post** /api/serviceregistry_mgmt/v1/registries | +*RegistriesApi* | [**DeleteRegistry**](docs/RegistriesApi.md#deleteregistry) | **Delete** /api/serviceregistry_mgmt/v1/registries/{id} | Delete a Registry instance +*RegistriesApi* | [**GetRegistries**](docs/RegistriesApi.md#getregistries) | **Get** /api/serviceregistry_mgmt/v1/registries | +*RegistriesApi* | [**GetRegistry**](docs/RegistriesApi.md#getregistry) | **Get** /api/serviceregistry_mgmt/v1/registries/{id} | Get a Registry instance + + +## Documentation For Models + + - [Error](docs/Error.md) + - [ErrorList](docs/ErrorList.md) + - [ErrorListAllOf](docs/ErrorListAllOf.md) + - [List](docs/List.md) + - [ObjectReference](docs/ObjectReference.md) + - [Registry](docs/Registry.md) + - [RegistryCreate](docs/RegistryCreate.md) + - [RegistryInstanceTypeValue](docs/RegistryInstanceTypeValue.md) + - [RegistryList](docs/RegistryList.md) + - [RegistryListAllOf](docs/RegistryListAllOf.md) + - [RegistryStatusValue](docs/RegistryStatusValue.md) + - [RootTypeForRegistry](docs/RootTypeForRegistry.md) + - [ServiceStatus](docs/ServiceStatus.md) + + +## Documentation For Authorization + + + +### Bearer + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +rhosak-eval-support@redhat.com + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/registrymgmt/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..8161fab0 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/api/openapi.yaml @@ -0,0 +1,746 @@ +openapi: 3.0.2 +info: + contact: + email: rhosak-eval-support@redhat.com + name: Red Hat Hybrid Cloud Console + url: https://console.redhat.com/application-services/service-registry/ + description: Service Registry Management API is a REST API for managing Service + Registry instances. Service Registry is a datastore for event schemas and API + designs, which is based on the open source Apicurio Registry project. + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + title: Service Registry Management API + version: 0.0.6 +servers: +- description: Main (production) server + url: https://api.openshift.com +- description: Staging server + url: https://api.stage.openshift.com +- description: localhost + url: http://localhost:8000 +- description: current domain + url: / +tags: +- name: Errors +- name: Registries +paths: + /api/serviceregistry_mgmt/v1/registries: + description: Manage the list of all Registry instances + get: + description: Get the list of all Registry instances + operationId: getRegistries + parameters: + - description: Page index. + examples: + page: + value: 0 + explode: true + in: query + name: page + required: false + schema: + minimum: 0 + type: integer + style: form + - description: Number of items in each page. + examples: + size: + value: 100 + explode: true + in: query + name: size + required: false + schema: + maximum: 500 + minimum: 1 + type: integer + style: form + - description: "Specifies the order by criteria. The syntax of this parameter\ + \ is\nsimilar to the syntax of the _order by_ clause of an SQL statement.\n\ + Each query can be ordered by any of the request fields.\nFor example, to\ + \ retrieve all Registry instances ordered by their name:\n\n```sql\nname\ + \ asc\n```\n\nOr to retrieve all Registry instances ordered by their name\ + \ _and_ created date:\n\n```sql\nname asc, created_at asc\n```\n\nIf the\ + \ parameter isn't provided, or if the value is empty, \nthe results are\ + \ ordered by name." + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + - description: "Search criteria.\n\nThe syntax of this parameter is similar\ + \ to the syntax of the _where_ clause of an\nSQL statement. Allowed fields\ + \ in the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`.\n\ + Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins\ + \ in the search query.\n\nExamples:\n\nTo retrieve a request with name equal\ + \ `my-registry`, the value should be:\n\n```\nname = my-registry \n```\n\ + \nTo retrieve a request with its name starting with `my`, the value should\ + \ be:\n\n```\nname like my%25\n```\n\nIf the parameter isn't provided, or\ + \ if the value is empty, all the Registry instances\nthat the user has permission\ + \ to see are returned.\n\nNote: If the query is invalid, an error is returned.\n" + examples: + search: + value: name = my-registry and status = AVAILABLE + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryList' + description: A successful response. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access the service. + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred. + security: + - Bearer: [] + tags: + - Registries + post: + description: Create a new Registry instance + operationId: createRegistry + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegistryCreate' + description: A new `Registry` instance to be created. + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Registry' + description: A successful response. The full request to create a new `Registry` + instance is processed asynchronously. The user should verify the result + of the operation by reading the `status` property of the created `Registry` + instance. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access the service. + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred. + security: + - Bearer: [] + tags: + - Registries + /api/serviceregistry_mgmt/v1/registries/{id}: + delete: + description: 'Deletes an existing `Registry` instance and all of the data that + it stores. Important: Users should export the registry data before deleting + the instance, e.g., using the Service Registry web console, core REST API, + or `rhoas` CLI.' + operationId: deleteRegistry + parameters: + - description: A unique identifier for a `Registry` instance. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Successful response. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access the service. + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No Service Registry instance with the specified id exists + security: + - Bearer: [] + summary: Delete a Registry instance + tags: + - Registries + description: Manage a specific Registry instance + get: + description: Gets the details of a single instance of a `Registry`. + operationId: getRegistry + parameters: + - description: A unique identifier for a `Registry` instance. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Registry' + description: Successful response - returns a single `Registry` instance. + "401": + content: + application/json: + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Error' + description: Auth token is invalid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access the service. + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No Service Registry instance with specified id exists. + security: + - Bearer: [] + summary: Get a Registry instance + tags: + - Registries + /api/serviceregistry_mgmt/v1/errors/{id}: + description: Get information about a specific error type. This is not an instance + of a specific error. + get: + description: Get information about a specific error type + operationId: getError + parameters: + - description: A unique identifier for an error type. + explode: false + in: path + name: id + required: true + schema: + minimum: 1 + type: integer + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Successful response - returns a single `Error`. + "404": + content: + application/json: + examples: + "404Example": + $ref: '#/components/examples/404Example' + schema: + $ref: '#/components/schemas/Error' + description: No Service Registry with the specified id exists. + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred. + tags: + - Errors + /api/serviceregistry_mgmt/v1/errors: + description: Get a list of error types that can be returned by this API. These + are not instances of specific errors. + get: + description: Get the list of all errors + operationId: getErrors + parameters: + - description: Page index. + examples: + page: + value: 0 + explode: true + in: query + name: page + required: false + schema: + minimum: 0 + type: integer + style: form + - description: Number of items in each page. + examples: + size: + value: 100 + explode: true + in: query + name: size + required: false + schema: + maximum: 500 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorList' + description: A successful response. + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred + tags: + - Errors + /api/serviceregistry_mgmt/v1/status: + description: Retrieves the status of resources e.g., whether we have reached maximum + service capacity + get: + description: Get the service status + operationId: getServiceStatus + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceStatus' + description: Successfully returned service status. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal error retrieving service status. + security: + - Bearer: [] +components: + examples: + "404Example": + value: + id: "404" + kind: Error + href: /api/managed-services-api/v1/errors/7 + code: MGD-SERV-API-7 + reason: The requested resource doesn't exist. + "401Example": + value: + id: "11" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/11 + code: CLOUD-SERV-API-11 + reason: 'Unable to verify JWT token: Required authorization token not found.' + operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD + "403Example": + value: + id: "4" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/4 + code: MGD-SERV-API-4 + reason: User 'foo-bar' is not authorized to access the service. + operation_id: 1lY3UiEhznXBpWPfI2lNejpd4YC + "500Example": + value: + id: "9" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/9 + code: MGD-SERV-API-9 + reason: Unspecified error. + operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW + parameters: + id: + description: The id of record. + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + page: + description: Page index. + examples: + page: + value: 0 + explode: true + in: query + name: page + required: false + schema: + minimum: 0 + type: integer + style: form + size: + description: Number of items in each page. + examples: + size: + value: 100 + explode: true + in: query + name: size + required: false + schema: + maximum: 500 + minimum: 1 + type: integer + style: form + orderBy: + description: "Specifies the order by criteria. The syntax of this parameter\ + \ is\nsimilar to the syntax of the _order by_ clause of an SQL statement.\n\ + Each query can be ordered by any of the request fields.\nFor example, to retrieve\ + \ all Registry instances ordered by their name:\n\n```sql\nname asc\n```\n\ + \nOr to retrieve all Registry instances ordered by their name _and_ created\ + \ date:\n\n```sql\nname asc, created_at asc\n```\n\nIf the parameter isn't\ + \ provided, or if the value is empty, \nthe results are ordered by name." + examples: + orderBy: + value: name asc + explode: true + in: query + name: orderBy + required: false + schema: + type: string + style: form + search: + description: "Search criteria.\n\nThe syntax of this parameter is similar to\ + \ the syntax of the _where_ clause of an\nSQL statement. Allowed fields in\ + \ the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`.\n\ + Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins\ + \ in the search query.\n\nExamples:\n\nTo retrieve a request with name equal\ + \ `my-registry`, the value should be:\n\n```\nname = my-registry \n```\n\n\ + To retrieve a request with its name starting with `my`, the value should be:\n\ + \n```\nname like my%25\n```\n\nIf the parameter isn't provided, or if the\ + \ value is empty, all the Registry instances\nthat the user has permission\ + \ to see are returned.\n\nNote: If the query is invalid, an error is returned.\n" + examples: + search: + value: name = my-registry and status = AVAILABLE + explode: true + in: query + name: search + required: false + schema: + type: string + style: form + schemas: + ErrorList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/ErrorList_allOf' + List: + properties: + kind: + type: string + page: + type: integer + size: + type: integer + total: + type: integer + items: + items: + $ref: '#/components/schemas/ObjectReference' + type: array + required: + - items + - kind + - page + - size + - total + type: object + Error: + example: + reason: reason + code: code + kind: kind + operation_id: operation_id + id: id + href: href + properties: + reason: + type: string + operation_id: + type: string + id: + type: string + kind: + type: string + href: + type: string + code: + type: string + required: + - code + - href + - id + - kind + - reason + type: object + RegistryList: + allOf: + - $ref: '#/components/schemas/List' + - $ref: '#/components/schemas/RegistryList_allOf' + RegistryStatusValue: + description: | + "accepted": Registry status when accepted for processing. + + "provisioning": Registry status when provisioning a new instance. + + "ready": Registry status when ready for use. + + "failed": Registry status when the provisioning failed. When removing a Registry instance in this state, + the status transitions directly to "deleting". + + + "deprovision": Registry status when accepted for deprovisioning. + + "deleting": Registry status when deprovisioning. + enum: + - accepted + - provisioning + - ready + - failed + - deprovision + - deleting + type: string + RegistryInstanceTypeValue: + description: | + "standard": Standard, full-featured Registry instance + + "eval": Evaluation (Trial) instance, provided for a limited time + enum: + - standard + - eval + type: string + ServiceStatus: + description: Schema for the service status response body + example: + max_instances_reached: true + properties: + max_instances_reached: + description: Boolean property indicating if the maximum number of total + Registry instances have been reached, therefore creation of more instances + should not be allowed. + type: boolean + title: Root type for ServiceStatus + type: object + RegistryCreate: + description: Information used to create a new Service Registry instance in a + multi-tenant deployment. + example: + name: my-registry + description: This Registry instance is for a development environment only. + properties: + name: + description: User-defined Registry instance name. Required. Must be unique + within a given organization. + maxLength: 32 + minLength: 1 + pattern: '[a-z]([a-z0-9\-]*[a-z0-9])?' + type: string + description: + description: User-provided description of the new Service Registry instance. + Not required. + maxLength: 255 + type: string + required: + - name + title: Root type for RegistryCreate + type: object + ObjectReference: + properties: + id: + type: string + kind: + type: string + href: + type: string + required: + - href + - id + - kind + type: object + Registry: + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Root_type_for_Registry' + ErrorList_allOf: + properties: + items: + items: + $ref: '#/components/schemas/Error' + type: array + type: object + RegistryList_allOf: + example: + kind: RegistryList + page: "1" + size: "1" + total: "1" + items: + - id: llmNteR4P7waRp5nJIReG + kind: serviceregistry + href: /api/serviceregistry_mgmt/v1/registries/llmNteR4P7waRp5nJIReG + name: sample-registry + status: ready + owner: some_id + registryUrl: https://somehost:433/t/12345 + browserUrl: https://someuihost:443/registries/12345 + created_at: 2020-01-01T00:00:00Z + updated_at: 2022-01-01T00:00:00Z + instance_type: standard + properties: + items: + items: + $ref: '#/components/schemas/Registry' + type: array + required: + - items + type: object + Root_type_for_Registry: + description: Service Registry instance in a multi-tenant deployment. + example: + id: "42" + name: my-registry + registryUrl: https://registry.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706 + browserUrl: https://registry-ui.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706 + status: provisioning + registryDeploymentId: 1 + owner: ownername + updated_at: 2022-01-01T00:00:00Z + created_at: 2020-01-01T00:00:00Z + instance_type: standard + properties: + id: + type: string + status: + $ref: '#/components/schemas/RegistryStatusValue' + registryUrl: + type: string + browserUrl: + type: string + name: + description: User-defined Registry instance name. Does not have to be unique. + type: string + registryDeploymentId: + description: Identifier of a multi-tenant deployment, where this Service + Registry instance resides. + type: integer + owner: + description: Registry instance owner. + type: string + description: + description: Description of the Registry instance. + type: string + created_at: + description: ISO 8601 UTC timestamp. + format: date-time + type: string + updated_at: + description: ISO 8601 UTC timestamp. + format: date-time + type: string + instance_type: + $ref: '#/components/schemas/RegistryInstanceTypeValue' + required: + - created_at + - id + - instance_type + - name + - owner + - status + - updated_at + title: Root type for Registry + type: object + securitySchemes: + Bearer: + bearerFormat: JWT + scheme: bearer + type: http diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go b/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go new file mode 100644 index 00000000..e7d72428 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go @@ -0,0 +1,156 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type DefaultApi interface { + + /* + * GetServiceStatus Method for GetServiceStatus + * Get the service status + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceStatusRequest + */ + GetServiceStatus(ctx _context.Context) ApiGetServiceStatusRequest + + /* + * GetServiceStatusExecute executes the request + * @return ServiceStatus + */ + GetServiceStatusExecute(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) +} + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetServiceStatusRequest struct { + ctx _context.Context + ApiService DefaultApi +} + + +func (r ApiGetServiceStatusRequest) Execute() (ServiceStatus, *_nethttp.Response, error) { + return r.ApiService.GetServiceStatusExecute(r) +} + +/* + * GetServiceStatus Method for GetServiceStatus + * Get the service status + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceStatusRequest + */ +func (a *DefaultApiService) GetServiceStatus(ctx _context.Context) ApiGetServiceStatusRequest { + return ApiGetServiceStatusRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ServiceStatus + */ +func (a *DefaultApiService) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceStatus + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetServiceStatus") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go b/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go new file mode 100644 index 00000000..37dda4c3 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go @@ -0,0 +1,316 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ErrorsApi interface { + + /* + * GetError Method for GetError + * Get information about a specific error type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for an error type. + * @return ApiGetErrorRequest + */ + GetError(ctx _context.Context, id int32) ApiGetErrorRequest + + /* + * GetErrorExecute executes the request + * @return Error + */ + GetErrorExecute(r ApiGetErrorRequest) (Error, *_nethttp.Response, error) + + /* + * GetErrors Method for GetErrors + * Get the list of all errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ + GetErrors(ctx _context.Context) ApiGetErrorsRequest + + /* + * GetErrorsExecute executes the request + * @return ErrorList + */ + GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) +} + +// ErrorsApiService ErrorsApi service +type ErrorsApiService service + +type ApiGetErrorRequest struct { + ctx _context.Context + ApiService ErrorsApi + id int32 +} + + +func (r ApiGetErrorRequest) Execute() (Error, *_nethttp.Response, error) { + return r.ApiService.GetErrorExecute(r) +} + +/* + * GetError Method for GetError + * Get information about a specific error type + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for an error type. + * @return ApiGetErrorRequest + */ +func (a *ErrorsApiService) GetError(ctx _context.Context, id int32) ApiGetErrorRequest { + return ApiGetErrorRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Error + */ +func (a *ErrorsApiService) GetErrorExecute(r ApiGetErrorRequest) (Error, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Error + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetError") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/errors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.id < 1 { + return localVarReturnValue, nil, reportError("id must be greater than 1") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetErrorsRequest struct { + ctx _context.Context + ApiService ErrorsApi + page *int32 + size *int32 +} + +func (r ApiGetErrorsRequest) Page(page int32) ApiGetErrorsRequest { + r.page = &page + return r +} +func (r ApiGetErrorsRequest) Size(size int32) ApiGetErrorsRequest { + r.size = &size + return r +} + +func (r ApiGetErrorsRequest) Execute() (ErrorList, *_nethttp.Response, error) { + return r.ApiService.GetErrorsExecute(r) +} + +/* + * GetErrors Method for GetErrors + * Get the list of all errors + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetErrorsRequest + */ +func (a *ErrorsApiService) GetErrors(ctx _context.Context) ApiGetErrorsRequest { + return ApiGetErrorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrorList + */ +func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ErrorList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go b/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go new file mode 100644 index 00000000..881cbfd4 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go @@ -0,0 +1,652 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type RegistriesApi interface { + + /* + * CreateRegistry Method for CreateRegistry + * Create a new Registry instance + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateRegistryRequest + */ + CreateRegistry(ctx _context.Context) ApiCreateRegistryRequest + + /* + * CreateRegistryExecute executes the request + * @return Registry + */ + CreateRegistryExecute(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) + + /* + * DeleteRegistry Delete a Registry instance + * Deletes an existing `Registry` instance and all of the data that it stores. Important: Users should export the registry data before deleting the instance, e.g., using the Service Registry web console, core REST API, or `rhoas` CLI. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for a `Registry` instance. + * @return ApiDeleteRegistryRequest + */ + DeleteRegistry(ctx _context.Context, id string) ApiDeleteRegistryRequest + + /* + * DeleteRegistryExecute executes the request + */ + DeleteRegistryExecute(r ApiDeleteRegistryRequest) (*_nethttp.Response, error) + + /* + * GetRegistries Method for GetRegistries + * Get the list of all Registry instances + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetRegistriesRequest + */ + GetRegistries(ctx _context.Context) ApiGetRegistriesRequest + + /* + * GetRegistriesExecute executes the request + * @return RegistryList + */ + GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryList, *_nethttp.Response, error) + + /* + * GetRegistry Get a Registry instance + * Gets the details of a single instance of a `Registry`. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for a `Registry` instance. + * @return ApiGetRegistryRequest + */ + GetRegistry(ctx _context.Context, id string) ApiGetRegistryRequest + + /* + * GetRegistryExecute executes the request + * @return Registry + */ + GetRegistryExecute(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) +} + +// RegistriesApiService RegistriesApi service +type RegistriesApiService service + +type ApiCreateRegistryRequest struct { + ctx _context.Context + ApiService RegistriesApi + registryCreate *RegistryCreate +} + +func (r ApiCreateRegistryRequest) RegistryCreate(registryCreate RegistryCreate) ApiCreateRegistryRequest { + r.registryCreate = ®istryCreate + return r +} + +func (r ApiCreateRegistryRequest) Execute() (Registry, *_nethttp.Response, error) { + return r.ApiService.CreateRegistryExecute(r) +} + +/* + * CreateRegistry Method for CreateRegistry + * Create a new Registry instance + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateRegistryRequest + */ +func (a *RegistriesApiService) CreateRegistry(ctx _context.Context) ApiCreateRegistryRequest { + return ApiCreateRegistryRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return Registry + */ +func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Registry + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.CreateRegistry") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.registryCreate == nil { + return localVarReturnValue, nil, reportError("registryCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.registryCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteRegistryRequest struct { + ctx _context.Context + ApiService RegistriesApi + id string +} + + +func (r ApiDeleteRegistryRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteRegistryExecute(r) +} + +/* + * DeleteRegistry Delete a Registry instance + * Deletes an existing `Registry` instance and all of the data that it stores. Important: Users should export the registry data before deleting the instance, e.g., using the Service Registry web console, core REST API, or `rhoas` CLI. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for a `Registry` instance. + * @return ApiDeleteRegistryRequest + */ +func (a *RegistriesApiService) DeleteRegistry(ctx _context.Context, id string) ApiDeleteRegistryRequest { + return ApiDeleteRegistryRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.DeleteRegistry") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetRegistriesRequest struct { + ctx _context.Context + ApiService RegistriesApi + page *int32 + size *int32 + orderBy *string + search *string +} + +func (r ApiGetRegistriesRequest) Page(page int32) ApiGetRegistriesRequest { + r.page = &page + return r +} +func (r ApiGetRegistriesRequest) Size(size int32) ApiGetRegistriesRequest { + r.size = &size + return r +} +func (r ApiGetRegistriesRequest) OrderBy(orderBy string) ApiGetRegistriesRequest { + r.orderBy = &orderBy + return r +} +func (r ApiGetRegistriesRequest) Search(search string) ApiGetRegistriesRequest { + r.search = &search + return r +} + +func (r ApiGetRegistriesRequest) Execute() (RegistryList, *_nethttp.Response, error) { + return r.ApiService.GetRegistriesExecute(r) +} + +/* + * GetRegistries Method for GetRegistries + * Get the list of all Registry instances + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetRegistriesRequest + */ +func (a *RegistriesApiService) GetRegistries(ctx _context.Context) ApiGetRegistriesRequest { + return ApiGetRegistriesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RegistryList + */ +func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryList, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RegistryList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.GetRegistries") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.orderBy != nil { + localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) + } + if r.search != nil { + localVarQueryParams.Add("search", parameterToString(*r.search, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetRegistryRequest struct { + ctx _context.Context + ApiService RegistriesApi + id string +} + + +func (r ApiGetRegistryRequest) Execute() (Registry, *_nethttp.Response, error) { + return r.ApiService.GetRegistryExecute(r) +} + +/* + * GetRegistry Get a Registry instance + * Gets the details of a single instance of a `Registry`. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id A unique identifier for a `Registry` instance. + * @return ApiGetRegistryRequest + */ +func (a *RegistriesApiService) GetRegistry(ctx _context.Context, id string) ApiGetRegistryRequest { + return ApiGetRegistryRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return Registry + */ +func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Registry + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.GetRegistry") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/client.go b/app-services-sdk-go/registrymgmt/apiv1/client/client.go new file mode 100644 index 00000000..0dd83f30 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/client.go @@ -0,0 +1,552 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Service Registry Management API API v0.0.6 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi DefaultApi + + ErrorsApi ErrorsApi + + RegistriesApi RegistriesApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + c.ErrorsApi = (*ErrorsApiService)(&c.common) + c.RegistriesApi = (*RegistriesApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go b/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go new file mode 100644 index 00000000..f975c184 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go @@ -0,0 +1,243 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.openshift.com", + Description: "Main (production) server", + }, + { + URL: "https://api.stage.openshift.com", + Description: "Staging server", + }, + { + URL: "http://localhost:8000", + Description: "localhost", + }, + { + URL: "", + Description: "current domain", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/docs/DefaultApi.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/DefaultApi.md new file mode 100644 index 00000000..c575fa51 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/DefaultApi.md @@ -0,0 +1,70 @@ +# \DefaultApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetServiceStatus**](DefaultApi.md#GetServiceStatus) | **Get** /api/serviceregistry_mgmt/v1/status | + + + +## GetServiceStatus + +> ServiceStatus GetServiceStatus(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetServiceStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetServiceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceStatus`: ServiceStatus + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetServiceStatus`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceStatusRequest struct via the builder pattern + + +### Return type + +[**ServiceStatus**](ServiceStatus.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/Error.md new file mode 100644 index 00000000..112031e0 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/Error.md @@ -0,0 +1,161 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | | +**OperationId** | Pointer to **string** | | [optional] +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Code** | **string** | | + +## Methods + +### NewError + +`func NewError(reason string, id string, kind string, href string, code string, ) *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetOperationId + +`func (o *Error) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *Error) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *Error) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *Error) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetId + +`func (o *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetCode + +`func (o *Error) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v string)` + +SetCode sets Code 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorList.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorList.md new file mode 100644 index 00000000..02e7e299 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorList.md @@ -0,0 +1,135 @@ +# ErrorList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Error**](Error.md) | | + +## Methods + +### NewErrorList + +`func NewErrorList(kind string, page int32, size int32, total int32, items []Error, ) *ErrorList` + +NewErrorList instantiates a new ErrorList 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 + +### NewErrorListWithDefaults + +`func NewErrorListWithDefaults() *ErrorList` + +NewErrorListWithDefaults instantiates a new ErrorList 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 + +### GetKind + +`func (o *ErrorList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *ErrorList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrorList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrorList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ErrorList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ErrorList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ErrorList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ErrorList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *ErrorList) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorList) SetItems(v []Error)` + +SetItems sets Items 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorListAllOf.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorListAllOf.md new file mode 100644 index 00000000..5cd69e9b --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorListAllOf.md @@ -0,0 +1,56 @@ +# ErrorListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] + +## Methods + +### NewErrorListAllOf + +`func NewErrorListAllOf() *ErrorListAllOf` + +NewErrorListAllOf instantiates a new ErrorListAllOf 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 + +### NewErrorListAllOfWithDefaults + +`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` + +NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 + +### GetItems + +`func (o *ErrorListAllOf) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorListAllOf) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorListAllOf) HasItems() bool` + +HasItems 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorsApi.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorsApi.md new file mode 100644 index 00000000..7280e050 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ErrorsApi.md @@ -0,0 +1,148 @@ +# \ErrorsApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetError**](ErrorsApi.md#GetError) | **Get** /api/serviceregistry_mgmt/v1/errors/{id} | +[**GetErrors**](ErrorsApi.md#GetErrors) | **Get** /api/serviceregistry_mgmt/v1/errors | + + + +## GetError + +> Error GetError(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | A unique identifier for an error type. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetError(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetError``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetError`: Error + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetError`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique identifier for an error type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Error**](Error.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetErrors + +> ErrorList GetErrors(ctx).Page(page).Size(size).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(0) // int32 | Page index. (optional) + size := int32(100) // int32 | Number of items in each page. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorsApi.GetErrors(context.Background()).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetErrors`: ErrorList + fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetErrorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page index. | + **size** | **int32** | Number of items in each page. | + +### Return type + +[**ErrorList**](ErrorList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/docs/List.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/List.md new file mode 100644 index 00000000..df93b0c7 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/List.md @@ -0,0 +1,135 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]ObjectReference**](ObjectReference.md) | | + +## Methods + +### NewList + +`func NewList(kind string, page int32, size int32, total int32, items []ObjectReference, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *List) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *List) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *List) GetItems() []ObjectReference` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *List) GetItemsOk() (*[]ObjectReference, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *List) SetItems(v []ObjectReference)` + +SetItems sets Items 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ObjectReference.md new file mode 100644 index 00000000..1d898d8a --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ObjectReference.md @@ -0,0 +1,93 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | + +## Methods + +### NewObjectReference + +`func NewObjectReference(id string, kind string, href string, ) *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistriesApi.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistriesApi.md new file mode 100644 index 00000000..94f2de0f --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistriesApi.md @@ -0,0 +1,288 @@ +# \RegistriesApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateRegistry**](RegistriesApi.md#CreateRegistry) | **Post** /api/serviceregistry_mgmt/v1/registries | +[**DeleteRegistry**](RegistriesApi.md#DeleteRegistry) | **Delete** /api/serviceregistry_mgmt/v1/registries/{id} | Delete a Registry instance +[**GetRegistries**](RegistriesApi.md#GetRegistries) | **Get** /api/serviceregistry_mgmt/v1/registries | +[**GetRegistry**](RegistriesApi.md#GetRegistry) | **Get** /api/serviceregistry_mgmt/v1/registries/{id} | Get a Registry instance + + + +## CreateRegistry + +> Registry CreateRegistry(ctx).RegistryCreate(registryCreate).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + registryCreate := *openapiclient.NewRegistryCreate("Name_example") // RegistryCreate | A new `Registry` instance to be created. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RegistriesApi.CreateRegistry(context.Background()).RegistryCreate(registryCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.CreateRegistry``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRegistry`: Registry + fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.CreateRegistry`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRegistryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **registryCreate** | [**RegistryCreate**](RegistryCreate.md) | A new `Registry` instance to be created. | + +### Return type + +[**Registry**](Registry.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteRegistry + +> DeleteRegistry(ctx, id).Execute() + +Delete a Registry instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | A unique identifier for a `Registry` instance. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RegistriesApi.DeleteRegistry(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.DeleteRegistry``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A unique identifier for a `Registry` instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteRegistryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetRegistries + +> RegistryList GetRegistries(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(0) // int32 | Page index. (optional) + size := int32(100) // int32 | Number of items in each page. (optional) + orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement. Each query can be ordered by any of the request fields. For example, to retrieve all Registry instances ordered by their name: ```sql name asc ``` Or to retrieve all Registry instances ordered by their name _and_ created date: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, the results are ordered by name. (optional) + search := "name = my-registry and status = AVAILABLE" // string | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement. Allowed fields in the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`. Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins in the search query. Examples: To retrieve a request with name equal `my-registry`, the value should be: ``` name = my-registry ``` To retrieve a request with its name starting with `my`, the value should be: ``` name like my%25 ``` If the parameter isn't provided, or if the value is empty, all the Registry instances that the user has permission to see are returned. Note: If the query is invalid, an error is returned. (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RegistriesApi.GetRegistries(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.GetRegistries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRegistries`: RegistryList + fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.GetRegistries`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRegistriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | Page index. | + **size** | **int32** | Number of items in each page. | + **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement. Each query can be ordered by any of the request fields. For example, to retrieve all Registry instances ordered by their name: ```sql name asc ``` Or to retrieve all Registry instances ordered by their name _and_ created date: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, the results are ordered by name. | + **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement. Allowed fields in the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`. Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins in the search query. Examples: To retrieve a request with name equal `my-registry`, the value should be: ``` name = my-registry ``` To retrieve a request with its name starting with `my`, the value should be: ``` name like my%25 ``` If the parameter isn't provided, or if the value is empty, all the Registry instances that the user has permission to see are returned. Note: If the query is invalid, an error is returned. | + +### Return type + +[**RegistryList**](RegistryList.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetRegistry + +> Registry GetRegistry(ctx, id).Execute() + +Get a Registry instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | A unique identifier for a `Registry` instance. + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.RegistriesApi.GetRegistry(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.GetRegistry``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRegistry`: Registry + fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.GetRegistry`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | A unique identifier for a `Registry` instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRegistryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Registry**](Registry.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/docs/Registry.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/Registry.md new file mode 100644 index 00000000..ff81881d --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/Registry.md @@ -0,0 +1,323 @@ +# Registry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Kind** | **string** | | +**Href** | **string** | | +**Status** | [**RegistryStatusValue**](RegistryStatusValue.md) | | +**RegistryUrl** | Pointer to **string** | | [optional] +**BrowserUrl** | Pointer to **string** | | [optional] +**Name** | **string** | User-defined Registry instance name. Does not have to be unique. | +**RegistryDeploymentId** | Pointer to **int32** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional] +**Owner** | **string** | Registry instance owner. | +**Description** | Pointer to **string** | Description of the Registry instance. | [optional] +**CreatedAt** | **time.Time** | ISO 8601 UTC timestamp. | +**UpdatedAt** | **time.Time** | ISO 8601 UTC timestamp. | +**InstanceType** | [**RegistryInstanceTypeValue**](RegistryInstanceTypeValue.md) | | + +## Methods + +### NewRegistry + +`func NewRegistry(id string, kind string, href string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue, ) *Registry` + +NewRegistry instantiates a new Registry 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 + +### NewRegistryWithDefaults + +`func NewRegistryWithDefaults() *Registry` + +NewRegistryWithDefaults instantiates a new Registry 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 *Registry) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Registry) 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 *Registry) SetId(v string)` + +SetId sets Id field to given value. + + +### GetKind + +`func (o *Registry) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Registry) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Registry) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetHref + +`func (o *Registry) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Registry) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Registry) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetStatus + +`func (o *Registry) GetStatus() RegistryStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Registry) GetStatusOk() (*RegistryStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Registry) SetStatus(v RegistryStatusValue)` + +SetStatus sets Status field to given value. + + +### GetRegistryUrl + +`func (o *Registry) GetRegistryUrl() string` + +GetRegistryUrl returns the RegistryUrl field if non-nil, zero value otherwise. + +### GetRegistryUrlOk + +`func (o *Registry) GetRegistryUrlOk() (*string, bool)` + +GetRegistryUrlOk returns a tuple with the RegistryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistryUrl + +`func (o *Registry) SetRegistryUrl(v string)` + +SetRegistryUrl sets RegistryUrl field to given value. + +### HasRegistryUrl + +`func (o *Registry) HasRegistryUrl() bool` + +HasRegistryUrl returns a boolean if a field has been set. + +### GetBrowserUrl + +`func (o *Registry) GetBrowserUrl() string` + +GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. + +### GetBrowserUrlOk + +`func (o *Registry) GetBrowserUrlOk() (*string, bool)` + +GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserUrl + +`func (o *Registry) SetBrowserUrl(v string)` + +SetBrowserUrl sets BrowserUrl field to given value. + +### HasBrowserUrl + +`func (o *Registry) HasBrowserUrl() bool` + +HasBrowserUrl returns a boolean if a field has been set. + +### GetName + +`func (o *Registry) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Registry) 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 *Registry) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRegistryDeploymentId + +`func (o *Registry) GetRegistryDeploymentId() int32` + +GetRegistryDeploymentId returns the RegistryDeploymentId field if non-nil, zero value otherwise. + +### GetRegistryDeploymentIdOk + +`func (o *Registry) GetRegistryDeploymentIdOk() (*int32, bool)` + +GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistryDeploymentId + +`func (o *Registry) SetRegistryDeploymentId(v int32)` + +SetRegistryDeploymentId sets RegistryDeploymentId field to given value. + +### HasRegistryDeploymentId + +`func (o *Registry) HasRegistryDeploymentId() bool` + +HasRegistryDeploymentId returns a boolean if a field has been set. + +### GetOwner + +`func (o *Registry) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *Registry) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *Registry) SetOwner(v string)` + +SetOwner sets Owner field to given value. + + +### GetDescription + +`func (o *Registry) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Registry) 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 *Registry) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Registry) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *Registry) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Registry) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Registry) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *Registry) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Registry) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Registry) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetInstanceType + +`func (o *Registry) GetInstanceType() RegistryInstanceTypeValue` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *Registry) GetInstanceTypeOk() (*RegistryInstanceTypeValue, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *Registry) SetInstanceType(v RegistryInstanceTypeValue)` + +SetInstanceType sets InstanceType 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryCreate.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryCreate.md new file mode 100644 index 00000000..b5c7fc09 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryCreate.md @@ -0,0 +1,77 @@ +# RegistryCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | User-defined Registry instance name. Required. Must be unique within a given organization. | +**Description** | Pointer to **string** | User-provided description of the new Service Registry instance. Not required. | [optional] + +## Methods + +### NewRegistryCreate + +`func NewRegistryCreate(name string, ) *RegistryCreate` + +NewRegistryCreate instantiates a new RegistryCreate 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 + +### NewRegistryCreateWithDefaults + +`func NewRegistryCreateWithDefaults() *RegistryCreate` + +NewRegistryCreateWithDefaults instantiates a new RegistryCreate 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 *RegistryCreate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RegistryCreate) 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 *RegistryCreate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *RegistryCreate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RegistryCreate) 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 *RegistryCreate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RegistryCreate) 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryInstanceTypeValue.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryInstanceTypeValue.md new file mode 100644 index 00000000..1a641b64 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryInstanceTypeValue.md @@ -0,0 +1,13 @@ +# RegistryInstanceTypeValue + +## Enum + + +* `STANDARD` (value: `"standard"`) + +* `EVAL` (value: `"eval"`) + + +[[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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryList.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryList.md new file mode 100644 index 00000000..45db502c --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryList.md @@ -0,0 +1,135 @@ +# RegistryList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Page** | **int32** | | +**Size** | **int32** | | +**Total** | **int32** | | +**Items** | [**[]Registry**](Registry.md) | | + +## Methods + +### NewRegistryList + +`func NewRegistryList(kind string, page int32, size int32, total int32, items []Registry, ) *RegistryList` + +NewRegistryList instantiates a new RegistryList 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 + +### NewRegistryListWithDefaults + +`func NewRegistryListWithDefaults() *RegistryList` + +NewRegistryListWithDefaults instantiates a new RegistryList 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 + +### GetKind + +`func (o *RegistryList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *RegistryList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *RegistryList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetPage + +`func (o *RegistryList) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *RegistryList) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *RegistryList) SetPage(v int32)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *RegistryList) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *RegistryList) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *RegistryList) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *RegistryList) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *RegistryList) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *RegistryList) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetItems + +`func (o *RegistryList) GetItems() []Registry` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryList) GetItemsOk() (*[]Registry, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryList) SetItems(v []Registry)` + +SetItems sets Items 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryListAllOf.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryListAllOf.md new file mode 100644 index 00000000..6f703f7f --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryListAllOf.md @@ -0,0 +1,51 @@ +# RegistryListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]Registry**](Registry.md) | | + +## Methods + +### NewRegistryListAllOf + +`func NewRegistryListAllOf(items []Registry, ) *RegistryListAllOf` + +NewRegistryListAllOf instantiates a new RegistryListAllOf 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 + +### NewRegistryListAllOfWithDefaults + +`func NewRegistryListAllOfWithDefaults() *RegistryListAllOf` + +NewRegistryListAllOfWithDefaults instantiates a new RegistryListAllOf 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 + +### GetItems + +`func (o *RegistryListAllOf) GetItems() []Registry` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *RegistryListAllOf) GetItemsOk() (*[]Registry, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *RegistryListAllOf) SetItems(v []Registry)` + +SetItems sets Items 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryStatusValue.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryStatusValue.md new file mode 100644 index 00000000..2dd4c7f4 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RegistryStatusValue.md @@ -0,0 +1,21 @@ +# RegistryStatusValue + +## Enum + + +* `ACCEPTED` (value: `"accepted"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `READY` (value: `"ready"`) + +* `FAILED` (value: `"failed"`) + +* `DEPROVISION` (value: `"deprovision"`) + +* `DELETING` (value: `"deleting"`) + + +[[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/app-services-sdk-go/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md new file mode 100644 index 00000000..6f5b1de4 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md @@ -0,0 +1,281 @@ +# RootTypeForRegistry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Status** | [**RegistryStatusValue**](RegistryStatusValue.md) | | +**RegistryUrl** | Pointer to **string** | | [optional] +**BrowserUrl** | Pointer to **string** | | [optional] +**Name** | **string** | User-defined Registry instance name. Does not have to be unique. | +**RegistryDeploymentId** | Pointer to **int32** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional] +**Owner** | **string** | Registry instance owner. | +**Description** | Pointer to **string** | Description of the Registry instance. | [optional] +**CreatedAt** | **time.Time** | ISO 8601 UTC timestamp. | +**UpdatedAt** | **time.Time** | ISO 8601 UTC timestamp. | +**InstanceType** | [**RegistryInstanceTypeValue**](RegistryInstanceTypeValue.md) | | + +## Methods + +### NewRootTypeForRegistry + +`func NewRootTypeForRegistry(id string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue, ) *RootTypeForRegistry` + +NewRootTypeForRegistry instantiates a new RootTypeForRegistry 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 + +### NewRootTypeForRegistryWithDefaults + +`func NewRootTypeForRegistryWithDefaults() *RootTypeForRegistry` + +NewRootTypeForRegistryWithDefaults instantiates a new RootTypeForRegistry 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 *RootTypeForRegistry) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RootTypeForRegistry) 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 *RootTypeForRegistry) SetId(v string)` + +SetId sets Id field to given value. + + +### GetStatus + +`func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValue)` + +SetStatus sets Status field to given value. + + +### GetRegistryUrl + +`func (o *RootTypeForRegistry) GetRegistryUrl() string` + +GetRegistryUrl returns the RegistryUrl field if non-nil, zero value otherwise. + +### GetRegistryUrlOk + +`func (o *RootTypeForRegistry) GetRegistryUrlOk() (*string, bool)` + +GetRegistryUrlOk returns a tuple with the RegistryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistryUrl + +`func (o *RootTypeForRegistry) SetRegistryUrl(v string)` + +SetRegistryUrl sets RegistryUrl field to given value. + +### HasRegistryUrl + +`func (o *RootTypeForRegistry) HasRegistryUrl() bool` + +HasRegistryUrl returns a boolean if a field has been set. + +### GetBrowserUrl + +`func (o *RootTypeForRegistry) GetBrowserUrl() string` + +GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. + +### GetBrowserUrlOk + +`func (o *RootTypeForRegistry) GetBrowserUrlOk() (*string, bool)` + +GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBrowserUrl + +`func (o *RootTypeForRegistry) SetBrowserUrl(v string)` + +SetBrowserUrl sets BrowserUrl field to given value. + +### HasBrowserUrl + +`func (o *RootTypeForRegistry) HasBrowserUrl() bool` + +HasBrowserUrl returns a boolean if a field has been set. + +### GetName + +`func (o *RootTypeForRegistry) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RootTypeForRegistry) 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 *RootTypeForRegistry) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRegistryDeploymentId + +`func (o *RootTypeForRegistry) GetRegistryDeploymentId() int32` + +GetRegistryDeploymentId returns the RegistryDeploymentId field if non-nil, zero value otherwise. + +### GetRegistryDeploymentIdOk + +`func (o *RootTypeForRegistry) GetRegistryDeploymentIdOk() (*int32, bool)` + +GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistryDeploymentId + +`func (o *RootTypeForRegistry) SetRegistryDeploymentId(v int32)` + +SetRegistryDeploymentId sets RegistryDeploymentId field to given value. + +### HasRegistryDeploymentId + +`func (o *RootTypeForRegistry) HasRegistryDeploymentId() bool` + +HasRegistryDeploymentId returns a boolean if a field has been set. + +### GetOwner + +`func (o *RootTypeForRegistry) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *RootTypeForRegistry) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *RootTypeForRegistry) SetOwner(v string)` + +SetOwner sets Owner field to given value. + + +### GetDescription + +`func (o *RootTypeForRegistry) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RootTypeForRegistry) 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 *RootTypeForRegistry) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RootTypeForRegistry) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *RootTypeForRegistry) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RootTypeForRegistry) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RootTypeForRegistry) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *RootTypeForRegistry) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *RootTypeForRegistry) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *RootTypeForRegistry) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetInstanceType + +`func (o *RootTypeForRegistry) GetInstanceType() RegistryInstanceTypeValue` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *RootTypeForRegistry) GetInstanceTypeOk() (*RegistryInstanceTypeValue, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *RootTypeForRegistry) SetInstanceType(v RegistryInstanceTypeValue)` + +SetInstanceType sets InstanceType 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/app-services-sdk-go/registrymgmt/apiv1/client/docs/ServiceStatus.md b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ServiceStatus.md new file mode 100644 index 00000000..acc2b7ca --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/docs/ServiceStatus.md @@ -0,0 +1,56 @@ +# ServiceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxInstancesReached** | Pointer to **bool** | Boolean property indicating if the maximum number of total Registry instances have been reached, therefore creation of more instances should not be allowed. | [optional] + +## Methods + +### NewServiceStatus + +`func NewServiceStatus() *ServiceStatus` + +NewServiceStatus instantiates a new ServiceStatus 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 + +### NewServiceStatusWithDefaults + +`func NewServiceStatusWithDefaults() *ServiceStatus` + +NewServiceStatusWithDefaults instantiates a new ServiceStatus 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 + +### GetMaxInstancesReached + +`func (o *ServiceStatus) GetMaxInstancesReached() bool` + +GetMaxInstancesReached returns the MaxInstancesReached field if non-nil, zero value otherwise. + +### GetMaxInstancesReachedOk + +`func (o *ServiceStatus) GetMaxInstancesReachedOk() (*bool, bool)` + +GetMaxInstancesReachedOk returns a tuple with the MaxInstancesReached field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxInstancesReached + +`func (o *ServiceStatus) SetMaxInstancesReached(v bool)` + +SetMaxInstancesReached sets MaxInstancesReached field to given value. + +### HasMaxInstancesReached + +`func (o *ServiceStatus) HasMaxInstancesReached() bool` + +HasMaxInstancesReached 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/app-services-sdk-go/registrymgmt/apiv1/client/git_push.sh b/app-services-sdk-go/registrymgmt/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/go.mod b/app-services-sdk-go/registrymgmt/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/go.sum b/app-services-sdk-go/registrymgmt/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go new file mode 100644 index 00000000..c557dfe6 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go @@ -0,0 +1,261 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + Reason string `json:"reason"` + OperationId *string `json:"operation_id,omitempty"` + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + Code string `json:"code"` +} + +// NewError instantiates a new Error 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 NewError(reason string, id string, kind string, href string, code string) *Error { + this := Error{} + this.Reason = reason + this.Id = id + this.Kind = kind + this.Href = href + this.Code = code + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetReason returns the Reason field value +func (o *Error) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Error) SetReason(v string) { + o.Reason = v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *Error) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *Error) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *Error) SetOperationId(v string) { + o.OperationId = &v +} + +// GetId returns the Id field value +func (o *Error) 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 *Error) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Error) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *Error) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *Error) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *Error) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Error) SetHref(v string) { + o.Href = v +} + +// GetCode returns the Code field value +func (o *Error) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *Error) SetCode(v string) { + o.Code = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["reason"] = o.Reason + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go new file mode 100644 index 00000000..6787ed4f --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go @@ -0,0 +1,225 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// ErrorList struct for ErrorList +type ErrorList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Error `json:"items"` +} + +// NewErrorList instantiates a new ErrorList 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 NewErrorList(kind string, page int32, size int32, total int32, items []Error) *ErrorList { + this := ErrorList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewErrorListWithDefaults instantiates a new ErrorList 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 NewErrorListWithDefaults() *ErrorList { + this := ErrorList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ErrorList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ErrorList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *ErrorList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ErrorList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ErrorList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ErrorList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ErrorList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ErrorList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *ErrorList) GetItems() []Error { + if o == nil { + var ret []Error + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ErrorList) GetItemsOk() (*[]Error, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *ErrorList) SetItems(v []Error) { + o.Items = v +} + +func (o ErrorList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorList struct { + value *ErrorList + isSet bool +} + +func (v NullableErrorList) Get() *ErrorList { + return v.value +} + +func (v *NullableErrorList) Set(val *ErrorList) { + v.value = val + v.isSet = true +} + +func (v NullableErrorList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorList(val *ErrorList) *NullableErrorList { + return &NullableErrorList{value: val, isSet: true} +} + +func (v NullableErrorList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go new file mode 100644 index 00000000..f8a1b257 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go @@ -0,0 +1,116 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// ErrorListAllOf struct for ErrorListAllOf +type ErrorListAllOf struct { + Items *[]Error `json:"items,omitempty"` +} + +// NewErrorListAllOf instantiates a new ErrorListAllOf 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 NewErrorListAllOf() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { + this := ErrorListAllOf{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorListAllOf) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorListAllOf) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorListAllOf) SetItems(v []Error) { + o.Items = &v +} + +func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorListAllOf struct { + value *ErrorListAllOf + isSet bool +} + +func (v NullableErrorListAllOf) Get() *ErrorListAllOf { + return v.value +} + +func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { + return &NullableErrorListAllOf{value: val, isSet: true} +} + +func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go new file mode 100644 index 00000000..a4aabc8a --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go @@ -0,0 +1,225 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []ObjectReference `json:"items"` +} + +// NewList instantiates a new List 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 NewList(kind string, page int32, size int32, total int32, items []ObjectReference) *List { + this := List{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value +func (o *List) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *List) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *List) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *List) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *List) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *List) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *List) GetItems() []ObjectReference { + if o == nil { + var ret []ObjectReference + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *List) GetItemsOk() (*[]ObjectReference, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *List) SetItems(v []ObjectReference) { + o.Items = v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go new file mode 100644 index 00000000..8b20c55d --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go @@ -0,0 +1,167 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference(id string, kind string, href string) *ObjectReference { + this := ObjectReference{} + this.Id = id + this.Kind = kind + this.Href = href + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetId returns the Id field value +func (o *ObjectReference) 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ObjectReference) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *ObjectReference) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ObjectReference) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *ObjectReference) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ObjectReference) SetHref(v string) { + o.Href = v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go new file mode 100644 index 00000000..698776c9 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go @@ -0,0 +1,492 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "time" +) + +// Registry struct for Registry +type Registry struct { + Id string `json:"id"` + Kind string `json:"kind"` + Href string `json:"href"` + Status RegistryStatusValue `json:"status"` + RegistryUrl *string `json:"registryUrl,omitempty"` + BrowserUrl *string `json:"browserUrl,omitempty"` + // User-defined Registry instance name. Does not have to be unique. + Name string `json:"name"` + // Identifier of a multi-tenant deployment, where this Service Registry instance resides. + RegistryDeploymentId *int32 `json:"registryDeploymentId,omitempty"` + // Registry instance owner. + Owner string `json:"owner"` + // Description of the Registry instance. + Description *string `json:"description,omitempty"` + // ISO 8601 UTC timestamp. + CreatedAt time.Time `json:"created_at"` + // ISO 8601 UTC timestamp. + UpdatedAt time.Time `json:"updated_at"` + InstanceType RegistryInstanceTypeValue `json:"instance_type"` +} + +// NewRegistry instantiates a new Registry 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 NewRegistry(id string, kind string, href string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue) *Registry { + this := Registry{} + this.Id = id + this.Kind = kind + this.Href = href + this.Status = status + this.Name = name + this.Owner = owner + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.InstanceType = instanceType + return &this +} + +// NewRegistryWithDefaults instantiates a new Registry 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 NewRegistryWithDefaults() *Registry { + this := Registry{} + return &this +} + +// GetId returns the Id field value +func (o *Registry) 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 *Registry) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Registry) SetId(v string) { + o.Id = v +} + +// GetKind returns the Kind field value +func (o *Registry) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *Registry) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *Registry) SetKind(v string) { + o.Kind = v +} + +// GetHref returns the Href field value +func (o *Registry) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Registry) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Registry) SetHref(v string) { + o.Href = v +} + +// GetStatus returns the Status field value +func (o *Registry) GetStatus() RegistryStatusValue { + if o == nil { + var ret RegistryStatusValue + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Registry) GetStatusOk() (*RegistryStatusValue, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Registry) SetStatus(v RegistryStatusValue) { + o.Status = v +} + +// GetRegistryUrl returns the RegistryUrl field value if set, zero value otherwise. +func (o *Registry) GetRegistryUrl() string { + if o == nil || o.RegistryUrl == nil { + var ret string + return ret + } + return *o.RegistryUrl +} + +// GetRegistryUrlOk returns a tuple with the RegistryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetRegistryUrlOk() (*string, bool) { + if o == nil || o.RegistryUrl == nil { + return nil, false + } + return o.RegistryUrl, true +} + +// HasRegistryUrl returns a boolean if a field has been set. +func (o *Registry) HasRegistryUrl() bool { + if o != nil && o.RegistryUrl != nil { + return true + } + + return false +} + +// SetRegistryUrl gets a reference to the given string and assigns it to the RegistryUrl field. +func (o *Registry) SetRegistryUrl(v string) { + o.RegistryUrl = &v +} + +// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. +func (o *Registry) GetBrowserUrl() string { + if o == nil || o.BrowserUrl == nil { + var ret string + return ret + } + return *o.BrowserUrl +} + +// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetBrowserUrlOk() (*string, bool) { + if o == nil || o.BrowserUrl == nil { + return nil, false + } + return o.BrowserUrl, true +} + +// HasBrowserUrl returns a boolean if a field has been set. +func (o *Registry) HasBrowserUrl() bool { + if o != nil && o.BrowserUrl != nil { + return true + } + + return false +} + +// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. +func (o *Registry) SetBrowserUrl(v string) { + o.BrowserUrl = &v +} + +// GetName returns the Name field value +func (o *Registry) 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 *Registry) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Registry) SetName(v string) { + o.Name = v +} + +// GetRegistryDeploymentId returns the RegistryDeploymentId field value if set, zero value otherwise. +func (o *Registry) GetRegistryDeploymentId() int32 { + if o == nil || o.RegistryDeploymentId == nil { + var ret int32 + return ret + } + return *o.RegistryDeploymentId +} + +// GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Registry) GetRegistryDeploymentIdOk() (*int32, bool) { + if o == nil || o.RegistryDeploymentId == nil { + return nil, false + } + return o.RegistryDeploymentId, true +} + +// HasRegistryDeploymentId returns a boolean if a field has been set. +func (o *Registry) HasRegistryDeploymentId() bool { + if o != nil && o.RegistryDeploymentId != nil { + return true + } + + return false +} + +// SetRegistryDeploymentId gets a reference to the given int32 and assigns it to the RegistryDeploymentId field. +func (o *Registry) SetRegistryDeploymentId(v int32) { + o.RegistryDeploymentId = &v +} + +// GetOwner returns the Owner field value +func (o *Registry) GetOwner() string { + if o == nil { + var ret string + return ret + } + + return o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value +// and a boolean to check if the value has been set. +func (o *Registry) GetOwnerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Owner, true +} + +// SetOwner sets field value +func (o *Registry) SetOwner(v string) { + o.Owner = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Registry) GetDescription() string { + if o == nil || o.Description == nil { + 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 *Registry) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Registry) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Registry) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Registry) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Registry) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Registry) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *Registry) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *Registry) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *Registry) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +// GetInstanceType returns the InstanceType field value +func (o *Registry) GetInstanceType() RegistryInstanceTypeValue { + if o == nil { + var ret RegistryInstanceTypeValue + return ret + } + + return o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value +// and a boolean to check if the value has been set. +func (o *Registry) GetInstanceTypeOk() (*RegistryInstanceTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.InstanceType, true +} + +// SetInstanceType sets field value +func (o *Registry) SetInstanceType(v RegistryInstanceTypeValue) { + o.InstanceType = v +} + +func (o Registry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["status"] = o.Status + } + if o.RegistryUrl != nil { + toSerialize["registryUrl"] = o.RegistryUrl + } + if o.BrowserUrl != nil { + toSerialize["browserUrl"] = o.BrowserUrl + } + if true { + toSerialize["name"] = o.Name + } + if o.RegistryDeploymentId != nil { + toSerialize["registryDeploymentId"] = o.RegistryDeploymentId + } + if true { + toSerialize["owner"] = o.Owner + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["instance_type"] = o.InstanceType + } + return json.Marshal(toSerialize) +} + +type NullableRegistry struct { + value *Registry + isSet bool +} + +func (v NullableRegistry) Get() *Registry { + return v.value +} + +func (v *NullableRegistry) Set(val *Registry) { + v.value = val + v.isSet = true +} + +func (v NullableRegistry) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistry(val *Registry) *NullableRegistry { + return &NullableRegistry{value: val, isSet: true} +} + +func (v NullableRegistry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go new file mode 100644 index 00000000..39b12f6f --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go @@ -0,0 +1,147 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// RegistryCreate Information used to create a new Service Registry instance in a multi-tenant deployment. +type RegistryCreate struct { + // User-defined Registry instance name. Required. Must be unique within a given organization. + Name string `json:"name"` + // User-provided description of the new Service Registry instance. Not required. + Description *string `json:"description,omitempty"` +} + +// NewRegistryCreate instantiates a new RegistryCreate 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 NewRegistryCreate(name string) *RegistryCreate { + this := RegistryCreate{} + this.Name = name + return &this +} + +// NewRegistryCreateWithDefaults instantiates a new RegistryCreate 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 NewRegistryCreateWithDefaults() *RegistryCreate { + this := RegistryCreate{} + return &this +} + +// GetName returns the Name field value +func (o *RegistryCreate) 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 *RegistryCreate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RegistryCreate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RegistryCreate) GetDescription() string { + if o == nil || o.Description == nil { + 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 *RegistryCreate) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RegistryCreate) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RegistryCreate) SetDescription(v string) { + o.Description = &v +} + +func (o RegistryCreate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableRegistryCreate struct { + value *RegistryCreate + isSet bool +} + +func (v NullableRegistryCreate) Get() *RegistryCreate { + return v.value +} + +func (v *NullableRegistryCreate) Set(val *RegistryCreate) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryCreate(val *RegistryCreate) *NullableRegistryCreate { + return &NullableRegistryCreate{value: val, isSet: true} +} + +func (v NullableRegistryCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go new file mode 100644 index 00000000..b8936255 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go @@ -0,0 +1,111 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "fmt" +) + +// RegistryInstanceTypeValue \"standard\": Standard, full-featured Registry instance \"eval\": Evaluation (Trial) instance, provided for a limited time +type RegistryInstanceTypeValue string + +// List of RegistryInstanceTypeValue +const ( + REGISTRYINSTANCETYPEVALUE_STANDARD RegistryInstanceTypeValue = "standard" + REGISTRYINSTANCETYPEVALUE_EVAL RegistryInstanceTypeValue = "eval" +) + +var allowedRegistryInstanceTypeValueEnumValues = []RegistryInstanceTypeValue{ + "standard", + "eval", +} + +func (v *RegistryInstanceTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RegistryInstanceTypeValue(value) + for _, existing := range allowedRegistryInstanceTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RegistryInstanceTypeValue", value) +} + +// NewRegistryInstanceTypeValueFromValue returns a pointer to a valid RegistryInstanceTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRegistryInstanceTypeValueFromValue(v string) (*RegistryInstanceTypeValue, error) { + ev := RegistryInstanceTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RegistryInstanceTypeValue: valid values are %v", v, allowedRegistryInstanceTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RegistryInstanceTypeValue) IsValid() bool { + for _, existing := range allowedRegistryInstanceTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RegistryInstanceTypeValue value +func (v RegistryInstanceTypeValue) Ptr() *RegistryInstanceTypeValue { + return &v +} + +type NullableRegistryInstanceTypeValue struct { + value *RegistryInstanceTypeValue + isSet bool +} + +func (v NullableRegistryInstanceTypeValue) Get() *RegistryInstanceTypeValue { + return v.value +} + +func (v *NullableRegistryInstanceTypeValue) Set(val *RegistryInstanceTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryInstanceTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryInstanceTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryInstanceTypeValue(val *RegistryInstanceTypeValue) *NullableRegistryInstanceTypeValue { + return &NullableRegistryInstanceTypeValue{value: val, isSet: true} +} + +func (v NullableRegistryInstanceTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryInstanceTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go new file mode 100644 index 00000000..da921131 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go @@ -0,0 +1,225 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// RegistryList struct for RegistryList +type RegistryList struct { + Kind string `json:"kind"` + Page int32 `json:"page"` + Size int32 `json:"size"` + Total int32 `json:"total"` + Items []Registry `json:"items"` +} + +// NewRegistryList instantiates a new RegistryList 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 NewRegistryList(kind string, page int32, size int32, total int32, items []Registry) *RegistryList { + this := RegistryList{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + this.Items = items + return &this +} + +// NewRegistryListWithDefaults instantiates a new RegistryList 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 NewRegistryListWithDefaults() *RegistryList { + this := RegistryList{} + return &this +} + +// GetKind returns the Kind field value +func (o *RegistryList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *RegistryList) SetKind(v string) { + o.Kind = v +} + +// GetPage returns the Page field value +func (o *RegistryList) GetPage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetPageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *RegistryList) SetPage(v int32) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *RegistryList) GetSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *RegistryList) SetSize(v int32) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *RegistryList) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *RegistryList) SetTotal(v int32) { + o.Total = v +} + +// GetItems returns the Items field value +func (o *RegistryList) GetItems() []Registry { + if o == nil { + var ret []Registry + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RegistryList) GetItemsOk() (*[]Registry, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RegistryList) SetItems(v []Registry) { + o.Items = v +} + +func (o RegistryList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryList struct { + value *RegistryList + isSet bool +} + +func (v NullableRegistryList) Get() *RegistryList { + return v.value +} + +func (v *NullableRegistryList) Set(val *RegistryList) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryList) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryList(val *RegistryList) *NullableRegistryList { + return &NullableRegistryList{value: val, isSet: true} +} + +func (v NullableRegistryList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go new file mode 100644 index 00000000..71f52a88 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go @@ -0,0 +1,109 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// RegistryListAllOf struct for RegistryListAllOf +type RegistryListAllOf struct { + Items []Registry `json:"items"` +} + +// NewRegistryListAllOf instantiates a new RegistryListAllOf 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 NewRegistryListAllOf(items []Registry) *RegistryListAllOf { + this := RegistryListAllOf{} + this.Items = items + return &this +} + +// NewRegistryListAllOfWithDefaults instantiates a new RegistryListAllOf 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 NewRegistryListAllOfWithDefaults() *RegistryListAllOf { + this := RegistryListAllOf{} + return &this +} + +// GetItems returns the Items field value +func (o *RegistryListAllOf) GetItems() []Registry { + if o == nil { + var ret []Registry + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *RegistryListAllOf) GetItemsOk() (*[]Registry, bool) { + if o == nil { + return nil, false + } + return &o.Items, true +} + +// SetItems sets field value +func (o *RegistryListAllOf) SetItems(v []Registry) { + o.Items = v +} + +func (o RegistryListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableRegistryListAllOf struct { + value *RegistryListAllOf + isSet bool +} + +func (v NullableRegistryListAllOf) Get() *RegistryListAllOf { + return v.value +} + +func (v *NullableRegistryListAllOf) Set(val *RegistryListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryListAllOf(val *RegistryListAllOf) *NullableRegistryListAllOf { + return &NullableRegistryListAllOf{value: val, isSet: true} +} + +func (v NullableRegistryListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go new file mode 100644 index 00000000..a5394842 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go @@ -0,0 +1,119 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "fmt" +) + +// RegistryStatusValue \"accepted\": Registry status when accepted for processing. \"provisioning\": Registry status when provisioning a new instance. \"ready\": Registry status when ready for use. \"failed\": Registry status when the provisioning failed. When removing a Registry instance in this state, the status transitions directly to \"deleting\". \"deprovision\": Registry status when accepted for deprovisioning. \"deleting\": Registry status when deprovisioning. +type RegistryStatusValue string + +// List of RegistryStatusValue +const ( + REGISTRYSTATUSVALUE_ACCEPTED RegistryStatusValue = "accepted" + REGISTRYSTATUSVALUE_PROVISIONING RegistryStatusValue = "provisioning" + REGISTRYSTATUSVALUE_READY RegistryStatusValue = "ready" + REGISTRYSTATUSVALUE_FAILED RegistryStatusValue = "failed" + REGISTRYSTATUSVALUE_DEPROVISION RegistryStatusValue = "deprovision" + REGISTRYSTATUSVALUE_DELETING RegistryStatusValue = "deleting" +) + +var allowedRegistryStatusValueEnumValues = []RegistryStatusValue{ + "accepted", + "provisioning", + "ready", + "failed", + "deprovision", + "deleting", +} + +func (v *RegistryStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RegistryStatusValue(value) + for _, existing := range allowedRegistryStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RegistryStatusValue", value) +} + +// NewRegistryStatusValueFromValue returns a pointer to a valid RegistryStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRegistryStatusValueFromValue(v string) (*RegistryStatusValue, error) { + ev := RegistryStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RegistryStatusValue: valid values are %v", v, allowedRegistryStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RegistryStatusValue) IsValid() bool { + for _, existing := range allowedRegistryStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RegistryStatusValue value +func (v RegistryStatusValue) Ptr() *RegistryStatusValue { + return &v +} + +type NullableRegistryStatusValue struct { + value *RegistryStatusValue + isSet bool +} + +func (v NullableRegistryStatusValue) Get() *RegistryStatusValue { + return v.value +} + +func (v *NullableRegistryStatusValue) Set(val *RegistryStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryStatusValue(val *RegistryStatusValue) *NullableRegistryStatusValue { + return &NullableRegistryStatusValue{value: val, isSet: true} +} + +func (v NullableRegistryStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go new file mode 100644 index 00000000..278e861a --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go @@ -0,0 +1,434 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "time" +) + +// RootTypeForRegistry Service Registry instance in a multi-tenant deployment. +type RootTypeForRegistry struct { + Id string `json:"id"` + Status RegistryStatusValue `json:"status"` + RegistryUrl *string `json:"registryUrl,omitempty"` + BrowserUrl *string `json:"browserUrl,omitempty"` + // User-defined Registry instance name. Does not have to be unique. + Name string `json:"name"` + // Identifier of a multi-tenant deployment, where this Service Registry instance resides. + RegistryDeploymentId *int32 `json:"registryDeploymentId,omitempty"` + // Registry instance owner. + Owner string `json:"owner"` + // Description of the Registry instance. + Description *string `json:"description,omitempty"` + // ISO 8601 UTC timestamp. + CreatedAt time.Time `json:"created_at"` + // ISO 8601 UTC timestamp. + UpdatedAt time.Time `json:"updated_at"` + InstanceType RegistryInstanceTypeValue `json:"instance_type"` +} + +// NewRootTypeForRegistry instantiates a new RootTypeForRegistry 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 NewRootTypeForRegistry(id string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue) *RootTypeForRegistry { + this := RootTypeForRegistry{} + this.Id = id + this.Status = status + this.Name = name + this.Owner = owner + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.InstanceType = instanceType + return &this +} + +// NewRootTypeForRegistryWithDefaults instantiates a new RootTypeForRegistry 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 NewRootTypeForRegistryWithDefaults() *RootTypeForRegistry { + this := RootTypeForRegistry{} + return &this +} + +// GetId returns the Id field value +func (o *RootTypeForRegistry) 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 *RootTypeForRegistry) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RootTypeForRegistry) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue { + if o == nil { + var ret RegistryStatusValue + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValue, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValue) { + o.Status = v +} + +// GetRegistryUrl returns the RegistryUrl field value if set, zero value otherwise. +func (o *RootTypeForRegistry) GetRegistryUrl() string { + if o == nil || o.RegistryUrl == nil { + var ret string + return ret + } + return *o.RegistryUrl +} + +// GetRegistryUrlOk returns a tuple with the RegistryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetRegistryUrlOk() (*string, bool) { + if o == nil || o.RegistryUrl == nil { + return nil, false + } + return o.RegistryUrl, true +} + +// HasRegistryUrl returns a boolean if a field has been set. +func (o *RootTypeForRegistry) HasRegistryUrl() bool { + if o != nil && o.RegistryUrl != nil { + return true + } + + return false +} + +// SetRegistryUrl gets a reference to the given string and assigns it to the RegistryUrl field. +func (o *RootTypeForRegistry) SetRegistryUrl(v string) { + o.RegistryUrl = &v +} + +// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. +func (o *RootTypeForRegistry) GetBrowserUrl() string { + if o == nil || o.BrowserUrl == nil { + var ret string + return ret + } + return *o.BrowserUrl +} + +// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetBrowserUrlOk() (*string, bool) { + if o == nil || o.BrowserUrl == nil { + return nil, false + } + return o.BrowserUrl, true +} + +// HasBrowserUrl returns a boolean if a field has been set. +func (o *RootTypeForRegistry) HasBrowserUrl() bool { + if o != nil && o.BrowserUrl != nil { + return true + } + + return false +} + +// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. +func (o *RootTypeForRegistry) SetBrowserUrl(v string) { + o.BrowserUrl = &v +} + +// GetName returns the Name field value +func (o *RootTypeForRegistry) 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 *RootTypeForRegistry) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *RootTypeForRegistry) SetName(v string) { + o.Name = v +} + +// GetRegistryDeploymentId returns the RegistryDeploymentId field value if set, zero value otherwise. +func (o *RootTypeForRegistry) GetRegistryDeploymentId() int32 { + if o == nil || o.RegistryDeploymentId == nil { + var ret int32 + return ret + } + return *o.RegistryDeploymentId +} + +// GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetRegistryDeploymentIdOk() (*int32, bool) { + if o == nil || o.RegistryDeploymentId == nil { + return nil, false + } + return o.RegistryDeploymentId, true +} + +// HasRegistryDeploymentId returns a boolean if a field has been set. +func (o *RootTypeForRegistry) HasRegistryDeploymentId() bool { + if o != nil && o.RegistryDeploymentId != nil { + return true + } + + return false +} + +// SetRegistryDeploymentId gets a reference to the given int32 and assigns it to the RegistryDeploymentId field. +func (o *RootTypeForRegistry) SetRegistryDeploymentId(v int32) { + o.RegistryDeploymentId = &v +} + +// GetOwner returns the Owner field value +func (o *RootTypeForRegistry) GetOwner() string { + if o == nil { + var ret string + return ret + } + + return o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetOwnerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Owner, true +} + +// SetOwner sets field value +func (o *RootTypeForRegistry) SetOwner(v string) { + o.Owner = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RootTypeForRegistry) GetDescription() string { + if o == nil || o.Description == nil { + 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 *RootTypeForRegistry) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RootTypeForRegistry) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RootTypeForRegistry) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *RootTypeForRegistry) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *RootTypeForRegistry) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *RootTypeForRegistry) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *RootTypeForRegistry) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +// GetInstanceType returns the InstanceType field value +func (o *RootTypeForRegistry) GetInstanceType() RegistryInstanceTypeValue { + if o == nil { + var ret RegistryInstanceTypeValue + return ret + } + + return o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value +// and a boolean to check if the value has been set. +func (o *RootTypeForRegistry) GetInstanceTypeOk() (*RegistryInstanceTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.InstanceType, true +} + +// SetInstanceType sets field value +func (o *RootTypeForRegistry) SetInstanceType(v RegistryInstanceTypeValue) { + o.InstanceType = v +} + +func (o RootTypeForRegistry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["status"] = o.Status + } + if o.RegistryUrl != nil { + toSerialize["registryUrl"] = o.RegistryUrl + } + if o.BrowserUrl != nil { + toSerialize["browserUrl"] = o.BrowserUrl + } + if true { + toSerialize["name"] = o.Name + } + if o.RegistryDeploymentId != nil { + toSerialize["registryDeploymentId"] = o.RegistryDeploymentId + } + if true { + toSerialize["owner"] = o.Owner + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["created_at"] = o.CreatedAt + } + if true { + toSerialize["updated_at"] = o.UpdatedAt + } + if true { + toSerialize["instance_type"] = o.InstanceType + } + return json.Marshal(toSerialize) +} + +type NullableRootTypeForRegistry struct { + value *RootTypeForRegistry + isSet bool +} + +func (v NullableRootTypeForRegistry) Get() *RootTypeForRegistry { + return v.value +} + +func (v *NullableRootTypeForRegistry) Set(val *RootTypeForRegistry) { + v.value = val + v.isSet = true +} + +func (v NullableRootTypeForRegistry) IsSet() bool { + return v.isSet +} + +func (v *NullableRootTypeForRegistry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRootTypeForRegistry(val *RootTypeForRegistry) *NullableRootTypeForRegistry { + return &NullableRootTypeForRegistry{value: val, isSet: true} +} + +func (v NullableRootTypeForRegistry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRootTypeForRegistry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go b/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go new file mode 100644 index 00000000..c4108c22 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go @@ -0,0 +1,117 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// ServiceStatus Schema for the service status response body +type ServiceStatus struct { + // Boolean property indicating if the maximum number of total Registry instances have been reached, therefore creation of more instances should not be allowed. + MaxInstancesReached *bool `json:"max_instances_reached,omitempty"` +} + +// NewServiceStatus instantiates a new ServiceStatus 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 NewServiceStatus() *ServiceStatus { + this := ServiceStatus{} + return &this +} + +// NewServiceStatusWithDefaults instantiates a new ServiceStatus 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 NewServiceStatusWithDefaults() *ServiceStatus { + this := ServiceStatus{} + return &this +} + +// GetMaxInstancesReached returns the MaxInstancesReached field value if set, zero value otherwise. +func (o *ServiceStatus) GetMaxInstancesReached() bool { + if o == nil || o.MaxInstancesReached == nil { + var ret bool + return ret + } + return *o.MaxInstancesReached +} + +// GetMaxInstancesReachedOk returns a tuple with the MaxInstancesReached field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceStatus) GetMaxInstancesReachedOk() (*bool, bool) { + if o == nil || o.MaxInstancesReached == nil { + return nil, false + } + return o.MaxInstancesReached, true +} + +// HasMaxInstancesReached returns a boolean if a field has been set. +func (o *ServiceStatus) HasMaxInstancesReached() bool { + if o != nil && o.MaxInstancesReached != nil { + return true + } + + return false +} + +// SetMaxInstancesReached gets a reference to the given bool and assigns it to the MaxInstancesReached field. +func (o *ServiceStatus) SetMaxInstancesReached(v bool) { + o.MaxInstancesReached = &v +} + +func (o ServiceStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.MaxInstancesReached != nil { + toSerialize["max_instances_reached"] = o.MaxInstancesReached + } + return json.Marshal(toSerialize) +} + +type NullableServiceStatus struct { + value *ServiceStatus + isSet bool +} + +func (v NullableServiceStatus) Get() *ServiceStatus { + return v.value +} + +func (v *NullableServiceStatus) Set(val *ServiceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableServiceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceStatus(val *ServiceStatus) *NullableServiceStatus { + return &NullableServiceStatus{value: val, isSet: true} +} + +func (v NullableServiceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/response.go b/app-services-sdk-go/registrymgmt/apiv1/client/response.go new file mode 100644 index 00000000..bb53c4b0 --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/response.go @@ -0,0 +1,48 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/client/utils.go b/app-services-sdk-go/registrymgmt/apiv1/client/utils.go new file mode 100644 index 00000000..eaf32c3a --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/client/utils.go @@ -0,0 +1,329 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 0.0.6 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/registrymgmt/apiv1/error/errors.go b/app-services-sdk-go/registrymgmt/apiv1/error/errors.go new file mode 100644 index 00000000..343741da --- /dev/null +++ b/app-services-sdk-go/registrymgmt/apiv1/error/errors.go @@ -0,0 +1,48 @@ + +package error +// registrymgmt error codes + +const ( + // Unspecified error + ERROR_1 string = "SRS-MGMT-1" + + // Registry with id='?' not found + ERROR_2 string = "SRS-MGMT-2" + + // Bad date or time format + ERROR_3 string = "SRS-MGMT-3" + + // Invalid request content or parameters. Make sure the request conforms to the given JSON schema + ERROR_4 string = "SRS-MGMT-4" + + // Bad request format - invalid JSON + ERROR_5 string = "SRS-MGMT-5" + + // Required terms have not been accepted for account id='?' + ERROR_6 string = "SRS-MGMT-6" + + // The maximum number of allowed Registry instances has been reached + ERROR_7 string = "SRS-MGMT-7" + + // Error type with id='?' not found + ERROR_8 string = "SRS-MGMT-8" + + // Data conflict. Make sure a Registry with the given name does not already exist + ERROR_9 string = "SRS-MGMT-9" + + // Bad request format - unsupported media type + ERROR_10 string = "SRS-MGMT-10" + + // Could not check quota for user? + ERROR_11 string = "SRS-MGMT-11" + + // Evaluation instances not allowed. + ERROR_12 string = "SRS-MGMT-12" + + // User already has the maximum number of allowed Evaluation instances. + ERROR_13 string = "SRS-MGMT-13" + + // Total (global) number of instances exhausted. + ERROR_14 string = "SRS-MGMT-14" + +) \ No newline at end of file diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.gitignore b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/FILES new file mode 100644 index 00000000..2adbcfb9 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/FILES @@ -0,0 +1,26 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_service_accounts.go +client.go +configuration.go +docs/Error.md +docs/RedHatErrorRepresentation.md +docs/ServiceAccountCreateRequestData.md +docs/ServiceAccountData.md +docs/ServiceAccountRequestData.md +docs/ServiceAccountsApi.md +docs/ValidationExceptionData.md +git_push.sh +go.mod +go.sum +model_error.go +model_red_hat_error_representation.go +model_service_account_create_request_data.go +model_service_account_data.go +model_service_account_request_data.go +model_validation_exception_data.go +response.go +utils.go diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.travis.yml b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/README.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/README.md new file mode 100644 index 00000000..23755d84 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/README.md @@ -0,0 +1,194 @@ +# Go API client for serviceaccountsclient + +This is the API documentation for Service Accounts + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.0.19 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./serviceaccountsclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://sso.redhat.com/auth/realms/redhat-external* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ServiceAccountsApi* | [**CreateServiceAccount**](docs/ServiceAccountsApi.md#createserviceaccount) | **Post** /apis/service_accounts/v1 | Create service account +*ServiceAccountsApi* | [**DeleteServiceAccount**](docs/ServiceAccountsApi.md#deleteserviceaccount) | **Delete** /apis/service_accounts/v1/{id} | Delete service account by id +*ServiceAccountsApi* | [**GetServiceAccount**](docs/ServiceAccountsApi.md#getserviceaccount) | **Get** /apis/service_accounts/v1/{id} | Get service account by id +*ServiceAccountsApi* | [**GetServiceAccounts**](docs/ServiceAccountsApi.md#getserviceaccounts) | **Get** /apis/service_accounts/v1 | List all service accounts +*ServiceAccountsApi* | [**ResetServiceAccountSecret**](docs/ServiceAccountsApi.md#resetserviceaccountsecret) | **Post** /apis/service_accounts/v1/{id}/resetSecret | Reset service account secret by id +*ServiceAccountsApi* | [**UpdateServiceAccount**](docs/ServiceAccountsApi.md#updateserviceaccount) | **Patch** /apis/service_accounts/v1/{id} | Update service account + + +## Documentation For Models + + - [Error](docs/Error.md) + - [RedHatErrorRepresentation](docs/RedHatErrorRepresentation.md) + - [ServiceAccountCreateRequestData](docs/ServiceAccountCreateRequestData.md) + - [ServiceAccountData](docs/ServiceAccountData.md) + - [ServiceAccountRequestData](docs/ServiceAccountRequestData.md) + - [ValidationExceptionData](docs/ValidationExceptionData.md) + + +## Documentation For Authorization + + + +### authFlow + + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: /auth/realms/redhat-external/protocol/openid-connect/auth +- **Scopes**: + - **openid**: Treat as an OIDC request + - **api.iam.service_accounts**: Grants access to the service accounts api + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + +Or via OAuth2 module to automatically refresh tokens and perform user authentication. + +```golang +import "golang.org/x/oauth2" + +/* Perform OAuth2 round trip request and obtain a token */ + +tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token) +auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource) +r, err := client.Service.Operation(auth, args) +``` + + +### bearerAuth + +- **Type**: HTTP Bearer token authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + + +### serviceAccounts + + +- **Type**: OAuth +- **Flow**: application +- **Authorization URL**: +- **Scopes**: + - **openid**: Treat as an OIDC request + - **api.iam.service_accounts**: Grants access to the service accounts api + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING") +r, err := client.Service.Operation(auth, args) +``` + +Or via OAuth2 module to automatically refresh tokens and perform user authentication. + +```golang +import "golang.org/x/oauth2" + +/* Perform OAuth2 round trip request and obtain a token */ + +tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token) +auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource) +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +it-user-team-list@redhat.com + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api/openapi.yaml new file mode 100644 index 00000000..8e0e729e --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api/openapi.yaml @@ -0,0 +1,479 @@ +openapi: 3.0.1 +info: + contact: + email: it-user-team-list@redhat.com + description: This is the API documentation for Service Accounts + title: Service Accounts API Documentation + version: 5.0.19 +servers: +- description: Production server + url: https://sso.redhat.com/auth/realms/redhat-external +- description: Stage server + url: https://sso.stage.redhat.com/auth/realms/redhat-external +- description: Local development + url: http://localhost:8081/auth/realms/redhat-external +security: +- authFlow: [] +- serviceAccounts: [] +- bearerAuth: [] +paths: + /apis/service_accounts/v1: + get: + description: Returns a list of service accounts created by a user. User information + is obtained from the bearer token. The list is paginated with starting index + as 'first' and page size as 'max'. + operationId: getServiceAccounts + parameters: + - explode: true + in: query + name: first + required: false + schema: + default: 0 + format: int32 + minimum: 0 + type: integer + style: form + - explode: true + in: query + name: max + required: false + schema: + default: 20 + format: int32 + maximum: 100 + minimum: 1 + type: integer + style: form + - explode: true + in: query + name: clientId + required: false + schema: + items: + type: string + maxItems: 10 + minItems: 0 + type: array + uniqueItems: true + style: form + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServiceAccountData' + type: array + description: OK + links: + getNextPage: + description: link to the next page of service accounts + operationId: getServiceAccounts + "400": + content: + application/json: + examples: + Bad Request Example: + $ref: '#/components/examples/400FieldValidationError' + schema: + $ref: '#/components/schemas/ValidationExceptionData' + description: Bad Request if page filters are invalid + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: List all service accounts + tags: + - service_accounts + post: + description: Create a service account. Created service account is associated + with the user defined in the bearer token. + operationId: createServiceAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountCreateRequestData' + description: '''name'' and ''description'' of the service account' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "400": + content: + application/json: + examples: + Bad Request Example: + $ref: '#/components/examples/400FieldValidationError' + schema: + $ref: '#/components/schemas/ValidationExceptionData' + description: All fields did not pass validation. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "403": + content: + application/json: + examples: + service account threshold exceeded: + $ref: '#/components/examples/403ServiceAccountThresholdExceeded' + schema: + $ref: '#/components/schemas/RedHatErrorRepresentation' + description: Exceeded account level threshold limits for creating service + accounts. + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: Create service account + tags: + - service_accounts + /apis/service_accounts/v1/{id}: + delete: + description: Delete service account by id. Throws not found exception if the + service account is not found or the user does not have access to this service + account + operationId: deleteServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: {} + description: OK + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "404": + content: + application/json: + examples: + service account not found: + $ref: '#/components/examples/404ServiceAccountNotFound' + schema: + $ref: '#/components/schemas/RedHatErrorRepresentation' + description: Not Found + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: Delete service account by id + tags: + - service_accounts + get: + description: Returns service account by id. Throws not found exception if the + service account is not found or the user does not have access to this service + account + operationId: getServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "404": + content: + application/json: + examples: + service account not found: + $ref: '#/components/examples/404ServiceAccountNotFound' + schema: + $ref: '#/components/schemas/RedHatErrorRepresentation' + description: Not Found + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: Get service account by id + tags: + - service_accounts + patch: + description: Update a service account by id. + operationId: updateServiceAccount + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountRequestData' + description: '''name'' and ''description'' of the service account' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "400": + content: + application/json: + examples: + Bad Request Example: + $ref: '#/components/examples/400FieldValidationError' + schema: + $ref: '#/components/schemas/ValidationExceptionData' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "404": + content: + application/json: + examples: + service account not found: + $ref: '#/components/examples/404ServiceAccountNotFound' + schema: + $ref: '#/components/schemas/RedHatErrorRepresentation' + description: Not Found + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: Update service account + tags: + - service_accounts + /apis/service_accounts/v1/{id}/resetSecret: + post: + description: Reset service account secret by id . Throws not found exception + if the service account is not found or the user does not have access to this + service account + operationId: resetServiceAccountSecret + parameters: + - explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceAccountData' + description: OK + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "404": + content: + application/json: + examples: + service account not found: + $ref: '#/components/examples/404ServiceAccountNotFound' + schema: + $ref: '#/components/schemas/RedHatErrorRepresentation' + description: Not Found + security: + - authFlow: + - api.iam.service_accounts + - serviceAccounts: + - api.iam.service_accounts + summary: Reset service account secret by id + tags: + - service_accounts +components: + examples: + "400FieldValidationError": + value: + error: invalid_field + error_description: Request failed field validation + fields: + name: description of constraint which failed + "404ServiceAccountNotFound": + value: + error: service_account_not_found + error_description: Service account 1234 not found. + "403ServiceAccountThresholdExceeded": + value: + error: service_account_limit_exceeded + error_description: Cannot create more than 50 service accounts per account. + responses: + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Forbidden + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal Server Error + schemas: + Error: + properties: + error: + description: The cause of the Error. + type: string + required: + - error + type: object + ServiceAccountData: + example: + createdAt: 0 + clientId: clientId + createdBy: createdBy + name: name + description: description + id: id + secret: secret + properties: + id: + type: string + clientId: + type: string + secret: + description: Provided during creation and resetting of service account credentials. + type: string + name: + type: string + description: + type: string + createdBy: + type: string + createdAt: + format: int64 + type: integer + type: object + ValidationExceptionData: + properties: + fields: + additionalProperties: + type: string + type: object + error: + example: invalid_field + type: string + error_description: + type: string + type: object + RedHatErrorRepresentation: + properties: + error: + enum: + - service_account_limit_exceeded + - service_account_not_found + - service_account_user_not_found + - service_account_access_invalid + type: string + error_description: + type: string + type: object + ServiceAccountCreateRequestData: + example: + name: name + description: description + properties: + name: + maxLength: 50 + minLength: 1 + type: string + description: + maxLength: 255 + minLength: 0 + type: string + required: + - name + type: object + ServiceAccountRequestData: + example: + name: name + description: description + properties: + name: + maxLength: 50 + minLength: 1 + type: string + description: + maxLength: 255 + minLength: 0 + type: string + type: object + securitySchemes: + bearerAuth: + bearerFormat: JWT + scheme: bearer + type: http + authFlow: + flows: + authorizationCode: + authorizationUrl: /auth/realms/redhat-external/protocol/openid-connect/auth + scopes: + openid: Treat as an OIDC request + api.iam.service_accounts: Grants access to the service accounts api + tokenUrl: /auth/realms/redhat-external/protocol/openid-connect/token + type: oauth2 + serviceAccounts: + flows: + clientCredentials: + scopes: + openid: Treat as an OIDC request + api.iam.service_accounts: Grants access to the service accounts api + tokenUrl: /auth/realms/redhat-external/protocol/openid-connect/token + type: oauth2 diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api_service_accounts.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api_service_accounts.go new file mode 100644 index 00000000..9b207fd1 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/api_service_accounts.go @@ -0,0 +1,923 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "reflect" +) + +// Linger please +var ( + _ _context.Context +) + +type ServiceAccountsApi interface { + + /* + * CreateServiceAccount Create service account + * Create a service account. Created service account is associated with the user defined in the bearer token. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ + CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest + + /* + * CreateServiceAccountExecute executes the request + * @return ServiceAccountData + */ + CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) + + /* + * DeleteServiceAccount Delete service account by id + * Delete service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiDeleteServiceAccountRequest + */ + DeleteServiceAccount(ctx _context.Context, id string) ApiDeleteServiceAccountRequest + + /* + * DeleteServiceAccountExecute executes the request + */ + DeleteServiceAccountExecute(r ApiDeleteServiceAccountRequest) (*_nethttp.Response, error) + + /* + * GetServiceAccount Get service account by id + * Returns service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiGetServiceAccountRequest + */ + GetServiceAccount(ctx _context.Context, id string) ApiGetServiceAccountRequest + + /* + * GetServiceAccountExecute executes the request + * @return ServiceAccountData + */ + GetServiceAccountExecute(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) + + /* + * GetServiceAccounts List all service accounts + * Returns a list of service accounts created by a user. User information is obtained from the bearer token. The list is paginated with starting index as 'first' and page size as 'max'. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ + GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest + + /* + * GetServiceAccountsExecute executes the request + * @return []ServiceAccountData + */ + GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) ([]ServiceAccountData, *_nethttp.Response, error) + + /* + * ResetServiceAccountSecret Reset service account secret by id + * Reset service account secret by id . Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiResetServiceAccountSecretRequest + */ + ResetServiceAccountSecret(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest + + /* + * ResetServiceAccountSecretExecute executes the request + * @return ServiceAccountData + */ + ResetServiceAccountSecretExecute(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) + + /* + * UpdateServiceAccount Update service account + * Update a service account by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiUpdateServiceAccountRequest + */ + UpdateServiceAccount(ctx _context.Context, id string) ApiUpdateServiceAccountRequest + + /* + * UpdateServiceAccountExecute executes the request + * @return ServiceAccountData + */ + UpdateServiceAccountExecute(r ApiUpdateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) +} + +// ServiceAccountsApiService ServiceAccountsApi service +type ServiceAccountsApiService service + +type ApiCreateServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + serviceAccountCreateRequestData *ServiceAccountCreateRequestData +} + +func (r ApiCreateServiceAccountRequest) ServiceAccountCreateRequestData(serviceAccountCreateRequestData ServiceAccountCreateRequestData) ApiCreateServiceAccountRequest { + r.serviceAccountCreateRequestData = &serviceAccountCreateRequestData + return r +} + +func (r ApiCreateServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.CreateServiceAccountExecute(r) +} + +/* + * CreateServiceAccount Create service account + * Create a service account. Created service account is associated with the user defined in the bearer token. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCreateServiceAccountRequest + */ +func (a *ServiceAccountsApiService) CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest { + return ApiCreateServiceAccountRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.CreateServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.serviceAccountCreateRequestData == nil { + return localVarReturnValue, nil, reportError("serviceAccountCreateRequestData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAccountCreateRequestData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationExceptionData + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v RedHatErrorRepresentation + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string +} + + +func (r ApiDeleteServiceAccountRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.DeleteServiceAccountExecute(r) +} + +/* + * DeleteServiceAccount Delete service account by id + * Delete service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiDeleteServiceAccountRequest + */ +func (a *ServiceAccountsApiService) DeleteServiceAccount(ctx _context.Context, id string) ApiDeleteServiceAccountRequest { + return ApiDeleteServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + */ +func (a *ServiceAccountsApiService) DeleteServiceAccountExecute(r ApiDeleteServiceAccountRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.DeleteServiceAccount") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v RedHatErrorRepresentation + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string +} + + +func (r ApiGetServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountExecute(r) +} + +/* + * GetServiceAccount Get service account by id + * Returns service account by id. Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiGetServiceAccountRequest + */ +func (a *ServiceAccountsApiService) GetServiceAccount(ctx _context.Context, id string) ApiGetServiceAccountRequest { + return ApiGetServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) GetServiceAccountExecute(r ApiGetServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.GetServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v RedHatErrorRepresentation + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetServiceAccountsRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + first *int32 + max *int32 + clientId *[]string +} + +func (r ApiGetServiceAccountsRequest) First(first int32) ApiGetServiceAccountsRequest { + r.first = &first + return r +} +func (r ApiGetServiceAccountsRequest) Max(max int32) ApiGetServiceAccountsRequest { + r.max = &max + return r +} +func (r ApiGetServiceAccountsRequest) ClientId(clientId []string) ApiGetServiceAccountsRequest { + r.clientId = &clientId + return r +} + +func (r ApiGetServiceAccountsRequest) Execute() ([]ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.GetServiceAccountsExecute(r) +} + +/* + * GetServiceAccounts List all service accounts + * Returns a list of service accounts created by a user. User information is obtained from the bearer token. The list is paginated with starting index as 'first' and page size as 'max'. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetServiceAccountsRequest + */ +func (a *ServiceAccountsApiService) GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest { + return ApiGetServiceAccountsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return []ServiceAccountData + */ +func (a *ServiceAccountsApiService) GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) ([]ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.GetServiceAccounts") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.first != nil { + localVarQueryParams.Add("first", parameterToString(*r.first, "")) + } + if r.max != nil { + localVarQueryParams.Add("max", parameterToString(*r.max, "")) + } + if r.clientId != nil { + t := *r.clientId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("clientId", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("clientId", parameterToString(t, "multi")) + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationExceptionData + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiResetServiceAccountSecretRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string +} + + +func (r ApiResetServiceAccountSecretRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.ResetServiceAccountSecretExecute(r) +} + +/* + * ResetServiceAccountSecret Reset service account secret by id + * Reset service account secret by id . Throws not found exception if the service account is not found or the user does not have access to this service account + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiResetServiceAccountSecretRequest + */ +func (a *ServiceAccountsApiService) ResetServiceAccountSecret(ctx _context.Context, id string) ApiResetServiceAccountSecretRequest { + return ApiResetServiceAccountSecretRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) ResetServiceAccountSecretExecute(r ApiResetServiceAccountSecretRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.ResetServiceAccountSecret") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}/resetSecret" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v RedHatErrorRepresentation + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateServiceAccountRequest struct { + ctx _context.Context + ApiService ServiceAccountsApi + id string + serviceAccountRequestData *ServiceAccountRequestData +} + +func (r ApiUpdateServiceAccountRequest) ServiceAccountRequestData(serviceAccountRequestData ServiceAccountRequestData) ApiUpdateServiceAccountRequest { + r.serviceAccountRequestData = &serviceAccountRequestData + return r +} + +func (r ApiUpdateServiceAccountRequest) Execute() (ServiceAccountData, *_nethttp.Response, error) { + return r.ApiService.UpdateServiceAccountExecute(r) +} + +/* + * UpdateServiceAccount Update service account + * Update a service account by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiUpdateServiceAccountRequest + */ +func (a *ServiceAccountsApiService) UpdateServiceAccount(ctx _context.Context, id string) ApiUpdateServiceAccountRequest { + return ApiUpdateServiceAccountRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return ServiceAccountData + */ +func (a *ServiceAccountsApiService) UpdateServiceAccountExecute(r ApiUpdateServiceAccountRequest) (ServiceAccountData, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPatch + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ServiceAccountData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAccountsApiService.UpdateServiceAccount") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/service_accounts/v1/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if r.serviceAccountRequestData == nil { + return localVarReturnValue, nil, reportError("serviceAccountRequestData is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.serviceAccountRequestData + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ValidationExceptionData + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v RedHatErrorRepresentation + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/client.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/client.go new file mode 100644 index 00000000..13522286 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/client.go @@ -0,0 +1,546 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Service Accounts API Documentation API v5.0.19 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ServiceAccountsApi ServiceAccountsApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ServiceAccountsApi = (*ServiceAccountsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/configuration.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/configuration.go new file mode 100644 index 00000000..22a60b5c --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/configuration.go @@ -0,0 +1,239 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://sso.redhat.com/auth/realms/redhat-external", + Description: "Production server", + }, + { + URL: "https://sso.stage.redhat.com/auth/realms/redhat-external", + Description: "Stage server", + }, + { + URL: "http://localhost:8081/auth/realms/redhat-external", + Description: "Local development", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/Error.md new file mode 100644 index 00000000..4c506b16 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/Error.md @@ -0,0 +1,51 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | **string** | The cause of the Error. | + +## Methods + +### NewError + +`func NewError(error_ string, ) *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetError + +`func (o *Error) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Error) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Error) SetError(v string)` + +SetError sets Error 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/RedHatErrorRepresentation.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/RedHatErrorRepresentation.md new file mode 100644 index 00000000..2145d4b5 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/RedHatErrorRepresentation.md @@ -0,0 +1,82 @@ +# RedHatErrorRepresentation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**ErrorDescription** | Pointer to **string** | | [optional] + +## Methods + +### NewRedHatErrorRepresentation + +`func NewRedHatErrorRepresentation() *RedHatErrorRepresentation` + +NewRedHatErrorRepresentation instantiates a new RedHatErrorRepresentation 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 + +### NewRedHatErrorRepresentationWithDefaults + +`func NewRedHatErrorRepresentationWithDefaults() *RedHatErrorRepresentation` + +NewRedHatErrorRepresentationWithDefaults instantiates a new RedHatErrorRepresentation 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 + +### GetError + +`func (o *RedHatErrorRepresentation) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *RedHatErrorRepresentation) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *RedHatErrorRepresentation) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *RedHatErrorRepresentation) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetErrorDescription + +`func (o *RedHatErrorRepresentation) GetErrorDescription() string` + +GetErrorDescription returns the ErrorDescription field if non-nil, zero value otherwise. + +### GetErrorDescriptionOk + +`func (o *RedHatErrorRepresentation) GetErrorDescriptionOk() (*string, bool)` + +GetErrorDescriptionOk returns a tuple with the ErrorDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDescription + +`func (o *RedHatErrorRepresentation) SetErrorDescription(v string)` + +SetErrorDescription sets ErrorDescription field to given value. + +### HasErrorDescription + +`func (o *RedHatErrorRepresentation) HasErrorDescription() bool` + +HasErrorDescription 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountCreateRequestData.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountCreateRequestData.md new file mode 100644 index 00000000..bc9971c0 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountCreateRequestData.md @@ -0,0 +1,77 @@ +# ServiceAccountCreateRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceAccountCreateRequestData + +`func NewServiceAccountCreateRequestData(name string, ) *ServiceAccountCreateRequestData` + +NewServiceAccountCreateRequestData instantiates a new ServiceAccountCreateRequestData 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 + +### NewServiceAccountCreateRequestDataWithDefaults + +`func NewServiceAccountCreateRequestDataWithDefaults() *ServiceAccountCreateRequestData` + +NewServiceAccountCreateRequestDataWithDefaults instantiates a new ServiceAccountCreateRequestData 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 *ServiceAccountCreateRequestData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountCreateRequestData) 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 *ServiceAccountCreateRequestData) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ServiceAccountCreateRequestData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountCreateRequestData) 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 *ServiceAccountCreateRequestData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountCreateRequestData) 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountData.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountData.md new file mode 100644 index 00000000..6d54196d --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountData.md @@ -0,0 +1,212 @@ +# ServiceAccountData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | Provided during creation and resetting of service account credentials. | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **int64** | | [optional] + +## Methods + +### NewServiceAccountData + +`func NewServiceAccountData() *ServiceAccountData` + +NewServiceAccountData instantiates a new ServiceAccountData 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 + +### NewServiceAccountDataWithDefaults + +`func NewServiceAccountDataWithDefaults() *ServiceAccountData` + +NewServiceAccountDataWithDefaults instantiates a new ServiceAccountData 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 *ServiceAccountData) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceAccountData) 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 *ServiceAccountData) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ServiceAccountData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientId + +`func (o *ServiceAccountData) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ServiceAccountData) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ServiceAccountData) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *ServiceAccountData) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### GetSecret + +`func (o *ServiceAccountData) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ServiceAccountData) 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 *ServiceAccountData) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ServiceAccountData) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetName + +`func (o *ServiceAccountData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountData) 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 *ServiceAccountData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountData) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccountData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountData) 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 *ServiceAccountData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountData) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *ServiceAccountData) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *ServiceAccountData) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *ServiceAccountData) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *ServiceAccountData) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ServiceAccountData) GetCreatedAt() int64` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ServiceAccountData) GetCreatedAtOk() (*int64, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ServiceAccountData) SetCreatedAt(v int64)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ServiceAccountData) HasCreatedAt() bool` + +HasCreatedAt 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountRequestData.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountRequestData.md new file mode 100644 index 00000000..108111e8 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountRequestData.md @@ -0,0 +1,82 @@ +# ServiceAccountRequestData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceAccountRequestData + +`func NewServiceAccountRequestData() *ServiceAccountRequestData` + +NewServiceAccountRequestData instantiates a new ServiceAccountRequestData 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 + +### NewServiceAccountRequestDataWithDefaults + +`func NewServiceAccountRequestDataWithDefaults() *ServiceAccountRequestData` + +NewServiceAccountRequestDataWithDefaults instantiates a new ServiceAccountRequestData 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 *ServiceAccountRequestData) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceAccountRequestData) 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 *ServiceAccountRequestData) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ServiceAccountRequestData) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ServiceAccountRequestData) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ServiceAccountRequestData) 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 *ServiceAccountRequestData) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ServiceAccountRequestData) 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountsApi.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountsApi.md new file mode 100644 index 00000000..b046c75a --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ServiceAccountsApi.md @@ -0,0 +1,430 @@ +# \ServiceAccountsApi + +All URIs are relative to *https://sso.redhat.com/auth/realms/redhat-external* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateServiceAccount**](ServiceAccountsApi.md#CreateServiceAccount) | **Post** /apis/service_accounts/v1 | Create service account +[**DeleteServiceAccount**](ServiceAccountsApi.md#DeleteServiceAccount) | **Delete** /apis/service_accounts/v1/{id} | Delete service account by id +[**GetServiceAccount**](ServiceAccountsApi.md#GetServiceAccount) | **Get** /apis/service_accounts/v1/{id} | Get service account by id +[**GetServiceAccounts**](ServiceAccountsApi.md#GetServiceAccounts) | **Get** /apis/service_accounts/v1 | List all service accounts +[**ResetServiceAccountSecret**](ServiceAccountsApi.md#ResetServiceAccountSecret) | **Post** /apis/service_accounts/v1/{id}/resetSecret | Reset service account secret by id +[**UpdateServiceAccount**](ServiceAccountsApi.md#UpdateServiceAccount) | **Patch** /apis/service_accounts/v1/{id} | Update service account + + + +## CreateServiceAccount + +> ServiceAccountData CreateServiceAccount(ctx).ServiceAccountCreateRequestData(serviceAccountCreateRequestData).Execute() + +Create service account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + serviceAccountCreateRequestData := *openapiclient.NewServiceAccountCreateRequestData("Name_example") // ServiceAccountCreateRequestData | 'name' and 'description' of the service account + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.CreateServiceAccount(context.Background()).ServiceAccountCreateRequestData(serviceAccountCreateRequestData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.CreateServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceAccount`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountsApi.CreateServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceAccountCreateRequestData** | [**ServiceAccountCreateRequestData**](ServiceAccountCreateRequestData.md) | 'name' and 'description' of the service account | + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteServiceAccount + +> DeleteServiceAccount(ctx, id).Execute() + +Delete service account by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.DeleteServiceAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.DeleteServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetServiceAccount + +> ServiceAccountData GetServiceAccount(ctx, id).Execute() + +Get service account by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.GetServiceAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.GetServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceAccount`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountsApi.GetServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetServiceAccounts + +> []ServiceAccountData GetServiceAccounts(ctx).First(first).Max(max).ClientId(clientId).Execute() + +List all service accounts + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + first := int32(56) // int32 | (optional) (default to 0) + max := int32(56) // int32 | (optional) (default to 20) + clientId := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.GetServiceAccounts(context.Background()).First(first).Max(max).ClientId(clientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.GetServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceAccounts`: []ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountsApi.GetServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first** | **int32** | | [default to 0] + **max** | **int32** | | [default to 20] + **clientId** | **[]string** | | + +### Return type + +[**[]ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetServiceAccountSecret + +> ServiceAccountData ResetServiceAccountSecret(ctx, id).Execute() + +Reset service account secret by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.ResetServiceAccountSecret(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.ResetServiceAccountSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetServiceAccountSecret`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountsApi.ResetServiceAccountSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResetServiceAccountSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateServiceAccount + +> ServiceAccountData UpdateServiceAccount(ctx, id).ServiceAccountRequestData(serviceAccountRequestData).Execute() + +Update service account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + serviceAccountRequestData := *openapiclient.NewServiceAccountRequestData() // ServiceAccountRequestData | 'name' and 'description' of the service account + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ServiceAccountsApi.UpdateServiceAccount(context.Background(), id).ServiceAccountRequestData(serviceAccountRequestData).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountsApi.UpdateServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateServiceAccount`: ServiceAccountData + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountsApi.UpdateServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **serviceAccountRequestData** | [**ServiceAccountRequestData**](ServiceAccountRequestData.md) | 'name' and 'description' of the service account | + +### Return type + +[**ServiceAccountData**](ServiceAccountData.md) + +### Authorization + +[authFlow](../README.md#authFlow), [serviceAccounts](../README.md#serviceAccounts) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ValidationExceptionData.md b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ValidationExceptionData.md new file mode 100644 index 00000000..347bd5c4 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/docs/ValidationExceptionData.md @@ -0,0 +1,108 @@ +# ValidationExceptionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | Pointer to **map[string]string** | | [optional] +**Error** | Pointer to **string** | | [optional] +**ErrorDescription** | Pointer to **string** | | [optional] + +## Methods + +### NewValidationExceptionData + +`func NewValidationExceptionData() *ValidationExceptionData` + +NewValidationExceptionData instantiates a new ValidationExceptionData 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 + +### NewValidationExceptionDataWithDefaults + +`func NewValidationExceptionDataWithDefaults() *ValidationExceptionData` + +NewValidationExceptionDataWithDefaults instantiates a new ValidationExceptionData 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 + +### GetFields + +`func (o *ValidationExceptionData) GetFields() map[string]string` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *ValidationExceptionData) GetFieldsOk() (*map[string]string, bool)` + +GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFields + +`func (o *ValidationExceptionData) SetFields(v map[string]string)` + +SetFields sets Fields field to given value. + +### HasFields + +`func (o *ValidationExceptionData) HasFields() bool` + +HasFields returns a boolean if a field has been set. + +### GetError + +`func (o *ValidationExceptionData) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ValidationExceptionData) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ValidationExceptionData) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ValidationExceptionData) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetErrorDescription + +`func (o *ValidationExceptionData) GetErrorDescription() string` + +GetErrorDescription returns the ErrorDescription field if non-nil, zero value otherwise. + +### GetErrorDescriptionOk + +`func (o *ValidationExceptionData) GetErrorDescriptionOk() (*string, bool)` + +GetErrorDescriptionOk returns a tuple with the ErrorDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDescription + +`func (o *ValidationExceptionData) SetErrorDescription(v string)` + +SetErrorDescription sets ErrorDescription field to given value. + +### HasErrorDescription + +`func (o *ValidationExceptionData) HasErrorDescription() bool` + +HasErrorDescription 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/app-services-sdk-go/serviceaccountmgmt/apiv1/client/git_push.sh b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.mod b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.sum b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_error.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_error.go new file mode 100644 index 00000000..3f92f9d3 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_error.go @@ -0,0 +1,110 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + // The cause of the Error. + Error string `json:"error"` +} + +// NewError instantiates a new Error 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 NewError(error_ string) *Error { + this := Error{} + this.Error = error_ + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetError returns the Error field value +func (o *Error) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *Error) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *Error) SetError(v string) { + o.Error = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_red_hat_error_representation.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_red_hat_error_representation.go new file mode 100644 index 00000000..0c23df67 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_red_hat_error_representation.go @@ -0,0 +1,152 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// RedHatErrorRepresentation struct for RedHatErrorRepresentation +type RedHatErrorRepresentation struct { + Error *string `json:"error,omitempty"` + ErrorDescription *string `json:"error_description,omitempty"` +} + +// NewRedHatErrorRepresentation instantiates a new RedHatErrorRepresentation 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 NewRedHatErrorRepresentation() *RedHatErrorRepresentation { + this := RedHatErrorRepresentation{} + return &this +} + +// NewRedHatErrorRepresentationWithDefaults instantiates a new RedHatErrorRepresentation 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 NewRedHatErrorRepresentationWithDefaults() *RedHatErrorRepresentation { + this := RedHatErrorRepresentation{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *RedHatErrorRepresentation) GetError() string { + if o == nil || o.Error == nil { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RedHatErrorRepresentation) GetErrorOk() (*string, bool) { + if o == nil || o.Error == nil { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *RedHatErrorRepresentation) HasError() bool { + if o != nil && o.Error != nil { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *RedHatErrorRepresentation) SetError(v string) { + o.Error = &v +} + +// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. +func (o *RedHatErrorRepresentation) GetErrorDescription() string { + if o == nil || o.ErrorDescription == nil { + var ret string + return ret + } + return *o.ErrorDescription +} + +// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RedHatErrorRepresentation) GetErrorDescriptionOk() (*string, bool) { + if o == nil || o.ErrorDescription == nil { + return nil, false + } + return o.ErrorDescription, true +} + +// HasErrorDescription returns a boolean if a field has been set. +func (o *RedHatErrorRepresentation) HasErrorDescription() bool { + if o != nil && o.ErrorDescription != nil { + return true + } + + return false +} + +// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. +func (o *RedHatErrorRepresentation) SetErrorDescription(v string) { + o.ErrorDescription = &v +} + +func (o RedHatErrorRepresentation) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Error != nil { + toSerialize["error"] = o.Error + } + if o.ErrorDescription != nil { + toSerialize["error_description"] = o.ErrorDescription + } + return json.Marshal(toSerialize) +} + +type NullableRedHatErrorRepresentation struct { + value *RedHatErrorRepresentation + isSet bool +} + +func (v NullableRedHatErrorRepresentation) Get() *RedHatErrorRepresentation { + return v.value +} + +func (v *NullableRedHatErrorRepresentation) Set(val *RedHatErrorRepresentation) { + v.value = val + v.isSet = true +} + +func (v NullableRedHatErrorRepresentation) IsSet() bool { + return v.isSet +} + +func (v *NullableRedHatErrorRepresentation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRedHatErrorRepresentation(val *RedHatErrorRepresentation) *NullableRedHatErrorRepresentation { + return &NullableRedHatErrorRepresentation{value: val, isSet: true} +} + +func (v NullableRedHatErrorRepresentation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRedHatErrorRepresentation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_create_request_data.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_create_request_data.go new file mode 100644 index 00000000..477ffb01 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_create_request_data.go @@ -0,0 +1,145 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountCreateRequestData struct for ServiceAccountCreateRequestData +type ServiceAccountCreateRequestData struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` +} + +// NewServiceAccountCreateRequestData instantiates a new ServiceAccountCreateRequestData 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 NewServiceAccountCreateRequestData(name string) *ServiceAccountCreateRequestData { + this := ServiceAccountCreateRequestData{} + this.Name = name + return &this +} + +// NewServiceAccountCreateRequestDataWithDefaults instantiates a new ServiceAccountCreateRequestData 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 NewServiceAccountCreateRequestDataWithDefaults() *ServiceAccountCreateRequestData { + this := ServiceAccountCreateRequestData{} + return &this +} + +// GetName returns the Name field value +func (o *ServiceAccountCreateRequestData) 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 *ServiceAccountCreateRequestData) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ServiceAccountCreateRequestData) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountCreateRequestData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountCreateRequestData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountCreateRequestData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountCreateRequestData) SetDescription(v string) { + o.Description = &v +} + +func (o ServiceAccountCreateRequestData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountCreateRequestData struct { + value *ServiceAccountCreateRequestData + isSet bool +} + +func (v NullableServiceAccountCreateRequestData) Get() *ServiceAccountCreateRequestData { + return v.value +} + +func (v *NullableServiceAccountCreateRequestData) Set(val *ServiceAccountCreateRequestData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountCreateRequestData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountCreateRequestData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountCreateRequestData(val *ServiceAccountCreateRequestData) *NullableServiceAccountCreateRequestData { + return &NullableServiceAccountCreateRequestData{value: val, isSet: true} +} + +func (v NullableServiceAccountCreateRequestData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountCreateRequestData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_data.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_data.go new file mode 100644 index 00000000..1dd58b00 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_data.go @@ -0,0 +1,333 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountData struct for ServiceAccountData +type ServiceAccountData struct { + Id *string `json:"id,omitempty"` + ClientId *string `json:"clientId,omitempty"` + // Provided during creation and resetting of service account credentials. + Secret *string `json:"secret,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + CreatedAt *int64 `json:"createdAt,omitempty"` +} + +// NewServiceAccountData instantiates a new ServiceAccountData 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 NewServiceAccountData() *ServiceAccountData { + this := ServiceAccountData{} + return &this +} + +// NewServiceAccountDataWithDefaults instantiates a new ServiceAccountData 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 NewServiceAccountDataWithDefaults() *ServiceAccountData { + this := ServiceAccountData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ServiceAccountData) GetId() string { + if o == nil || o.Id == nil { + 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 *ServiceAccountData) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ServiceAccountData) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ServiceAccountData) SetId(v string) { + o.Id = &v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountData) GetClientId() string { + if o == nil || o.ClientId == nil { + var ret string + return ret + } + return *o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { + return nil, false + } + return o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountData) HasClientId() bool { + if o != nil && o.ClientId != nil { + return true + } + + return false +} + +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountData) SetClientId(v string) { + o.ClientId = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ServiceAccountData) GetSecret() string { + if o == nil || o.Secret == nil { + 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 *ServiceAccountData) GetSecretOk() (*string, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ServiceAccountData) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *ServiceAccountData) SetSecret(v string) { + o.Secret = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountData) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccountData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountData) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountData) SetDescription(v string) { + o.Description = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *ServiceAccountData) GetCreatedBy() string { + if o == nil || o.CreatedBy == nil { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetCreatedByOk() (*string, bool) { + if o == nil || o.CreatedBy == nil { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *ServiceAccountData) HasCreatedBy() bool { + if o != nil && o.CreatedBy != nil { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *ServiceAccountData) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ServiceAccountData) GetCreatedAt() int64 { + if o == nil || o.CreatedAt == nil { + var ret int64 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceAccountData) GetCreatedAtOk() (*int64, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ServiceAccountData) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field. +func (o *ServiceAccountData) SetCreatedAt(v int64) { + o.CreatedAt = &v +} + +func (o ServiceAccountData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.ClientId != nil { + toSerialize["clientId"] = o.ClientId + } + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.CreatedBy != nil { + toSerialize["createdBy"] = o.CreatedBy + } + if o.CreatedAt != nil { + toSerialize["createdAt"] = o.CreatedAt + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountData struct { + value *ServiceAccountData + isSet bool +} + +func (v NullableServiceAccountData) Get() *ServiceAccountData { + return v.value +} + +func (v *NullableServiceAccountData) Set(val *ServiceAccountData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountData(val *ServiceAccountData) *NullableServiceAccountData { + return &NullableServiceAccountData{value: val, isSet: true} +} + +func (v NullableServiceAccountData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_request_data.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_request_data.go new file mode 100644 index 00000000..f423b80a --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_service_account_request_data.go @@ -0,0 +1,152 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ServiceAccountRequestData struct for ServiceAccountRequestData +type ServiceAccountRequestData struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` +} + +// NewServiceAccountRequestData instantiates a new ServiceAccountRequestData 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 NewServiceAccountRequestData() *ServiceAccountRequestData { + this := ServiceAccountRequestData{} + return &this +} + +// NewServiceAccountRequestDataWithDefaults instantiates a new ServiceAccountRequestData 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 NewServiceAccountRequestDataWithDefaults() *ServiceAccountRequestData { + this := ServiceAccountRequestData{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ServiceAccountRequestData) GetName() string { + if o == nil || o.Name == nil { + 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 *ServiceAccountRequestData) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ServiceAccountRequestData) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ServiceAccountRequestData) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceAccountRequestData) GetDescription() string { + if o == nil || o.Description == nil { + 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 *ServiceAccountRequestData) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceAccountRequestData) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceAccountRequestData) SetDescription(v string) { + o.Description = &v +} + +func (o ServiceAccountRequestData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableServiceAccountRequestData struct { + value *ServiceAccountRequestData + isSet bool +} + +func (v NullableServiceAccountRequestData) Get() *ServiceAccountRequestData { + return v.value +} + +func (v *NullableServiceAccountRequestData) Set(val *ServiceAccountRequestData) { + v.value = val + v.isSet = true +} + +func (v NullableServiceAccountRequestData) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceAccountRequestData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceAccountRequestData(val *ServiceAccountRequestData) *NullableServiceAccountRequestData { + return &NullableServiceAccountRequestData{value: val, isSet: true} +} + +func (v NullableServiceAccountRequestData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceAccountRequestData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_validation_exception_data.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_validation_exception_data.go new file mode 100644 index 00000000..3e253b70 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/model_validation_exception_data.go @@ -0,0 +1,188 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" +) + +// ValidationExceptionData struct for ValidationExceptionData +type ValidationExceptionData struct { + Fields *map[string]string `json:"fields,omitempty"` + Error *string `json:"error,omitempty"` + ErrorDescription *string `json:"error_description,omitempty"` +} + +// NewValidationExceptionData instantiates a new ValidationExceptionData 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 NewValidationExceptionData() *ValidationExceptionData { + this := ValidationExceptionData{} + return &this +} + +// NewValidationExceptionDataWithDefaults instantiates a new ValidationExceptionData 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 NewValidationExceptionDataWithDefaults() *ValidationExceptionData { + this := ValidationExceptionData{} + return &this +} + +// GetFields returns the Fields field value if set, zero value otherwise. +func (o *ValidationExceptionData) GetFields() map[string]string { + if o == nil || o.Fields == nil { + var ret map[string]string + return ret + } + return *o.Fields +} + +// GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidationExceptionData) GetFieldsOk() (*map[string]string, bool) { + if o == nil || o.Fields == nil { + return nil, false + } + return o.Fields, true +} + +// HasFields returns a boolean if a field has been set. +func (o *ValidationExceptionData) HasFields() bool { + if o != nil && o.Fields != nil { + return true + } + + return false +} + +// SetFields gets a reference to the given map[string]string and assigns it to the Fields field. +func (o *ValidationExceptionData) SetFields(v map[string]string) { + o.Fields = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ValidationExceptionData) GetError() string { + if o == nil || o.Error == nil { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidationExceptionData) GetErrorOk() (*string, bool) { + if o == nil || o.Error == nil { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ValidationExceptionData) HasError() bool { + if o != nil && o.Error != nil { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ValidationExceptionData) SetError(v string) { + o.Error = &v +} + +// GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. +func (o *ValidationExceptionData) GetErrorDescription() string { + if o == nil || o.ErrorDescription == nil { + var ret string + return ret + } + return *o.ErrorDescription +} + +// GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ValidationExceptionData) GetErrorDescriptionOk() (*string, bool) { + if o == nil || o.ErrorDescription == nil { + return nil, false + } + return o.ErrorDescription, true +} + +// HasErrorDescription returns a boolean if a field has been set. +func (o *ValidationExceptionData) HasErrorDescription() bool { + if o != nil && o.ErrorDescription != nil { + return true + } + + return false +} + +// SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field. +func (o *ValidationExceptionData) SetErrorDescription(v string) { + o.ErrorDescription = &v +} + +func (o ValidationExceptionData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Fields != nil { + toSerialize["fields"] = o.Fields + } + if o.Error != nil { + toSerialize["error"] = o.Error + } + if o.ErrorDescription != nil { + toSerialize["error_description"] = o.ErrorDescription + } + return json.Marshal(toSerialize) +} + +type NullableValidationExceptionData struct { + value *ValidationExceptionData + isSet bool +} + +func (v NullableValidationExceptionData) Get() *ValidationExceptionData { + return v.value +} + +func (v *NullableValidationExceptionData) Set(val *ValidationExceptionData) { + v.value = val + v.isSet = true +} + +func (v NullableValidationExceptionData) IsSet() bool { + return v.isSet +} + +func (v *NullableValidationExceptionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValidationExceptionData(val *ValidationExceptionData) *NullableValidationExceptionData { + return &NullableValidationExceptionData{value: val, isSet: true} +} + +func (v NullableValidationExceptionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValidationExceptionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/response.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/response.go new file mode 100644 index 00000000..d9b56d7f --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/response.go @@ -0,0 +1,48 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/serviceaccountmgmt/apiv1/client/utils.go b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/utils.go new file mode 100644 index 00000000..4d6aced2 --- /dev/null +++ b/app-services-sdk-go/serviceaccountmgmt/apiv1/client/utils.go @@ -0,0 +1,329 @@ +/* + * Service Accounts API Documentation + * + * This is the API documentation for Service Accounts + * + * API version: 5.0.19 + * Contact: it-user-team-list@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package serviceaccountsclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.gitignore b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator-ignore b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/FILES b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/FILES new file mode 100644 index 00000000..bac54e4c --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/FILES @@ -0,0 +1,80 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_bridges.go +api_cloud_providers.go +api_error_catalog.go +api_processors.go +api_schema_catalog.go +client.go +configuration.go +docs/Action.md +docs/BaseFilter.md +docs/BridgeError.md +docs/BridgeErrorInstance.md +docs/BridgeErrorType.md +docs/BridgeListResponse.md +docs/BridgeRequest.md +docs/BridgeResponse.md +docs/BridgesApi.md +docs/CloudProviderListResponse.md +docs/CloudProviderResponse.md +docs/CloudProvidersApi.md +docs/CloudRegionListResponse.md +docs/CloudRegionResponse.md +docs/Error.md +docs/ErrorCatalogApi.md +docs/ErrorListResponse.md +docs/ErrorsList.md +docs/List.md +docs/ListAllOf.md +docs/ListResponse.md +docs/ManagedResourceStatus.md +docs/ObjectReference.md +docs/ProcessingErrorListResponse.md +docs/ProcessingErrorResponse.md +docs/ProcessorCatalogResponse.md +docs/ProcessorListResponse.md +docs/ProcessorRequest.md +docs/ProcessorResponse.md +docs/ProcessorSchemaEntryResponse.md +docs/ProcessorType.md +docs/ProcessorsApi.md +docs/SchemaCatalogApi.md +docs/Source.md +git_push.sh +go.mod +go.sum +model_action.go +model_base_filter.go +model_bridge_error.go +model_bridge_error_instance.go +model_bridge_error_type.go +model_bridge_list_response.go +model_bridge_request.go +model_bridge_response.go +model_cloud_provider_list_response.go +model_cloud_provider_response.go +model_cloud_region_list_response.go +model_cloud_region_response.go +model_error.go +model_error_list_response.go +model_errors_list.go +model_list.go +model_list_all_of.go +model_list_response.go +model_managed_resource_status.go +model_object_reference.go +model_processing_error_list_response.go +model_processing_error_response.go +model_processor_catalog_response.go +model_processor_list_response.go +model_processor_request.go +model_processor_response.go +model_processor_schema_entry_response.go +model_processor_type.go +model_source.go +response.go +utils.go diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/VERSION b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/VERSION new file mode 100644 index 00000000..7cbea073 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.travis.yml b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.travis.yml new file mode 100644 index 00000000..f5cb2ce9 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/README.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/README.md new file mode 100644 index 00000000..2ee97172 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/README.md @@ -0,0 +1,160 @@ +# Go API client for smarteventsmgmtclient + +The API exposed by the fleet manager of the SmartEvents service. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sw "./smarteventsmgmtclient" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.stage.openshift.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*BridgesApi* | [**BridgesAPICreateBridge**](docs/BridgesApi.md#bridgesapicreatebridge) | **Post** /api/smartevents_mgmt/v1/bridges | Create a Bridge instance +*BridgesApi* | [**BridgesAPIDeleteBridge**](docs/BridgesApi.md#bridgesapideletebridge) | **Delete** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Delete a Bridge instance +*BridgesApi* | [**BridgesAPIGetBridge**](docs/BridgesApi.md#bridgesapigetbridge) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Get a Bridge instance +*BridgesApi* | [**BridgesAPIGetBridges**](docs/BridgesApi.md#bridgesapigetbridges) | **Get** /api/smartevents_mgmt/v1/bridges | Get the list of Bridge instances +*BridgesApi* | [**BridgesAPIUpdateBridge**](docs/BridgesApi.md#bridgesapiupdatebridge) | **Put** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Update a Bridge instance +*CloudProvidersApi* | [**CloudProviderAPIGetCloudProvider**](docs/CloudProvidersApi.md#cloudproviderapigetcloudprovider) | **Get** /api/smartevents_mgmt/v1/cloud_providers/{id} | Get Cloud Provider. +*CloudProvidersApi* | [**CloudProviderAPIListCloudProviderRegions**](docs/CloudProvidersApi.md#cloudproviderapilistcloudproviderregions) | **Get** /api/smartevents_mgmt/v1/cloud_providers/{id}/regions | List Supported Cloud Regions. +*CloudProvidersApi* | [**CloudProviderAPIListCloudProviders**](docs/CloudProvidersApi.md#cloudproviderapilistcloudproviders) | **Get** /api/smartevents_mgmt/v1/cloud_providers | List Supported Cloud Providers. +*ErrorCatalogApi* | [**ErrorsAPIGetError**](docs/ErrorCatalogApi.md#errorsapigeterror) | **Get** /api/smartevents_mgmt/v1/errors/{id} | Get an error from the error catalog. +*ErrorCatalogApi* | [**ErrorsAPIGetErrors**](docs/ErrorCatalogApi.md#errorsapigeterrors) | **Get** /api/smartevents_mgmt/v1/errors | Get the list of errors. +*ProcessorsApi* | [**ProcessorsAPIAddProcessorToBridge**](docs/ProcessorsApi.md#processorsapiaddprocessortobridge) | **Post** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors | Create a Processor of a Bridge instance +*ProcessorsApi* | [**ProcessorsAPIDeleteProcessor**](docs/ProcessorsApi.md#processorsapideleteprocessor) | **Delete** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Delete a Processor of a Bridge instance +*ProcessorsApi* | [**ProcessorsAPIGetProcessor**](docs/ProcessorsApi.md#processorsapigetprocessor) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Get a Processor of a Bridge instance +*ProcessorsApi* | [**ProcessorsAPIListProcessors**](docs/ProcessorsApi.md#processorsapilistprocessors) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors | Get the list of Processors of a Bridge instance +*ProcessorsApi* | [**ProcessorsAPIUpdateProcessor**](docs/ProcessorsApi.md#processorsapiupdateprocessor) | **Put** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Update a Processor instance Filter definition or Transformation template. +*SchemaCatalogApi* | [**SchemaAPIGetActionProcessorSchema**](docs/SchemaCatalogApi.md#schemaapigetactionprocessorschema) | **Get** /api/smartevents_mgmt/v1/schemas/actions/{id} | Get action processor schema +*SchemaCatalogApi* | [**SchemaAPIGetCatalog**](docs/SchemaCatalogApi.md#schemaapigetcatalog) | **Get** /api/smartevents_mgmt/v1/schemas | Get processor catalog +*SchemaCatalogApi* | [**SchemaAPIGetSourceProcessorSchema**](docs/SchemaCatalogApi.md#schemaapigetsourceprocessorschema) | **Get** /api/smartevents_mgmt/v1/schemas/sources/{id} | Get source processor schema + + +## Documentation For Models + + - [Action](docs/Action.md) + - [BaseFilter](docs/BaseFilter.md) + - [BridgeError](docs/BridgeError.md) + - [BridgeErrorInstance](docs/BridgeErrorInstance.md) + - [BridgeErrorType](docs/BridgeErrorType.md) + - [BridgeListResponse](docs/BridgeListResponse.md) + - [BridgeRequest](docs/BridgeRequest.md) + - [BridgeResponse](docs/BridgeResponse.md) + - [CloudProviderListResponse](docs/CloudProviderListResponse.md) + - [CloudProviderResponse](docs/CloudProviderResponse.md) + - [CloudRegionListResponse](docs/CloudRegionListResponse.md) + - [CloudRegionResponse](docs/CloudRegionResponse.md) + - [Error](docs/Error.md) + - [ErrorListResponse](docs/ErrorListResponse.md) + - [ErrorsList](docs/ErrorsList.md) + - [List](docs/List.md) + - [ListAllOf](docs/ListAllOf.md) + - [ListResponse](docs/ListResponse.md) + - [ManagedResourceStatus](docs/ManagedResourceStatus.md) + - [ObjectReference](docs/ObjectReference.md) + - [ProcessingErrorListResponse](docs/ProcessingErrorListResponse.md) + - [ProcessingErrorResponse](docs/ProcessingErrorResponse.md) + - [ProcessorCatalogResponse](docs/ProcessorCatalogResponse.md) + - [ProcessorListResponse](docs/ProcessorListResponse.md) + - [ProcessorRequest](docs/ProcessorRequest.md) + - [ProcessorResponse](docs/ProcessorResponse.md) + - [ProcessorSchemaEntryResponse](docs/ProcessorSchemaEntryResponse.md) + - [ProcessorType](docs/ProcessorType.md) + - [Source](docs/Source.md) + + +## Documentation For Authorization + + + +### bearer + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + +openbridge-dev@redhat.com + diff --git a/.openapi/smartevents-mgmt.yaml b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api/openapi.yaml similarity index 78% rename from .openapi/smartevents-mgmt.yaml rename to app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api/openapi.yaml index 2c981791..e6153fdb 100644 --- a/.openapi/smartevents-mgmt.yaml +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api/openapi.yaml @@ -1,114 +1,119 @@ ---- openapi: 3.0.3 info: - title: Red Hat Openshift SmartEvents Fleet Manager - description: The API exposed by the fleet manager of the SmartEvents service. contact: - name: Development Team email: openbridge-dev@redhat.com + name: Development Team + description: The API exposed by the fleet manager of the SmartEvents service. license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 + title: Red Hat Openshift SmartEvents Fleet Manager version: 0.0.1 servers: -- url: https://api.openshift.com - url: https://api.stage.openshift.com - url: http://localhost:8000 +- url: https://api.openshift.com - url: / tags: -- name: Bridges - description: "The API that allow the user to retrieve, create or delete Bridge instances." -- name: Cloud Providers - description: List Supported Cloud Providers and Regions -- name: Error Catalog - description: List and get the error definitions from the error catalog. -- name: Processing Errors - description: The API that allow the user to retrieve processing errors of a specific - bridge instance. -- name: Processors - description: "The API that allow the user to retrieve, create or delete Processors\ - \ of a Bridge instance." -- name: Schema Catalog - description: The API that provide the catalog of the available action/source processors +- description: The API that allow the user to retrieve, create or delete Bridge instances. + name: Bridges +- description: List Supported Cloud Providers and Regions + name: Cloud Providers +- description: List and get the error definitions from the error catalog. + name: Error Catalog +- description: The API that allow the user to retrieve, create or delete Processors + of a Bridge instance. + name: Processors +- description: The API that provide the catalog of the available action/source processors definition and their JSON schema. + name: Schema Catalog paths: /api/smartevents_mgmt/v1/bridges: get: - tags: - - Bridges - summary: Get the list of Bridge instances description: Get the list of Bridge instances for the authenticated user. operationId: BridgesAPI_getBridges parameters: - - name: name + - explode: true in: query + name: name + required: false schema: type: string - - name: page + style: form + - explode: true in: query + name: page + required: false schema: - format: int32 default: 0 + format: int32 minimum: 0 type: integer - - name: size + style: form + - explode: true in: query + name: size + required: false schema: - format: int32 default: 100 + format: int32 maximum: 100 minimum: 1 type: integer - - name: status + style: form + - explode: true in: query + name: status + required: false schema: - uniqueItems: true - type: array items: $ref: '#/components/schemas/ManagedResourceStatus' + type: array + uniqueItems: true + style: form responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/BridgeListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": - description: Unauthorized. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Unauthorized. "403": - description: Forbidden. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - post: + summary: Get the list of Bridge instances tags: - Bridges - summary: Create a Bridge instance + post: description: Create a Bridge instance for the authenticated user. operationId: BridgesAPI_createBridge requestBody: @@ -118,342 +123,294 @@ paths: $ref: '#/components/schemas/BridgeRequest' responses: "202": - description: Accepted. content: application/json: schema: $ref: '#/components/schemas/BridgeResponse' + description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. + "402": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorsList' + description: Not enough quota. "403": description: Forbidden. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - /api/smartevents_mgmt/v1/bridges/{bridgeId}: - get: + summary: Create a Bridge instance tags: - Bridges - summary: Get a Bridge instance - description: Get a Bridge instance of the authenticated user by ID. - operationId: BridgesAPI_getBridge + /api/smartevents_mgmt/v1/bridges/{bridgeId}: + delete: + description: Delete a Bridge instance of the authenticated user by ID. + operationId: BridgesAPI_deleteBridge parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: - minLength: 1 type: string - nullable: false + style: simple responses: - "200": - description: Success. - content: - application/json: - schema: - $ref: '#/components/schemas/BridgeResponse' + "202": + description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - put: + summary: Delete a Bridge instance tags: - Bridges - summary: Update a Bridge instance - description: Update a Bridge instance for the authenticated user. - operationId: BridgesAPI_updateBridge + get: + description: Get a Bridge instance of the authenticated user by ID. + operationId: BridgesAPI_getBridge parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: minLength: 1 - type: string nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BridgeRequest' + type: string + style: simple responses: - "202": - description: Accepted. + "200": content: application/json: schema: $ref: '#/components/schemas/BridgeResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorsList' "403": description: Forbidden. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorsList' "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - delete: + summary: Get a Bridge instance tags: - Bridges - summary: Delete a Bridge instance - description: Delete a Bridge instance of the authenticated user by ID. - operationId: BridgesAPI_deleteBridge + put: + description: Update a Bridge instance for the authenticated user. + operationId: BridgesAPI_updateBridge parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: + minLength: 1 + nullable: false type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BridgeRequest' responses: "202": - description: Accepted. - "400": - description: Bad request. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorsList' - "401": - description: Unauthorized. - "403": - description: Forbidden. - "404": - description: Not found. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorsList' - "500": - description: Internal error. - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorsList' - security: - - bearer: [] - /api/smartevents_mgmt/v1/bridges/{bridgeId}/errors: - get: - tags: - - Processing Errors - summary: Get the list of errors for a particular Bridge instance - description: Get the list of errors for a particular Bridge instance for the - authenticated user. - operationId: ProcessingErrorsAPI_getBridgeErrors - parameters: - - name: bridgeId - in: path - required: true - schema: - type: string - - name: name - in: query - schema: - type: string - - name: page - in: query - schema: - format: int32 - default: 0 - minimum: 0 - type: integer - - name: size - in: query - schema: - format: int32 - default: 100 - maximum: 100 - minimum: 1 - type: integer - - name: status - in: query - schema: - uniqueItems: true - type: array - items: - $ref: '#/components/schemas/ManagedResourceStatus' - responses: - "200": - description: Success. content: application/json: schema: - $ref: '#/components/schemas/ProcessingErrorListResponse' + $ref: '#/components/schemas/BridgeResponse' + description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": - description: Unauthorized. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Unauthorized. "403": - description: Forbidden. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] + summary: Update a Bridge instance + tags: + - Bridges /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors: get: - tags: - - Processors - summary: Get the list of Processors of a Bridge instance description: Get the list of Processors of a Bridge instance for the authenticated user. operationId: ProcessorsAPI_listProcessors parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: minLength: 1 - type: string nullable: false - - name: name + type: string + style: simple + - explode: true in: query + name: name + required: false schema: type: string - - name: page + style: form + - explode: true in: query + name: page + required: false schema: - format: int32 default: 0 + format: int32 minimum: 0 type: integer - - name: size + style: form + - explode: true in: query + name: size + required: false schema: - format: int32 default: 100 + format: int32 maximum: 100 minimum: 1 type: integer - - name: status + style: form + - explode: true in: query + name: status + required: false schema: - uniqueItems: true - type: array items: $ref: '#/components/schemas/ManagedResourceStatus' - - name: type + type: array + uniqueItems: true + style: form + - explode: true in: query + name: type + required: false schema: $ref: '#/components/schemas/ProcessorType' + style: form responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/ProcessorListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - post: + summary: Get the list of Processors of a Bridge instance tags: - Processors - summary: Create a Processor of a Bridge instance + post: description: Create a Processor of a Bridge instance for the authenticated user. operationId: ProcessorsAPI_addProcessorToBridge parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: minLength: 1 - type: string nullable: false + type: string + style: simple requestBody: content: application/json: @@ -461,534 +418,604 @@ paths: $ref: '#/components/schemas/ProcessorRequest' responses: "202": - description: Accepted. content: application/json: schema: $ref: '#/components/schemas/ProcessorResponse' + description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. + "402": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorsList' + description: Not enough quota. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId}: - get: + summary: Create a Processor of a Bridge instance tags: - Processors - summary: Get a Processor of a Bridge instance - description: Get a Processor of a Bridge instance for the authenticated user. - operationId: ProcessorsAPI_getProcessor + /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId}: + delete: + description: Delete a Processor of a Bridge instance for the authenticated user. + operationId: ProcessorsAPI_deleteProcessor parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: - minLength: 1 type: string - nullable: false - - name: processorId + style: simple + - explode: false in: path + name: processorId required: true schema: - minLength: 1 type: string - nullable: false + style: simple responses: - "200": - description: Success. - content: - application/json: - schema: - $ref: '#/components/schemas/ProcessorResponse' + "202": + description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - put: + summary: Delete a Processor of a Bridge instance tags: - Processors - summary: Update a Processor instance Filter definition or Transformation template. - description: Update a Processor instance Filter definition or Transformation - template for the authenticated user. - operationId: ProcessorsAPI_updateProcessor + get: + description: Get a Processor of a Bridge instance for the authenticated user. + operationId: ProcessorsAPI_getProcessor parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: minLength: 1 - type: string nullable: false - - name: processorId + type: string + style: simple + - explode: false in: path + name: processorId required: true schema: minLength: 1 - type: string nullable: false - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProcessorRequest' + type: string + style: simple responses: - "202": - description: Accepted. + "200": content: application/json: schema: $ref: '#/components/schemas/ProcessorResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - delete: + summary: Get a Processor of a Bridge instance tags: - Processors - summary: Delete a Processor of a Bridge instance - description: Delete a Processor of a Bridge instance for the authenticated user. - operationId: ProcessorsAPI_deleteProcessor + put: + description: Update a Processor instance Filter definition or Transformation + template for the authenticated user. + operationId: ProcessorsAPI_updateProcessor parameters: - - name: bridgeId + - explode: false in: path + name: bridgeId required: true schema: + minLength: 1 + nullable: false type: string - - name: processorId + style: simple + - explode: false in: path + name: processorId required: true schema: + minLength: 1 + nullable: false type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessorRequest' responses: "202": + content: + application/json: + schema: + $ref: '#/components/schemas/ProcessorResponse' description: Accepted. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] + summary: Update a Processor instance Filter definition or Transformation template. + tags: + - Processors /api/smartevents_mgmt/v1/cloud_providers: get: - tags: - - Cloud Providers - summary: List Supported Cloud Providers. description: Returns the list of supported Cloud Providers. operationId: CloudProviderAPI_listCloudProviders parameters: - - name: page + - explode: true in: query + name: page + required: false schema: - format: int32 default: 0 + format: int32 minimum: 0 type: integer - - name: size + style: form + - explode: true in: query + name: size + required: false schema: - format: int32 default: 100 + format: int32 maximum: 100 minimum: 1 type: integer + style: form responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/CloudProviderListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' - /api/smartevents_mgmt/v1/cloud_providers/{id}: - get: + description: Internal error. + summary: List Supported Cloud Providers. tags: - Cloud Providers - summary: Get Cloud Provider. + /api/smartevents_mgmt/v1/cloud_providers/{id}: + get: description: Get details of the Cloud Provider specified by id. operationId: CloudProviderAPI_getCloudProvider parameters: - - name: id + - explode: false in: path + name: id required: true schema: minLength: 1 - type: string nullable: false + type: string + style: simple responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/CloudProviderListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "404": - description: Not found. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Not found. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' - /api/smartevents_mgmt/v1/cloud_providers/{id}/regions: - get: + description: Internal error. + summary: Get Cloud Provider. tags: - Cloud Providers - summary: List Supported Cloud Regions. + /api/smartevents_mgmt/v1/cloud_providers/{id}/regions: + get: description: Returns the list of supported Regions of the specified Cloud Provider. operationId: CloudProviderAPI_listCloudProviderRegions parameters: - - name: id + - explode: false in: path + name: id required: true schema: minLength: 1 - type: string nullable: false - - name: page + type: string + style: simple + - explode: true in: query + name: page + required: false schema: - format: int32 default: 0 + format: int32 minimum: 0 type: integer - - name: size + style: form + - explode: true in: query + name: size + required: false schema: - format: int32 default: 100 + format: int32 maximum: 100 minimum: 1 type: integer + style: form responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/CloudRegionListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. + summary: List Supported Cloud Regions. + tags: + - Cloud Providers /api/smartevents_mgmt/v1/errors: get: - tags: - - Error Catalog - summary: Get the list of errors. description: Get the list of errors from the error catalog. operationId: ErrorsAPI_getErrors parameters: - - name: page + - explode: true in: query + name: page + required: false schema: - format: int32 default: 0 + format: int32 minimum: 0 type: integer - - name: size + style: form + - explode: true in: query + name: size + required: false schema: - format: int32 default: 100 + format: int32 maximum: 100 minimum: 1 type: integer + style: form responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/ErrorListResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' - /api/smartevents_mgmt/v1/errors/{id}: - get: + description: Internal error. + summary: Get the list of errors. tags: - Error Catalog - summary: Get an error from the error catalog. + /api/smartevents_mgmt/v1/errors/{id}: + get: description: Get an error from the error catalog. operationId: ErrorsAPI_getError parameters: - - name: id + - explode: false in: path + name: id required: true schema: format: int32 type: integer + style: simple responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/BridgeError' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. + summary: Get an error from the error catalog. + tags: + - Error Catalog /api/smartevents_mgmt/v1/schemas: get: - tags: - - Schema Catalog - summary: Get processor catalog description: Get the processor catalog with all the available sources and actions. operationId: SchemaAPI_getCatalog responses: "200": - description: Success. content: application/json: schema: $ref: '#/components/schemas/ProcessorCatalogResponse' + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - /api/smartevents_mgmt/v1/schemas/actions/{id}: - get: + summary: Get processor catalog tags: - Schema Catalog - summary: Get action processor schema + /api/smartevents_mgmt/v1/schemas/actions/{id}: + get: description: Get the action processor JSON schema. operationId: SchemaAPI_getActionProcessorSchema parameters: - - name: id + - explode: false in: path + name: id required: true schema: type: string + style: simple responses: "200": - description: Success. content: application/json: schema: type: object + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] - /api/smartevents_mgmt/v1/schemas/sources/{id}: - get: + summary: Get action processor schema tags: - Schema Catalog - summary: Get source processor schema + /api/smartevents_mgmt/v1/schemas/sources/{id}: + get: description: Get the source processor JSON schema. operationId: SchemaAPI_getSourceProcessorSchema parameters: - - name: id + - explode: false in: path + name: id required: true schema: type: string + style: simple responses: "200": - description: Success. content: application/json: schema: type: object + description: Success. "400": - description: Bad request. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Bad request. "401": description: Unauthorized. "403": description: Forbidden. "500": - description: Internal error. content: application/json: schema: $ref: '#/components/schemas/ErrorsList' + description: Internal error. security: - bearer: [] + summary: Get source processor schema + tags: + - Schema Catalog components: schemas: Action: - required: - - type - - parameters - type: object + example: + type: type + parameters: '{}' properties: type: - type: string nullable: false + type: string parameters: type: object - BaseFilter: required: - - key + - parameters + - type type: object + BaseFilter: + example: + type: type + key: key properties: type: type: string key: minLength: 1 - type: string nullable: false + type: string + required: + - key + type: object BridgeError: + example: + reason: reason + code: code + id: 0 + properties: + id: + format: int32 + type: integer + code: + type: string + reason: + type: string + type: + $ref: '#/components/schemas/BridgeErrorType' type: object + BridgeErrorInstance: properties: id: format: int32 @@ -999,84 +1026,141 @@ components: type: string type: $ref: '#/components/schemas/BridgeErrorType' + uuid: + type: string + type: object BridgeErrorType: enum: - USER - PLATFORM type: string BridgeListResponse: - required: - - kind - - page - - size - - total - type: object + example: + total: 1 + size: 6 + kind: kind + page: 0 + items: + - owner: owner + status_message: status_message + error_handler: + type: type + parameters: '{}' + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + cloud_provider: cloud_provider + endpoint: endpoint + name: name + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + region: region + status: "" + - owner: owner + status_message: status_message + error_handler: + type: type + parameters: '{}' + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + cloud_provider: cloud_provider + endpoint: endpoint + name: name + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + region: region + status: "" properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/BridgeResponse' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - BridgeRequest: + type: integer required: - - name - - cloud_provider - - region + - kind + - page + - size + - total type: object + BridgeRequest: + example: + error_handler: + type: type + parameters: '{}' + name: name + cloud_provider: cloud_provider + region: region properties: name: minLength: 1 - type: string nullable: false + type: string error_handler: $ref: '#/components/schemas/Action' cloud_provider: minLength: 1 - type: string nullable: false + type: string region: minLength: 1 - type: string nullable: false - BridgeResponse: + type: string required: - - kind - - id - - href - - submitted_at - - status - - owner + - cloud_provider + - name + - region type: object + BridgeResponse: + example: + owner: owner + status_message: status_message + error_handler: + type: type + parameters: '{}' + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + cloud_provider: cloud_provider + endpoint: endpoint + name: name + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + region: region + status: "" properties: kind: - type: string nullable: false - id: type: string + id: nullable: false + type: string name: type: string href: - type: string nullable: false + type: string submitted_at: format: date-time - type: string nullable: false + type: string published_at: format: date-time type: string @@ -1088,8 +1172,8 @@ components: - $ref: '#/components/schemas/ManagedResourceStatus' - nullable: false owner: - type: string nullable: false + type: string endpoint: type: string error_handler: @@ -1098,204 +1182,264 @@ components: type: string region: type: string - CloudProviderListResponse: + status_message: + type: string required: + - href + - id - kind - - page - - size - - total + - owner + - status + - submitted_at type: object + CloudProviderListResponse: + example: + total: 1 + size: 6 + kind: kind + page: 0 + items: + - kind: kind + name: name + id: id + href: href + display_name: display_name + enabled: true + - kind: kind + name: name + id: id + href: href + display_name: display_name + enabled: true properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/CloudProviderResponse' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - CloudProviderResponse: + type: integer required: - kind - - id - - href - - display_name - - enabled + - page + - size + - total type: object + CloudProviderResponse: + example: + kind: kind + name: name + id: id + href: href + display_name: display_name + enabled: true properties: kind: - type: string nullable: false - id: type: string + id: nullable: false + type: string name: type: string href: - type: string nullable: false - display_name: type: string + display_name: nullable: false + type: string enabled: - type: boolean nullable: false - CloudRegionListResponse: + type: boolean required: + - display_name + - enabled + - href + - id - kind - - page - - size - - total type: object + CloudRegionListResponse: + example: + total: 1 + size: 6 + kind: kind + page: 0 + items: + - kind: kind + name: name + display_name: display_name + enabled: true + - kind: kind + name: name + display_name: display_name + enabled: true properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/CloudRegionResponse' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - CloudRegionResponse: + type: integer required: - kind - - name - - display_name - - enabled + - page + - size + - total type: object + CloudRegionResponse: + example: + kind: kind + name: name + display_name: display_name + enabled: true properties: kind: - type: string nullable: false - name: type: string + name: nullable: false - display_name: type: string + display_name: nullable: false + type: string enabled: - type: boolean nullable: false - Error: + type: boolean required: + - display_name + - enabled - kind - - reason - - id - - href + - name type: object + Error: + example: + reason: reason + code: code + kind: kind + name: name + id: id + href: href properties: kind: - type: string nullable: false + type: string name: type: string code: type: string reason: - type: string nullable: false - id: type: string + id: nullable: false - href: type: string + href: nullable: false - ErrorListResponse: + type: string required: + - href + - id - kind - - page - - size - - total + - reason type: object + ErrorListResponse: + example: + total: 1 + size: 6 + kind: kind + page: 0 + items: + - reason: reason + code: code + kind: kind + name: name + id: id + href: href + - reason: reason + code: code + kind: kind + name: name + id: id + href: href properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/Error' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - ErrorsList: + type: integer required: - kind + - page + - size + - total type: object + ErrorsList: properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/Error' - JsonNode: - type: array + type: array + required: + - kind + type: object List: allOf: - $ref: '#/components/schemas/ListResponse' - - required: - - page - - size - - total - type: object - properties: - page: - format: int64 - type: integer - nullable: false - size: - format: int64 - type: integer - nullable: false - total: - format: int64 - type: integer - nullable: false + - $ref: '#/components/schemas/List_allOf' ListResponse: - required: - - kind - type: object properties: kind: - type: string nullable: false + type: string items: - type: array items: type: object + type: array + required: + - kind + type: object ManagedResourceStatus: enum: - accepted @@ -1308,147 +1452,243 @@ components: - failed type: string ObjectReference: - required: - - kind - - id - - href - type: object properties: kind: - type: string nullable: false - id: type: string + id: nullable: false + type: string name: type: string href: - type: string nullable: false - ProcessingErrorListResponse: + type: string required: + - href + - id - kind - - page - - size - - total type: object + ProcessingErrorListResponse: properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/ProcessingErrorResponse' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - ProcessingErrorResponse: + type: integer + required: + - kind + - page + - size + - total type: object + ProcessingErrorResponse: properties: recorded_at: format: date-time type: string headers: - type: object additionalProperties: type: string + type: object payload: - $ref: '#/components/schemas/JsonNode' - ProcessorCatalogResponse: - required: - - kind + type: object type: object + ProcessorCatalogResponse: + example: + kind: kind + items: + - kind: kind + name: name + description: description + id: id + href: href + type: type + - kind: kind + name: name + description: description + id: id + href: href + type: type properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/ProcessorSchemaEntryResponse' - ProcessorListResponse: + type: array required: - kind - - page - - size - - total type: object + ProcessorListResponse: + example: + total: 1 + size: 6 + kind: kind + page: 0 + items: + - owner: owner + status_message: status_message + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + filters: + - type: type + key: key + - type: type + key: key + source: + type: type + parameters: '{}' + type: "" + name: name + action: + type: type + parameters: '{}' + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + transformationTemplate: transformationTemplate + status: "" + - owner: owner + status_message: status_message + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + filters: + - type: type + key: key + - type: type + key: key + source: + type: type + parameters: '{}' + type: "" + name: name + action: + type: type + parameters: '{}' + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + transformationTemplate: transformationTemplate + status: "" properties: kind: - type: string nullable: false + type: string items: - type: array items: $ref: '#/components/schemas/ProcessorResponse' + type: array page: format: int64 - type: integer nullable: false + type: integer size: format: int64 - type: integer nullable: false + type: integer total: format: int64 - type: integer nullable: false - ProcessorRequest: + type: integer required: - - name + - kind + - page + - size + - total type: object + ProcessorRequest: + example: + name: name + action: + type: type + parameters: '{}' + filters: + - type: type + key: key + - type: type + key: key + source: + type: type + parameters: '{}' + transformationTemplate: transformationTemplate properties: name: minLength: 1 - type: string nullable: false + type: string filters: - uniqueItems: true - type: array items: $ref: '#/components/schemas/BaseFilter' + type: array + uniqueItems: true transformationTemplate: type: string action: $ref: '#/components/schemas/Action' source: $ref: '#/components/schemas/Source' - ProcessorResponse: required: - - kind - - id - - href - - submitted_at - - status - - owner - - type + - name type: object + ProcessorResponse: + example: + owner: owner + status_message: status_message + submitted_at: 2000-01-23T04:56:07.000+00:00 + kind: kind + filters: + - type: type + key: key + - type: type + key: key + source: + type: type + parameters: '{}' + type: "" + name: name + action: + type: type + parameters: '{}' + id: id + href: href + published_at: 2000-01-23T04:56:07.000+00:00 + modified_at: 2000-01-23T04:56:07.000+00:00 + transformationTemplate: transformationTemplate + status: "" properties: kind: - type: string nullable: false - id: type: string + id: nullable: false + type: string name: type: string href: - type: string nullable: false + type: string submitted_at: format: date-time - type: string nullable: false + type: string published_at: format: date-time type: string @@ -1460,51 +1700,69 @@ components: - $ref: '#/components/schemas/ManagedResourceStatus' - nullable: false owner: - type: string nullable: false + type: string type: allOf: - $ref: '#/components/schemas/ProcessorType' - nullable: false filters: - uniqueItems: true - type: array items: $ref: '#/components/schemas/BaseFilter' + type: array + uniqueItems: true transformationTemplate: type: string action: $ref: '#/components/schemas/Action' source: $ref: '#/components/schemas/Source' - ProcessorSchemaEntryResponse: + status_message: + type: string required: - - kind + - href - id - - name - - description + - kind + - owner + - status + - submitted_at - type - - href type: object + ProcessorSchemaEntryResponse: + example: + kind: kind + name: name + description: description + id: id + href: href + type: type properties: kind: - type: string nullable: false - id: type: string + id: nullable: false - name: type: string + name: nullable: false - description: type: string + description: nullable: false - type: type: string + type: nullable: false - href: type: string + href: nullable: false + type: string + required: + - description + - href + - id + - kind + - name + - type + type: object ProcessorType: enum: - source @@ -1512,17 +1770,39 @@ components: - error_handler type: string Source: - required: - - type - - parameters - type: object + example: + type: type + parameters: '{}' properties: type: - type: string nullable: false + type: string parameters: type: object + required: + - parameters + - type + type: object + List_allOf: + properties: + page: + format: int64 + nullable: false + type: integer + size: + format: int64 + nullable: false + type: integer + total: + format: int64 + nullable: false + type: integer + required: + - page + - size + - total + type: object securitySchemes: bearer: - type: http scheme: Bearer + type: http diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_bridges.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_bridges.go new file mode 100644 index 00000000..6e31fc26 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_bridges.go @@ -0,0 +1,861 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "reflect" +) + +// Linger please +var ( + _ _context.Context +) + +type BridgesApi interface { + + /* + * BridgesAPICreateBridge Create a Bridge instance + * Create a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiBridgesAPICreateBridgeRequest + */ + BridgesAPICreateBridge(ctx _context.Context) ApiBridgesAPICreateBridgeRequest + + /* + * BridgesAPICreateBridgeExecute executes the request + * @return BridgeResponse + */ + BridgesAPICreateBridgeExecute(r ApiBridgesAPICreateBridgeRequest) (BridgeResponse, *_nethttp.Response, error) + + /* + * BridgesAPIDeleteBridge Delete a Bridge instance + * Delete a Bridge instance of the authenticated user by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIDeleteBridgeRequest + */ + BridgesAPIDeleteBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIDeleteBridgeRequest + + /* + * BridgesAPIDeleteBridgeExecute executes the request + */ + BridgesAPIDeleteBridgeExecute(r ApiBridgesAPIDeleteBridgeRequest) (*_nethttp.Response, error) + + /* + * BridgesAPIGetBridge Get a Bridge instance + * Get a Bridge instance of the authenticated user by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIGetBridgeRequest + */ + BridgesAPIGetBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIGetBridgeRequest + + /* + * BridgesAPIGetBridgeExecute executes the request + * @return BridgeResponse + */ + BridgesAPIGetBridgeExecute(r ApiBridgesAPIGetBridgeRequest) (BridgeResponse, *_nethttp.Response, error) + + /* + * BridgesAPIGetBridges Get the list of Bridge instances + * Get the list of Bridge instances for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiBridgesAPIGetBridgesRequest + */ + BridgesAPIGetBridges(ctx _context.Context) ApiBridgesAPIGetBridgesRequest + + /* + * BridgesAPIGetBridgesExecute executes the request + * @return BridgeListResponse + */ + BridgesAPIGetBridgesExecute(r ApiBridgesAPIGetBridgesRequest) (BridgeListResponse, *_nethttp.Response, error) + + /* + * BridgesAPIUpdateBridge Update a Bridge instance + * Update a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIUpdateBridgeRequest + */ + BridgesAPIUpdateBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIUpdateBridgeRequest + + /* + * BridgesAPIUpdateBridgeExecute executes the request + * @return BridgeResponse + */ + BridgesAPIUpdateBridgeExecute(r ApiBridgesAPIUpdateBridgeRequest) (BridgeResponse, *_nethttp.Response, error) +} + +// BridgesApiService BridgesApi service +type BridgesApiService service + +type ApiBridgesAPICreateBridgeRequest struct { + ctx _context.Context + ApiService BridgesApi + bridgeRequest *BridgeRequest +} + +func (r ApiBridgesAPICreateBridgeRequest) BridgeRequest(bridgeRequest BridgeRequest) ApiBridgesAPICreateBridgeRequest { + r.bridgeRequest = &bridgeRequest + return r +} + +func (r ApiBridgesAPICreateBridgeRequest) Execute() (BridgeResponse, *_nethttp.Response, error) { + return r.ApiService.BridgesAPICreateBridgeExecute(r) +} + +/* + * BridgesAPICreateBridge Create a Bridge instance + * Create a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiBridgesAPICreateBridgeRequest + */ +func (a *BridgesApiService) BridgesAPICreateBridge(ctx _context.Context) ApiBridgesAPICreateBridgeRequest { + return ApiBridgesAPICreateBridgeRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return BridgeResponse + */ +func (a *BridgesApiService) BridgesAPICreateBridgeExecute(r ApiBridgesAPICreateBridgeRequest) (BridgeResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue BridgeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BridgesApiService.BridgesAPICreateBridge") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.bridgeRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 402 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiBridgesAPIDeleteBridgeRequest struct { + ctx _context.Context + ApiService BridgesApi + bridgeId string +} + + +func (r ApiBridgesAPIDeleteBridgeRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.BridgesAPIDeleteBridgeExecute(r) +} + +/* + * BridgesAPIDeleteBridge Delete a Bridge instance + * Delete a Bridge instance of the authenticated user by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIDeleteBridgeRequest + */ +func (a *BridgesApiService) BridgesAPIDeleteBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIDeleteBridgeRequest { + return ApiBridgesAPIDeleteBridgeRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + } +} + +/* + * Execute executes the request + */ +func (a *BridgesApiService) BridgesAPIDeleteBridgeExecute(r ApiBridgesAPIDeleteBridgeRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BridgesApiService.BridgesAPIDeleteBridge") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiBridgesAPIGetBridgeRequest struct { + ctx _context.Context + ApiService BridgesApi + bridgeId string +} + + +func (r ApiBridgesAPIGetBridgeRequest) Execute() (BridgeResponse, *_nethttp.Response, error) { + return r.ApiService.BridgesAPIGetBridgeExecute(r) +} + +/* + * BridgesAPIGetBridge Get a Bridge instance + * Get a Bridge instance of the authenticated user by ID. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIGetBridgeRequest + */ +func (a *BridgesApiService) BridgesAPIGetBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIGetBridgeRequest { + return ApiBridgesAPIGetBridgeRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + } +} + +/* + * Execute executes the request + * @return BridgeResponse + */ +func (a *BridgesApiService) BridgesAPIGetBridgeExecute(r ApiBridgesAPIGetBridgeRequest) (BridgeResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue BridgeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BridgesApiService.BridgesAPIGetBridge") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiBridgesAPIGetBridgesRequest struct { + ctx _context.Context + ApiService BridgesApi + name *string + page *int32 + size *int32 + status *[]ManagedResourceStatus +} + +func (r ApiBridgesAPIGetBridgesRequest) Name(name string) ApiBridgesAPIGetBridgesRequest { + r.name = &name + return r +} +func (r ApiBridgesAPIGetBridgesRequest) Page(page int32) ApiBridgesAPIGetBridgesRequest { + r.page = &page + return r +} +func (r ApiBridgesAPIGetBridgesRequest) Size(size int32) ApiBridgesAPIGetBridgesRequest { + r.size = &size + return r +} +func (r ApiBridgesAPIGetBridgesRequest) Status(status []ManagedResourceStatus) ApiBridgesAPIGetBridgesRequest { + r.status = &status + return r +} + +func (r ApiBridgesAPIGetBridgesRequest) Execute() (BridgeListResponse, *_nethttp.Response, error) { + return r.ApiService.BridgesAPIGetBridgesExecute(r) +} + +/* + * BridgesAPIGetBridges Get the list of Bridge instances + * Get the list of Bridge instances for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiBridgesAPIGetBridgesRequest + */ +func (a *BridgesApiService) BridgesAPIGetBridges(ctx _context.Context) ApiBridgesAPIGetBridgesRequest { + return ApiBridgesAPIGetBridgesRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return BridgeListResponse + */ +func (a *BridgesApiService) BridgesAPIGetBridgesExecute(r ApiBridgesAPIGetBridgesRequest) (BridgeListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue BridgeListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BridgesApiService.BridgesAPIGetBridges") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.status != nil { + t := *r.status + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("status", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("status", parameterToString(t, "multi")) + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiBridgesAPIUpdateBridgeRequest struct { + ctx _context.Context + ApiService BridgesApi + bridgeId string + bridgeRequest *BridgeRequest +} + +func (r ApiBridgesAPIUpdateBridgeRequest) BridgeRequest(bridgeRequest BridgeRequest) ApiBridgesAPIUpdateBridgeRequest { + r.bridgeRequest = &bridgeRequest + return r +} + +func (r ApiBridgesAPIUpdateBridgeRequest) Execute() (BridgeResponse, *_nethttp.Response, error) { + return r.ApiService.BridgesAPIUpdateBridgeExecute(r) +} + +/* + * BridgesAPIUpdateBridge Update a Bridge instance + * Update a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiBridgesAPIUpdateBridgeRequest + */ +func (a *BridgesApiService) BridgesAPIUpdateBridge(ctx _context.Context, bridgeId string) ApiBridgesAPIUpdateBridgeRequest { + return ApiBridgesAPIUpdateBridgeRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + } +} + +/* + * Execute executes the request + * @return BridgeResponse + */ +func (a *BridgesApiService) BridgesAPIUpdateBridgeExecute(r ApiBridgesAPIUpdateBridgeRequest) (BridgeResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue BridgeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BridgesApiService.BridgesAPIUpdateBridge") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.bridgeRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_cloud_providers.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_cloud_providers.go new file mode 100644 index 00000000..a0742335 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_cloud_providers.go @@ -0,0 +1,495 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type CloudProvidersApi interface { + + /* + * CloudProviderAPIGetCloudProvider Get Cloud Provider. + * Get details of the Cloud Provider specified by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiCloudProviderAPIGetCloudProviderRequest + */ + CloudProviderAPIGetCloudProvider(ctx _context.Context, id string) ApiCloudProviderAPIGetCloudProviderRequest + + /* + * CloudProviderAPIGetCloudProviderExecute executes the request + * @return CloudProviderListResponse + */ + CloudProviderAPIGetCloudProviderExecute(r ApiCloudProviderAPIGetCloudProviderRequest) (CloudProviderListResponse, *_nethttp.Response, error) + + /* + * CloudProviderAPIListCloudProviderRegions List Supported Cloud Regions. + * Returns the list of supported Regions of the specified Cloud Provider. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiCloudProviderAPIListCloudProviderRegionsRequest + */ + CloudProviderAPIListCloudProviderRegions(ctx _context.Context, id string) ApiCloudProviderAPIListCloudProviderRegionsRequest + + /* + * CloudProviderAPIListCloudProviderRegionsExecute executes the request + * @return CloudRegionListResponse + */ + CloudProviderAPIListCloudProviderRegionsExecute(r ApiCloudProviderAPIListCloudProviderRegionsRequest) (CloudRegionListResponse, *_nethttp.Response, error) + + /* + * CloudProviderAPIListCloudProviders List Supported Cloud Providers. + * Returns the list of supported Cloud Providers. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCloudProviderAPIListCloudProvidersRequest + */ + CloudProviderAPIListCloudProviders(ctx _context.Context) ApiCloudProviderAPIListCloudProvidersRequest + + /* + * CloudProviderAPIListCloudProvidersExecute executes the request + * @return CloudProviderListResponse + */ + CloudProviderAPIListCloudProvidersExecute(r ApiCloudProviderAPIListCloudProvidersRequest) (CloudProviderListResponse, *_nethttp.Response, error) +} + +// CloudProvidersApiService CloudProvidersApi service +type CloudProvidersApiService service + +type ApiCloudProviderAPIGetCloudProviderRequest struct { + ctx _context.Context + ApiService CloudProvidersApi + id string +} + + +func (r ApiCloudProviderAPIGetCloudProviderRequest) Execute() (CloudProviderListResponse, *_nethttp.Response, error) { + return r.ApiService.CloudProviderAPIGetCloudProviderExecute(r) +} + +/* + * CloudProviderAPIGetCloudProvider Get Cloud Provider. + * Get details of the Cloud Provider specified by id. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiCloudProviderAPIGetCloudProviderRequest + */ +func (a *CloudProvidersApiService) CloudProviderAPIGetCloudProvider(ctx _context.Context, id string) ApiCloudProviderAPIGetCloudProviderRequest { + return ApiCloudProviderAPIGetCloudProviderRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return CloudProviderListResponse + */ +func (a *CloudProvidersApiService) CloudProviderAPIGetCloudProviderExecute(r ApiCloudProviderAPIGetCloudProviderRequest) (CloudProviderListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudProviderListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudProvidersApiService.CloudProviderAPIGetCloudProvider") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/cloud_providers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.id) < 1 { + return localVarReturnValue, nil, reportError("id must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCloudProviderAPIListCloudProviderRegionsRequest struct { + ctx _context.Context + ApiService CloudProvidersApi + id string + page *int32 + size *int32 +} + +func (r ApiCloudProviderAPIListCloudProviderRegionsRequest) Page(page int32) ApiCloudProviderAPIListCloudProviderRegionsRequest { + r.page = &page + return r +} +func (r ApiCloudProviderAPIListCloudProviderRegionsRequest) Size(size int32) ApiCloudProviderAPIListCloudProviderRegionsRequest { + r.size = &size + return r +} + +func (r ApiCloudProviderAPIListCloudProviderRegionsRequest) Execute() (CloudRegionListResponse, *_nethttp.Response, error) { + return r.ApiService.CloudProviderAPIListCloudProviderRegionsExecute(r) +} + +/* + * CloudProviderAPIListCloudProviderRegions List Supported Cloud Regions. + * Returns the list of supported Regions of the specified Cloud Provider. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiCloudProviderAPIListCloudProviderRegionsRequest + */ +func (a *CloudProvidersApiService) CloudProviderAPIListCloudProviderRegions(ctx _context.Context, id string) ApiCloudProviderAPIListCloudProviderRegionsRequest { + return ApiCloudProviderAPIListCloudProviderRegionsRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return CloudRegionListResponse + */ +func (a *CloudProvidersApiService) CloudProviderAPIListCloudProviderRegionsExecute(r ApiCloudProviderAPIListCloudProviderRegionsRequest) (CloudRegionListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudRegionListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudProvidersApiService.CloudProviderAPIListCloudProviderRegions") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/cloud_providers/{id}/regions" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.id) < 1 { + return localVarReturnValue, nil, reportError("id must have at least 1 elements") + } + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCloudProviderAPIListCloudProvidersRequest struct { + ctx _context.Context + ApiService CloudProvidersApi + page *int32 + size *int32 +} + +func (r ApiCloudProviderAPIListCloudProvidersRequest) Page(page int32) ApiCloudProviderAPIListCloudProvidersRequest { + r.page = &page + return r +} +func (r ApiCloudProviderAPIListCloudProvidersRequest) Size(size int32) ApiCloudProviderAPIListCloudProvidersRequest { + r.size = &size + return r +} + +func (r ApiCloudProviderAPIListCloudProvidersRequest) Execute() (CloudProviderListResponse, *_nethttp.Response, error) { + return r.ApiService.CloudProviderAPIListCloudProvidersExecute(r) +} + +/* + * CloudProviderAPIListCloudProviders List Supported Cloud Providers. + * Returns the list of supported Cloud Providers. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiCloudProviderAPIListCloudProvidersRequest + */ +func (a *CloudProvidersApiService) CloudProviderAPIListCloudProviders(ctx _context.Context) ApiCloudProviderAPIListCloudProvidersRequest { + return ApiCloudProviderAPIListCloudProvidersRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CloudProviderListResponse + */ +func (a *CloudProvidersApiService) CloudProviderAPIListCloudProvidersExecute(r ApiCloudProviderAPIListCloudProvidersRequest) (CloudProviderListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue CloudProviderListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudProvidersApiService.CloudProviderAPIListCloudProviders") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/cloud_providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_error_catalog.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_error_catalog.go new file mode 100644 index 00000000..d3aa18d3 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_error_catalog.go @@ -0,0 +1,323 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type ErrorCatalogApi interface { + + /* + * ErrorsAPIGetError Get an error from the error catalog. + * Get an error from the error catalog. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiErrorsAPIGetErrorRequest + */ + ErrorsAPIGetError(ctx _context.Context, id int32) ApiErrorsAPIGetErrorRequest + + /* + * ErrorsAPIGetErrorExecute executes the request + * @return BridgeError + */ + ErrorsAPIGetErrorExecute(r ApiErrorsAPIGetErrorRequest) (BridgeError, *_nethttp.Response, error) + + /* + * ErrorsAPIGetErrors Get the list of errors. + * Get the list of errors from the error catalog. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiErrorsAPIGetErrorsRequest + */ + ErrorsAPIGetErrors(ctx _context.Context) ApiErrorsAPIGetErrorsRequest + + /* + * ErrorsAPIGetErrorsExecute executes the request + * @return ErrorListResponse + */ + ErrorsAPIGetErrorsExecute(r ApiErrorsAPIGetErrorsRequest) (ErrorListResponse, *_nethttp.Response, error) +} + +// ErrorCatalogApiService ErrorCatalogApi service +type ErrorCatalogApiService service + +type ApiErrorsAPIGetErrorRequest struct { + ctx _context.Context + ApiService ErrorCatalogApi + id int32 +} + + +func (r ApiErrorsAPIGetErrorRequest) Execute() (BridgeError, *_nethttp.Response, error) { + return r.ApiService.ErrorsAPIGetErrorExecute(r) +} + +/* + * ErrorsAPIGetError Get an error from the error catalog. + * Get an error from the error catalog. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiErrorsAPIGetErrorRequest + */ +func (a *ErrorCatalogApiService) ErrorsAPIGetError(ctx _context.Context, id int32) ApiErrorsAPIGetErrorRequest { + return ApiErrorsAPIGetErrorRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return BridgeError + */ +func (a *ErrorCatalogApiService) ErrorsAPIGetErrorExecute(r ApiErrorsAPIGetErrorRequest) (BridgeError, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue BridgeError + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorCatalogApiService.ErrorsAPIGetError") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/errors/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiErrorsAPIGetErrorsRequest struct { + ctx _context.Context + ApiService ErrorCatalogApi + page *int32 + size *int32 +} + +func (r ApiErrorsAPIGetErrorsRequest) Page(page int32) ApiErrorsAPIGetErrorsRequest { + r.page = &page + return r +} +func (r ApiErrorsAPIGetErrorsRequest) Size(size int32) ApiErrorsAPIGetErrorsRequest { + r.size = &size + return r +} + +func (r ApiErrorsAPIGetErrorsRequest) Execute() (ErrorListResponse, *_nethttp.Response, error) { + return r.ApiService.ErrorsAPIGetErrorsExecute(r) +} + +/* + * ErrorsAPIGetErrors Get the list of errors. + * Get the list of errors from the error catalog. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiErrorsAPIGetErrorsRequest + */ +func (a *ErrorCatalogApiService) ErrorsAPIGetErrors(ctx _context.Context) ApiErrorsAPIGetErrorsRequest { + return ApiErrorsAPIGetErrorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrorListResponse + */ +func (a *ErrorCatalogApiService) ErrorsAPIGetErrorsExecute(r ApiErrorsAPIGetErrorsRequest) (ErrorListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ErrorListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorCatalogApiService.ErrorsAPIGetErrors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_processors.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_processors.go new file mode 100644 index 00000000..429c5ce0 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_processors.go @@ -0,0 +1,876 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" + "reflect" +) + +// Linger please +var ( + _ _context.Context +) + +type ProcessorsApi interface { + + /* + * ProcessorsAPIAddProcessorToBridge Create a Processor of a Bridge instance + * Create a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiProcessorsAPIAddProcessorToBridgeRequest + */ + ProcessorsAPIAddProcessorToBridge(ctx _context.Context, bridgeId string) ApiProcessorsAPIAddProcessorToBridgeRequest + + /* + * ProcessorsAPIAddProcessorToBridgeExecute executes the request + * @return ProcessorResponse + */ + ProcessorsAPIAddProcessorToBridgeExecute(r ApiProcessorsAPIAddProcessorToBridgeRequest) (ProcessorResponse, *_nethttp.Response, error) + + /* + * ProcessorsAPIDeleteProcessor Delete a Processor of a Bridge instance + * Delete a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIDeleteProcessorRequest + */ + ProcessorsAPIDeleteProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIDeleteProcessorRequest + + /* + * ProcessorsAPIDeleteProcessorExecute executes the request + */ + ProcessorsAPIDeleteProcessorExecute(r ApiProcessorsAPIDeleteProcessorRequest) (*_nethttp.Response, error) + + /* + * ProcessorsAPIGetProcessor Get a Processor of a Bridge instance + * Get a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIGetProcessorRequest + */ + ProcessorsAPIGetProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIGetProcessorRequest + + /* + * ProcessorsAPIGetProcessorExecute executes the request + * @return ProcessorResponse + */ + ProcessorsAPIGetProcessorExecute(r ApiProcessorsAPIGetProcessorRequest) (ProcessorResponse, *_nethttp.Response, error) + + /* + * ProcessorsAPIListProcessors Get the list of Processors of a Bridge instance + * Get the list of Processors of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiProcessorsAPIListProcessorsRequest + */ + ProcessorsAPIListProcessors(ctx _context.Context, bridgeId string) ApiProcessorsAPIListProcessorsRequest + + /* + * ProcessorsAPIListProcessorsExecute executes the request + * @return ProcessorListResponse + */ + ProcessorsAPIListProcessorsExecute(r ApiProcessorsAPIListProcessorsRequest) (ProcessorListResponse, *_nethttp.Response, error) + + /* + * ProcessorsAPIUpdateProcessor Update a Processor instance Filter definition or Transformation template. + * Update a Processor instance Filter definition or Transformation template for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIUpdateProcessorRequest + */ + ProcessorsAPIUpdateProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIUpdateProcessorRequest + + /* + * ProcessorsAPIUpdateProcessorExecute executes the request + * @return ProcessorResponse + */ + ProcessorsAPIUpdateProcessorExecute(r ApiProcessorsAPIUpdateProcessorRequest) (ProcessorResponse, *_nethttp.Response, error) +} + +// ProcessorsApiService ProcessorsApi service +type ProcessorsApiService service + +type ApiProcessorsAPIAddProcessorToBridgeRequest struct { + ctx _context.Context + ApiService ProcessorsApi + bridgeId string + processorRequest *ProcessorRequest +} + +func (r ApiProcessorsAPIAddProcessorToBridgeRequest) ProcessorRequest(processorRequest ProcessorRequest) ApiProcessorsAPIAddProcessorToBridgeRequest { + r.processorRequest = &processorRequest + return r +} + +func (r ApiProcessorsAPIAddProcessorToBridgeRequest) Execute() (ProcessorResponse, *_nethttp.Response, error) { + return r.ApiService.ProcessorsAPIAddProcessorToBridgeExecute(r) +} + +/* + * ProcessorsAPIAddProcessorToBridge Create a Processor of a Bridge instance + * Create a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiProcessorsAPIAddProcessorToBridgeRequest + */ +func (a *ProcessorsApiService) ProcessorsAPIAddProcessorToBridge(ctx _context.Context, bridgeId string) ApiProcessorsAPIAddProcessorToBridgeRequest { + return ApiProcessorsAPIAddProcessorToBridgeRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + } +} + +/* + * Execute executes the request + * @return ProcessorResponse + */ +func (a *ProcessorsApiService) ProcessorsAPIAddProcessorToBridgeExecute(r ApiProcessorsAPIAddProcessorToBridgeRequest) (ProcessorResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProcessorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProcessorsApiService.ProcessorsAPIAddProcessorToBridge") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}/processors" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.processorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 402 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiProcessorsAPIDeleteProcessorRequest struct { + ctx _context.Context + ApiService ProcessorsApi + bridgeId string + processorId string +} + + +func (r ApiProcessorsAPIDeleteProcessorRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.ProcessorsAPIDeleteProcessorExecute(r) +} + +/* + * ProcessorsAPIDeleteProcessor Delete a Processor of a Bridge instance + * Delete a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIDeleteProcessorRequest + */ +func (a *ProcessorsApiService) ProcessorsAPIDeleteProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIDeleteProcessorRequest { + return ApiProcessorsAPIDeleteProcessorRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + processorId: processorId, + } +} + +/* + * Execute executes the request + */ +func (a *ProcessorsApiService) ProcessorsAPIDeleteProcessorExecute(r ApiProcessorsAPIDeleteProcessorRequest) (*_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodDelete + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProcessorsApiService.ProcessorsAPIDeleteProcessor") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"processorId"+"}", _neturl.PathEscape(parameterToString(r.processorId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiProcessorsAPIGetProcessorRequest struct { + ctx _context.Context + ApiService ProcessorsApi + bridgeId string + processorId string +} + + +func (r ApiProcessorsAPIGetProcessorRequest) Execute() (ProcessorResponse, *_nethttp.Response, error) { + return r.ApiService.ProcessorsAPIGetProcessorExecute(r) +} + +/* + * ProcessorsAPIGetProcessor Get a Processor of a Bridge instance + * Get a Processor of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIGetProcessorRequest + */ +func (a *ProcessorsApiService) ProcessorsAPIGetProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIGetProcessorRequest { + return ApiProcessorsAPIGetProcessorRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + processorId: processorId, + } +} + +/* + * Execute executes the request + * @return ProcessorResponse + */ +func (a *ProcessorsApiService) ProcessorsAPIGetProcessorExecute(r ApiProcessorsAPIGetProcessorRequest) (ProcessorResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProcessorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProcessorsApiService.ProcessorsAPIGetProcessor") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"processorId"+"}", _neturl.PathEscape(parameterToString(r.processorId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + if strlen(r.processorId) < 1 { + return localVarReturnValue, nil, reportError("processorId must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiProcessorsAPIListProcessorsRequest struct { + ctx _context.Context + ApiService ProcessorsApi + bridgeId string + name *string + page *int32 + size *int32 + status *[]ManagedResourceStatus + type_ *ProcessorType +} + +func (r ApiProcessorsAPIListProcessorsRequest) Name(name string) ApiProcessorsAPIListProcessorsRequest { + r.name = &name + return r +} +func (r ApiProcessorsAPIListProcessorsRequest) Page(page int32) ApiProcessorsAPIListProcessorsRequest { + r.page = &page + return r +} +func (r ApiProcessorsAPIListProcessorsRequest) Size(size int32) ApiProcessorsAPIListProcessorsRequest { + r.size = &size + return r +} +func (r ApiProcessorsAPIListProcessorsRequest) Status(status []ManagedResourceStatus) ApiProcessorsAPIListProcessorsRequest { + r.status = &status + return r +} +func (r ApiProcessorsAPIListProcessorsRequest) Type_(type_ ProcessorType) ApiProcessorsAPIListProcessorsRequest { + r.type_ = &type_ + return r +} + +func (r ApiProcessorsAPIListProcessorsRequest) Execute() (ProcessorListResponse, *_nethttp.Response, error) { + return r.ApiService.ProcessorsAPIListProcessorsExecute(r) +} + +/* + * ProcessorsAPIListProcessors Get the list of Processors of a Bridge instance + * Get the list of Processors of a Bridge instance for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @return ApiProcessorsAPIListProcessorsRequest + */ +func (a *ProcessorsApiService) ProcessorsAPIListProcessors(ctx _context.Context, bridgeId string) ApiProcessorsAPIListProcessorsRequest { + return ApiProcessorsAPIListProcessorsRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + } +} + +/* + * Execute executes the request + * @return ProcessorListResponse + */ +func (a *ProcessorsApiService) ProcessorsAPIListProcessorsExecute(r ApiProcessorsAPIListProcessorsRequest) (ProcessorListResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProcessorListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProcessorsApiService.ProcessorsAPIListProcessors") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}/processors" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + if r.size != nil { + localVarQueryParams.Add("size", parameterToString(*r.size, "")) + } + if r.status != nil { + t := *r.status + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + localVarQueryParams.Add("status", parameterToString(s.Index(i), "multi")) + } + } else { + localVarQueryParams.Add("status", parameterToString(t, "multi")) + } + } + if r.type_ != nil { + localVarQueryParams.Add("type", parameterToString(*r.type_, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiProcessorsAPIUpdateProcessorRequest struct { + ctx _context.Context + ApiService ProcessorsApi + bridgeId string + processorId string + processorRequest *ProcessorRequest +} + +func (r ApiProcessorsAPIUpdateProcessorRequest) ProcessorRequest(processorRequest ProcessorRequest) ApiProcessorsAPIUpdateProcessorRequest { + r.processorRequest = &processorRequest + return r +} + +func (r ApiProcessorsAPIUpdateProcessorRequest) Execute() (ProcessorResponse, *_nethttp.Response, error) { + return r.ApiService.ProcessorsAPIUpdateProcessorExecute(r) +} + +/* + * ProcessorsAPIUpdateProcessor Update a Processor instance Filter definition or Transformation template. + * Update a Processor instance Filter definition or Transformation template for the authenticated user. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param bridgeId + * @param processorId + * @return ApiProcessorsAPIUpdateProcessorRequest + */ +func (a *ProcessorsApiService) ProcessorsAPIUpdateProcessor(ctx _context.Context, bridgeId string, processorId string) ApiProcessorsAPIUpdateProcessorRequest { + return ApiProcessorsAPIUpdateProcessorRequest{ + ApiService: a, + ctx: ctx, + bridgeId: bridgeId, + processorId: processorId, + } +} + +/* + * Execute executes the request + * @return ProcessorResponse + */ +func (a *ProcessorsApiService) ProcessorsAPIUpdateProcessorExecute(r ApiProcessorsAPIUpdateProcessorRequest) (ProcessorResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodPut + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProcessorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProcessorsApiService.ProcessorsAPIUpdateProcessor") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId}" + localVarPath = strings.Replace(localVarPath, "{"+"bridgeId"+"}", _neturl.PathEscape(parameterToString(r.bridgeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"processorId"+"}", _neturl.PathEscape(parameterToString(r.processorId, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + if strlen(r.bridgeId) < 1 { + return localVarReturnValue, nil, reportError("bridgeId must have at least 1 elements") + } + if strlen(r.processorId) < 1 { + return localVarReturnValue, nil, reportError("processorId must have at least 1 elements") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.processorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_schema_catalog.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_schema_catalog.go new file mode 100644 index 00000000..49eecfb0 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/api_schema_catalog.go @@ -0,0 +1,447 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type SchemaCatalogApi interface { + + /* + * SchemaAPIGetActionProcessorSchema Get action processor schema + * Get the action processor JSON schema. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiSchemaAPIGetActionProcessorSchemaRequest + */ + SchemaAPIGetActionProcessorSchema(ctx _context.Context, id string) ApiSchemaAPIGetActionProcessorSchemaRequest + + /* + * SchemaAPIGetActionProcessorSchemaExecute executes the request + * @return map[string]interface{} + */ + SchemaAPIGetActionProcessorSchemaExecute(r ApiSchemaAPIGetActionProcessorSchemaRequest) (map[string]interface{}, *_nethttp.Response, error) + + /* + * SchemaAPIGetCatalog Get processor catalog + * Get the processor catalog with all the available sources and actions. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSchemaAPIGetCatalogRequest + */ + SchemaAPIGetCatalog(ctx _context.Context) ApiSchemaAPIGetCatalogRequest + + /* + * SchemaAPIGetCatalogExecute executes the request + * @return ProcessorCatalogResponse + */ + SchemaAPIGetCatalogExecute(r ApiSchemaAPIGetCatalogRequest) (ProcessorCatalogResponse, *_nethttp.Response, error) + + /* + * SchemaAPIGetSourceProcessorSchema Get source processor schema + * Get the source processor JSON schema. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiSchemaAPIGetSourceProcessorSchemaRequest + */ + SchemaAPIGetSourceProcessorSchema(ctx _context.Context, id string) ApiSchemaAPIGetSourceProcessorSchemaRequest + + /* + * SchemaAPIGetSourceProcessorSchemaExecute executes the request + * @return map[string]interface{} + */ + SchemaAPIGetSourceProcessorSchemaExecute(r ApiSchemaAPIGetSourceProcessorSchemaRequest) (map[string]interface{}, *_nethttp.Response, error) +} + +// SchemaCatalogApiService SchemaCatalogApi service +type SchemaCatalogApiService service + +type ApiSchemaAPIGetActionProcessorSchemaRequest struct { + ctx _context.Context + ApiService SchemaCatalogApi + id string +} + + +func (r ApiSchemaAPIGetActionProcessorSchemaRequest) Execute() (map[string]interface{}, *_nethttp.Response, error) { + return r.ApiService.SchemaAPIGetActionProcessorSchemaExecute(r) +} + +/* + * SchemaAPIGetActionProcessorSchema Get action processor schema + * Get the action processor JSON schema. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiSchemaAPIGetActionProcessorSchemaRequest + */ +func (a *SchemaCatalogApiService) SchemaAPIGetActionProcessorSchema(ctx _context.Context, id string) ApiSchemaAPIGetActionProcessorSchemaRequest { + return ApiSchemaAPIGetActionProcessorSchemaRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return map[string]interface{} + */ +func (a *SchemaCatalogApiService) SchemaAPIGetActionProcessorSchemaExecute(r ApiSchemaAPIGetActionProcessorSchemaRequest) (map[string]interface{}, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaCatalogApiService.SchemaAPIGetActionProcessorSchema") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/schemas/actions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSchemaAPIGetCatalogRequest struct { + ctx _context.Context + ApiService SchemaCatalogApi +} + + +func (r ApiSchemaAPIGetCatalogRequest) Execute() (ProcessorCatalogResponse, *_nethttp.Response, error) { + return r.ApiService.SchemaAPIGetCatalogExecute(r) +} + +/* + * SchemaAPIGetCatalog Get processor catalog + * Get the processor catalog with all the available sources and actions. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiSchemaAPIGetCatalogRequest + */ +func (a *SchemaCatalogApiService) SchemaAPIGetCatalog(ctx _context.Context) ApiSchemaAPIGetCatalogRequest { + return ApiSchemaAPIGetCatalogRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ProcessorCatalogResponse + */ +func (a *SchemaCatalogApiService) SchemaAPIGetCatalogExecute(r ApiSchemaAPIGetCatalogRequest) (ProcessorCatalogResponse, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProcessorCatalogResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaCatalogApiService.SchemaAPIGetCatalog") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/schemas" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiSchemaAPIGetSourceProcessorSchemaRequest struct { + ctx _context.Context + ApiService SchemaCatalogApi + id string +} + + +func (r ApiSchemaAPIGetSourceProcessorSchemaRequest) Execute() (map[string]interface{}, *_nethttp.Response, error) { + return r.ApiService.SchemaAPIGetSourceProcessorSchemaExecute(r) +} + +/* + * SchemaAPIGetSourceProcessorSchema Get source processor schema + * Get the source processor JSON schema. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id + * @return ApiSchemaAPIGetSourceProcessorSchemaRequest + */ +func (a *SchemaCatalogApiService) SchemaAPIGetSourceProcessorSchema(ctx _context.Context, id string) ApiSchemaAPIGetSourceProcessorSchemaRequest { + return ApiSchemaAPIGetSourceProcessorSchemaRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +/* + * Execute executes the request + * @return map[string]interface{} + */ +func (a *SchemaCatalogApiService) SchemaAPIGetSourceProcessorSchemaExecute(r ApiSchemaAPIGetSourceProcessorSchemaRequest) (map[string]interface{}, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaCatalogApiService.SchemaAPIGetSourceProcessorSchema") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/smartevents_mgmt/v1/schemas/sources/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorsList + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/client.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/client.go new file mode 100644 index 00000000..9939d3f8 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/client.go @@ -0,0 +1,558 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Red Hat Openshift SmartEvents Fleet Manager API v0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + BridgesApi BridgesApi + + CloudProvidersApi CloudProvidersApi + + ErrorCatalogApi ErrorCatalogApi + + ProcessorsApi ProcessorsApi + + SchemaCatalogApi SchemaCatalogApi +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.BridgesApi = (*BridgesApiService)(&c.common) + c.CloudProvidersApi = (*CloudProvidersApiService)(&c.common) + c.ErrorCatalogApi = (*ErrorCatalogApiService)(&c.common) + c.ProcessorsApi = (*ProcessorsApiService)(&c.common) + c.SchemaCatalogApi = (*SchemaCatalogApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/configuration.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/configuration.go new file mode 100644 index 00000000..80e4cee2 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/configuration.go @@ -0,0 +1,243 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.stage.openshift.com", + Description: "No description provided", + }, + { + URL: "http://localhost:8000", + Description: "No description provided", + }, + { + URL: "https://api.openshift.com", + Description: "No description provided", + }, + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Action.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Action.md new file mode 100644 index 00000000..cc0bec9c --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Action.md @@ -0,0 +1,72 @@ +# Action + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Parameters** | **map[string]interface{}** | | + +## Methods + +### NewAction + +`func NewAction(type_ string, parameters map[string]interface{}, ) *Action` + +NewAction instantiates a new Action 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 + +### NewActionWithDefaults + +`func NewActionWithDefaults() *Action` + +NewActionWithDefaults instantiates a new Action 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 + +### GetType + +`func (o *Action) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Action) GetTypeOk() (*string, 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 *Action) SetType(v string)` + +SetType sets Type field to given value. + + +### GetParameters + +`func (o *Action) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *Action) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *Action) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BaseFilter.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BaseFilter.md new file mode 100644 index 00000000..0ff9d180 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BaseFilter.md @@ -0,0 +1,77 @@ +# BaseFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Key** | **string** | | + +## Methods + +### NewBaseFilter + +`func NewBaseFilter(key string, ) *BaseFilter` + +NewBaseFilter instantiates a new BaseFilter 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 + +### NewBaseFilterWithDefaults + +`func NewBaseFilterWithDefaults() *BaseFilter` + +NewBaseFilterWithDefaults instantiates a new BaseFilter 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 + +### GetType + +`func (o *BaseFilter) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BaseFilter) GetTypeOk() (*string, 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 *BaseFilter) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BaseFilter) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetKey + +`func (o *BaseFilter) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *BaseFilter) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *BaseFilter) SetKey(v string)` + +SetKey sets Key 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeError.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeError.md new file mode 100644 index 00000000..d2814ba2 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeError.md @@ -0,0 +1,134 @@ +# BridgeError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Code** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] +**Type** | Pointer to [**BridgeErrorType**](BridgeErrorType.md) | | [optional] + +## Methods + +### NewBridgeError + +`func NewBridgeError() *BridgeError` + +NewBridgeError instantiates a new BridgeError 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 + +### NewBridgeErrorWithDefaults + +`func NewBridgeErrorWithDefaults() *BridgeError` + +NewBridgeErrorWithDefaults instantiates a new BridgeError 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 *BridgeError) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BridgeError) GetIdOk() (*int32, 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 *BridgeError) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *BridgeError) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCode + +`func (o *BridgeError) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *BridgeError) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *BridgeError) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *BridgeError) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetReason + +`func (o *BridgeError) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *BridgeError) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *BridgeError) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *BridgeError) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetType + +`func (o *BridgeError) GetType() BridgeErrorType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BridgeError) GetTypeOk() (*BridgeErrorType, 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 *BridgeError) SetType(v BridgeErrorType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BridgeError) 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorInstance.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorInstance.md new file mode 100644 index 00000000..92217207 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorInstance.md @@ -0,0 +1,160 @@ +# BridgeErrorInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Code** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] +**Type** | Pointer to [**BridgeErrorType**](BridgeErrorType.md) | | [optional] +**Uuid** | Pointer to **string** | | [optional] + +## Methods + +### NewBridgeErrorInstance + +`func NewBridgeErrorInstance() *BridgeErrorInstance` + +NewBridgeErrorInstance instantiates a new BridgeErrorInstance 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 + +### NewBridgeErrorInstanceWithDefaults + +`func NewBridgeErrorInstanceWithDefaults() *BridgeErrorInstance` + +NewBridgeErrorInstanceWithDefaults instantiates a new BridgeErrorInstance 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 *BridgeErrorInstance) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BridgeErrorInstance) GetIdOk() (*int32, 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 *BridgeErrorInstance) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *BridgeErrorInstance) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCode + +`func (o *BridgeErrorInstance) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *BridgeErrorInstance) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *BridgeErrorInstance) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *BridgeErrorInstance) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetReason + +`func (o *BridgeErrorInstance) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *BridgeErrorInstance) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *BridgeErrorInstance) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *BridgeErrorInstance) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetType + +`func (o *BridgeErrorInstance) GetType() BridgeErrorType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BridgeErrorInstance) GetTypeOk() (*BridgeErrorType, 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 *BridgeErrorInstance) SetType(v BridgeErrorType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BridgeErrorInstance) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUuid + +`func (o *BridgeErrorInstance) GetUuid() string` + +GetUuid returns the Uuid field if non-nil, zero value otherwise. + +### GetUuidOk + +`func (o *BridgeErrorInstance) GetUuidOk() (*string, bool)` + +GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUuid + +`func (o *BridgeErrorInstance) SetUuid(v string)` + +SetUuid sets Uuid field to given value. + +### HasUuid + +`func (o *BridgeErrorInstance) HasUuid() bool` + +HasUuid 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorType.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorType.md new file mode 100644 index 00000000..e1491830 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeErrorType.md @@ -0,0 +1,13 @@ +# BridgeErrorType + +## Enum + + +* `USER` (value: `"USER"`) + +* `PLATFORM` (value: `"PLATFORM"`) + + +[[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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeListResponse.md new file mode 100644 index 00000000..68bfc106 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeListResponse.md @@ -0,0 +1,140 @@ +# BridgeListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]BridgeResponse**](BridgeResponse.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewBridgeListResponse + +`func NewBridgeListResponse(kind string, page int64, size int64, total int64, ) *BridgeListResponse` + +NewBridgeListResponse instantiates a new BridgeListResponse 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 + +### NewBridgeListResponseWithDefaults + +`func NewBridgeListResponseWithDefaults() *BridgeListResponse` + +NewBridgeListResponseWithDefaults instantiates a new BridgeListResponse 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 + +### GetKind + +`func (o *BridgeListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *BridgeListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *BridgeListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *BridgeListResponse) GetItems() []BridgeResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *BridgeListResponse) GetItemsOk() (*[]BridgeResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *BridgeListResponse) SetItems(v []BridgeResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *BridgeListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *BridgeListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *BridgeListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *BridgeListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *BridgeListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *BridgeListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *BridgeListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *BridgeListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *BridgeListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *BridgeListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeRequest.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeRequest.md new file mode 100644 index 00000000..bbaadaa2 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeRequest.md @@ -0,0 +1,119 @@ +# BridgeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ErrorHandler** | Pointer to [**Action**](Action.md) | | [optional] +**CloudProvider** | **string** | | +**Region** | **string** | | + +## Methods + +### NewBridgeRequest + +`func NewBridgeRequest(name string, cloudProvider string, region string, ) *BridgeRequest` + +NewBridgeRequest instantiates a new BridgeRequest 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 + +### NewBridgeRequestWithDefaults + +`func NewBridgeRequestWithDefaults() *BridgeRequest` + +NewBridgeRequestWithDefaults instantiates a new BridgeRequest 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 *BridgeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BridgeRequest) 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 *BridgeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetErrorHandler + +`func (o *BridgeRequest) GetErrorHandler() Action` + +GetErrorHandler returns the ErrorHandler field if non-nil, zero value otherwise. + +### GetErrorHandlerOk + +`func (o *BridgeRequest) GetErrorHandlerOk() (*Action, bool)` + +GetErrorHandlerOk returns a tuple with the ErrorHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorHandler + +`func (o *BridgeRequest) SetErrorHandler(v Action)` + +SetErrorHandler sets ErrorHandler field to given value. + +### HasErrorHandler + +`func (o *BridgeRequest) HasErrorHandler() bool` + +HasErrorHandler returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *BridgeRequest) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *BridgeRequest) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *BridgeRequest) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + + +### GetRegion + +`func (o *BridgeRequest) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *BridgeRequest) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *BridgeRequest) SetRegion(v string)` + +SetRegion sets Region 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeResponse.md new file mode 100644 index 00000000..e4e9e3e2 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgeResponse.md @@ -0,0 +1,364 @@ +# BridgeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Id** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Href** | **string** | | +**SubmittedAt** | **time.Time** | | +**PublishedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Status** | [**ManagedResourceStatus**](ManagedResourceStatus.md) | | +**Owner** | **string** | | +**Endpoint** | Pointer to **string** | | [optional] +**ErrorHandler** | Pointer to [**Action**](Action.md) | | [optional] +**CloudProvider** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] +**StatusMessage** | Pointer to **string** | | [optional] + +## Methods + +### NewBridgeResponse + +`func NewBridgeResponse(kind string, id string, href string, submittedAt time.Time, status ManagedResourceStatus, owner string, ) *BridgeResponse` + +NewBridgeResponse instantiates a new BridgeResponse 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 + +### NewBridgeResponseWithDefaults + +`func NewBridgeResponseWithDefaults() *BridgeResponse` + +NewBridgeResponseWithDefaults instantiates a new BridgeResponse 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 + +### GetKind + +`func (o *BridgeResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *BridgeResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *BridgeResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *BridgeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BridgeResponse) 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 *BridgeResponse) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *BridgeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BridgeResponse) 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 *BridgeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BridgeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetHref + +`func (o *BridgeResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *BridgeResponse) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *BridgeResponse) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetSubmittedAt + +`func (o *BridgeResponse) GetSubmittedAt() time.Time` + +GetSubmittedAt returns the SubmittedAt field if non-nil, zero value otherwise. + +### GetSubmittedAtOk + +`func (o *BridgeResponse) GetSubmittedAtOk() (*time.Time, bool)` + +GetSubmittedAtOk returns a tuple with the SubmittedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmittedAt + +`func (o *BridgeResponse) SetSubmittedAt(v time.Time)` + +SetSubmittedAt sets SubmittedAt field to given value. + + +### GetPublishedAt + +`func (o *BridgeResponse) GetPublishedAt() time.Time` + +GetPublishedAt returns the PublishedAt field if non-nil, zero value otherwise. + +### GetPublishedAtOk + +`func (o *BridgeResponse) GetPublishedAtOk() (*time.Time, bool)` + +GetPublishedAtOk returns a tuple with the PublishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedAt + +`func (o *BridgeResponse) SetPublishedAt(v time.Time)` + +SetPublishedAt sets PublishedAt field to given value. + +### HasPublishedAt + +`func (o *BridgeResponse) HasPublishedAt() bool` + +HasPublishedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *BridgeResponse) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *BridgeResponse) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *BridgeResponse) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *BridgeResponse) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *BridgeResponse) GetStatus() ManagedResourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BridgeResponse) GetStatusOk() (*ManagedResourceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BridgeResponse) SetStatus(v ManagedResourceStatus)` + +SetStatus sets Status field to given value. + + +### GetOwner + +`func (o *BridgeResponse) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *BridgeResponse) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *BridgeResponse) SetOwner(v string)` + +SetOwner sets Owner field to given value. + + +### GetEndpoint + +`func (o *BridgeResponse) GetEndpoint() string` + +GetEndpoint returns the Endpoint field if non-nil, zero value otherwise. + +### GetEndpointOk + +`func (o *BridgeResponse) GetEndpointOk() (*string, bool)` + +GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpoint + +`func (o *BridgeResponse) SetEndpoint(v string)` + +SetEndpoint sets Endpoint field to given value. + +### HasEndpoint + +`func (o *BridgeResponse) HasEndpoint() bool` + +HasEndpoint returns a boolean if a field has been set. + +### GetErrorHandler + +`func (o *BridgeResponse) GetErrorHandler() Action` + +GetErrorHandler returns the ErrorHandler field if non-nil, zero value otherwise. + +### GetErrorHandlerOk + +`func (o *BridgeResponse) GetErrorHandlerOk() (*Action, bool)` + +GetErrorHandlerOk returns a tuple with the ErrorHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorHandler + +`func (o *BridgeResponse) SetErrorHandler(v Action)` + +SetErrorHandler sets ErrorHandler field to given value. + +### HasErrorHandler + +`func (o *BridgeResponse) HasErrorHandler() bool` + +HasErrorHandler returns a boolean if a field has been set. + +### GetCloudProvider + +`func (o *BridgeResponse) GetCloudProvider() string` + +GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. + +### GetCloudProviderOk + +`func (o *BridgeResponse) GetCloudProviderOk() (*string, bool)` + +GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudProvider + +`func (o *BridgeResponse) SetCloudProvider(v string)` + +SetCloudProvider sets CloudProvider field to given value. + +### HasCloudProvider + +`func (o *BridgeResponse) HasCloudProvider() bool` + +HasCloudProvider returns a boolean if a field has been set. + +### GetRegion + +`func (o *BridgeResponse) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *BridgeResponse) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *BridgeResponse) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *BridgeResponse) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *BridgeResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *BridgeResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *BridgeResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *BridgeResponse) HasStatusMessage() bool` + +HasStatusMessage 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgesApi.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgesApi.md new file mode 100644 index 00000000..5e12e77e --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/BridgesApi.md @@ -0,0 +1,361 @@ +# \BridgesApi + +All URIs are relative to *https://api.stage.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**BridgesAPICreateBridge**](BridgesApi.md#BridgesAPICreateBridge) | **Post** /api/smartevents_mgmt/v1/bridges | Create a Bridge instance +[**BridgesAPIDeleteBridge**](BridgesApi.md#BridgesAPIDeleteBridge) | **Delete** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Delete a Bridge instance +[**BridgesAPIGetBridge**](BridgesApi.md#BridgesAPIGetBridge) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Get a Bridge instance +[**BridgesAPIGetBridges**](BridgesApi.md#BridgesAPIGetBridges) | **Get** /api/smartevents_mgmt/v1/bridges | Get the list of Bridge instances +[**BridgesAPIUpdateBridge**](BridgesApi.md#BridgesAPIUpdateBridge) | **Put** /api/smartevents_mgmt/v1/bridges/{bridgeId} | Update a Bridge instance + + + +## BridgesAPICreateBridge + +> BridgeResponse BridgesAPICreateBridge(ctx).BridgeRequest(bridgeRequest).Execute() + +Create a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeRequest := *openapiclient.NewBridgeRequest("Name_example", "CloudProvider_example", "Region_example") // BridgeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.BridgesApi.BridgesAPICreateBridge(context.Background()).BridgeRequest(bridgeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BridgesApi.BridgesAPICreateBridge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BridgesAPICreateBridge`: BridgeResponse + fmt.Fprintf(os.Stdout, "Response from `BridgesApi.BridgesAPICreateBridge`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiBridgesAPICreateBridgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bridgeRequest** | [**BridgeRequest**](BridgeRequest.md) | | + +### Return type + +[**BridgeResponse**](BridgeResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## BridgesAPIDeleteBridge + +> BridgesAPIDeleteBridge(ctx, bridgeId).Execute() + +Delete a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.BridgesApi.BridgesAPIDeleteBridge(context.Background(), bridgeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BridgesApi.BridgesAPIDeleteBridge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBridgesAPIDeleteBridgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## BridgesAPIGetBridge + +> BridgeResponse BridgesAPIGetBridge(ctx, bridgeId).Execute() + +Get a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.BridgesApi.BridgesAPIGetBridge(context.Background(), bridgeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BridgesApi.BridgesAPIGetBridge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BridgesAPIGetBridge`: BridgeResponse + fmt.Fprintf(os.Stdout, "Response from `BridgesApi.BridgesAPIGetBridge`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBridgesAPIGetBridgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**BridgeResponse**](BridgeResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## BridgesAPIGetBridges + +> BridgeListResponse BridgesAPIGetBridges(ctx).Name(name).Page(page).Size(size).Status(status).Execute() + +Get the list of Bridge instances + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | (optional) + page := int32(56) // int32 | (optional) (default to 0) + size := int32(56) // int32 | (optional) (default to 100) + status := []openapiclient.ManagedResourceStatus{openapiclient.ManagedResourceStatus("accepted")} // []ManagedResourceStatus | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.BridgesApi.BridgesAPIGetBridges(context.Background()).Name(name).Page(page).Size(size).Status(status).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BridgesApi.BridgesAPIGetBridges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BridgesAPIGetBridges`: BridgeListResponse + fmt.Fprintf(os.Stdout, "Response from `BridgesApi.BridgesAPIGetBridges`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiBridgesAPIGetBridgesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **string** | | + **page** | **int32** | | [default to 0] + **size** | **int32** | | [default to 100] + **status** | [**[]ManagedResourceStatus**](ManagedResourceStatus.md) | | + +### Return type + +[**BridgeListResponse**](BridgeListResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## BridgesAPIUpdateBridge + +> BridgeResponse BridgesAPIUpdateBridge(ctx, bridgeId).BridgeRequest(bridgeRequest).Execute() + +Update a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + bridgeRequest := *openapiclient.NewBridgeRequest("Name_example", "CloudProvider_example", "Region_example") // BridgeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.BridgesApi.BridgesAPIUpdateBridge(context.Background(), bridgeId).BridgeRequest(bridgeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BridgesApi.BridgesAPIUpdateBridge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BridgesAPIUpdateBridge`: BridgeResponse + fmt.Fprintf(os.Stdout, "Response from `BridgesApi.BridgesAPIUpdateBridge`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBridgesAPIUpdateBridgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bridgeRequest** | [**BridgeRequest**](BridgeRequest.md) | | + +### Return type + +[**BridgeResponse**](BridgeResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderListResponse.md new file mode 100644 index 00000000..2753ce56 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderListResponse.md @@ -0,0 +1,140 @@ +# CloudProviderListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]CloudProviderResponse**](CloudProviderResponse.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewCloudProviderListResponse + +`func NewCloudProviderListResponse(kind string, page int64, size int64, total int64, ) *CloudProviderListResponse` + +NewCloudProviderListResponse instantiates a new CloudProviderListResponse 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 + +### NewCloudProviderListResponseWithDefaults + +`func NewCloudProviderListResponseWithDefaults() *CloudProviderListResponse` + +NewCloudProviderListResponseWithDefaults instantiates a new CloudProviderListResponse 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 + +### GetKind + +`func (o *CloudProviderListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudProviderListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudProviderListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *CloudProviderListResponse) GetItems() []CloudProviderResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudProviderListResponse) GetItemsOk() (*[]CloudProviderResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudProviderListResponse) SetItems(v []CloudProviderResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CloudProviderListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *CloudProviderListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CloudProviderListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CloudProviderListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *CloudProviderListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *CloudProviderListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *CloudProviderListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *CloudProviderListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CloudProviderListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CloudProviderListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderResponse.md new file mode 100644 index 00000000..87db2c0a --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProviderResponse.md @@ -0,0 +1,161 @@ +# CloudProviderResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Id** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Href** | **string** | | +**DisplayName** | **string** | | +**Enabled** | **bool** | | + +## Methods + +### NewCloudProviderResponse + +`func NewCloudProviderResponse(kind string, id string, href string, displayName string, enabled bool, ) *CloudProviderResponse` + +NewCloudProviderResponse instantiates a new CloudProviderResponse 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 + +### NewCloudProviderResponseWithDefaults + +`func NewCloudProviderResponseWithDefaults() *CloudProviderResponse` + +NewCloudProviderResponseWithDefaults instantiates a new CloudProviderResponse 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 + +### GetKind + +`func (o *CloudProviderResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudProviderResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudProviderResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *CloudProviderResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CloudProviderResponse) 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 *CloudProviderResponse) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *CloudProviderResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CloudProviderResponse) 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 *CloudProviderResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CloudProviderResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetHref + +`func (o *CloudProviderResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *CloudProviderResponse) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *CloudProviderResponse) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetDisplayName + +`func (o *CloudProviderResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CloudProviderResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CloudProviderResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetEnabled + +`func (o *CloudProviderResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CloudProviderResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CloudProviderResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProvidersApi.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProvidersApi.md new file mode 100644 index 00000000..95cb1127 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudProvidersApi.md @@ -0,0 +1,223 @@ +# \CloudProvidersApi + +All URIs are relative to *https://api.stage.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CloudProviderAPIGetCloudProvider**](CloudProvidersApi.md#CloudProviderAPIGetCloudProvider) | **Get** /api/smartevents_mgmt/v1/cloud_providers/{id} | Get Cloud Provider. +[**CloudProviderAPIListCloudProviderRegions**](CloudProvidersApi.md#CloudProviderAPIListCloudProviderRegions) | **Get** /api/smartevents_mgmt/v1/cloud_providers/{id}/regions | List Supported Cloud Regions. +[**CloudProviderAPIListCloudProviders**](CloudProvidersApi.md#CloudProviderAPIListCloudProviders) | **Get** /api/smartevents_mgmt/v1/cloud_providers | List Supported Cloud Providers. + + + +## CloudProviderAPIGetCloudProvider + +> CloudProviderListResponse CloudProviderAPIGetCloudProvider(ctx, id).Execute() + +Get Cloud Provider. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.CloudProvidersApi.CloudProviderAPIGetCloudProvider(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudProvidersApi.CloudProviderAPIGetCloudProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloudProviderAPIGetCloudProvider`: CloudProviderListResponse + fmt.Fprintf(os.Stdout, "Response from `CloudProvidersApi.CloudProviderAPIGetCloudProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCloudProviderAPIGetCloudProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CloudProviderListResponse**](CloudProviderListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CloudProviderAPIListCloudProviderRegions + +> CloudRegionListResponse CloudProviderAPIListCloudProviderRegions(ctx, id).Page(page).Size(size).Execute() + +List Supported Cloud Regions. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + page := int32(56) // int32 | (optional) (default to 0) + size := int32(56) // int32 | (optional) (default to 100) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.CloudProvidersApi.CloudProviderAPIListCloudProviderRegions(context.Background(), id).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudProvidersApi.CloudProviderAPIListCloudProviderRegions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloudProviderAPIListCloudProviderRegions`: CloudRegionListResponse + fmt.Fprintf(os.Stdout, "Response from `CloudProvidersApi.CloudProviderAPIListCloudProviderRegions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCloudProviderAPIListCloudProviderRegionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **page** | **int32** | | [default to 0] + **size** | **int32** | | [default to 100] + +### Return type + +[**CloudRegionListResponse**](CloudRegionListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CloudProviderAPIListCloudProviders + +> CloudProviderListResponse CloudProviderAPIListCloudProviders(ctx).Page(page).Size(size).Execute() + +List Supported Cloud Providers. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | (optional) (default to 0) + size := int32(56) // int32 | (optional) (default to 100) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.CloudProvidersApi.CloudProviderAPIListCloudProviders(context.Background()).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudProvidersApi.CloudProviderAPIListCloudProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloudProviderAPIListCloudProviders`: CloudProviderListResponse + fmt.Fprintf(os.Stdout, "Response from `CloudProvidersApi.CloudProviderAPIListCloudProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCloudProviderAPIListCloudProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | | [default to 0] + **size** | **int32** | | [default to 100] + +### Return type + +[**CloudProviderListResponse**](CloudProviderListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionListResponse.md new file mode 100644 index 00000000..dc1ef260 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionListResponse.md @@ -0,0 +1,140 @@ +# CloudRegionListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]CloudRegionResponse**](CloudRegionResponse.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewCloudRegionListResponse + +`func NewCloudRegionListResponse(kind string, page int64, size int64, total int64, ) *CloudRegionListResponse` + +NewCloudRegionListResponse instantiates a new CloudRegionListResponse 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 + +### NewCloudRegionListResponseWithDefaults + +`func NewCloudRegionListResponseWithDefaults() *CloudRegionListResponse` + +NewCloudRegionListResponseWithDefaults instantiates a new CloudRegionListResponse 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 + +### GetKind + +`func (o *CloudRegionListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudRegionListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudRegionListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *CloudRegionListResponse) GetItems() []CloudRegionResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CloudRegionListResponse) GetItemsOk() (*[]CloudRegionResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CloudRegionListResponse) SetItems(v []CloudRegionResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CloudRegionListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *CloudRegionListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CloudRegionListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CloudRegionListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *CloudRegionListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *CloudRegionListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *CloudRegionListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *CloudRegionListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CloudRegionListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CloudRegionListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionResponse.md new file mode 100644 index 00000000..74fdb410 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/CloudRegionResponse.md @@ -0,0 +1,114 @@ +# CloudRegionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Name** | **string** | | +**DisplayName** | **string** | | +**Enabled** | **bool** | | + +## Methods + +### NewCloudRegionResponse + +`func NewCloudRegionResponse(kind string, name string, displayName string, enabled bool, ) *CloudRegionResponse` + +NewCloudRegionResponse instantiates a new CloudRegionResponse 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 + +### NewCloudRegionResponseWithDefaults + +`func NewCloudRegionResponseWithDefaults() *CloudRegionResponse` + +NewCloudRegionResponseWithDefaults instantiates a new CloudRegionResponse 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 + +### GetKind + +`func (o *CloudRegionResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *CloudRegionResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *CloudRegionResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *CloudRegionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CloudRegionResponse) 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 *CloudRegionResponse) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDisplayName + +`func (o *CloudRegionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CloudRegionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CloudRegionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetEnabled + +`func (o *CloudRegionResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *CloudRegionResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *CloudRegionResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Error.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Error.md new file mode 100644 index 00000000..61593600 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Error.md @@ -0,0 +1,166 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Code** | Pointer to **string** | | [optional] +**Reason** | **string** | | +**Id** | **string** | | +**Href** | **string** | | + +## Methods + +### NewError + +`func NewError(kind string, reason string, id string, href string, ) *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetKind + +`func (o *Error) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *Error) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *Error) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *Error) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Error) 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 *Error) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Error) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCode + +`func (o *Error) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *Error) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *Error) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *Error) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetId + +`func (o *Error) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Error) 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 *Error) SetId(v string)` + +SetId sets Id field to given value. + + +### GetHref + +`func (o *Error) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *Error) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *Error) SetHref(v string)` + +SetHref sets Href 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorCatalogApi.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorCatalogApi.md new file mode 100644 index 00000000..718b6894 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorCatalogApi.md @@ -0,0 +1,148 @@ +# \ErrorCatalogApi + +All URIs are relative to *https://api.stage.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ErrorsAPIGetError**](ErrorCatalogApi.md#ErrorsAPIGetError) | **Get** /api/smartevents_mgmt/v1/errors/{id} | Get an error from the error catalog. +[**ErrorsAPIGetErrors**](ErrorCatalogApi.md#ErrorsAPIGetErrors) | **Get** /api/smartevents_mgmt/v1/errors | Get the list of errors. + + + +## ErrorsAPIGetError + +> BridgeError ErrorsAPIGetError(ctx, id).Execute() + +Get an error from the error catalog. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorCatalogApi.ErrorsAPIGetError(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorCatalogApi.ErrorsAPIGetError``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ErrorsAPIGetError`: BridgeError + fmt.Fprintf(os.Stdout, "Response from `ErrorCatalogApi.ErrorsAPIGetError`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiErrorsAPIGetErrorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**BridgeError**](BridgeError.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ErrorsAPIGetErrors + +> ErrorListResponse ErrorsAPIGetErrors(ctx).Page(page).Size(size).Execute() + +Get the list of errors. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + page := int32(56) // int32 | (optional) (default to 0) + size := int32(56) // int32 | (optional) (default to 100) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ErrorCatalogApi.ErrorsAPIGetErrors(context.Background()).Page(page).Size(size).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ErrorCatalogApi.ErrorsAPIGetErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ErrorsAPIGetErrors`: ErrorListResponse + fmt.Fprintf(os.Stdout, "Response from `ErrorCatalogApi.ErrorsAPIGetErrors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiErrorsAPIGetErrorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | | [default to 0] + **size** | **int32** | | [default to 100] + +### Return type + +[**ErrorListResponse**](ErrorListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorListResponse.md new file mode 100644 index 00000000..8a325222 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorListResponse.md @@ -0,0 +1,140 @@ +# ErrorListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewErrorListResponse + +`func NewErrorListResponse(kind string, page int64, size int64, total int64, ) *ErrorListResponse` + +NewErrorListResponse instantiates a new ErrorListResponse 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 + +### NewErrorListResponseWithDefaults + +`func NewErrorListResponseWithDefaults() *ErrorListResponse` + +NewErrorListResponseWithDefaults instantiates a new ErrorListResponse 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 + +### GetKind + +`func (o *ErrorListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ErrorListResponse) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorListResponse) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorListResponse) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *ErrorListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrorListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrorListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ErrorListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ErrorListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ErrorListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ErrorListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ErrorListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ErrorListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorsList.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorsList.md new file mode 100644 index 00000000..9c98eb94 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ErrorsList.md @@ -0,0 +1,77 @@ +# ErrorsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]Error**](Error.md) | | [optional] + +## Methods + +### NewErrorsList + +`func NewErrorsList(kind string, ) *ErrorsList` + +NewErrorsList instantiates a new ErrorsList 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 + +### NewErrorsListWithDefaults + +`func NewErrorsListWithDefaults() *ErrorsList` + +NewErrorsListWithDefaults instantiates a new ErrorsList 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 + +### GetKind + +`func (o *ErrorsList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ErrorsList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ErrorsList) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ErrorsList) GetItems() []Error` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ErrorsList) GetItemsOk() (*[]Error, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ErrorsList) SetItems(v []Error)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ErrorsList) HasItems() bool` + +HasItems 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/List.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/List.md new file mode 100644 index 00000000..cd5e9f9e --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/List.md @@ -0,0 +1,140 @@ +# List + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to **[]map[string]interface{}** | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewList + +`func NewList(kind string, page int64, size int64, total int64, ) *List` + +NewList instantiates a new List 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 + +### NewListWithDefaults + +`func NewListWithDefaults() *List` + +NewListWithDefaults instantiates a new List 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 + +### GetKind + +`func (o *List) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *List) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *List) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *List) GetItems() []map[string]interface{}` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *List) GetItemsOk() (*[]map[string]interface{}, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *List) SetItems(v []map[string]interface{})` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *List) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *List) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *List) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *List) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *List) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *List) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *List) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *List) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *List) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *List) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListAllOf.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListAllOf.md new file mode 100644 index 00000000..ea896df7 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListAllOf.md @@ -0,0 +1,93 @@ +# ListAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewListAllOf + +`func NewListAllOf(page int64, size int64, total int64, ) *ListAllOf` + +NewListAllOf instantiates a new ListAllOf 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 + +### NewListAllOfWithDefaults + +`func NewListAllOfWithDefaults() *ListAllOf` + +NewListAllOfWithDefaults instantiates a new ListAllOf 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 + +### GetPage + +`func (o *ListAllOf) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ListAllOf) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ListAllOf) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ListAllOf) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ListAllOf) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ListAllOf) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ListAllOf) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ListAllOf) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ListAllOf) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListResponse.md new file mode 100644 index 00000000..50128c76 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ListResponse.md @@ -0,0 +1,77 @@ +# ListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewListResponse + +`func NewListResponse(kind string, ) *ListResponse` + +NewListResponse instantiates a new ListResponse 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 + +### NewListResponseWithDefaults + +`func NewListResponseWithDefaults() *ListResponse` + +NewListResponseWithDefaults instantiates a new ListResponse 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 + +### GetKind + +`func (o *ListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ListResponse) GetItems() []map[string]interface{}` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ListResponse) GetItemsOk() (*[]map[string]interface{}, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ListResponse) SetItems(v []map[string]interface{})` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ListResponse) HasItems() bool` + +HasItems 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ManagedResourceStatus.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ManagedResourceStatus.md new file mode 100644 index 00000000..fa089350 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ManagedResourceStatus.md @@ -0,0 +1,25 @@ +# ManagedResourceStatus + +## Enum + + +* `ACCEPTED` (value: `"accepted"`) + +* `PREPARING` (value: `"preparing"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `READY` (value: `"ready"`) + +* `DEPROVISION` (value: `"deprovision"`) + +* `DELETING` (value: `"deleting"`) + +* `DELETED` (value: `"deleted"`) + +* `FAILED` (value: `"failed"`) + + +[[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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ObjectReference.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ObjectReference.md new file mode 100644 index 00000000..46a2335e --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ObjectReference.md @@ -0,0 +1,119 @@ +# ObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Id** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Href** | **string** | | + +## Methods + +### NewObjectReference + +`func NewObjectReference(kind string, id string, href string, ) *ObjectReference` + +NewObjectReference instantiates a new ObjectReference 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 + +### NewObjectReferenceWithDefaults + +`func NewObjectReferenceWithDefaults() *ObjectReference` + +NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 + +### GetKind + +`func (o *ObjectReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ObjectReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ObjectReference) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *ObjectReference) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ObjectReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ObjectReference) 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 *ObjectReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ObjectReference) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetHref + +`func (o *ObjectReference) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ObjectReference) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ObjectReference) SetHref(v string)` + +SetHref sets Href 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorListResponse.md new file mode 100644 index 00000000..2675b4b5 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorListResponse.md @@ -0,0 +1,140 @@ +# ProcessingErrorListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]ProcessingErrorResponse**](ProcessingErrorResponse.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewProcessingErrorListResponse + +`func NewProcessingErrorListResponse(kind string, page int64, size int64, total int64, ) *ProcessingErrorListResponse` + +NewProcessingErrorListResponse instantiates a new ProcessingErrorListResponse 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 + +### NewProcessingErrorListResponseWithDefaults + +`func NewProcessingErrorListResponseWithDefaults() *ProcessingErrorListResponse` + +NewProcessingErrorListResponseWithDefaults instantiates a new ProcessingErrorListResponse 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 + +### GetKind + +`func (o *ProcessingErrorListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ProcessingErrorListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ProcessingErrorListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ProcessingErrorListResponse) GetItems() []ProcessingErrorResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ProcessingErrorListResponse) GetItemsOk() (*[]ProcessingErrorResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ProcessingErrorListResponse) SetItems(v []ProcessingErrorResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ProcessingErrorListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *ProcessingErrorListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ProcessingErrorListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ProcessingErrorListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ProcessingErrorListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ProcessingErrorListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ProcessingErrorListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ProcessingErrorListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ProcessingErrorListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ProcessingErrorListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorResponse.md new file mode 100644 index 00000000..bb7adfb0 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessingErrorResponse.md @@ -0,0 +1,108 @@ +# ProcessingErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordedAt** | Pointer to **time.Time** | | [optional] +**Headers** | Pointer to **map[string]string** | | [optional] +**Payload** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewProcessingErrorResponse + +`func NewProcessingErrorResponse() *ProcessingErrorResponse` + +NewProcessingErrorResponse instantiates a new ProcessingErrorResponse 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 + +### NewProcessingErrorResponseWithDefaults + +`func NewProcessingErrorResponseWithDefaults() *ProcessingErrorResponse` + +NewProcessingErrorResponseWithDefaults instantiates a new ProcessingErrorResponse 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 + +### GetRecordedAt + +`func (o *ProcessingErrorResponse) GetRecordedAt() time.Time` + +GetRecordedAt returns the RecordedAt field if non-nil, zero value otherwise. + +### GetRecordedAtOk + +`func (o *ProcessingErrorResponse) GetRecordedAtOk() (*time.Time, bool)` + +GetRecordedAtOk returns a tuple with the RecordedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecordedAt + +`func (o *ProcessingErrorResponse) SetRecordedAt(v time.Time)` + +SetRecordedAt sets RecordedAt field to given value. + +### HasRecordedAt + +`func (o *ProcessingErrorResponse) HasRecordedAt() bool` + +HasRecordedAt returns a boolean if a field has been set. + +### GetHeaders + +`func (o *ProcessingErrorResponse) GetHeaders() map[string]string` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *ProcessingErrorResponse) GetHeadersOk() (*map[string]string, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *ProcessingErrorResponse) SetHeaders(v map[string]string)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *ProcessingErrorResponse) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetPayload + +`func (o *ProcessingErrorResponse) GetPayload() map[string]interface{}` + +GetPayload returns the Payload field if non-nil, zero value otherwise. + +### GetPayloadOk + +`func (o *ProcessingErrorResponse) GetPayloadOk() (*map[string]interface{}, bool)` + +GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayload + +`func (o *ProcessingErrorResponse) SetPayload(v map[string]interface{})` + +SetPayload sets Payload field to given value. + +### HasPayload + +`func (o *ProcessingErrorResponse) HasPayload() bool` + +HasPayload 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorCatalogResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorCatalogResponse.md new file mode 100644 index 00000000..cea6a4ca --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorCatalogResponse.md @@ -0,0 +1,77 @@ +# ProcessorCatalogResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]ProcessorSchemaEntryResponse**](ProcessorSchemaEntryResponse.md) | | [optional] + +## Methods + +### NewProcessorCatalogResponse + +`func NewProcessorCatalogResponse(kind string, ) *ProcessorCatalogResponse` + +NewProcessorCatalogResponse instantiates a new ProcessorCatalogResponse 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 + +### NewProcessorCatalogResponseWithDefaults + +`func NewProcessorCatalogResponseWithDefaults() *ProcessorCatalogResponse` + +NewProcessorCatalogResponseWithDefaults instantiates a new ProcessorCatalogResponse 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 + +### GetKind + +`func (o *ProcessorCatalogResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ProcessorCatalogResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ProcessorCatalogResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ProcessorCatalogResponse) GetItems() []ProcessorSchemaEntryResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ProcessorCatalogResponse) GetItemsOk() (*[]ProcessorSchemaEntryResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ProcessorCatalogResponse) SetItems(v []ProcessorSchemaEntryResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ProcessorCatalogResponse) HasItems() bool` + +HasItems 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorListResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorListResponse.md new file mode 100644 index 00000000..53e2130f --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorListResponse.md @@ -0,0 +1,140 @@ +# ProcessorListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Items** | Pointer to [**[]ProcessorResponse**](ProcessorResponse.md) | | [optional] +**Page** | **int64** | | +**Size** | **int64** | | +**Total** | **int64** | | + +## Methods + +### NewProcessorListResponse + +`func NewProcessorListResponse(kind string, page int64, size int64, total int64, ) *ProcessorListResponse` + +NewProcessorListResponse instantiates a new ProcessorListResponse 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 + +### NewProcessorListResponseWithDefaults + +`func NewProcessorListResponseWithDefaults() *ProcessorListResponse` + +NewProcessorListResponseWithDefaults instantiates a new ProcessorListResponse 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 + +### GetKind + +`func (o *ProcessorListResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ProcessorListResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ProcessorListResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetItems + +`func (o *ProcessorListResponse) GetItems() []ProcessorResponse` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ProcessorListResponse) GetItemsOk() (*[]ProcessorResponse, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ProcessorListResponse) SetItems(v []ProcessorResponse)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ProcessorListResponse) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPage + +`func (o *ProcessorListResponse) GetPage() int64` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ProcessorListResponse) GetPageOk() (*int64, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ProcessorListResponse) SetPage(v int64)` + +SetPage sets Page field to given value. + + +### GetSize + +`func (o *ProcessorListResponse) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ProcessorListResponse) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ProcessorListResponse) SetSize(v int64)` + +SetSize sets Size field to given value. + + +### GetTotal + +`func (o *ProcessorListResponse) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ProcessorListResponse) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ProcessorListResponse) SetTotal(v int64)` + +SetTotal sets Total 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorRequest.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorRequest.md new file mode 100644 index 00000000..d337fd22 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorRequest.md @@ -0,0 +1,155 @@ +# ProcessorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Filters** | Pointer to [**[]BaseFilter**](BaseFilter.md) | | [optional] +**TransformationTemplate** | Pointer to **string** | | [optional] +**Action** | Pointer to [**Action**](Action.md) | | [optional] +**Source** | Pointer to [**Source**](Source.md) | | [optional] + +## Methods + +### NewProcessorRequest + +`func NewProcessorRequest(name string, ) *ProcessorRequest` + +NewProcessorRequest instantiates a new ProcessorRequest 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 + +### NewProcessorRequestWithDefaults + +`func NewProcessorRequestWithDefaults() *ProcessorRequest` + +NewProcessorRequestWithDefaults instantiates a new ProcessorRequest 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 *ProcessorRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProcessorRequest) 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 *ProcessorRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetFilters + +`func (o *ProcessorRequest) GetFilters() []BaseFilter` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *ProcessorRequest) GetFiltersOk() (*[]BaseFilter, 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 *ProcessorRequest) SetFilters(v []BaseFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *ProcessorRequest) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetTransformationTemplate + +`func (o *ProcessorRequest) GetTransformationTemplate() string` + +GetTransformationTemplate returns the TransformationTemplate field if non-nil, zero value otherwise. + +### GetTransformationTemplateOk + +`func (o *ProcessorRequest) GetTransformationTemplateOk() (*string, bool)` + +GetTransformationTemplateOk returns a tuple with the TransformationTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransformationTemplate + +`func (o *ProcessorRequest) SetTransformationTemplate(v string)` + +SetTransformationTemplate sets TransformationTemplate field to given value. + +### HasTransformationTemplate + +`func (o *ProcessorRequest) HasTransformationTemplate() bool` + +HasTransformationTemplate returns a boolean if a field has been set. + +### GetAction + +`func (o *ProcessorRequest) GetAction() Action` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ProcessorRequest) GetActionOk() (*Action, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ProcessorRequest) SetAction(v Action)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *ProcessorRequest) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetSource + +`func (o *ProcessorRequest) GetSource() Source` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *ProcessorRequest) GetSourceOk() (*Source, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *ProcessorRequest) SetSource(v Source)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *ProcessorRequest) HasSource() bool` + +HasSource 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorResponse.md new file mode 100644 index 00000000..fe822cba --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorResponse.md @@ -0,0 +1,385 @@ +# ProcessorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Id** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Href** | **string** | | +**SubmittedAt** | **time.Time** | | +**PublishedAt** | Pointer to **time.Time** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | | [optional] +**Status** | [**ManagedResourceStatus**](ManagedResourceStatus.md) | | +**Owner** | **string** | | +**Type** | [**ProcessorType**](ProcessorType.md) | | +**Filters** | Pointer to [**[]BaseFilter**](BaseFilter.md) | | [optional] +**TransformationTemplate** | Pointer to **string** | | [optional] +**Action** | Pointer to [**Action**](Action.md) | | [optional] +**Source** | Pointer to [**Source**](Source.md) | | [optional] +**StatusMessage** | Pointer to **string** | | [optional] + +## Methods + +### NewProcessorResponse + +`func NewProcessorResponse(kind string, id string, href string, submittedAt time.Time, status ManagedResourceStatus, owner string, type_ ProcessorType, ) *ProcessorResponse` + +NewProcessorResponse instantiates a new ProcessorResponse 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 + +### NewProcessorResponseWithDefaults + +`func NewProcessorResponseWithDefaults() *ProcessorResponse` + +NewProcessorResponseWithDefaults instantiates a new ProcessorResponse 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 + +### GetKind + +`func (o *ProcessorResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ProcessorResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ProcessorResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *ProcessorResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProcessorResponse) 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 *ProcessorResponse) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ProcessorResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProcessorResponse) 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 *ProcessorResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ProcessorResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetHref + +`func (o *ProcessorResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ProcessorResponse) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ProcessorResponse) SetHref(v string)` + +SetHref sets Href field to given value. + + +### GetSubmittedAt + +`func (o *ProcessorResponse) GetSubmittedAt() time.Time` + +GetSubmittedAt returns the SubmittedAt field if non-nil, zero value otherwise. + +### GetSubmittedAtOk + +`func (o *ProcessorResponse) GetSubmittedAtOk() (*time.Time, bool)` + +GetSubmittedAtOk returns a tuple with the SubmittedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmittedAt + +`func (o *ProcessorResponse) SetSubmittedAt(v time.Time)` + +SetSubmittedAt sets SubmittedAt field to given value. + + +### GetPublishedAt + +`func (o *ProcessorResponse) GetPublishedAt() time.Time` + +GetPublishedAt returns the PublishedAt field if non-nil, zero value otherwise. + +### GetPublishedAtOk + +`func (o *ProcessorResponse) GetPublishedAtOk() (*time.Time, bool)` + +GetPublishedAtOk returns a tuple with the PublishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedAt + +`func (o *ProcessorResponse) SetPublishedAt(v time.Time)` + +SetPublishedAt sets PublishedAt field to given value. + +### HasPublishedAt + +`func (o *ProcessorResponse) HasPublishedAt() bool` + +HasPublishedAt returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ProcessorResponse) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ProcessorResponse) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ProcessorResponse) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ProcessorResponse) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *ProcessorResponse) GetStatus() ManagedResourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ProcessorResponse) GetStatusOk() (*ManagedResourceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ProcessorResponse) SetStatus(v ManagedResourceStatus)` + +SetStatus sets Status field to given value. + + +### GetOwner + +`func (o *ProcessorResponse) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ProcessorResponse) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ProcessorResponse) SetOwner(v string)` + +SetOwner sets Owner field to given value. + + +### GetType + +`func (o *ProcessorResponse) GetType() ProcessorType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProcessorResponse) GetTypeOk() (*ProcessorType, 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 *ProcessorResponse) SetType(v ProcessorType)` + +SetType sets Type field to given value. + + +### GetFilters + +`func (o *ProcessorResponse) GetFilters() []BaseFilter` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *ProcessorResponse) GetFiltersOk() (*[]BaseFilter, 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 *ProcessorResponse) SetFilters(v []BaseFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *ProcessorResponse) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetTransformationTemplate + +`func (o *ProcessorResponse) GetTransformationTemplate() string` + +GetTransformationTemplate returns the TransformationTemplate field if non-nil, zero value otherwise. + +### GetTransformationTemplateOk + +`func (o *ProcessorResponse) GetTransformationTemplateOk() (*string, bool)` + +GetTransformationTemplateOk returns a tuple with the TransformationTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransformationTemplate + +`func (o *ProcessorResponse) SetTransformationTemplate(v string)` + +SetTransformationTemplate sets TransformationTemplate field to given value. + +### HasTransformationTemplate + +`func (o *ProcessorResponse) HasTransformationTemplate() bool` + +HasTransformationTemplate returns a boolean if a field has been set. + +### GetAction + +`func (o *ProcessorResponse) GetAction() Action` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ProcessorResponse) GetActionOk() (*Action, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ProcessorResponse) SetAction(v Action)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *ProcessorResponse) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetSource + +`func (o *ProcessorResponse) GetSource() Source` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *ProcessorResponse) GetSourceOk() (*Source, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *ProcessorResponse) SetSource(v Source)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *ProcessorResponse) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *ProcessorResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *ProcessorResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *ProcessorResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *ProcessorResponse) HasStatusMessage() bool` + +HasStatusMessage 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorSchemaEntryResponse.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorSchemaEntryResponse.md new file mode 100644 index 00000000..77b2167b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorSchemaEntryResponse.md @@ -0,0 +1,156 @@ +# ProcessorSchemaEntryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Id** | **string** | | +**Name** | **string** | | +**Description** | **string** | | +**Type** | **string** | | +**Href** | **string** | | + +## Methods + +### NewProcessorSchemaEntryResponse + +`func NewProcessorSchemaEntryResponse(kind string, id string, name string, description string, type_ string, href string, ) *ProcessorSchemaEntryResponse` + +NewProcessorSchemaEntryResponse instantiates a new ProcessorSchemaEntryResponse 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 + +### NewProcessorSchemaEntryResponseWithDefaults + +`func NewProcessorSchemaEntryResponseWithDefaults() *ProcessorSchemaEntryResponse` + +NewProcessorSchemaEntryResponseWithDefaults instantiates a new ProcessorSchemaEntryResponse 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 + +### GetKind + +`func (o *ProcessorSchemaEntryResponse) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ProcessorSchemaEntryResponse) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ProcessorSchemaEntryResponse) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetId + +`func (o *ProcessorSchemaEntryResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProcessorSchemaEntryResponse) 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 *ProcessorSchemaEntryResponse) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ProcessorSchemaEntryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProcessorSchemaEntryResponse) 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 *ProcessorSchemaEntryResponse) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ProcessorSchemaEntryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ProcessorSchemaEntryResponse) 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 *ProcessorSchemaEntryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetType + +`func (o *ProcessorSchemaEntryResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ProcessorSchemaEntryResponse) GetTypeOk() (*string, 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 *ProcessorSchemaEntryResponse) SetType(v string)` + +SetType sets Type field to given value. + + +### GetHref + +`func (o *ProcessorSchemaEntryResponse) GetHref() string` + +GetHref returns the Href field if non-nil, zero value otherwise. + +### GetHrefOk + +`func (o *ProcessorSchemaEntryResponse) GetHrefOk() (*string, bool)` + +GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHref + +`func (o *ProcessorSchemaEntryResponse) SetHref(v string)` + +SetHref sets Href 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorType.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorType.md new file mode 100644 index 00000000..a1894fc7 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorType.md @@ -0,0 +1,15 @@ +# ProcessorType + +## Enum + + +* `SOURCE` (value: `"source"`) + +* `SINK` (value: `"sink"`) + +* `ERROR_HANDLER` (value: `"error_handler"`) + + +[[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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorsApi.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorsApi.md new file mode 100644 index 00000000..63ae76ad --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/ProcessorsApi.md @@ -0,0 +1,384 @@ +# \ProcessorsApi + +All URIs are relative to *https://api.stage.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ProcessorsAPIAddProcessorToBridge**](ProcessorsApi.md#ProcessorsAPIAddProcessorToBridge) | **Post** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors | Create a Processor of a Bridge instance +[**ProcessorsAPIDeleteProcessor**](ProcessorsApi.md#ProcessorsAPIDeleteProcessor) | **Delete** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Delete a Processor of a Bridge instance +[**ProcessorsAPIGetProcessor**](ProcessorsApi.md#ProcessorsAPIGetProcessor) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Get a Processor of a Bridge instance +[**ProcessorsAPIListProcessors**](ProcessorsApi.md#ProcessorsAPIListProcessors) | **Get** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors | Get the list of Processors of a Bridge instance +[**ProcessorsAPIUpdateProcessor**](ProcessorsApi.md#ProcessorsAPIUpdateProcessor) | **Put** /api/smartevents_mgmt/v1/bridges/{bridgeId}/processors/{processorId} | Update a Processor instance Filter definition or Transformation template. + + + +## ProcessorsAPIAddProcessorToBridge + +> ProcessorResponse ProcessorsAPIAddProcessorToBridge(ctx, bridgeId).ProcessorRequest(processorRequest).Execute() + +Create a Processor of a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + processorRequest := *openapiclient.NewProcessorRequest("Name_example") // ProcessorRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ProcessorsApi.ProcessorsAPIAddProcessorToBridge(context.Background(), bridgeId).ProcessorRequest(processorRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProcessorsApi.ProcessorsAPIAddProcessorToBridge``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProcessorsAPIAddProcessorToBridge`: ProcessorResponse + fmt.Fprintf(os.Stdout, "Response from `ProcessorsApi.ProcessorsAPIAddProcessorToBridge`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProcessorsAPIAddProcessorToBridgeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **processorRequest** | [**ProcessorRequest**](ProcessorRequest.md) | | + +### Return type + +[**ProcessorResponse**](ProcessorResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ProcessorsAPIDeleteProcessor + +> ProcessorsAPIDeleteProcessor(ctx, bridgeId, processorId).Execute() + +Delete a Processor of a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + processorId := "processorId_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ProcessorsApi.ProcessorsAPIDeleteProcessor(context.Background(), bridgeId, processorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProcessorsApi.ProcessorsAPIDeleteProcessor``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | +**processorId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProcessorsAPIDeleteProcessorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ProcessorsAPIGetProcessor + +> ProcessorResponse ProcessorsAPIGetProcessor(ctx, bridgeId, processorId).Execute() + +Get a Processor of a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + processorId := "processorId_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ProcessorsApi.ProcessorsAPIGetProcessor(context.Background(), bridgeId, processorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProcessorsApi.ProcessorsAPIGetProcessor``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProcessorsAPIGetProcessor`: ProcessorResponse + fmt.Fprintf(os.Stdout, "Response from `ProcessorsApi.ProcessorsAPIGetProcessor`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | +**processorId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProcessorsAPIGetProcessorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**ProcessorResponse**](ProcessorResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ProcessorsAPIListProcessors + +> ProcessorListResponse ProcessorsAPIListProcessors(ctx, bridgeId).Name(name).Page(page).Size(size).Status(status).Type_(type_).Execute() + +Get the list of Processors of a Bridge instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + name := "name_example" // string | (optional) + page := int32(56) // int32 | (optional) (default to 0) + size := int32(56) // int32 | (optional) (default to 100) + status := []openapiclient.ManagedResourceStatus{openapiclient.ManagedResourceStatus("accepted")} // []ManagedResourceStatus | (optional) + type_ := openapiclient.ProcessorType("source") // ProcessorType | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ProcessorsApi.ProcessorsAPIListProcessors(context.Background(), bridgeId).Name(name).Page(page).Size(size).Status(status).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProcessorsApi.ProcessorsAPIListProcessors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProcessorsAPIListProcessors`: ProcessorListResponse + fmt.Fprintf(os.Stdout, "Response from `ProcessorsApi.ProcessorsAPIListProcessors`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProcessorsAPIListProcessorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **name** | **string** | | + **page** | **int32** | | [default to 0] + **size** | **int32** | | [default to 100] + **status** | [**[]ManagedResourceStatus**](ManagedResourceStatus.md) | | + **type_** | [**ProcessorType**](ProcessorType.md) | | + +### Return type + +[**ProcessorListResponse**](ProcessorListResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ProcessorsAPIUpdateProcessor + +> ProcessorResponse ProcessorsAPIUpdateProcessor(ctx, bridgeId, processorId).ProcessorRequest(processorRequest).Execute() + +Update a Processor instance Filter definition or Transformation template. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + bridgeId := "bridgeId_example" // string | + processorId := "processorId_example" // string | + processorRequest := *openapiclient.NewProcessorRequest("Name_example") // ProcessorRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ProcessorsApi.ProcessorsAPIUpdateProcessor(context.Background(), bridgeId, processorId).ProcessorRequest(processorRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProcessorsApi.ProcessorsAPIUpdateProcessor``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProcessorsAPIUpdateProcessor`: ProcessorResponse + fmt.Fprintf(os.Stdout, "Response from `ProcessorsApi.ProcessorsAPIUpdateProcessor`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bridgeId** | **string** | | +**processorId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProcessorsAPIUpdateProcessorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **processorRequest** | [**ProcessorRequest**](ProcessorRequest.md) | | + +### Return type + +[**ProcessorResponse**](ProcessorResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/SchemaCatalogApi.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/SchemaCatalogApi.md new file mode 100644 index 00000000..2bffed7d --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/SchemaCatalogApi.md @@ -0,0 +1,212 @@ +# \SchemaCatalogApi + +All URIs are relative to *https://api.stage.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SchemaAPIGetActionProcessorSchema**](SchemaCatalogApi.md#SchemaAPIGetActionProcessorSchema) | **Get** /api/smartevents_mgmt/v1/schemas/actions/{id} | Get action processor schema +[**SchemaAPIGetCatalog**](SchemaCatalogApi.md#SchemaAPIGetCatalog) | **Get** /api/smartevents_mgmt/v1/schemas | Get processor catalog +[**SchemaAPIGetSourceProcessorSchema**](SchemaCatalogApi.md#SchemaAPIGetSourceProcessorSchema) | **Get** /api/smartevents_mgmt/v1/schemas/sources/{id} | Get source processor schema + + + +## SchemaAPIGetActionProcessorSchema + +> map[string]interface{} SchemaAPIGetActionProcessorSchema(ctx, id).Execute() + +Get action processor schema + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SchemaCatalogApi.SchemaAPIGetActionProcessorSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SchemaCatalogApi.SchemaAPIGetActionProcessorSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SchemaAPIGetActionProcessorSchema`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SchemaCatalogApi.SchemaAPIGetActionProcessorSchema`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSchemaAPIGetActionProcessorSchemaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SchemaAPIGetCatalog + +> ProcessorCatalogResponse SchemaAPIGetCatalog(ctx).Execute() + +Get processor catalog + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SchemaCatalogApi.SchemaAPIGetCatalog(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SchemaCatalogApi.SchemaAPIGetCatalog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SchemaAPIGetCatalog`: ProcessorCatalogResponse + fmt.Fprintf(os.Stdout, "Response from `SchemaCatalogApi.SchemaAPIGetCatalog`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiSchemaAPIGetCatalogRequest struct via the builder pattern + + +### Return type + +[**ProcessorCatalogResponse**](ProcessorCatalogResponse.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SchemaAPIGetSourceProcessorSchema + +> map[string]interface{} SchemaAPIGetSourceProcessorSchema(ctx, id).Execute() + +Get source processor schema + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.SchemaCatalogApi.SchemaAPIGetSourceProcessorSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SchemaCatalogApi.SchemaAPIGetSourceProcessorSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SchemaAPIGetSourceProcessorSchema`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SchemaCatalogApi.SchemaAPIGetSourceProcessorSchema`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSchemaAPIGetSourceProcessorSchemaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Source.md b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Source.md new file mode 100644 index 00000000..b0b9d486 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/docs/Source.md @@ -0,0 +1,72 @@ +# Source + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Parameters** | **map[string]interface{}** | | + +## Methods + +### NewSource + +`func NewSource(type_ string, parameters map[string]interface{}, ) *Source` + +NewSource instantiates a new Source 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 + +### NewSourceWithDefaults + +`func NewSourceWithDefaults() *Source` + +NewSourceWithDefaults instantiates a new Source 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 + +### GetType + +`func (o *Source) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Source) GetTypeOk() (*string, 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 *Source) SetType(v string)` + +SetType sets Type field to given value. + + +### GetParameters + +`func (o *Source) GetParameters() map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *Source) GetParametersOk() (*map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *Source) SetParameters(v map[string]interface{})` + +SetParameters sets Parameters 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/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/git_push.sh b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.mod b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.mod new file mode 100644 index 00000000..0f43de9e --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.mod @@ -0,0 +1,7 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +go 1.13 + +require ( + golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 +) diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.sum b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.sum new file mode 100644 index 00000000..734252e6 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/go.sum @@ -0,0 +1,13 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_action.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_action.go new file mode 100644 index 00000000..22ef307c --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_action.go @@ -0,0 +1,138 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// Action struct for Action +type Action struct { + Type string `json:"type"` + Parameters map[string]interface{} `json:"parameters"` +} + +// NewAction instantiates a new Action 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 NewAction(type_ string, parameters map[string]interface{}) *Action { + this := Action{} + this.Type = type_ + this.Parameters = parameters + return &this +} + +// NewActionWithDefaults instantiates a new Action 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 NewActionWithDefaults() *Action { + this := Action{} + return &this +} + +// GetType returns the Type field value +func (o *Action) GetType() string { + if o == nil { + var ret string + 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 *Action) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Action) SetType(v string) { + o.Type = v +} + +// GetParameters returns the Parameters field value +func (o *Action) GetParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *Action) GetParametersOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *Action) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +func (o Action) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["parameters"] = o.Parameters + } + return json.Marshal(toSerialize) +} + +type NullableAction struct { + value *Action + isSet bool +} + +func (v NullableAction) Get() *Action { + return v.value +} + +func (v *NullableAction) Set(val *Action) { + v.value = val + v.isSet = true +} + +func (v NullableAction) IsSet() bool { + return v.isSet +} + +func (v *NullableAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAction(val *Action) *NullableAction { + return &NullableAction{value: val, isSet: true} +} + +func (v NullableAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_base_filter.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_base_filter.go new file mode 100644 index 00000000..13ade60b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_base_filter.go @@ -0,0 +1,145 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// BaseFilter struct for BaseFilter +type BaseFilter struct { + Type *string `json:"type,omitempty"` + Key string `json:"key"` +} + +// NewBaseFilter instantiates a new BaseFilter 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 NewBaseFilter(key string) *BaseFilter { + this := BaseFilter{} + this.Key = key + return &this +} + +// NewBaseFilterWithDefaults instantiates a new BaseFilter 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 NewBaseFilterWithDefaults() *BaseFilter { + this := BaseFilter{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BaseFilter) GetType() string { + if o == nil || o.Type == nil { + var ret string + 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 *BaseFilter) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BaseFilter) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *BaseFilter) SetType(v string) { + o.Type = &v +} + +// GetKey returns the Key field value +func (o *BaseFilter) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *BaseFilter) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *BaseFilter) SetKey(v string) { + o.Key = v +} + +func (o BaseFilter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if true { + toSerialize["key"] = o.Key + } + return json.Marshal(toSerialize) +} + +type NullableBaseFilter struct { + value *BaseFilter + isSet bool +} + +func (v NullableBaseFilter) Get() *BaseFilter { + return v.value +} + +func (v *NullableBaseFilter) Set(val *BaseFilter) { + v.value = val + v.isSet = true +} + +func (v NullableBaseFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableBaseFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBaseFilter(val *BaseFilter) *NullableBaseFilter { + return &NullableBaseFilter{value: val, isSet: true} +} + +func (v NullableBaseFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBaseFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error.go new file mode 100644 index 00000000..85a9baad --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error.go @@ -0,0 +1,224 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// BridgeError struct for BridgeError +type BridgeError struct { + Id *int32 `json:"id,omitempty"` + Code *string `json:"code,omitempty"` + Reason *string `json:"reason,omitempty"` + Type *BridgeErrorType `json:"type,omitempty"` +} + +// NewBridgeError instantiates a new BridgeError 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 NewBridgeError() *BridgeError { + this := BridgeError{} + return &this +} + +// NewBridgeErrorWithDefaults instantiates a new BridgeError 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 NewBridgeErrorWithDefaults() *BridgeError { + this := BridgeError{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *BridgeError) GetId() int32 { + if o == nil || o.Id == nil { + var ret int32 + 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 *BridgeError) GetIdOk() (*int32, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *BridgeError) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *BridgeError) SetId(v int32) { + o.Id = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *BridgeError) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeError) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *BridgeError) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *BridgeError) SetCode(v string) { + o.Code = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *BridgeError) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeError) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *BridgeError) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *BridgeError) SetReason(v string) { + o.Reason = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BridgeError) GetType() BridgeErrorType { + if o == nil || o.Type == nil { + var ret BridgeErrorType + 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 *BridgeError) GetTypeOk() (*BridgeErrorType, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BridgeError) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given BridgeErrorType and assigns it to the Type field. +func (o *BridgeError) SetType(v BridgeErrorType) { + o.Type = &v +} + +func (o BridgeError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableBridgeError struct { + value *BridgeError + isSet bool +} + +func (v NullableBridgeError) Get() *BridgeError { + return v.value +} + +func (v *NullableBridgeError) Set(val *BridgeError) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeError) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeError(val *BridgeError) *NullableBridgeError { + return &NullableBridgeError{value: val, isSet: true} +} + +func (v NullableBridgeError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_instance.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_instance.go new file mode 100644 index 00000000..46d585be --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_instance.go @@ -0,0 +1,260 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// BridgeErrorInstance struct for BridgeErrorInstance +type BridgeErrorInstance struct { + Id *int32 `json:"id,omitempty"` + Code *string `json:"code,omitempty"` + Reason *string `json:"reason,omitempty"` + Type *BridgeErrorType `json:"type,omitempty"` + Uuid *string `json:"uuid,omitempty"` +} + +// NewBridgeErrorInstance instantiates a new BridgeErrorInstance 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 NewBridgeErrorInstance() *BridgeErrorInstance { + this := BridgeErrorInstance{} + return &this +} + +// NewBridgeErrorInstanceWithDefaults instantiates a new BridgeErrorInstance 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 NewBridgeErrorInstanceWithDefaults() *BridgeErrorInstance { + this := BridgeErrorInstance{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *BridgeErrorInstance) GetId() int32 { + if o == nil || o.Id == nil { + var ret int32 + 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 *BridgeErrorInstance) GetIdOk() (*int32, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *BridgeErrorInstance) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *BridgeErrorInstance) SetId(v int32) { + o.Id = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *BridgeErrorInstance) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeErrorInstance) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *BridgeErrorInstance) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *BridgeErrorInstance) SetCode(v string) { + o.Code = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *BridgeErrorInstance) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeErrorInstance) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *BridgeErrorInstance) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *BridgeErrorInstance) SetReason(v string) { + o.Reason = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BridgeErrorInstance) GetType() BridgeErrorType { + if o == nil || o.Type == nil { + var ret BridgeErrorType + 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 *BridgeErrorInstance) GetTypeOk() (*BridgeErrorType, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BridgeErrorInstance) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given BridgeErrorType and assigns it to the Type field. +func (o *BridgeErrorInstance) SetType(v BridgeErrorType) { + o.Type = &v +} + +// GetUuid returns the Uuid field value if set, zero value otherwise. +func (o *BridgeErrorInstance) GetUuid() string { + if o == nil || o.Uuid == nil { + var ret string + return ret + } + return *o.Uuid +} + +// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeErrorInstance) GetUuidOk() (*string, bool) { + if o == nil || o.Uuid == nil { + return nil, false + } + return o.Uuid, true +} + +// HasUuid returns a boolean if a field has been set. +func (o *BridgeErrorInstance) HasUuid() bool { + if o != nil && o.Uuid != nil { + return true + } + + return false +} + +// SetUuid gets a reference to the given string and assigns it to the Uuid field. +func (o *BridgeErrorInstance) SetUuid(v string) { + o.Uuid = &v +} + +func (o BridgeErrorInstance) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Uuid != nil { + toSerialize["uuid"] = o.Uuid + } + return json.Marshal(toSerialize) +} + +type NullableBridgeErrorInstance struct { + value *BridgeErrorInstance + isSet bool +} + +func (v NullableBridgeErrorInstance) Get() *BridgeErrorInstance { + return v.value +} + +func (v *NullableBridgeErrorInstance) Set(val *BridgeErrorInstance) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeErrorInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeErrorInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeErrorInstance(val *BridgeErrorInstance) *NullableBridgeErrorInstance { + return &NullableBridgeErrorInstance{value: val, isSet: true} +} + +func (v NullableBridgeErrorInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeErrorInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_type.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_type.go new file mode 100644 index 00000000..29e0796f --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_error_type.go @@ -0,0 +1,111 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "fmt" +) + +// BridgeErrorType the model 'BridgeErrorType' +type BridgeErrorType string + +// List of BridgeErrorType +const ( + BRIDGEERRORTYPE_USER BridgeErrorType = "USER" + BRIDGEERRORTYPE_PLATFORM BridgeErrorType = "PLATFORM" +) + +var allowedBridgeErrorTypeEnumValues = []BridgeErrorType{ + "USER", + "PLATFORM", +} + +func (v *BridgeErrorType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BridgeErrorType(value) + for _, existing := range allowedBridgeErrorTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BridgeErrorType", value) +} + +// NewBridgeErrorTypeFromValue returns a pointer to a valid BridgeErrorType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBridgeErrorTypeFromValue(v string) (*BridgeErrorType, error) { + ev := BridgeErrorType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BridgeErrorType: valid values are %v", v, allowedBridgeErrorTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BridgeErrorType) IsValid() bool { + for _, existing := range allowedBridgeErrorTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BridgeErrorType value +func (v BridgeErrorType) Ptr() *BridgeErrorType { + return &v +} + +type NullableBridgeErrorType struct { + value *BridgeErrorType + isSet bool +} + +func (v NullableBridgeErrorType) Get() *BridgeErrorType { + return v.value +} + +func (v *NullableBridgeErrorType) Set(val *BridgeErrorType) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeErrorType) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeErrorType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeErrorType(val *BridgeErrorType) *NullableBridgeErrorType { + return &NullableBridgeErrorType{value: val, isSet: true} +} + +func (v NullableBridgeErrorType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeErrorType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_list_response.go new file mode 100644 index 00000000..1dd0cdb8 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// BridgeListResponse struct for BridgeListResponse +type BridgeListResponse struct { + Kind string `json:"kind"` + Items *[]BridgeResponse `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewBridgeListResponse instantiates a new BridgeListResponse 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 NewBridgeListResponse(kind string, page int64, size int64, total int64) *BridgeListResponse { + this := BridgeListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewBridgeListResponseWithDefaults instantiates a new BridgeListResponse 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 NewBridgeListResponseWithDefaults() *BridgeListResponse { + this := BridgeListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *BridgeListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *BridgeListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *BridgeListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *BridgeListResponse) GetItems() []BridgeResponse { + if o == nil || o.Items == nil { + var ret []BridgeResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeListResponse) GetItemsOk() (*[]BridgeResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *BridgeListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []BridgeResponse and assigns it to the Items field. +func (o *BridgeListResponse) SetItems(v []BridgeResponse) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *BridgeListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *BridgeListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *BridgeListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *BridgeListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *BridgeListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *BridgeListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *BridgeListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *BridgeListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *BridgeListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o BridgeListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableBridgeListResponse struct { + value *BridgeListResponse + isSet bool +} + +func (v NullableBridgeListResponse) Get() *BridgeListResponse { + return v.value +} + +func (v *NullableBridgeListResponse) Set(val *BridgeListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeListResponse(val *BridgeListResponse) *NullableBridgeListResponse { + return &NullableBridgeListResponse{value: val, isSet: true} +} + +func (v NullableBridgeListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_request.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_request.go new file mode 100644 index 00000000..99897d4b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_request.go @@ -0,0 +1,203 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// BridgeRequest struct for BridgeRequest +type BridgeRequest struct { + Name string `json:"name"` + ErrorHandler *Action `json:"error_handler,omitempty"` + CloudProvider string `json:"cloud_provider"` + Region string `json:"region"` +} + +// NewBridgeRequest instantiates a new BridgeRequest 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 NewBridgeRequest(name string, cloudProvider string, region string) *BridgeRequest { + this := BridgeRequest{} + this.Name = name + this.CloudProvider = cloudProvider + this.Region = region + return &this +} + +// NewBridgeRequestWithDefaults instantiates a new BridgeRequest 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 NewBridgeRequestWithDefaults() *BridgeRequest { + this := BridgeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BridgeRequest) 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 *BridgeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BridgeRequest) SetName(v string) { + o.Name = v +} + +// GetErrorHandler returns the ErrorHandler field value if set, zero value otherwise. +func (o *BridgeRequest) GetErrorHandler() Action { + if o == nil || o.ErrorHandler == nil { + var ret Action + return ret + } + return *o.ErrorHandler +} + +// GetErrorHandlerOk returns a tuple with the ErrorHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeRequest) GetErrorHandlerOk() (*Action, bool) { + if o == nil || o.ErrorHandler == nil { + return nil, false + } + return o.ErrorHandler, true +} + +// HasErrorHandler returns a boolean if a field has been set. +func (o *BridgeRequest) HasErrorHandler() bool { + if o != nil && o.ErrorHandler != nil { + return true + } + + return false +} + +// SetErrorHandler gets a reference to the given Action and assigns it to the ErrorHandler field. +func (o *BridgeRequest) SetErrorHandler(v Action) { + o.ErrorHandler = &v +} + +// GetCloudProvider returns the CloudProvider field value +func (o *BridgeRequest) GetCloudProvider() string { + if o == nil { + var ret string + return ret + } + + return o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value +// and a boolean to check if the value has been set. +func (o *BridgeRequest) GetCloudProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudProvider, true +} + +// SetCloudProvider sets field value +func (o *BridgeRequest) SetCloudProvider(v string) { + o.CloudProvider = v +} + +// GetRegion returns the Region field value +func (o *BridgeRequest) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *BridgeRequest) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *BridgeRequest) SetRegion(v string) { + o.Region = v +} + +func (o BridgeRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.ErrorHandler != nil { + toSerialize["error_handler"] = o.ErrorHandler + } + if true { + toSerialize["cloud_provider"] = o.CloudProvider + } + if true { + toSerialize["region"] = o.Region + } + return json.Marshal(toSerialize) +} + +type NullableBridgeRequest struct { + value *BridgeRequest + isSet bool +} + +func (v NullableBridgeRequest) Get() *BridgeRequest { + return v.value +} + +func (v *NullableBridgeRequest) Set(val *BridgeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeRequest(val *BridgeRequest) *NullableBridgeRequest { + return &NullableBridgeRequest{value: val, isSet: true} +} + +func (v NullableBridgeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_response.go new file mode 100644 index 00000000..214ba50f --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_bridge_response.go @@ -0,0 +1,543 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "time" +) + +// BridgeResponse struct for BridgeResponse +type BridgeResponse struct { + Kind string `json:"kind"` + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Href string `json:"href"` + SubmittedAt time.Time `json:"submitted_at"` + PublishedAt *time.Time `json:"published_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Status ManagedResourceStatus `json:"status"` + Owner string `json:"owner"` + Endpoint *string `json:"endpoint,omitempty"` + ErrorHandler *Action `json:"error_handler,omitempty"` + CloudProvider *string `json:"cloud_provider,omitempty"` + Region *string `json:"region,omitempty"` + StatusMessage *string `json:"status_message,omitempty"` +} + +// NewBridgeResponse instantiates a new BridgeResponse 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 NewBridgeResponse(kind string, id string, href string, submittedAt time.Time, status ManagedResourceStatus, owner string) *BridgeResponse { + this := BridgeResponse{} + this.Kind = kind + this.Id = id + this.Href = href + this.SubmittedAt = submittedAt + this.Status = status + this.Owner = owner + return &this +} + +// NewBridgeResponseWithDefaults instantiates a new BridgeResponse 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 NewBridgeResponseWithDefaults() *BridgeResponse { + this := BridgeResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *BridgeResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *BridgeResponse) SetKind(v string) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *BridgeResponse) 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 *BridgeResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BridgeResponse) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BridgeResponse) GetName() string { + if o == nil || o.Name == nil { + 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 *BridgeResponse) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BridgeResponse) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BridgeResponse) SetName(v string) { + o.Name = &v +} + +// GetHref returns the Href field value +func (o *BridgeResponse) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *BridgeResponse) SetHref(v string) { + o.Href = v +} + +// GetSubmittedAt returns the SubmittedAt field value +func (o *BridgeResponse) GetSubmittedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.SubmittedAt +} + +// GetSubmittedAtOk returns a tuple with the SubmittedAt field value +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetSubmittedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.SubmittedAt, true +} + +// SetSubmittedAt sets field value +func (o *BridgeResponse) SetSubmittedAt(v time.Time) { + o.SubmittedAt = v +} + +// GetPublishedAt returns the PublishedAt field value if set, zero value otherwise. +func (o *BridgeResponse) GetPublishedAt() time.Time { + if o == nil || o.PublishedAt == nil { + var ret time.Time + return ret + } + return *o.PublishedAt +} + +// GetPublishedAtOk returns a tuple with the PublishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetPublishedAtOk() (*time.Time, bool) { + if o == nil || o.PublishedAt == nil { + return nil, false + } + return o.PublishedAt, true +} + +// HasPublishedAt returns a boolean if a field has been set. +func (o *BridgeResponse) HasPublishedAt() bool { + if o != nil && o.PublishedAt != nil { + return true + } + + return false +} + +// SetPublishedAt gets a reference to the given time.Time and assigns it to the PublishedAt field. +func (o *BridgeResponse) SetPublishedAt(v time.Time) { + o.PublishedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *BridgeResponse) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *BridgeResponse) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *BridgeResponse) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetStatus returns the Status field value +func (o *BridgeResponse) GetStatus() ManagedResourceStatus { + if o == nil { + var ret ManagedResourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetStatusOk() (*ManagedResourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BridgeResponse) SetStatus(v ManagedResourceStatus) { + o.Status = v +} + +// GetOwner returns the Owner field value +func (o *BridgeResponse) GetOwner() string { + if o == nil { + var ret string + return ret + } + + return o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetOwnerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Owner, true +} + +// SetOwner sets field value +func (o *BridgeResponse) SetOwner(v string) { + o.Owner = v +} + +// GetEndpoint returns the Endpoint field value if set, zero value otherwise. +func (o *BridgeResponse) GetEndpoint() string { + if o == nil || o.Endpoint == nil { + var ret string + return ret + } + return *o.Endpoint +} + +// GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetEndpointOk() (*string, bool) { + if o == nil || o.Endpoint == nil { + return nil, false + } + return o.Endpoint, true +} + +// HasEndpoint returns a boolean if a field has been set. +func (o *BridgeResponse) HasEndpoint() bool { + if o != nil && o.Endpoint != nil { + return true + } + + return false +} + +// SetEndpoint gets a reference to the given string and assigns it to the Endpoint field. +func (o *BridgeResponse) SetEndpoint(v string) { + o.Endpoint = &v +} + +// GetErrorHandler returns the ErrorHandler field value if set, zero value otherwise. +func (o *BridgeResponse) GetErrorHandler() Action { + if o == nil || o.ErrorHandler == nil { + var ret Action + return ret + } + return *o.ErrorHandler +} + +// GetErrorHandlerOk returns a tuple with the ErrorHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetErrorHandlerOk() (*Action, bool) { + if o == nil || o.ErrorHandler == nil { + return nil, false + } + return o.ErrorHandler, true +} + +// HasErrorHandler returns a boolean if a field has been set. +func (o *BridgeResponse) HasErrorHandler() bool { + if o != nil && o.ErrorHandler != nil { + return true + } + + return false +} + +// SetErrorHandler gets a reference to the given Action and assigns it to the ErrorHandler field. +func (o *BridgeResponse) SetErrorHandler(v Action) { + o.ErrorHandler = &v +} + +// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. +func (o *BridgeResponse) GetCloudProvider() string { + if o == nil || o.CloudProvider == nil { + var ret string + return ret + } + return *o.CloudProvider +} + +// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetCloudProviderOk() (*string, bool) { + if o == nil || o.CloudProvider == nil { + return nil, false + } + return o.CloudProvider, true +} + +// HasCloudProvider returns a boolean if a field has been set. +func (o *BridgeResponse) HasCloudProvider() bool { + if o != nil && o.CloudProvider != nil { + return true + } + + return false +} + +// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. +func (o *BridgeResponse) SetCloudProvider(v string) { + o.CloudProvider = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *BridgeResponse) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *BridgeResponse) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *BridgeResponse) SetRegion(v string) { + o.Region = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *BridgeResponse) GetStatusMessage() string { + if o == nil || o.StatusMessage == nil { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BridgeResponse) GetStatusMessageOk() (*string, bool) { + if o == nil || o.StatusMessage == nil { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *BridgeResponse) HasStatusMessage() bool { + if o != nil && o.StatusMessage != nil { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *BridgeResponse) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +func (o BridgeResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["submitted_at"] = o.SubmittedAt + } + if o.PublishedAt != nil { + toSerialize["published_at"] = o.PublishedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["owner"] = o.Owner + } + if o.Endpoint != nil { + toSerialize["endpoint"] = o.Endpoint + } + if o.ErrorHandler != nil { + toSerialize["error_handler"] = o.ErrorHandler + } + if o.CloudProvider != nil { + toSerialize["cloud_provider"] = o.CloudProvider + } + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.StatusMessage != nil { + toSerialize["status_message"] = o.StatusMessage + } + return json.Marshal(toSerialize) +} + +type NullableBridgeResponse struct { + value *BridgeResponse + isSet bool +} + +func (v NullableBridgeResponse) Get() *BridgeResponse { + return v.value +} + +func (v *NullableBridgeResponse) Set(val *BridgeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableBridgeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableBridgeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBridgeResponse(val *BridgeResponse) *NullableBridgeResponse { + return &NullableBridgeResponse{value: val, isSet: true} +} + +func (v NullableBridgeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBridgeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_list_response.go new file mode 100644 index 00000000..559e9e66 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// CloudProviderListResponse struct for CloudProviderListResponse +type CloudProviderListResponse struct { + Kind string `json:"kind"` + Items *[]CloudProviderResponse `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewCloudProviderListResponse instantiates a new CloudProviderListResponse 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 NewCloudProviderListResponse(kind string, page int64, size int64, total int64) *CloudProviderListResponse { + this := CloudProviderListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewCloudProviderListResponseWithDefaults instantiates a new CloudProviderListResponse 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 NewCloudProviderListResponseWithDefaults() *CloudProviderListResponse { + this := CloudProviderListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudProviderListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudProviderListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudProviderListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CloudProviderListResponse) GetItems() []CloudProviderResponse { + if o == nil || o.Items == nil { + var ret []CloudProviderResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudProviderListResponse) GetItemsOk() (*[]CloudProviderResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CloudProviderListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []CloudProviderResponse and assigns it to the Items field. +func (o *CloudProviderListResponse) SetItems(v []CloudProviderResponse) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *CloudProviderListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *CloudProviderListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *CloudProviderListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *CloudProviderListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *CloudProviderListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *CloudProviderListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *CloudProviderListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *CloudProviderListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *CloudProviderListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o CloudProviderListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableCloudProviderListResponse struct { + value *CloudProviderListResponse + isSet bool +} + +func (v NullableCloudProviderListResponse) Get() *CloudProviderListResponse { + return v.value +} + +func (v *NullableCloudProviderListResponse) Set(val *CloudProviderListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCloudProviderListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudProviderListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudProviderListResponse(val *CloudProviderListResponse) *NullableCloudProviderListResponse { + return &NullableCloudProviderListResponse{value: val, isSet: true} +} + +func (v NullableCloudProviderListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudProviderListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_response.go new file mode 100644 index 00000000..858fd188 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_provider_response.go @@ -0,0 +1,261 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// CloudProviderResponse struct for CloudProviderResponse +type CloudProviderResponse struct { + Kind string `json:"kind"` + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Href string `json:"href"` + DisplayName string `json:"display_name"` + Enabled bool `json:"enabled"` +} + +// NewCloudProviderResponse instantiates a new CloudProviderResponse 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 NewCloudProviderResponse(kind string, id string, href string, displayName string, enabled bool) *CloudProviderResponse { + this := CloudProviderResponse{} + this.Kind = kind + this.Id = id + this.Href = href + this.DisplayName = displayName + this.Enabled = enabled + return &this +} + +// NewCloudProviderResponseWithDefaults instantiates a new CloudProviderResponse 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 NewCloudProviderResponseWithDefaults() *CloudProviderResponse { + this := CloudProviderResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudProviderResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudProviderResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudProviderResponse) SetKind(v string) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *CloudProviderResponse) 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 *CloudProviderResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CloudProviderResponse) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CloudProviderResponse) GetName() string { + if o == nil || o.Name == nil { + 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 *CloudProviderResponse) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CloudProviderResponse) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CloudProviderResponse) SetName(v string) { + o.Name = &v +} + +// GetHref returns the Href field value +func (o *CloudProviderResponse) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *CloudProviderResponse) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *CloudProviderResponse) SetHref(v string) { + o.Href = v +} + +// GetDisplayName returns the DisplayName field value +func (o *CloudProviderResponse) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *CloudProviderResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *CloudProviderResponse) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetEnabled returns the Enabled field value +func (o *CloudProviderResponse) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *CloudProviderResponse) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *CloudProviderResponse) SetEnabled(v bool) { + o.Enabled = v +} + +func (o CloudProviderResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["display_name"] = o.DisplayName + } + if true { + toSerialize["enabled"] = o.Enabled + } + return json.Marshal(toSerialize) +} + +type NullableCloudProviderResponse struct { + value *CloudProviderResponse + isSet bool +} + +func (v NullableCloudProviderResponse) Get() *CloudProviderResponse { + return v.value +} + +func (v *NullableCloudProviderResponse) Set(val *CloudProviderResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCloudProviderResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudProviderResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudProviderResponse(val *CloudProviderResponse) *NullableCloudProviderResponse { + return &NullableCloudProviderResponse{value: val, isSet: true} +} + +func (v NullableCloudProviderResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudProviderResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_list_response.go new file mode 100644 index 00000000..9b059643 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// CloudRegionListResponse struct for CloudRegionListResponse +type CloudRegionListResponse struct { + Kind string `json:"kind"` + Items *[]CloudRegionResponse `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewCloudRegionListResponse instantiates a new CloudRegionListResponse 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 NewCloudRegionListResponse(kind string, page int64, size int64, total int64) *CloudRegionListResponse { + this := CloudRegionListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewCloudRegionListResponseWithDefaults instantiates a new CloudRegionListResponse 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 NewCloudRegionListResponseWithDefaults() *CloudRegionListResponse { + this := CloudRegionListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudRegionListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudRegionListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudRegionListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CloudRegionListResponse) GetItems() []CloudRegionResponse { + if o == nil || o.Items == nil { + var ret []CloudRegionResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CloudRegionListResponse) GetItemsOk() (*[]CloudRegionResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CloudRegionListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []CloudRegionResponse and assigns it to the Items field. +func (o *CloudRegionListResponse) SetItems(v []CloudRegionResponse) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *CloudRegionListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *CloudRegionListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *CloudRegionListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *CloudRegionListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *CloudRegionListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *CloudRegionListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *CloudRegionListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *CloudRegionListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *CloudRegionListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o CloudRegionListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableCloudRegionListResponse struct { + value *CloudRegionListResponse + isSet bool +} + +func (v NullableCloudRegionListResponse) Get() *CloudRegionListResponse { + return v.value +} + +func (v *NullableCloudRegionListResponse) Set(val *CloudRegionListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRegionListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRegionListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRegionListResponse(val *CloudRegionListResponse) *NullableCloudRegionListResponse { + return &NullableCloudRegionListResponse{value: val, isSet: true} +} + +func (v NullableCloudRegionListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRegionListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_response.go new file mode 100644 index 00000000..bf18e5fc --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_cloud_region_response.go @@ -0,0 +1,196 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// CloudRegionResponse struct for CloudRegionResponse +type CloudRegionResponse struct { + Kind string `json:"kind"` + Name string `json:"name"` + DisplayName string `json:"display_name"` + Enabled bool `json:"enabled"` +} + +// NewCloudRegionResponse instantiates a new CloudRegionResponse 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 NewCloudRegionResponse(kind string, name string, displayName string, enabled bool) *CloudRegionResponse { + this := CloudRegionResponse{} + this.Kind = kind + this.Name = name + this.DisplayName = displayName + this.Enabled = enabled + return &this +} + +// NewCloudRegionResponseWithDefaults instantiates a new CloudRegionResponse 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 NewCloudRegionResponseWithDefaults() *CloudRegionResponse { + this := CloudRegionResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *CloudRegionResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *CloudRegionResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *CloudRegionResponse) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *CloudRegionResponse) 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 *CloudRegionResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CloudRegionResponse) SetName(v string) { + o.Name = v +} + +// GetDisplayName returns the DisplayName field value +func (o *CloudRegionResponse) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *CloudRegionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *CloudRegionResponse) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetEnabled returns the Enabled field value +func (o *CloudRegionResponse) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *CloudRegionResponse) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *CloudRegionResponse) SetEnabled(v bool) { + o.Enabled = v +} + +func (o CloudRegionResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["display_name"] = o.DisplayName + } + if true { + toSerialize["enabled"] = o.Enabled + } + return json.Marshal(toSerialize) +} + +type NullableCloudRegionResponse struct { + value *CloudRegionResponse + isSet bool +} + +func (v NullableCloudRegionResponse) Get() *CloudRegionResponse { + return v.value +} + +func (v *NullableCloudRegionResponse) Set(val *CloudRegionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCloudRegionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCloudRegionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCloudRegionResponse(val *CloudRegionResponse) *NullableCloudRegionResponse { + return &NullableCloudRegionResponse{value: val, isSet: true} +} + +func (v NullableCloudRegionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCloudRegionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error.go new file mode 100644 index 00000000..5d376632 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error.go @@ -0,0 +1,268 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// Error struct for Error +type Error struct { + Kind string `json:"kind"` + Name *string `json:"name,omitempty"` + Code *string `json:"code,omitempty"` + Reason string `json:"reason"` + Id string `json:"id"` + Href string `json:"href"` +} + +// NewError instantiates a new Error 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 NewError(kind string, reason string, id string, href string) *Error { + this := Error{} + this.Kind = kind + this.Reason = reason + this.Id = id + this.Href = href + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetKind returns the Kind field value +func (o *Error) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *Error) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *Error) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Error) GetName() string { + if o == nil || o.Name == nil { + 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 *Error) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Error) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Error) SetName(v string) { + o.Name = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *Error) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *Error) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *Error) SetCode(v string) { + o.Code = &v +} + +// GetReason returns the Reason field value +func (o *Error) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Error) SetReason(v string) { + o.Reason = v +} + +// GetId returns the Id field value +func (o *Error) 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 *Error) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Error) SetId(v string) { + o.Id = v +} + +// GetHref returns the Href field value +func (o *Error) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *Error) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *Error) SetHref(v string) { + o.Href = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if true { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error_list_response.go new file mode 100644 index 00000000..029dbf85 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_error_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ErrorListResponse struct for ErrorListResponse +type ErrorListResponse struct { + Kind string `json:"kind"` + Items *[]Error `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewErrorListResponse instantiates a new ErrorListResponse 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 NewErrorListResponse(kind string, page int64, size int64, total int64) *ErrorListResponse { + this := ErrorListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewErrorListResponseWithDefaults instantiates a new ErrorListResponse 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 NewErrorListResponseWithDefaults() *ErrorListResponse { + this := ErrorListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ErrorListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ErrorListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ErrorListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorListResponse) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorListResponse) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorListResponse) SetItems(v []Error) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *ErrorListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ErrorListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ErrorListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ErrorListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ErrorListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ErrorListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ErrorListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ErrorListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ErrorListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o ErrorListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableErrorListResponse struct { + value *ErrorListResponse + isSet bool +} + +func (v NullableErrorListResponse) Get() *ErrorListResponse { + return v.value +} + +func (v *NullableErrorListResponse) Set(val *ErrorListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorListResponse(val *ErrorListResponse) *NullableErrorListResponse { + return &NullableErrorListResponse{value: val, isSet: true} +} + +func (v NullableErrorListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_errors_list.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_errors_list.go new file mode 100644 index 00000000..720f1717 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_errors_list.go @@ -0,0 +1,145 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ErrorsList struct for ErrorsList +type ErrorsList struct { + Kind string `json:"kind"` + Items *[]Error `json:"items,omitempty"` +} + +// NewErrorsList instantiates a new ErrorsList 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 NewErrorsList(kind string) *ErrorsList { + this := ErrorsList{} + this.Kind = kind + return &this +} + +// NewErrorsListWithDefaults instantiates a new ErrorsList 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 NewErrorsListWithDefaults() *ErrorsList { + this := ErrorsList{} + return &this +} + +// GetKind returns the Kind field value +func (o *ErrorsList) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ErrorsList) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ErrorsList) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ErrorsList) GetItems() []Error { + if o == nil || o.Items == nil { + var ret []Error + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorsList) GetItemsOk() (*[]Error, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ErrorsList) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []Error and assigns it to the Items field. +func (o *ErrorsList) SetItems(v []Error) { + o.Items = &v +} + +func (o ErrorsList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableErrorsList struct { + value *ErrorsList + isSet bool +} + +func (v NullableErrorsList) Get() *ErrorsList { + return v.value +} + +func (v *NullableErrorsList) Set(val *ErrorsList) { + v.value = val + v.isSet = true +} + +func (v NullableErrorsList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorsList(val *ErrorsList) *NullableErrorsList { + return &NullableErrorsList{value: val, isSet: true} +} + +func (v NullableErrorsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list.go new file mode 100644 index 00000000..06eefa52 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// List struct for List +type List struct { + Kind string `json:"kind"` + Items *[]map[string]interface{} `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewList instantiates a new List 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 NewList(kind string, page int64, size int64, total int64) *List { + this := List{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { + this := List{} + return &this +} + +// GetKind returns the Kind field value +func (o *List) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *List) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *List) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *List) GetItems() []map[string]interface{} { + if o == nil || o.Items == nil { + var ret []map[string]interface{} + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *List) GetItemsOk() (*[]map[string]interface{}, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *List) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []map[string]interface{} and assigns it to the Items field. +func (o *List) SetItems(v []map[string]interface{}) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *List) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *List) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *List) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *List) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *List) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *List) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *List) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *List) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *List) SetTotal(v int64) { + o.Total = v +} + +func (o List) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableList struct { + value *List + isSet bool +} + +func (v NullableList) Get() *List { + return v.value +} + +func (v *NullableList) Set(val *List) { + v.value = val + v.isSet = true +} + +func (v NullableList) IsSet() bool { + return v.isSet +} + +func (v *NullableList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableList(val *List) *NullableList { + return &NullableList{value: val, isSet: true} +} + +func (v NullableList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_all_of.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_all_of.go new file mode 100644 index 00000000..dc589e7b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_all_of.go @@ -0,0 +1,167 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ListAllOf struct for ListAllOf +type ListAllOf struct { + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewListAllOf instantiates a new ListAllOf 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 NewListAllOf(page int64, size int64, total int64) *ListAllOf { + this := ListAllOf{} + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewListAllOfWithDefaults instantiates a new ListAllOf 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 NewListAllOfWithDefaults() *ListAllOf { + this := ListAllOf{} + return &this +} + +// GetPage returns the Page field value +func (o *ListAllOf) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ListAllOf) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ListAllOf) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ListAllOf) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ListAllOf) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ListAllOf) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ListAllOf) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ListAllOf) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ListAllOf) SetTotal(v int64) { + o.Total = v +} + +func (o ListAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableListAllOf struct { + value *ListAllOf + isSet bool +} + +func (v NullableListAllOf) Get() *ListAllOf { + return v.value +} + +func (v *NullableListAllOf) Set(val *ListAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableListAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableListAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListAllOf(val *ListAllOf) *NullableListAllOf { + return &NullableListAllOf{value: val, isSet: true} +} + +func (v NullableListAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_response.go new file mode 100644 index 00000000..6d8d163a --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_list_response.go @@ -0,0 +1,145 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ListResponse struct for ListResponse +type ListResponse struct { + Kind string `json:"kind"` + Items *[]map[string]interface{} `json:"items,omitempty"` +} + +// NewListResponse instantiates a new ListResponse 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 NewListResponse(kind string) *ListResponse { + this := ListResponse{} + this.Kind = kind + return &this +} + +// NewListResponseWithDefaults instantiates a new ListResponse 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 NewListResponseWithDefaults() *ListResponse { + this := ListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ListResponse) GetItems() []map[string]interface{} { + if o == nil || o.Items == nil { + var ret []map[string]interface{} + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListResponse) GetItemsOk() (*[]map[string]interface{}, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []map[string]interface{} and assigns it to the Items field. +func (o *ListResponse) SetItems(v []map[string]interface{}) { + o.Items = &v +} + +func (o ListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableListResponse struct { + value *ListResponse + isSet bool +} + +func (v NullableListResponse) Get() *ListResponse { + return v.value +} + +func (v *NullableListResponse) Set(val *ListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListResponse(val *ListResponse) *NullableListResponse { + return &NullableListResponse{value: val, isSet: true} +} + +func (v NullableListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_managed_resource_status.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_managed_resource_status.go new file mode 100644 index 00000000..483953bb --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_managed_resource_status.go @@ -0,0 +1,123 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ManagedResourceStatus the model 'ManagedResourceStatus' +type ManagedResourceStatus string + +// List of ManagedResourceStatus +const ( + MANAGEDRESOURCESTATUS_ACCEPTED ManagedResourceStatus = "accepted" + MANAGEDRESOURCESTATUS_PREPARING ManagedResourceStatus = "preparing" + MANAGEDRESOURCESTATUS_PROVISIONING ManagedResourceStatus = "provisioning" + MANAGEDRESOURCESTATUS_READY ManagedResourceStatus = "ready" + MANAGEDRESOURCESTATUS_DEPROVISION ManagedResourceStatus = "deprovision" + MANAGEDRESOURCESTATUS_DELETING ManagedResourceStatus = "deleting" + MANAGEDRESOURCESTATUS_DELETED ManagedResourceStatus = "deleted" + MANAGEDRESOURCESTATUS_FAILED ManagedResourceStatus = "failed" +) + +var allowedManagedResourceStatusEnumValues = []ManagedResourceStatus{ + "accepted", + "preparing", + "provisioning", + "ready", + "deprovision", + "deleting", + "deleted", + "failed", +} + +func (v *ManagedResourceStatus) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ManagedResourceStatus(value) + for _, existing := range allowedManagedResourceStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ManagedResourceStatus", value) +} + +// NewManagedResourceStatusFromValue returns a pointer to a valid ManagedResourceStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewManagedResourceStatusFromValue(v string) (*ManagedResourceStatus, error) { + ev := ManagedResourceStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ManagedResourceStatus: valid values are %v", v, allowedManagedResourceStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ManagedResourceStatus) IsValid() bool { + for _, existing := range allowedManagedResourceStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ManagedResourceStatus value +func (v ManagedResourceStatus) Ptr() *ManagedResourceStatus { + return &v +} + +type NullableManagedResourceStatus struct { + value *ManagedResourceStatus + isSet bool +} + +func (v NullableManagedResourceStatus) Get() *ManagedResourceStatus { + return v.value +} + +func (v *NullableManagedResourceStatus) Set(val *ManagedResourceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableManagedResourceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableManagedResourceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableManagedResourceStatus(val *ManagedResourceStatus) *NullableManagedResourceStatus { + return &NullableManagedResourceStatus{value: val, isSet: true} +} + +func (v NullableManagedResourceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableManagedResourceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_object_reference.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_object_reference.go new file mode 100644 index 00000000..c55a24f5 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_object_reference.go @@ -0,0 +1,203 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ObjectReference struct for ObjectReference +type ObjectReference struct { + Kind string `json:"kind"` + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Href string `json:"href"` +} + +// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference(kind string, id string, href string) *ObjectReference { + this := ObjectReference{} + this.Kind = kind + this.Id = id + this.Href = href + return &this +} + +// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { + this := ObjectReference{} + return &this +} + +// GetKind returns the Kind field value +func (o *ObjectReference) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ObjectReference) SetKind(v string) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *ObjectReference) 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 *ObjectReference) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ObjectReference) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ObjectReference) GetName() string { + if o == nil || o.Name == nil { + 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 *ObjectReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ObjectReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ObjectReference) SetName(v string) { + o.Name = &v +} + +// GetHref returns the Href field value +func (o *ObjectReference) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ObjectReference) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ObjectReference) SetHref(v string) { + o.Href = v +} + +func (o ObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if true { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableObjectReference struct { + value *ObjectReference + isSet bool +} + +func (v NullableObjectReference) Get() *ObjectReference { + return v.value +} + +func (v *NullableObjectReference) Set(val *ObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { + return &NullableObjectReference{value: val, isSet: true} +} + +func (v NullableObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_list_response.go new file mode 100644 index 00000000..f38ad666 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ProcessingErrorListResponse struct for ProcessingErrorListResponse +type ProcessingErrorListResponse struct { + Kind string `json:"kind"` + Items *[]ProcessingErrorResponse `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewProcessingErrorListResponse instantiates a new ProcessingErrorListResponse 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 NewProcessingErrorListResponse(kind string, page int64, size int64, total int64) *ProcessingErrorListResponse { + this := ProcessingErrorListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewProcessingErrorListResponseWithDefaults instantiates a new ProcessingErrorListResponse 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 NewProcessingErrorListResponseWithDefaults() *ProcessingErrorListResponse { + this := ProcessingErrorListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ProcessingErrorListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ProcessingErrorListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ProcessingErrorListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ProcessingErrorListResponse) GetItems() []ProcessingErrorResponse { + if o == nil || o.Items == nil { + var ret []ProcessingErrorResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessingErrorListResponse) GetItemsOk() (*[]ProcessingErrorResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ProcessingErrorListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ProcessingErrorResponse and assigns it to the Items field. +func (o *ProcessingErrorListResponse) SetItems(v []ProcessingErrorResponse) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *ProcessingErrorListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ProcessingErrorListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ProcessingErrorListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ProcessingErrorListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ProcessingErrorListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ProcessingErrorListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ProcessingErrorListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ProcessingErrorListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ProcessingErrorListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o ProcessingErrorListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableProcessingErrorListResponse struct { + value *ProcessingErrorListResponse + isSet bool +} + +func (v NullableProcessingErrorListResponse) Get() *ProcessingErrorListResponse { + return v.value +} + +func (v *NullableProcessingErrorListResponse) Set(val *ProcessingErrorListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessingErrorListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessingErrorListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessingErrorListResponse(val *ProcessingErrorListResponse) *NullableProcessingErrorListResponse { + return &NullableProcessingErrorListResponse{value: val, isSet: true} +} + +func (v NullableProcessingErrorListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessingErrorListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_response.go new file mode 100644 index 00000000..b3af0462 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processing_error_response.go @@ -0,0 +1,189 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "time" +) + +// ProcessingErrorResponse struct for ProcessingErrorResponse +type ProcessingErrorResponse struct { + RecordedAt *time.Time `json:"recorded_at,omitempty"` + Headers *map[string]string `json:"headers,omitempty"` + Payload *map[string]interface{} `json:"payload,omitempty"` +} + +// NewProcessingErrorResponse instantiates a new ProcessingErrorResponse 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 NewProcessingErrorResponse() *ProcessingErrorResponse { + this := ProcessingErrorResponse{} + return &this +} + +// NewProcessingErrorResponseWithDefaults instantiates a new ProcessingErrorResponse 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 NewProcessingErrorResponseWithDefaults() *ProcessingErrorResponse { + this := ProcessingErrorResponse{} + return &this +} + +// GetRecordedAt returns the RecordedAt field value if set, zero value otherwise. +func (o *ProcessingErrorResponse) GetRecordedAt() time.Time { + if o == nil || o.RecordedAt == nil { + var ret time.Time + return ret + } + return *o.RecordedAt +} + +// GetRecordedAtOk returns a tuple with the RecordedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessingErrorResponse) GetRecordedAtOk() (*time.Time, bool) { + if o == nil || o.RecordedAt == nil { + return nil, false + } + return o.RecordedAt, true +} + +// HasRecordedAt returns a boolean if a field has been set. +func (o *ProcessingErrorResponse) HasRecordedAt() bool { + if o != nil && o.RecordedAt != nil { + return true + } + + return false +} + +// SetRecordedAt gets a reference to the given time.Time and assigns it to the RecordedAt field. +func (o *ProcessingErrorResponse) SetRecordedAt(v time.Time) { + o.RecordedAt = &v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *ProcessingErrorResponse) GetHeaders() map[string]string { + if o == nil || o.Headers == nil { + var ret map[string]string + return ret + } + return *o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessingErrorResponse) GetHeadersOk() (*map[string]string, bool) { + if o == nil || o.Headers == nil { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *ProcessingErrorResponse) HasHeaders() bool { + if o != nil && o.Headers != nil { + return true + } + + return false +} + +// SetHeaders gets a reference to the given map[string]string and assigns it to the Headers field. +func (o *ProcessingErrorResponse) SetHeaders(v map[string]string) { + o.Headers = &v +} + +// GetPayload returns the Payload field value if set, zero value otherwise. +func (o *ProcessingErrorResponse) GetPayload() map[string]interface{} { + if o == nil || o.Payload == nil { + var ret map[string]interface{} + return ret + } + return *o.Payload +} + +// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessingErrorResponse) GetPayloadOk() (*map[string]interface{}, bool) { + if o == nil || o.Payload == nil { + return nil, false + } + return o.Payload, true +} + +// HasPayload returns a boolean if a field has been set. +func (o *ProcessingErrorResponse) HasPayload() bool { + if o != nil && o.Payload != nil { + return true + } + + return false +} + +// SetPayload gets a reference to the given map[string]interface{} and assigns it to the Payload field. +func (o *ProcessingErrorResponse) SetPayload(v map[string]interface{}) { + o.Payload = &v +} + +func (o ProcessingErrorResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.RecordedAt != nil { + toSerialize["recorded_at"] = o.RecordedAt + } + if o.Headers != nil { + toSerialize["headers"] = o.Headers + } + if o.Payload != nil { + toSerialize["payload"] = o.Payload + } + return json.Marshal(toSerialize) +} + +type NullableProcessingErrorResponse struct { + value *ProcessingErrorResponse + isSet bool +} + +func (v NullableProcessingErrorResponse) Get() *ProcessingErrorResponse { + return v.value +} + +func (v *NullableProcessingErrorResponse) Set(val *ProcessingErrorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessingErrorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessingErrorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessingErrorResponse(val *ProcessingErrorResponse) *NullableProcessingErrorResponse { + return &NullableProcessingErrorResponse{value: val, isSet: true} +} + +func (v NullableProcessingErrorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessingErrorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_catalog_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_catalog_response.go new file mode 100644 index 00000000..7491f075 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_catalog_response.go @@ -0,0 +1,145 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ProcessorCatalogResponse struct for ProcessorCatalogResponse +type ProcessorCatalogResponse struct { + Kind string `json:"kind"` + Items *[]ProcessorSchemaEntryResponse `json:"items,omitempty"` +} + +// NewProcessorCatalogResponse instantiates a new ProcessorCatalogResponse 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 NewProcessorCatalogResponse(kind string) *ProcessorCatalogResponse { + this := ProcessorCatalogResponse{} + this.Kind = kind + return &this +} + +// NewProcessorCatalogResponseWithDefaults instantiates a new ProcessorCatalogResponse 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 NewProcessorCatalogResponseWithDefaults() *ProcessorCatalogResponse { + this := ProcessorCatalogResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ProcessorCatalogResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ProcessorCatalogResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ProcessorCatalogResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ProcessorCatalogResponse) GetItems() []ProcessorSchemaEntryResponse { + if o == nil || o.Items == nil { + var ret []ProcessorSchemaEntryResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorCatalogResponse) GetItemsOk() (*[]ProcessorSchemaEntryResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ProcessorCatalogResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ProcessorSchemaEntryResponse and assigns it to the Items field. +func (o *ProcessorCatalogResponse) SetItems(v []ProcessorSchemaEntryResponse) { + o.Items = &v +} + +func (o ProcessorCatalogResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + return json.Marshal(toSerialize) +} + +type NullableProcessorCatalogResponse struct { + value *ProcessorCatalogResponse + isSet bool +} + +func (v NullableProcessorCatalogResponse) Get() *ProcessorCatalogResponse { + return v.value +} + +func (v *NullableProcessorCatalogResponse) Set(val *ProcessorCatalogResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorCatalogResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorCatalogResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorCatalogResponse(val *ProcessorCatalogResponse) *NullableProcessorCatalogResponse { + return &NullableProcessorCatalogResponse{value: val, isSet: true} +} + +func (v NullableProcessorCatalogResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorCatalogResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_list_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_list_response.go new file mode 100644 index 00000000..d30f6a53 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_list_response.go @@ -0,0 +1,232 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ProcessorListResponse struct for ProcessorListResponse +type ProcessorListResponse struct { + Kind string `json:"kind"` + Items *[]ProcessorResponse `json:"items,omitempty"` + Page int64 `json:"page"` + Size int64 `json:"size"` + Total int64 `json:"total"` +} + +// NewProcessorListResponse instantiates a new ProcessorListResponse 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 NewProcessorListResponse(kind string, page int64, size int64, total int64) *ProcessorListResponse { + this := ProcessorListResponse{} + this.Kind = kind + this.Page = page + this.Size = size + this.Total = total + return &this +} + +// NewProcessorListResponseWithDefaults instantiates a new ProcessorListResponse 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 NewProcessorListResponseWithDefaults() *ProcessorListResponse { + this := ProcessorListResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ProcessorListResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ProcessorListResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ProcessorListResponse) SetKind(v string) { + o.Kind = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ProcessorListResponse) GetItems() []ProcessorResponse { + if o == nil || o.Items == nil { + var ret []ProcessorResponse + return ret + } + return *o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorListResponse) GetItemsOk() (*[]ProcessorResponse, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ProcessorListResponse) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ProcessorResponse and assigns it to the Items field. +func (o *ProcessorListResponse) SetItems(v []ProcessorResponse) { + o.Items = &v +} + +// GetPage returns the Page field value +func (o *ProcessorListResponse) GetPage() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Page +} + +// GetPageOk returns a tuple with the Page field value +// and a boolean to check if the value has been set. +func (o *ProcessorListResponse) GetPageOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Page, true +} + +// SetPage sets field value +func (o *ProcessorListResponse) SetPage(v int64) { + o.Page = v +} + +// GetSize returns the Size field value +func (o *ProcessorListResponse) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ProcessorListResponse) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ProcessorListResponse) SetSize(v int64) { + o.Size = v +} + +// GetTotal returns the Total field value +func (o *ProcessorListResponse) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ProcessorListResponse) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ProcessorListResponse) SetTotal(v int64) { + o.Total = v +} + +func (o ProcessorListResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if true { + toSerialize["page"] = o.Page + } + if true { + toSerialize["size"] = o.Size + } + if true { + toSerialize["total"] = o.Total + } + return json.Marshal(toSerialize) +} + +type NullableProcessorListResponse struct { + value *ProcessorListResponse + isSet bool +} + +func (v NullableProcessorListResponse) Get() *ProcessorListResponse { + return v.value +} + +func (v *NullableProcessorListResponse) Set(val *ProcessorListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorListResponse(val *ProcessorListResponse) *NullableProcessorListResponse { + return &NullableProcessorListResponse{value: val, isSet: true} +} + +func (v NullableProcessorListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_request.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_request.go new file mode 100644 index 00000000..ca914c82 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_request.go @@ -0,0 +1,253 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ProcessorRequest struct for ProcessorRequest +type ProcessorRequest struct { + Name string `json:"name"` + Filters *[]BaseFilter `json:"filters,omitempty"` + TransformationTemplate *string `json:"transformationTemplate,omitempty"` + Action *Action `json:"action,omitempty"` + Source *Source `json:"source,omitempty"` +} + +// NewProcessorRequest instantiates a new ProcessorRequest 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 NewProcessorRequest(name string) *ProcessorRequest { + this := ProcessorRequest{} + this.Name = name + return &this +} + +// NewProcessorRequestWithDefaults instantiates a new ProcessorRequest 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 NewProcessorRequestWithDefaults() *ProcessorRequest { + this := ProcessorRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ProcessorRequest) 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 *ProcessorRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ProcessorRequest) SetName(v string) { + o.Name = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *ProcessorRequest) GetFilters() []BaseFilter { + if o == nil || o.Filters == nil { + var ret []BaseFilter + 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 *ProcessorRequest) GetFiltersOk() (*[]BaseFilter, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *ProcessorRequest) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given []BaseFilter and assigns it to the Filters field. +func (o *ProcessorRequest) SetFilters(v []BaseFilter) { + o.Filters = &v +} + +// GetTransformationTemplate returns the TransformationTemplate field value if set, zero value otherwise. +func (o *ProcessorRequest) GetTransformationTemplate() string { + if o == nil || o.TransformationTemplate == nil { + var ret string + return ret + } + return *o.TransformationTemplate +} + +// GetTransformationTemplateOk returns a tuple with the TransformationTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorRequest) GetTransformationTemplateOk() (*string, bool) { + if o == nil || o.TransformationTemplate == nil { + return nil, false + } + return o.TransformationTemplate, true +} + +// HasTransformationTemplate returns a boolean if a field has been set. +func (o *ProcessorRequest) HasTransformationTemplate() bool { + if o != nil && o.TransformationTemplate != nil { + return true + } + + return false +} + +// SetTransformationTemplate gets a reference to the given string and assigns it to the TransformationTemplate field. +func (o *ProcessorRequest) SetTransformationTemplate(v string) { + o.TransformationTemplate = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *ProcessorRequest) GetAction() Action { + if o == nil || o.Action == nil { + var ret Action + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorRequest) GetActionOk() (*Action, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *ProcessorRequest) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given Action and assigns it to the Action field. +func (o *ProcessorRequest) SetAction(v Action) { + o.Action = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *ProcessorRequest) GetSource() Source { + if o == nil || o.Source == nil { + var ret Source + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorRequest) GetSourceOk() (*Source, bool) { + if o == nil || o.Source == nil { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *ProcessorRequest) HasSource() bool { + if o != nil && o.Source != nil { + return true + } + + return false +} + +// SetSource gets a reference to the given Source and assigns it to the Source field. +func (o *ProcessorRequest) SetSource(v Source) { + o.Source = &v +} + +func (o ProcessorRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + if o.TransformationTemplate != nil { + toSerialize["transformationTemplate"] = o.TransformationTemplate + } + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.Source != nil { + toSerialize["source"] = o.Source + } + return json.Marshal(toSerialize) +} + +type NullableProcessorRequest struct { + value *ProcessorRequest + isSet bool +} + +func (v NullableProcessorRequest) Get() *ProcessorRequest { + return v.value +} + +func (v *NullableProcessorRequest) Set(val *ProcessorRequest) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorRequest(val *ProcessorRequest) *NullableProcessorRequest { + return &NullableProcessorRequest{value: val, isSet: true} +} + +func (v NullableProcessorRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_response.go new file mode 100644 index 00000000..0d6f9838 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_response.go @@ -0,0 +1,572 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "time" +) + +// ProcessorResponse struct for ProcessorResponse +type ProcessorResponse struct { + Kind string `json:"kind"` + Id string `json:"id"` + Name *string `json:"name,omitempty"` + Href string `json:"href"` + SubmittedAt time.Time `json:"submitted_at"` + PublishedAt *time.Time `json:"published_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Status ManagedResourceStatus `json:"status"` + Owner string `json:"owner"` + Type ProcessorType `json:"type"` + Filters *[]BaseFilter `json:"filters,omitempty"` + TransformationTemplate *string `json:"transformationTemplate,omitempty"` + Action *Action `json:"action,omitempty"` + Source *Source `json:"source,omitempty"` + StatusMessage *string `json:"status_message,omitempty"` +} + +// NewProcessorResponse instantiates a new ProcessorResponse 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 NewProcessorResponse(kind string, id string, href string, submittedAt time.Time, status ManagedResourceStatus, owner string, type_ ProcessorType) *ProcessorResponse { + this := ProcessorResponse{} + this.Kind = kind + this.Id = id + this.Href = href + this.SubmittedAt = submittedAt + this.Status = status + this.Owner = owner + this.Type = type_ + return &this +} + +// NewProcessorResponseWithDefaults instantiates a new ProcessorResponse 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 NewProcessorResponseWithDefaults() *ProcessorResponse { + this := ProcessorResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ProcessorResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ProcessorResponse) SetKind(v string) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *ProcessorResponse) 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 *ProcessorResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProcessorResponse) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ProcessorResponse) GetName() string { + if o == nil || o.Name == nil { + 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 *ProcessorResponse) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ProcessorResponse) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ProcessorResponse) SetName(v string) { + o.Name = &v +} + +// GetHref returns the Href field value +func (o *ProcessorResponse) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ProcessorResponse) SetHref(v string) { + o.Href = v +} + +// GetSubmittedAt returns the SubmittedAt field value +func (o *ProcessorResponse) GetSubmittedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.SubmittedAt +} + +// GetSubmittedAtOk returns a tuple with the SubmittedAt field value +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetSubmittedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.SubmittedAt, true +} + +// SetSubmittedAt sets field value +func (o *ProcessorResponse) SetSubmittedAt(v time.Time) { + o.SubmittedAt = v +} + +// GetPublishedAt returns the PublishedAt field value if set, zero value otherwise. +func (o *ProcessorResponse) GetPublishedAt() time.Time { + if o == nil || o.PublishedAt == nil { + var ret time.Time + return ret + } + return *o.PublishedAt +} + +// GetPublishedAtOk returns a tuple with the PublishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetPublishedAtOk() (*time.Time, bool) { + if o == nil || o.PublishedAt == nil { + return nil, false + } + return o.PublishedAt, true +} + +// HasPublishedAt returns a boolean if a field has been set. +func (o *ProcessorResponse) HasPublishedAt() bool { + if o != nil && o.PublishedAt != nil { + return true + } + + return false +} + +// SetPublishedAt gets a reference to the given time.Time and assigns it to the PublishedAt field. +func (o *ProcessorResponse) SetPublishedAt(v time.Time) { + o.PublishedAt = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ProcessorResponse) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ProcessorResponse) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ProcessorResponse) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetStatus returns the Status field value +func (o *ProcessorResponse) GetStatus() ManagedResourceStatus { + if o == nil { + var ret ManagedResourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetStatusOk() (*ManagedResourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ProcessorResponse) SetStatus(v ManagedResourceStatus) { + o.Status = v +} + +// GetOwner returns the Owner field value +func (o *ProcessorResponse) GetOwner() string { + if o == nil { + var ret string + return ret + } + + return o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetOwnerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Owner, true +} + +// SetOwner sets field value +func (o *ProcessorResponse) SetOwner(v string) { + o.Owner = v +} + +// GetType returns the Type field value +func (o *ProcessorResponse) GetType() ProcessorType { + if o == nil { + var ret ProcessorType + 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 *ProcessorResponse) GetTypeOk() (*ProcessorType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ProcessorResponse) SetType(v ProcessorType) { + o.Type = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *ProcessorResponse) GetFilters() []BaseFilter { + if o == nil || o.Filters == nil { + var ret []BaseFilter + 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 *ProcessorResponse) GetFiltersOk() (*[]BaseFilter, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *ProcessorResponse) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given []BaseFilter and assigns it to the Filters field. +func (o *ProcessorResponse) SetFilters(v []BaseFilter) { + o.Filters = &v +} + +// GetTransformationTemplate returns the TransformationTemplate field value if set, zero value otherwise. +func (o *ProcessorResponse) GetTransformationTemplate() string { + if o == nil || o.TransformationTemplate == nil { + var ret string + return ret + } + return *o.TransformationTemplate +} + +// GetTransformationTemplateOk returns a tuple with the TransformationTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetTransformationTemplateOk() (*string, bool) { + if o == nil || o.TransformationTemplate == nil { + return nil, false + } + return o.TransformationTemplate, true +} + +// HasTransformationTemplate returns a boolean if a field has been set. +func (o *ProcessorResponse) HasTransformationTemplate() bool { + if o != nil && o.TransformationTemplate != nil { + return true + } + + return false +} + +// SetTransformationTemplate gets a reference to the given string and assigns it to the TransformationTemplate field. +func (o *ProcessorResponse) SetTransformationTemplate(v string) { + o.TransformationTemplate = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *ProcessorResponse) GetAction() Action { + if o == nil || o.Action == nil { + var ret Action + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetActionOk() (*Action, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *ProcessorResponse) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given Action and assigns it to the Action field. +func (o *ProcessorResponse) SetAction(v Action) { + o.Action = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *ProcessorResponse) GetSource() Source { + if o == nil || o.Source == nil { + var ret Source + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetSourceOk() (*Source, bool) { + if o == nil || o.Source == nil { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *ProcessorResponse) HasSource() bool { + if o != nil && o.Source != nil { + return true + } + + return false +} + +// SetSource gets a reference to the given Source and assigns it to the Source field. +func (o *ProcessorResponse) SetSource(v Source) { + o.Source = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *ProcessorResponse) GetStatusMessage() string { + if o == nil || o.StatusMessage == nil { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProcessorResponse) GetStatusMessageOk() (*string, bool) { + if o == nil || o.StatusMessage == nil { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *ProcessorResponse) HasStatusMessage() bool { + if o != nil && o.StatusMessage != nil { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *ProcessorResponse) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +func (o ProcessorResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if true { + toSerialize["href"] = o.Href + } + if true { + toSerialize["submitted_at"] = o.SubmittedAt + } + if o.PublishedAt != nil { + toSerialize["published_at"] = o.PublishedAt + } + if o.ModifiedAt != nil { + toSerialize["modified_at"] = o.ModifiedAt + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["owner"] = o.Owner + } + if true { + toSerialize["type"] = o.Type + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + if o.TransformationTemplate != nil { + toSerialize["transformationTemplate"] = o.TransformationTemplate + } + if o.Action != nil { + toSerialize["action"] = o.Action + } + if o.Source != nil { + toSerialize["source"] = o.Source + } + if o.StatusMessage != nil { + toSerialize["status_message"] = o.StatusMessage + } + return json.Marshal(toSerialize) +} + +type NullableProcessorResponse struct { + value *ProcessorResponse + isSet bool +} + +func (v NullableProcessorResponse) Get() *ProcessorResponse { + return v.value +} + +func (v *NullableProcessorResponse) Set(val *ProcessorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorResponse(val *ProcessorResponse) *NullableProcessorResponse { + return &NullableProcessorResponse{value: val, isSet: true} +} + +func (v NullableProcessorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_schema_entry_response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_schema_entry_response.go new file mode 100644 index 00000000..1d8a9b49 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_schema_entry_response.go @@ -0,0 +1,254 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// ProcessorSchemaEntryResponse struct for ProcessorSchemaEntryResponse +type ProcessorSchemaEntryResponse struct { + Kind string `json:"kind"` + Id string `json:"id"` + Name string `json:"name"` + Description string `json:"description"` + Type string `json:"type"` + Href string `json:"href"` +} + +// NewProcessorSchemaEntryResponse instantiates a new ProcessorSchemaEntryResponse 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 NewProcessorSchemaEntryResponse(kind string, id string, name string, description string, type_ string, href string) *ProcessorSchemaEntryResponse { + this := ProcessorSchemaEntryResponse{} + this.Kind = kind + this.Id = id + this.Name = name + this.Description = description + this.Type = type_ + this.Href = href + return &this +} + +// NewProcessorSchemaEntryResponseWithDefaults instantiates a new ProcessorSchemaEntryResponse 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 NewProcessorSchemaEntryResponseWithDefaults() *ProcessorSchemaEntryResponse { + this := ProcessorSchemaEntryResponse{} + return &this +} + +// GetKind returns the Kind field value +func (o *ProcessorSchemaEntryResponse) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ProcessorSchemaEntryResponse) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ProcessorSchemaEntryResponse) SetKind(v string) { + o.Kind = v +} + +// GetId returns the Id field value +func (o *ProcessorSchemaEntryResponse) 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 *ProcessorSchemaEntryResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProcessorSchemaEntryResponse) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ProcessorSchemaEntryResponse) 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 *ProcessorSchemaEntryResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ProcessorSchemaEntryResponse) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *ProcessorSchemaEntryResponse) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ProcessorSchemaEntryResponse) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ProcessorSchemaEntryResponse) SetDescription(v string) { + o.Description = v +} + +// GetType returns the Type field value +func (o *ProcessorSchemaEntryResponse) GetType() string { + if o == nil { + var ret string + 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 *ProcessorSchemaEntryResponse) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ProcessorSchemaEntryResponse) SetType(v string) { + o.Type = v +} + +// GetHref returns the Href field value +func (o *ProcessorSchemaEntryResponse) GetHref() string { + if o == nil { + var ret string + return ret + } + + return o.Href +} + +// GetHrefOk returns a tuple with the Href field value +// and a boolean to check if the value has been set. +func (o *ProcessorSchemaEntryResponse) GetHrefOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Href, true +} + +// SetHref sets field value +func (o *ProcessorSchemaEntryResponse) SetHref(v string) { + o.Href = v +} + +func (o ProcessorSchemaEntryResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["href"] = o.Href + } + return json.Marshal(toSerialize) +} + +type NullableProcessorSchemaEntryResponse struct { + value *ProcessorSchemaEntryResponse + isSet bool +} + +func (v NullableProcessorSchemaEntryResponse) Get() *ProcessorSchemaEntryResponse { + return v.value +} + +func (v *NullableProcessorSchemaEntryResponse) Set(val *ProcessorSchemaEntryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorSchemaEntryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorSchemaEntryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorSchemaEntryResponse(val *ProcessorSchemaEntryResponse) *NullableProcessorSchemaEntryResponse { + return &NullableProcessorSchemaEntryResponse{value: val, isSet: true} +} + +func (v NullableProcessorSchemaEntryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorSchemaEntryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_type.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_type.go new file mode 100644 index 00000000..be62040b --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_processor_type.go @@ -0,0 +1,113 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "fmt" +) + +// ProcessorType the model 'ProcessorType' +type ProcessorType string + +// List of ProcessorType +const ( + PROCESSORTYPE_SOURCE ProcessorType = "source" + PROCESSORTYPE_SINK ProcessorType = "sink" + PROCESSORTYPE_ERROR_HANDLER ProcessorType = "error_handler" +) + +var allowedProcessorTypeEnumValues = []ProcessorType{ + "source", + "sink", + "error_handler", +} + +func (v *ProcessorType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ProcessorType(value) + for _, existing := range allowedProcessorTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ProcessorType", value) +} + +// NewProcessorTypeFromValue returns a pointer to a valid ProcessorType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewProcessorTypeFromValue(v string) (*ProcessorType, error) { + ev := ProcessorType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ProcessorType: valid values are %v", v, allowedProcessorTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ProcessorType) IsValid() bool { + for _, existing := range allowedProcessorTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ProcessorType value +func (v ProcessorType) Ptr() *ProcessorType { + return &v +} + +type NullableProcessorType struct { + value *ProcessorType + isSet bool +} + +func (v NullableProcessorType) Get() *ProcessorType { + return v.value +} + +func (v *NullableProcessorType) Set(val *ProcessorType) { + v.value = val + v.isSet = true +} + +func (v NullableProcessorType) IsSet() bool { + return v.isSet +} + +func (v *NullableProcessorType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProcessorType(val *ProcessorType) *NullableProcessorType { + return &NullableProcessorType{value: val, isSet: true} +} + +func (v NullableProcessorType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProcessorType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_source.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_source.go new file mode 100644 index 00000000..666e79a3 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/model_source.go @@ -0,0 +1,138 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" +) + +// Source struct for Source +type Source struct { + Type string `json:"type"` + Parameters map[string]interface{} `json:"parameters"` +} + +// NewSource instantiates a new Source 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 NewSource(type_ string, parameters map[string]interface{}) *Source { + this := Source{} + this.Type = type_ + this.Parameters = parameters + return &this +} + +// NewSourceWithDefaults instantiates a new Source 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 NewSourceWithDefaults() *Source { + this := Source{} + return &this +} + +// GetType returns the Type field value +func (o *Source) GetType() string { + if o == nil { + var ret string + 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 *Source) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Source) SetType(v string) { + o.Type = v +} + +// GetParameters returns the Parameters field value +func (o *Source) GetParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *Source) GetParametersOk() (*map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return &o.Parameters, true +} + +// SetParameters sets field value +func (o *Source) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +func (o Source) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["type"] = o.Type + } + if true { + toSerialize["parameters"] = o.Parameters + } + return json.Marshal(toSerialize) +} + +type NullableSource struct { + value *Source + isSet bool +} + +func (v NullableSource) Get() *Source { + return v.value +} + +func (v *NullableSource) Set(val *Source) { + v.value = val + v.isSet = true +} + +func (v NullableSource) IsSet() bool { + return v.isSet +} + +func (v *NullableSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSource(val *Source) *NullableSource { + return &NullableSource{value: val, isSet: true} +} + +func (v NullableSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/response.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/response.go new file mode 100644 index 00000000..a0ce9d19 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/response.go @@ -0,0 +1,48 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/utils.go b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/utils.go new file mode 100644 index 00000000..e4837546 --- /dev/null +++ b/app-services-sdk-go/smarteventsmgmt/apiv1alpha/client/utils.go @@ -0,0 +1,329 @@ +/* + * Red Hat Openshift SmartEvents Fleet Manager + * + * The API exposed by the fleet manager of the SmartEvents service. + * + * API version: 0.0.1 + * Contact: openbridge-dev@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smarteventsmgmtclient + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/scripts/errors/fetch-errors.sh b/scripts/errors/fetch-errors.sh new file mode 100644 index 00000000..93da6135 --- /dev/null +++ b/scripts/errors/fetch-errors.sh @@ -0,0 +1,12 @@ +ERRORS_FOLDER=.errors + +echo "Fetching error specifications from backends" + +curl https://api.stage.openshift.com/api/kafkas_mgmt/v1/errors | jq > $ERRORS_FOLDER/errors_kafka_mgmt.json + +curl https://api.stage.openshift.com/api/serviceregistry_mgmt/v1/errors?size=100 | jq > $ERRORS_FOLDER/errors_srs_mgmt.json + +## Not enabled yet +# curl https://api.stage.openshift.com/api/connector_mgmt/v1/errors | jq > errors_connector_mgmt.json + +echo "Successfully fetched errors" \ No newline at end of file diff --git a/scripts/errors/generate_errors.js b/scripts/errors/generate_errors.js new file mode 100644 index 00000000..4f6d35e4 --- /dev/null +++ b/scripts/errors/generate_errors.js @@ -0,0 +1,37 @@ +const fs = require("fs"); +const { cwd } = require("process"); +const sdks = require(cwd() + "/.errors/index.js"); + +console.log("Generating errors sdks"); + +// will get extended t include more sdks, but process should be the same +goSdk = sdks["go"] + +for (api in goSdk) { + + apiJson = goSdk[api].definition; + apiFileLocation = goSdk[api].file; + + if (!apiJson || !apiJson.items) { + console.log("invalid error file detected", apiJson); + exit(1); + } + + stringBuffer=` +package error +// ${api} error codes + +const ( +` + + apiJson.items.forEach(function(errorType) { + stringBuffer += ` // ${errorType.reason}\n` + stringBuffer += ` ERROR_${errorType.id} string = "${errorType.code}"` + stringBuffer += `\n\n` + }) + + stringBuffer += `)` + + fs.writeFileSync(cwd() + "/" + apiFileLocation, stringBuffer, { encoding: "utf8" }); + console.log(`Generated ${api} error definitions`); +} \ No newline at end of file diff --git a/scripts/generate-go.sh b/scripts/generate-go.sh new file mode 100644 index 00000000..9589e64a --- /dev/null +++ b/scripts/generate-go.sh @@ -0,0 +1,107 @@ +#!/usr/bin/env bash +## OPENAPI_FILENAME=yourapi generate.sh + +# generate an API client for a service +generate_sdk() { + local file_name=$1 + local output_path=$2 + local package_name=$3 + + echo "Validating OpenAPI ${file_name}" + npx @openapitools/openapi-generator-cli validate -i "$file_name" + + echo "Generating source code based on ${file_name}" + + # remove old generated models + rm -Rf $OUTPUT_PATH + + npx @openapitools/openapi-generator-cli generate -g go -i \ + "$file_name" -o "$output_path" \ + --package-name="${package_name}" \ + --additional-properties=$additional_properties \ + --ignore-file-override=.openapi-generator-ignore +} + +npx @openapitools/openapi-generator-cli version-manager set 5.2.0 +echo "Generating Go SDKs" +additional_properties="generateInterfaces=true,enumClassPrefix=true" + +OPENAPI_FILENAME=".openapi/kas-fleet-manager.yaml" +PACKAGE_NAME="kafkamgmtclient" +OUTPUT_PATH="app-services-sdk-go/kafkamgmt/apiv1/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + +OPENAPI_FILENAME=".openapi/srs-fleet-manager.json" +PACKAGE_NAME="registrymgmtclient" +OUTPUT_PATH="app-services-sdk-go/registrymgmt/apiv1/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + +OPENAPI_FILENAME=".openapi/connector_mgmt.yaml" +PACKAGE_NAME="connectormgmtclient" +OUTPUT_PATH="app-services-sdk-go/connectormgmt/apiv1/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + +OPENAPI_FILENAME=".openapi/kafka-admin-rest.yaml" +PACKAGE_NAME="kafkainstanceclient" +OUTPUT_PATH="app-services-sdk-go/kafkainstance/apiv1/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + +OPENAPI_FILENAME=".openapi/ams.json" +PATCH_FILE=".openapi/ams.patch" +PACKAGE_NAME="accountmgmtclient" +OUTPUT_PATH="app-services-sdk-go/accountmgmt/apiv1/client" + +patch $OPENAPI_FILENAME < $PATCH_FILE + +rm -Rf $OUTPUT_PATH +npx @openapitools/openapi-generator-cli generate -g go -i \ + "$OPENAPI_FILENAME" -o "$OUTPUT_PATH" \ + --package-name="${PACKAGE_NAME}" \ + --additional-properties=$additional_properties \ + --ignore-file-override=./accountmgmt/.openapi-generator-ignore + +git checkout -- $OPENAPI_FILENAME + +echo "generating registry instance SDK " + +cd .openapi +echo "Removing codegen " +cat registry-instance.json | jq 'del(.paths."x-codegen-contextRoot")' > registry-instance-tmp.json +mv -f registry-instance-tmp.json registry-instance.json + +cat registry-instance.json | sed "s/create.extended+json/json/" > registry-instance-tmp.json +mv -f registry-instance-tmp.json registry-instance.json + +echo "Ensuring only single tag is created " +cat registry-instance.json | jq 'walk( if type == "object" and has("tags") + then .tags |= select(.[0]) + else . end )' > registry-instance-tmp.json +mv -f registry-instance-tmp.json registry-instance.json + +echo "Removing invalid datetime definitions" +sed -i '' 's/date-time/utc-date/' registry-instance.json + +cd .. + +OPENAPI_FILENAME=".openapi/registry-instance.json" +PACKAGE_NAME="registryinstanceclient" +OUTPUT_PATH="app-services-sdk-go/registryinstance/apiv1internal/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + + +OPENAPI_FILENAME=".openapi/service-accounts.yaml" +PACKAGE_NAME="serviceaccountsclient" +OUTPUT_PATH="app-services-sdk-go/serviceaccountmgmt/apiv1/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME + +OPENAPI_FILENAME=".openapi/smartevents_mgmt.yaml" +PACKAGE_NAME="smarteventsmgmtclient" +OUTPUT_PATH="app-services-sdk-go/smarteventsmgmt/apiv1alpha/client" + +generate_sdk $OPENAPI_FILENAME $OUTPUT_PATH $PACKAGE_NAME \ No newline at end of file From a27791ceba20fdde7d72752e35074b2bdefe6eac Mon Sep 17 00:00:00 2001 From: app-services-ci Date: Mon, 14 Nov 2022 12:21:31 +0000 Subject: [PATCH 02/13] New generation of apis for each SDK - this pr is auto generated --- .errors/errors_srs_mgmt.json | 84 ++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.errors/errors_srs_mgmt.json b/.errors/errors_srs_mgmt.json index d1785d50..65c1bd53 100644 --- a/.errors/errors_srs_mgmt.json +++ b/.errors/errors_srs_mgmt.json @@ -5,116 +5,116 @@ "total": 14, "items": [ { + "reason": "Unspecified error", + "operation_id": "", "id": "1", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/1", - "code": "SRS-MGMT-1", - "reason": "Unspecified error", - "operation_id": "" + "code": "SRS-MGMT-1" }, { + "reason": "Registry with id='?' not found", + "operation_id": "", "id": "2", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/2", - "code": "SRS-MGMT-2", - "reason": "Registry with id='?' not found", - "operation_id": "" + "code": "SRS-MGMT-2" }, { + "reason": "Bad date or time format", + "operation_id": "", "id": "3", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/3", - "code": "SRS-MGMT-3", - "reason": "Bad date or time format", - "operation_id": "" + "code": "SRS-MGMT-3" }, { + "reason": "Invalid request content or parameters. Make sure the request conforms to the given JSON schema", + "operation_id": "", "id": "4", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/4", - "code": "SRS-MGMT-4", - "reason": "Invalid request content or parameters. Make sure the request conforms to the given JSON schema", - "operation_id": "" + "code": "SRS-MGMT-4" }, { + "reason": "Bad request format - invalid JSON", + "operation_id": "", "id": "5", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/5", - "code": "SRS-MGMT-5", - "reason": "Bad request format - invalid JSON", - "operation_id": "" + "code": "SRS-MGMT-5" }, { + "reason": "Required terms have not been accepted for account id='?'", + "operation_id": "", "id": "6", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/6", - "code": "SRS-MGMT-6", - "reason": "Required terms have not been accepted for account id='?'", - "operation_id": "" + "code": "SRS-MGMT-6" }, { + "reason": "The maximum number of allowed Registry instances has been reached", + "operation_id": "", "id": "7", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/7", - "code": "SRS-MGMT-7", - "reason": "The maximum number of allowed Registry instances has been reached", - "operation_id": "" + "code": "SRS-MGMT-7" }, { + "reason": "Error type with id='?' not found", + "operation_id": "", "id": "8", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/8", - "code": "SRS-MGMT-8", - "reason": "Error type with id='?' not found", - "operation_id": "" + "code": "SRS-MGMT-8" }, { + "reason": "Data conflict. Make sure a Registry with the given name does not already exist", + "operation_id": "", "id": "9", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/9", - "code": "SRS-MGMT-9", - "reason": "Data conflict. Make sure a Registry with the given name does not already exist", - "operation_id": "" + "code": "SRS-MGMT-9" }, { + "reason": "Bad request format - unsupported media type", + "operation_id": "", "id": "10", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/10", - "code": "SRS-MGMT-10", - "reason": "Bad request format - unsupported media type", - "operation_id": "" + "code": "SRS-MGMT-10" }, { + "reason": "Could not check quota for user?", + "operation_id": "", "id": "11", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/11", - "code": "SRS-MGMT-11", - "reason": "Could not check quota for user?", - "operation_id": "" + "code": "SRS-MGMT-11" }, { + "reason": "Evaluation instances not allowed.", + "operation_id": "", "id": "12", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/12", - "code": "SRS-MGMT-12", - "reason": "Evaluation instances not allowed.", - "operation_id": "" + "code": "SRS-MGMT-12" }, { + "reason": "User already has the maximum number of allowed Evaluation instances.", + "operation_id": "", "id": "13", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/13", - "code": "SRS-MGMT-13", - "reason": "User already has the maximum number of allowed Evaluation instances.", - "operation_id": "" + "code": "SRS-MGMT-13" }, { + "reason": "Total (global) number of instances exhausted.", + "operation_id": "", "id": "14", "kind": "Error", "href": "/api/serviceregistry_mgmt/v1/errors/14", - "code": "SRS-MGMT-14", - "reason": "Total (global) number of instances exhausted.", - "operation_id": "" + "code": "SRS-MGMT-14" } ] } From 4de63a7cbfe9699c1c6752284d1d2ddf68671fc0 Mon Sep 17 00:00:00 2001 From: Jack Delahunt <45426048+jackdelahunt@users.noreply.github.com> Date: Mon, 14 Nov 2022 12:33:59 +0000 Subject: [PATCH 03/13] fetch errors workflow --- .github/workflows/fetch-errors.yaml | 27 ++++++++++++++++++++++++++ .github/workflows/generate-errors.yaml | 5 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/fetch-errors.yaml diff --git a/.github/workflows/fetch-errors.yaml b/.github/workflows/fetch-errors.yaml new file mode 100644 index 00000000..68272337 --- /dev/null +++ b/.github/workflows/fetch-errors.yaml @@ -0,0 +1,27 @@ +name: Fetch Errors +on: + workflow_dispatch: +jobs: + Fetch_errors: + env: + APP_SERVICES_TOKEN: ${{ secrets.APP_SERVICES_TOKEN }} + BF2_TOKEN: ${{ secrets.BF2_TOKEN }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Fetch errors + run: bash scripts/errors/fetch-errors.sh + - name: Make pull request + uses: peter-evans/create-pull-request@v4 + with: + title: "fix(${{ github.event.client_payload.id }}): new generation of SDK errors update" + commit-message: "New generation of apis for each SDK - this pr is auto generated" + author: "app-services-ci " + branch: chore/Fetch-api-clients§ + branch-suffix: timestamp + delete-branch: true + body: | + _This pull request was auto-generated from [fetch_errors.yaml](https://github.com/redhat-developer/app-services-sdk-core/blob/main/.github/workflows/fetch_errors.yaml)_ + + This PR adds the latest error files \ No newline at end of file diff --git a/.github/workflows/generate-errors.yaml b/.github/workflows/generate-errors.yaml index 42a91d68..88404274 100644 --- a/.github/workflows/generate-errors.yaml +++ b/.github/workflows/generate-errors.yaml @@ -10,8 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 - name: Generate errors - run: bash scripts/errors/fetch-errors.sh + run: node scripts/errors/generate_errors.js - name: Make pull request uses: peter-evans/create-pull-request@v4 with: From e76b03743c1fdf00c287f7661ae3dbb4f909369f Mon Sep 17 00:00:00 2001 From: Jack Delahunt <45426048+jackdelahunt@users.noreply.github.com> Date: Fri, 18 Nov 2022 14:28:11 +0000 Subject: [PATCH 04/13] feat: go sdk go.mod --- app-services-sdk-go/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app-services-sdk-go/go.mod diff --git a/app-services-sdk-go/go.mod b/app-services-sdk-go/go.mod new file mode 100644 index 00000000..4bf1e73c --- /dev/null +++ b/app-services-sdk-go/go.mod @@ -0,0 +1,3 @@ +module github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go + +go 1.18 \ No newline at end of file From 0112abc193036ff34158d7268886e7f8aa6b80f7 Mon Sep 17 00:00:00 2001 From: Jack Delahunt <45426048+jackdelahunt@users.noreply.github.com> Date: Fri, 18 Nov 2022 14:36:01 +0000 Subject: [PATCH 05/13] fix: change repo name in go sdk --- app-services-sdk-go/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-services-sdk-go/go.mod b/app-services-sdk-go/go.mod index 4bf1e73c..e1f4022d 100644 --- a/app-services-sdk-go/go.mod +++ b/app-services-sdk-go/go.mod @@ -1,3 +1,3 @@ -module github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go +module github.com/jackdelahunt/app-services-sdk-core/app-services-sdk-go go 1.18 \ No newline at end of file From 842ea86b6a0455be702c12511fc83d5d93dcd54d Mon Sep 17 00:00:00 2001 From: Jack Delahunt <45426048+jackdelahunt@users.noreply.github.com> Date: Mon, 21 Nov 2022 13:18:08 +0000 Subject: [PATCH 06/13] feat: added js sdk --- .errors/errors_kafka_mgmt.json | 2 +- .errors/index.js | 18 + .github/workflows/generate-sdks.yaml | 4 +- .../kafkamgmt/apiv1/client/.gitignore | 24 - .../apiv1/client/.openapi-generator/FILES | 102 - .../apiv1/client/.openapi-generator/VERSION | 1 - .../kafkamgmt/apiv1/client/.travis.yml | 8 - .../kafkamgmt/apiv1/client/README.md | 184 - .../kafkamgmt/apiv1/client/api/openapi.yaml | 2383 --- .../kafkamgmt/apiv1/client/api_default.go | 2013 --- .../kafkamgmt/apiv1/client/api_errors.go | 269 - .../kafkamgmt/apiv1/client/api_security.go | 896 -- .../kafkamgmt/apiv1/client/client.go | 552 - .../kafkamgmt/apiv1/client/configuration.go | 243 - .../apiv1/client/docs/CloudProvider.md | 155 - .../apiv1/client/docs/CloudProviderList.md | 135 - .../client/docs/CloudProviderListAllOf.md | 56 - .../apiv1/client/docs/CloudRegion.md | 150 - .../apiv1/client/docs/CloudRegionList.md | 135 - .../apiv1/client/docs/CloudRegionListAllOf.md | 56 - .../kafkamgmt/apiv1/client/docs/DefaultApi.md | 868 -- .../kafkamgmt/apiv1/client/docs/Error.md | 161 - .../kafkamgmt/apiv1/client/docs/ErrorList.md | 135 - .../apiv1/client/docs/ErrorListAllOf.md | 56 - .../kafkamgmt/apiv1/client/docs/ErrorsApi.md | 141 - .../apiv1/client/docs/InstantQuery.md | 103 - .../apiv1/client/docs/KafkaRequest.md | 847 -- .../apiv1/client/docs/KafkaRequestAllOf.md | 784 - .../apiv1/client/docs/KafkaRequestList.md | 135 - .../client/docs/KafkaRequestListAllOf.md | 56 - .../apiv1/client/docs/KafkaRequestPayload.md | 273 - .../apiv1/client/docs/KafkaUpdateRequest.md | 102 - .../kafkamgmt/apiv1/client/docs/List.md | 135 - .../client/docs/MetricsInstantQueryList.md | 108 - .../docs/MetricsInstantQueryListAllOf.md | 108 - .../client/docs/MetricsRangeQueryList.md | 108 - .../client/docs/MetricsRangeQueryListAllOf.md | 108 - .../apiv1/client/docs/ObjectReference.md | 93 - .../kafkamgmt/apiv1/client/docs/RangeQuery.md | 82 - .../client/docs/RegionCapacityListItem.md | 72 - .../apiv1/client/docs/SecurityApi.md | 417 - .../apiv1/client/docs/ServiceAccount.md | 275 - .../apiv1/client/docs/ServiceAccountAllOf.md | 238 - .../apiv1/client/docs/ServiceAccountList.md | 72 - .../client/docs/ServiceAccountListAllOf.md | 72 - .../client/docs/ServiceAccountListItem.md | 249 - .../docs/ServiceAccountListItemAllOf.md | 212 - .../client/docs/ServiceAccountRequest.md | 77 - .../apiv1/client/docs/SsoProvider.md | 223 - .../apiv1/client/docs/SsoProviderAllOf.md | 160 - .../client/docs/SupportedKafkaBillingModel.md | 114 - .../client/docs/SupportedKafkaInstanceType.md | 129 - .../docs/SupportedKafkaInstanceTypesList.md | 56 - .../SupportedKafkaInstanceTypesListAllOf.md | 56 - .../apiv1/client/docs/SupportedKafkaSize.md | 508 - .../docs/SupportedKafkaSizeBytesValueItem.md | 56 - .../kafkamgmt/apiv1/client/docs/Values.md | 77 - .../apiv1/client/docs/VersionMetadata.md | 145 - .../apiv1/client/docs/VersionMetadataAllOf.md | 82 - .../kafkamgmt/apiv1/client/go.mod | 7 - .../kafkamgmt/apiv1/client/go.sum | 13 - .../apiv1/client/model_cloud_provider.go | 258 - .../apiv1/client/model_cloud_provider_list.go | 225 - .../model_cloud_provider_list_all_of.go | 116 - .../apiv1/client/model_cloud_region.go | 253 - .../apiv1/client/model_cloud_region_list.go | 225 - .../client/model_cloud_region_list_all_of.go | 116 - .../kafkamgmt/apiv1/client/model_error.go | 261 - .../apiv1/client/model_error_list.go | 225 - .../apiv1/client/model_error_list_all_of.go | 116 - .../apiv1/client/model_instant_query.go | 181 - .../apiv1/client/model_kafka_request.go | 1220 -- .../client/model_kafka_request_all_of.go | 1133 -- .../apiv1/client/model_kafka_request_list.go | 225 - .../client/model_kafka_request_list_all_of.go | 116 - .../client/model_kafka_request_payload.go | 409 - .../client/model_kafka_update_request.go | 173 - .../kafkamgmt/apiv1/client/model_list.go | 225 - .../model_metrics_instant_query_list.go | 188 - ...model_metrics_instant_query_list_all_of.go | 188 - .../client/model_metrics_range_query_list.go | 188 - .../model_metrics_range_query_list_all_of.go | 188 - .../apiv1/client/model_object_reference.go | 167 - .../apiv1/client/model_range_query.go | 152 - .../client/model_region_capacity_list_item.go | 140 - .../apiv1/client/model_service_account.go | 421 - .../client/model_service_account_all_of.go | 370 - .../client/model_service_account_list.go | 138 - .../model_service_account_list_all_of.go | 138 - .../client/model_service_account_list_item.go | 391 - .../model_service_account_list_item_all_of.go | 340 - .../client/model_service_account_request.go | 147 - .../apiv1/client/model_sso_provider.go | 349 - .../apiv1/client/model_sso_provider_all_of.go | 262 - .../model_supported_kafka_billing_model.go | 200 - .../model_supported_kafka_instance_type.go | 221 - ...del_supported_kafka_instance_types_list.go | 116 - ...ported_kafka_instance_types_list_all_of.go | 116 - .../client/model_supported_kafka_size.go | 752 - ...l_supported_kafka_size_bytes_value_item.go | 116 - .../kafkamgmt/apiv1/client/model_values.go | 145 - .../apiv1/client/model_version_metadata.go | 239 - .../client/model_version_metadata_all_of.go | 152 - .../kafkamgmt/apiv1/client/response.go | 48 - .../kafkamgmt/apiv1/client/utils.go | 329 - .../kafkamgmt/apiv1/error/errors.go | 2 +- .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated}/.openapi-generator-ignore | 0 .../src/generated/.openapi-generator/FILES | 209 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../src/generated/api.ts | 19 + .../src/generated/api/app-services-api.ts | 434 + .../src/generated/api/default-api.ts | 12269 ++++++++++++++++ .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated}/git_push.sh | 7 +- .../src/generated/index.ts | 18 + .../generated/model/access-review-response.ts | 127 + .../src/generated/model/access-review.ts | 121 + .../src/generated/model/access-token-cfg.ts | 30 + .../src/generated/model/account-all-of.ts | 123 + .../generated/model/account-group-all-of.ts | 68 + .../model/account-group-assignment-all-of.ts | 48 + .../account-group-assignment-list-all-of.ts | 31 + .../model/account-group-assignment-list.ts | 26 + .../model/account-group-assignment.ts | 25 + .../model/account-group-list-all-of.ts | 31 + .../src/generated/model/account-group-list.ts | 26 + .../model/account-group-request-all-of.ts | 36 + .../generated/model/account-group-request.ts | 25 + .../src/generated/model/account-group.ts | 25 + .../generated/model/account-list-all-of.ts | 31 + .../src/generated/model/account-list.ts | 26 + .../generated/model/account-patch-request.ts | 72 + .../model/account-reference-all-of.ts | 42 + .../src/generated/model/account-reference.ts | 25 + .../src/generated/model/account.ts | 28 + .../src/generated/model/capability-all-of.ts | 42 + .../model/capability-review-request.ts | 72 + .../src/generated/model/capability-review.ts | 30 + .../src/generated/model/capability.ts | 25 + .../src/generated/model/certificate-serial.ts | 54 + .../src/generated/model/certificate.ts | 61 + .../generated/model/certificates-request.ts | 56 + .../src/generated/model/cloud-account.ts | 36 + .../generated/model/cloud-resource-all-of.ts | 114 + .../model/cloud-resource-list-all-of.ts | 31 + .../generated/model/cloud-resource-list.ts | 26 + .../src/generated/model/cloud-resource.ts | 25 + .../model/cluster-authorization-request.ts | 131 + .../model/cluster-authorization-response.ts | 50 + .../generated/model/cluster-metrics-nodes.ts | 48 + .../model/cluster-registration-request.ts | 36 + .../model/cluster-registration-response.ts | 48 + .../generated/model/cluster-resource-total.ts | 36 + .../src/generated/model/cluster-resource.ts | 43 + .../model/cluster-transfer-all-of.ts | 83 + .../model/cluster-transfer-list-all-of.ts | 31 + .../generated/model/cluster-transfer-list.ts | 26 + .../model/cluster-transfer-patch-request.ts | 30 + .../model/cluster-transfer-request.ts | 42 + .../src/generated/model/cluster-transfer.ts | 25 + .../src/generated/model/cluster-upgrade.ts | 48 + .../generated/model/consumed-quota-all-of.ts | 84 + .../model/consumed-quota-list-all-of.ts | 31 + .../generated/model/consumed-quota-list.ts | 26 + .../src/generated/model/consumed-quota.ts | 25 + .../model/deleted-subscription-all-of.ts | 48 + .../model/deleted-subscription-list-all-of.ts | 31 + .../model/deleted-subscription-list.ts | 26 + .../generated/model/deleted-subscription.ts | 25 + .../model/ephemeral-resource-quota.ts | 60 + .../src/generated/model/error-all-of.ts | 42 + .../src/generated/model/error-list-all-of.ts | 30 + .../src/generated/model/error-list.ts | 25 + .../generated/model/excess-resource-all-of.ts | 60 + .../src/generated/model/excess-resource.ts | 25 + .../model/export-control-review-request.ts | 36 + .../generated/model/export-control-review.ts | 30 + .../model/feature-review-response.ts | 36 + .../src/generated/model/feature-review.ts | 42 + .../generated/model/feature-toggle-all-of.ts | 30 + .../feature-toggle-query-request-all-of.ts | 30 + .../model/feature-toggle-query-request.ts | 24 + .../src/generated/model/feature-toggle.ts | 25 + .../src/generated/model/index.ts | 194 + .../src/generated/model/label-all-of.ts | 78 + .../src/generated/model/label-list-all-of.ts | 31 + .../src/generated/model/label-list.ts | 26 + .../src/generated/model/label.ts | 25 + .../model/landing-page-ctlitem-shape.ts | 43 + .../generated/model/landing-page-ctlitem.ts | 31 + .../model/landing-page-estate-item.ts | 43 + .../model/landing-page-link-shape.ts | 36 + .../src/generated/model/list.ts | 48 + .../src/generated/model/metric-all-of.ts | 54 + .../src/generated/model/metric.ts | 25 + .../generated/model/metrics-list-all-of.ts | 31 + .../src/generated/model/metrics-list.ts | 26 + .../src/generated/model/model-error.ts | 25 + .../notification-contact-create-request.ts | 30 + .../generated/model/notification-request.ts | 79 + .../src/generated/model/object-reference.ts | 42 + .../src/generated/model/one-metric.ts | 198 + .../generated/model/organization-all-of.ts | 68 + .../model/organization-list-all-of.ts | 31 + .../src/generated/model/organization-list.ts | 26 + .../model/organization-patch-request.ts | 42 + .../src/generated/model/organization.ts | 27 + .../src/generated/model/permission-all-of.ts | 47 + .../generated/model/permission-list-all-of.ts | 31 + .../src/generated/model/permission-list.ts | 26 + .../src/generated/model/permission.ts | 24 + .../src/generated/model/plan-all-of.ts | 42 + .../src/generated/model/plan-list-all-of.ts | 31 + .../src/generated/model/plan-list.ts | 26 + .../src/generated/model/plan.ts | 25 + .../generated/model/pull-secret-request.ts | 30 + .../src/generated/model/quota-all-of.ts | 48 + .../src/generated/model/quota-cost-all-of.ts | 68 + .../generated/model/quota-cost-list-all-of.ts | 31 + .../src/generated/model/quota-cost-list.ts | 26 + .../src/generated/model/quota-cost.ts | 27 + .../src/generated/model/quota-list-all-of.ts | 31 + .../src/generated/model/quota-list.ts | 26 + .../src/generated/model/quota-rules-all-of.ts | 78 + .../model/quota-rules-list-all-of.ts | 31 + .../src/generated/model/quota-rules-list.ts | 26 + .../src/generated/model/quota-rules.ts | 25 + .../src/generated/model/quota.ts | 25 + .../src/generated/model/registry-all-of.ts | 72 + .../model/registry-create-request.ts | 24 + .../model/registry-credential-all-of.ts | 67 + .../model/registry-credential-list-all-of.ts | 31 + .../model/registry-credential-list.ts | 26 + .../registry-credential-patch-request.ts | 54 + .../generated/model/registry-credential.ts | 25 + .../generated/model/registry-list-all-of.ts | 31 + .../src/generated/model/registry-list.ts | 26 + .../src/generated/model/registry-request.ts | 60 + .../src/generated/model/registry.ts | 25 + .../model/related-resource-all-of.ts | 78 + .../src/generated/model/related-resource.ts | 25 + .../model/reserved-resource-all-of.ts | 91 + .../model/reserved-resource-list-all-of.ts | 31 + .../generated/model/reserved-resource-list.ts | 26 + .../model/reserved-resource-patch-request.ts | 30 + .../src/generated/model/reserved-resource.ts | 25 + .../generated/model/resource-quota-all-of.ts | 69 + .../model/resource-quota-list-all-of.ts | 31 + .../generated/model/resource-quota-list.ts | 26 + .../generated/model/resource-quota-request.ts | 51 + .../src/generated/model/resource-quota.ts | 25 + .../model/resource-review-request.ts | 57 + .../src/generated/model/resource-review.ts | 83 + .../src/generated/model/role-all-of.ts | 37 + .../generated/model/role-binding-all-of.ts | 100 + .../model/role-binding-create-request.ts | 24 + .../model/role-binding-list-all-of.ts | 31 + .../src/generated/model/role-binding-list.ts | 26 + .../generated/model/role-binding-request.ts | 72 + .../src/generated/model/role-binding.ts | 25 + .../src/generated/model/role-list-all-of.ts | 31 + .../src/generated/model/role-list.ts | 26 + .../src/generated/model/role.ts | 26 + .../src/generated/model/self-access-review.ts | 115 + .../model/self-entitlement-status.ts | 36 + .../generated/model/self-feature-review.ts | 30 + .../model/self-resource-review-request.ts | 51 + .../generated/model/self-resource-review.ts | 77 + ...ce-landing-page-schema-config-try-learn.ts | 37 + ...self-service-landing-page-schema-estate.ts | 31 + .../model/self-service-landing-page-schema.ts | 38 + .../src/generated/model/self-terms-review.ts | 42 + .../src/generated/model/sku-list-all-of.ts | 31 + .../src/generated/model/sku-list.ts | 26 + .../src/generated/model/sku-rules-all-of.ts | 42 + .../generated/model/sku-rules-list-all-of.ts | 31 + .../src/generated/model/sku-rules-list.ts | 26 + .../src/generated/model/sku-rules.ts | 25 + .../src/generated/model/sku.ts | 25 + .../src/generated/model/skuall-of.ts | 42 + .../generated/model/subscription-all-of.ts | 84 + .../subscription-common-fields-all-of.ts | 236 + .../model/subscription-common-fields.ts | 25 + .../model/subscription-create-request.ts | 66 + .../model/subscription-list-all-of.ts | 31 + .../src/generated/model/subscription-list.ts | 26 + .../model/subscription-metric-all-of.ts | 30 + .../model/subscription-metric-list-all-of.ts | 31 + .../model/subscription-metric-list.ts | 26 + .../generated/model/subscription-metric.ts | 24 + .../model/subscription-patch-request.ts | 221 + .../model/subscription-role-binding-all-of.ts | 68 + ...ubscription-role-binding-create-request.ts | 36 + .../subscription-role-binding-list-all-of.ts | 31 + .../model/subscription-role-binding-list.ts | 26 + .../model/subscription-role-binding.ts | 26 + .../src/generated/model/subscription.ts | 31 + .../src/generated/model/summary-all-of.ts | 37 + .../generated/model/summary-metrics-all-of.ts | 37 + .../src/generated/model/summary-metrics.ts | 25 + .../generated/model/summary-vector-all-of.ts | 36 + .../src/generated/model/summary-vector.ts | 24 + .../src/generated/model/summary.ts | 26 + .../model/support-cases-created-response.ts | 78 + .../generated/model/support-cases-request.ts | 112 + .../src/generated/model/template-parameter.ts | 36 + .../generated/model/terms-review-response.ts | 54 + .../src/generated/model/terms-review.ts | 48 + .../model/token-authorization-request.ts | 30 + .../model/token-authorization-response.ts | 31 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../connector-management-sdk/src/errors.ts | 135 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 73 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../src/generated/api.ts | 22 + .../generated/api/connector-clusters-api.ts | 739 + .../generated/api/connector-namespaces-api.ts | 345 + .../generated/api/connector-service-api.ts | 137 + .../src/generated/api/connector-types-api.ts | 353 + .../src/generated/api/connectors-api.ts | 528 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../src/generated/model/addon-parameter.ts | 36 + .../src/generated/model/channel.ts | 30 + .../model/connector-cluster-list-all-of.ts | 31 + .../generated/model/connector-cluster-list.ts | 26 + .../generated/model/connector-cluster-meta.ts | 25 + .../model/connector-cluster-request-meta.ts | 30 + .../model/connector-cluster-request.ts | 25 + .../model/connector-cluster-state.ts | 32 + .../model/connector-cluster-status-status.ts | 37 + .../model/connector-cluster-status.ts | 31 + .../src/generated/model/connector-cluster.ts | 27 + .../model/connector-configuration.ts | 51 + .../model/connector-desired-state.ts | 33 + .../generated/model/connector-list-all-of.ts | 31 + .../src/generated/model/connector-list.ts | 26 + .../generated/model/connector-meta-all-of.ts | 30 + .../src/generated/model/connector-meta.ts | 28 + .../model/connector-namespace-all-of.ts | 56 + .../model/connector-namespace-eval-request.ts | 25 + .../model/connector-namespace-list-all-of.ts | 31 + .../model/connector-namespace-list.ts | 26 + .../model/connector-namespace-meta-all-of.ts | 37 + .../model/connector-namespace-meta.ts | 27 + .../connector-namespace-patch-request.ts | 25 + .../model/connector-namespace-quota.ts | 54 + .../connector-namespace-request-all-of.ts | 37 + .../model/connector-namespace-request-meta.ts | 36 + .../model/connector-namespace-request.ts | 27 + .../model/connector-namespace-state.ts | 33 + .../model/connector-namespace-status.ts | 49 + .../model/connector-namespace-tenant-kind.ts | 31 + .../model/connector-namespace-tenant.ts | 37 + .../generated/model/connector-namespace.ts | 30 + .../generated/model/connector-request-meta.ts | 56 + .../src/generated/model/connector-request.ts | 30 + .../src/generated/model/connector-state.ts | 39 + .../model/connector-status-status.ts | 37 + .../src/generated/model/connector-status.ts | 31 + .../generated/model/connector-type-all-of.ts | 79 + .../model/connector-type-label-count-list.ts | 31 + .../model/connector-type-label-count.ts | 36 + .../model/connector-type-list-all-of.ts | 31 + .../generated/model/connector-type-list.ts | 26 + .../src/generated/model/connector-type.ts | 27 + .../src/generated/model/connector.ts | 33 + .../src/generated/model/index.ts | 55 + .../model/kafka-connection-settings.ts | 25 + .../src/generated/model/list.ts | 55 + .../src/generated/model/model-error.ts | 60 + .../src/generated/model/object-meta.ts | 42 + .../src/generated/model/object-reference.ts | 42 + .../schema-registry-connection-settings.ts | 25 + .../src/generated/model/service-account.ts | 36 + .../model/service-connection-settings.ts | 36 + .../model/version-metadata-all-of.ts | 31 + .../src/generated/model/version-metadata.ts | 25 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../packages/kafka-instance-sdk/src/errors.ts | 66 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 70 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../kafka-instance-sdk/src/generated/api.ts | 22 + .../src/generated/api/acls-api.ts | 544 + .../src/generated/api/errors-api.ts | 230 + .../src/generated/api/groups-api.ts | 530 + .../src/generated/api/records-api.ts | 306 + .../src/generated/api/topics-api.ts | 570 + .../kafka-instance-sdk/src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../kafka-instance-sdk/src/generated/index.ts | 18 + .../src/generated/model/acl-binding-all-of.ts | 64 + .../model/acl-binding-list-page-all-of.ts | 31 + .../generated/model/acl-binding-list-page.ts | 26 + .../generated/model/acl-binding-order-key.ts | 35 + .../src/generated/model/acl-binding.ts | 29 + .../generated/model/acl-operation-filter.ts | 39 + .../src/generated/model/acl-operation.ts | 38 + .../model/acl-pattern-type-filter.ts | 33 + .../src/generated/model/acl-pattern-type.ts | 31 + .../model/acl-permission-type-filter.ts | 32 + .../generated/model/acl-permission-type.ts | 31 + .../model/acl-resource-type-filter.ts | 34 + .../src/generated/model/acl-resource-type.ts | 33 + .../src/generated/model/config-entry.ts | 36 + .../generated/model/consumer-group-all-of.ts | 51 + .../consumer-group-description-order-key.ts | 33 + .../model/consumer-group-list-all-of.ts | 31 + .../generated/model/consumer-group-list.ts | 26 + .../generated/model/consumer-group-metrics.ts | 42 + .../model/consumer-group-order-key.ts | 30 + .../consumer-group-reset-offset-parameters.ts | 44 + ...nsumer-group-reset-offset-result-all-of.ts | 31 + ...consumer-group-reset-offset-result-item.ts | 42 + .../consumer-group-reset-offset-result.ts | 26 + .../generated/model/consumer-group-state.ts | 35 + .../src/generated/model/consumer-group.ts | 28 + .../src/generated/model/consumer.ts | 66 + .../src/generated/model/error-all-of.ts | 56 + .../src/generated/model/error-list-all-of.ts | 36 + .../src/generated/model/error-list.ts | 25 + .../src/generated/model/index.ts | 52 + .../generated/model/list-deprecated-all-of.ts | 45 + .../src/generated/model/list-deprecated.ts | 25 + .../src/generated/model/list.ts | 54 + .../src/generated/model/model-error.ts | 25 + .../src/generated/model/new-topic-input.ts | 37 + .../src/generated/model/node.ts | 30 + .../src/generated/model/object-reference.ts | 42 + .../src/generated/model/offset-type.ts | 33 + .../src/generated/model/partition.ts | 56 + .../src/generated/model/record-all-of.ts | 66 + .../model/record-included-property.ts | 36 + .../src/generated/model/record-list-all-of.ts | 49 + .../src/generated/model/record-list.ts | 26 + .../src/generated/model/record.ts | 25 + .../src/generated/model/sort-direction.ts | 31 + .../src/generated/model/topic-all-of.ts | 50 + .../src/generated/model/topic-order-key.ts | 33 + .../src/generated/model/topic-settings.ts | 37 + .../src/generated/model/topic.ts | 27 + .../src/generated/model/topics-list-all-of.ts | 31 + .../src/generated/model/topics-list.ts | 26 + .../generated/model/topics-to-reset-offset.ts | 36 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../kafka-management-sdk/src/errors.ts | 144 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 58 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../kafka-management-sdk/src/generated/api.ts | 20 + .../src/generated/api/default-api.ts | 1124 ++ .../src/generated/api/errors-api.ts | 204 + .../src/generated/api/security-api.ts | 521 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../model/cloud-provider-list-all-of.ts | 31 + .../generated/model/cloud-provider-list.ts | 26 + .../src/generated/model/cloud-provider.ts | 54 + .../model/cloud-region-list-all-of.ts | 31 + .../src/generated/model/cloud-region-list.ts | 26 + .../src/generated/model/cloud-region.ts | 55 + .../src/generated/model/error-list-all-of.ts | 30 + .../src/generated/model/error-list.ts | 25 + .../src/generated/model/index.ts | 42 + .../src/generated/model/instant-query.ts | 42 + .../generated/model/kafka-request-all-of.ts | 207 + .../model/kafka-request-list-all-of.ts | 31 + .../src/generated/model/kafka-request-list.ts | 26 + .../generated/model/kafka-request-payload.ts | 72 + .../src/generated/model/kafka-request.ts | 26 + .../generated/model/kafka-update-request.ts | 36 + .../src/generated/model/list.ts | 55 + .../metrics-instant-query-list-all-of.ts | 43 + .../model/metrics-instant-query-list.ts | 25 + .../model/metrics-range-query-list-all-of.ts | 43 + .../model/metrics-range-query-list.ts | 25 + .../src/generated/model/model-error.ts | 60 + .../src/generated/model/object-reference.ts | 42 + .../src/generated/model/range-query.ts | 37 + .../model/region-capacity-list-item.ts | 36 + .../generated/model/service-account-all-of.ts | 73 + .../model/service-account-list-all-of.ts | 37 + .../model/service-account-list-item-all-of.ts | 67 + .../model/service-account-list-item.ts | 25 + .../generated/model/service-account-list.ts | 25 + .../model/service-account-request.ts | 36 + .../src/generated/model/service-account.ts | 26 + .../generated/model/sso-provider-all-of.ts | 54 + .../src/generated/model/sso-provider.ts | 26 + .../model/supported-kafka-billing-model.ts | 48 + .../model/supported-kafka-instance-type.ts | 50 + ...ported-kafka-instance-types-list-all-of.ts | 31 + .../supported-kafka-instance-types-list.ts | 25 + .../supported-kafka-size-bytes-value-item.ts | 30 + .../generated/model/supported-kafka-size.ts | 134 + .../src/generated/model/values.ts | 36 + .../model/version-metadata-all-of.ts | 37 + .../src/generated/model/version-metadata.ts | 25 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 57 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../src/generated/api.ts | 26 + .../src/generated/api/admin-api.ts | 1262 ++ .../src/generated/api/artifact-rules-api.ts | 721 + .../src/generated/api/artifacts-api.ts | 1347 ++ .../src/generated/api/global-rules-api.ts | 528 + .../src/generated/api/metadata-api.ts | 827 ++ .../src/generated/api/search-api.ts | 375 + .../src/generated/api/system-api.ts | 208 + .../src/generated/api/users-api.ts | 137 + .../src/generated/api/versions-api.ts | 619 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../src/generated/model/artifact-meta-data.ts | 123 + .../src/generated/model/artifact-owner.ts | 30 + .../src/generated/model/artifact-reference.ts | 48 + .../model/artifact-search-results.ts | 37 + .../src/generated/model/artifact-state.ts | 32 + .../src/generated/model/artifact-type.ts | 39 + .../generated/model/configuration-property.ts | 54 + .../generated/model/content-create-request.ts | 37 + .../src/generated/model/download-ref.ts | 36 + .../src/generated/model/editable-meta-data.ts | 48 + .../src/generated/model/if-exists.ts | 33 + .../src/generated/model/index.ts | 35 + .../src/generated/model/limits.ts | 96 + .../src/generated/model/log-configuration.ts | 31 + .../src/generated/model/log-level.ts | 40 + .../src/generated/model/model-error.ts | 48 + .../model/named-log-configuration-all-of.ts | 30 + .../model/named-log-configuration.ts | 26 + .../src/generated/model/role-mapping.ts | 43 + .../src/generated/model/role-type.ts | 32 + .../src/generated/model/rule-type.ts | 31 + .../generated/model/rule-violation-cause.ts | 36 + .../model/rule-violation-error-all-of.ts | 31 + .../generated/model/rule-violation-error.ts | 27 + .../src/generated/model/rule.ts | 37 + .../src/generated/model/searched-artifact.ts | 92 + .../src/generated/model/searched-version.ts | 99 + .../src/generated/model/sort-by.ts | 31 + .../src/generated/model/sort-order.ts | 31 + .../src/generated/model/system-info.ts | 48 + .../model/update-configuration-property.ts | 30 + .../src/generated/model/update-role.ts | 31 + .../src/generated/model/update-state.ts | 31 + .../src/generated/model/user-info.ts | 54 + .../src/generated/model/version-meta-data.ts | 104 + .../generated/model/version-search-results.ts | 37 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../registry-management-sdk/src/errors.ts | 57 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 29 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../src/generated/api.ts | 20 + .../src/generated/api/default-api.ts | 136 + .../src/generated/api/errors-api.ts | 222 + .../src/generated/api/registries-api.ts | 416 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../src/generated/model/error-list-all-of.ts | 30 + .../src/generated/model/error-list.ts | 25 + .../src/generated/model/index.ts | 13 + .../src/generated/model/list.ts | 55 + .../src/generated/model/model-error.ts | 60 + .../src/generated/model/object-reference.ts | 42 + .../src/generated/model/registry-create.ts | 36 + .../model/registry-instance-type-value.ts | 31 + .../generated/model/registry-list-all-of.ts | 31 + .../src/generated/model/registry-list.ts | 26 + .../generated/model/registry-status-value.ts | 35 + .../src/generated/model/registry.ts | 27 + .../generated/model/root-type-for-registry.ts | 92 + .../src/generated/model/service-status.ts | 30 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 20 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../service-accounts-sdk/src/generated/api.ts | 18 + .../src/generated/api/service-accounts-api.ts | 617 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../src/generated/model/index.ts | 6 + .../src/generated/model/model-error.ts | 30 + .../model/red-hat-error-representation.ts | 46 + .../service-account-create-request-data.ts | 36 + .../generated/model/service-account-data.ts | 66 + .../model/service-account-request-data.ts | 36 + .../model/validation-exception-data.ts | 42 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + .../src/generated/.gitignore | 4 + .../src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 23 + .../src/generated/.openapi-generator/FILES | 47 + .../src/generated/.openapi-generator/VERSION | 1 + .../src/generated/README.md | 45 + .../src/generated/api.ts | 22 + .../src/generated/api/bridges-api.ts | 517 + .../src/generated/api/cloud-providers-api.ts | 331 + .../src/generated/api/error-catalog-api.ts | 236 + .../src/generated/api/processors-api.ts | 568 + .../src/generated/api/schema-catalog-api.ts | 305 + .../src/generated/base.ts | 71 + .../src/generated/common.ts | 138 + .../src/generated/configuration.ts | 101 + .../src/generated/git_push.sh | 57 + .../src/generated/index.ts | 18 + .../src/generated/model/action.ts | 36 + .../src/generated/model/base-filter.ts | 36 + .../generated/model/bridge-error-instance.ts | 55 + .../src/generated/model/bridge-error-type.ts | 31 + .../src/generated/model/bridge-error.ts | 49 + .../generated/model/bridge-list-response.ts | 55 + .../src/generated/model/bridge-request.ts | 49 + .../src/generated/model/bridge-response.ts | 110 + .../model/cloud-provider-list-response.ts | 55 + .../model/cloud-provider-response.ts | 60 + .../model/cloud-region-list-response.ts | 55 + .../generated/model/cloud-region-response.ts | 48 + .../generated/model/error-list-response.ts | 54 + .../src/generated/model/errors-list.ts | 36 + .../src/generated/model/index.ts | 29 + .../src/generated/model/list-all-of.ts | 42 + .../src/generated/model/list-response.ts | 36 + .../src/generated/model/list.ts | 25 + .../model/managed-resource-status.ts | 37 + .../src/generated/model/model-error.ts | 60 + .../src/generated/model/object-reference.ts | 48 + .../model/processing-error-list-response.ts | 55 + .../model/processing-error-response.ts | 42 + .../model/processor-catalog-response.ts | 37 + .../model/processor-list-response.ts | 55 + .../src/generated/model/processor-request.ts | 57 + .../src/generated/model/processor-response.ts | 119 + .../model/processor-schema-entry-response.ts | 60 + .../src/generated/model/processor-type.ts | 32 + .../src/generated/model/source.ts | 36 + .../src/generated/package.json | 27 + .../src/generated/tsconfig.json | 17 + scripts/errors/generate_errors.js | 47 +- scripts/generate-js.sh | 106 + 691 files changed, 52030 insertions(+), 26763 deletions(-) delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/README.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/client.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/go.mod delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/go.sum delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/response.go delete mode 100644 app-services-sdk-go/kafkamgmt/apiv1/client/utils.go create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/.npmignore rename {app-services-sdk-go/kafkamgmt/apiv1/client => app-services-sdk-js/packages/account-management-sdk/src/generated}/.openapi-generator-ignore (100%) create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/api/app-services-api.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/api/default-api.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/configuration.ts rename {app-services-sdk-go/kafkamgmt/apiv1/client => app-services-sdk-js/packages/account-management-sdk/src/generated}/git_push.sh (87%) create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/access-review-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/access-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/access-token-cfg.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-assignment-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-assignment-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-assignment-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-assignment.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-request-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-group.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-reference-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account-reference.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/account.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/capability-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/capability-review-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/capability-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/capability.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/certificate-serial.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/certificate.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/certificates-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cloud-account.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cloud-resource-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cloud-resource-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cloud-resource-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cloud-resource.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-authorization-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-authorization-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-metrics-nodes.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-registration-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-registration-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-resource-total.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-resource.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-transfer.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/cluster-upgrade.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/consumed-quota-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/consumed-quota-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/consumed-quota-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/consumed-quota.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/deleted-subscription-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/deleted-subscription-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/deleted-subscription-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/deleted-subscription.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/ephemeral-resource-quota.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/error-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/error-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/error-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/excess-resource-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/excess-resource.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/export-control-review-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/export-control-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-review-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-toggle-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-toggle-query-request-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-toggle-query-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/feature-toggle.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/label-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/label-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/label-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/label.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/landing-page-ctlitem-shape.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/landing-page-ctlitem.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/landing-page-estate-item.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/landing-page-link-shape.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/metric-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/metric.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/metrics-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/metrics-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/notification-contact-create-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/notification-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/one-metric.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/organization-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/organization-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/organization-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/organization-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/organization.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/permission-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/permission-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/permission-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/permission.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/plan-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/plan-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/plan-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/plan.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/pull-secret-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-cost-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-cost-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-cost-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-cost.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-rules-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-rules-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-rules-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota-rules.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/quota.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-create-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-credential-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-credential-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-credential-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-credential-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-credential.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/registry.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/related-resource-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/related-resource.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/reserved-resource-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/reserved-resource-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/reserved-resource-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/reserved-resource-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/reserved-resource.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-quota-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-quota-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-quota-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-quota-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-quota.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-review-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/resource-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding-create-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-binding.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/role.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-access-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-entitlement-status.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-feature-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-resource-review-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-resource-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-service-landing-page-schema-config-try-learn.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-service-landing-page-schema-estate.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-service-landing-page-schema.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/self-terms-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-rules-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-rules-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-rules-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku-rules.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/sku.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/skuall-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-common-fields-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-common-fields.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-create-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-metric-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-metric-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-metric-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-metric.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-patch-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-role-binding-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-role-binding-create-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-role-binding-list-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-role-binding-list.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription-role-binding.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/subscription.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary-metrics-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary-metrics.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary-vector-all-of.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary-vector.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/summary.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/support-cases-created-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/support-cases-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/template-parameter.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/terms-review-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/terms-review.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/token-authorization-request.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/model/token-authorization-response.ts create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/account-management-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/errors.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api/connector-clusters-api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api/connector-namespaces-api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api/connector-service-api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api/connector-types-api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/api/connectors-api.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/addon-parameter.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/channel.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-list-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-request-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-request.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-state.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-status-status.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster-status.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-cluster.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-configuration.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-desired-state.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-list-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-meta-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-eval-request.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-list-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-meta-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-patch-request.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-quota.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-request-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-request-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-request.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-state.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-status.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-tenant-kind.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace-tenant.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-namespace.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-request-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-request.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-state.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-status-status.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-status.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type-label-count-list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type-label-count.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type-list-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type-list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector-type.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/connector.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/kafka-connection-settings.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/object-meta.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/schema-registry-connection-settings.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/service-account.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/service-connection-settings.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/version-metadata-all-of.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/model/version-metadata.ts create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/connector-management-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/errors.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api/acls-api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api/errors-api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api/groups-api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api/records-api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/api/topics-api.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-binding-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-binding-list-page-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-binding-list-page.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-binding-order-key.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-binding.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-operation-filter.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-operation.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-pattern-type-filter.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-pattern-type.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-permission-type-filter.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-permission-type.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-resource-type-filter.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/acl-resource-type.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/config-entry.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-description-order-key.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-list.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-metrics.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-order-key.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-reset-offset-parameters.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-reset-offset-result-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-reset-offset-result-item.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-reset-offset-result.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group-state.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer-group.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/consumer.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/error-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/error-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/error-list.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/list-deprecated-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/list-deprecated.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/new-topic-input.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/node.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/offset-type.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/partition.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/record-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/record-included-property.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/record-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/record-list.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/record.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/sort-direction.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topic-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topic-order-key.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topic-settings.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topic.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topics-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topics-list.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/model/topics-to-reset-offset.ts create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/kafka-instance-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/errors.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/api/default-api.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/api/errors-api.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/api/security-api.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-provider-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-provider-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-provider.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-region-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-region-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/cloud-region.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/error-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/error-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/instant-query.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-request-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-request-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-request-payload.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-request.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/kafka-update-request.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/metrics-instant-query-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/metrics-instant-query-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/metrics-range-query-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/metrics-range-query-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/range-query.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/region-capacity-list-item.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-list-item-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-list-item.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account-request.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/service-account.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/sso-provider-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/sso-provider.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-billing-model.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-size-bytes-value-item.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/values.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/version-metadata-all-of.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/model/version-metadata.ts create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/kafka-management-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/admin-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/artifact-rules-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/artifacts-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/global-rules-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/metadata-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/search-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/system-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/users-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/api/versions-api.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-meta-data.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-owner.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-reference.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-search-results.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-state.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/artifact-type.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/configuration-property.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/content-create-request.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/download-ref.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/editable-meta-data.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/if-exists.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/limits.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/log-configuration.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/log-level.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/named-log-configuration-all-of.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/named-log-configuration.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/role-mapping.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/role-type.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/rule-type.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/rule-violation-cause.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/rule-violation-error-all-of.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/rule-violation-error.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/rule.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/searched-artifact.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/searched-version.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/sort-by.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/sort-order.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/system-info.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/update-configuration-property.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/update-role.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/update-state.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/user-info.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/version-meta-data.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/model/version-search-results.ts create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/registry-instance-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/errors.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/api/default-api.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/api/errors-api.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/api/registries-api.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/error-list-all-of.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/error-list.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry-create.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry-instance-type-value.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry-list-all-of.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry-list.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry-status-value.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/registry.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/root-type-for-registry.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/model/service-status.ts create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/registry-management-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/api/service-accounts-api.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/red-hat-error-representation.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/service-account-create-request-data.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/service-account-data.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/service-account-request-data.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/model/validation-exception-data.ts create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/service-accounts-sdk/src/generated/tsconfig.json create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/.gitignore create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/.npmignore create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/.openapi-generator-ignore create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/.openapi-generator/FILES create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/.openapi-generator/VERSION create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/README.md create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api/bridges-api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api/cloud-providers-api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api/error-catalog-api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api/processors-api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/api/schema-catalog-api.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/base.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/common.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/configuration.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/git_push.sh create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/index.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/action.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/base-filter.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-error-instance.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-error-type.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-error.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-request.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/bridge-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/cloud-provider-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/cloud-provider-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/cloud-region-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/cloud-region-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/error-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/errors-list.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/index.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/list-all-of.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/list.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/managed-resource-status.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/model-error.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/object-reference.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processing-error-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processing-error-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-catalog-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-list-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-request.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-schema-entry-response.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/processor-type.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/model/source.ts create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/package.json create mode 100644 app-services-sdk-js/packages/smart-events-management-sdk/src/generated/tsconfig.json create mode 100644 scripts/generate-js.sh diff --git a/.errors/errors_kafka_mgmt.json b/.errors/errors_kafka_mgmt.json index cccd02fa..44bfb38b 100644 --- a/.errors/errors_kafka_mgmt.json +++ b/.errors/errors_kafka_mgmt.json @@ -292,7 +292,7 @@ "code": "KAFKAS-MGMT-121" }, { - "reason": "Too Many requests", + "reason": "Too many requests", "id": "429", "kind": "Error", "href": "/api/kafkas_mgmt/v1/errors/429", diff --git a/.errors/index.js b/.errors/index.js index 07ac96a4..04d2cdbe 100644 --- a/.errors/index.js +++ b/.errors/index.js @@ -15,6 +15,24 @@ module.exports ={ definition: require("./errors_connector_mgmt.json"), file: "app-services-sdk-go/connectormgmt/apiv1/error/errors.go" }, + }, + js : { + kafka: { + definition: require("./errors_kafka_mgmt.json"), + file: "app-services-sdk-js/packages/kafka-management-sdk/src/errors.ts" + }, + srs: { + definition: require("./errors_srs_mgmt.json"), + file: "app-services-sdk-js/packages/registry-management-sdk/src/errors.ts" + }, + connector: { + definition: require("./errors_connector_mgmt.json"), + file: "app-services-sdk-js/packages/connector-management-sdk/src/errors.ts" + }, + kafkainstance: { + definition: require("./errors_kafka_instance.json"), + file: "app-services-sdk-js/packages/kafka-instance-sdk/src/errors.ts" + }, } } diff --git a/.github/workflows/generate-sdks.yaml b/.github/workflows/generate-sdks.yaml index 8f2caa42..d2a2de02 100644 --- a/.github/workflows/generate-sdks.yaml +++ b/.github/workflows/generate-sdks.yaml @@ -11,7 +11,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Generate SDKs - run: bash scripts/generate-go.sh + run: | + bash scripts/generate-go.sh + bash scripts/generate-js.sh - name: Make pull request uses: peter-evans/create-pull-request@v4 with: diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore b/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore deleted file mode 100644 index daf913b1..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES deleted file mode 100644 index 78796d25..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/FILES +++ /dev/null @@ -1,102 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -api_default.go -api_errors.go -api_security.go -client.go -configuration.go -docs/CloudProvider.md -docs/CloudProviderList.md -docs/CloudProviderListAllOf.md -docs/CloudRegion.md -docs/CloudRegionList.md -docs/CloudRegionListAllOf.md -docs/DefaultApi.md -docs/Error.md -docs/ErrorList.md -docs/ErrorListAllOf.md -docs/ErrorsApi.md -docs/InstantQuery.md -docs/KafkaRequest.md -docs/KafkaRequestAllOf.md -docs/KafkaRequestList.md -docs/KafkaRequestListAllOf.md -docs/KafkaRequestPayload.md -docs/KafkaUpdateRequest.md -docs/List.md -docs/MetricsInstantQueryList.md -docs/MetricsInstantQueryListAllOf.md -docs/MetricsRangeQueryList.md -docs/MetricsRangeQueryListAllOf.md -docs/ObjectReference.md -docs/RangeQuery.md -docs/RegionCapacityListItem.md -docs/SecurityApi.md -docs/ServiceAccount.md -docs/ServiceAccountAllOf.md -docs/ServiceAccountList.md -docs/ServiceAccountListAllOf.md -docs/ServiceAccountListItem.md -docs/ServiceAccountListItemAllOf.md -docs/ServiceAccountRequest.md -docs/SsoProvider.md -docs/SsoProviderAllOf.md -docs/SupportedKafkaBillingModel.md -docs/SupportedKafkaInstanceType.md -docs/SupportedKafkaInstanceTypesList.md -docs/SupportedKafkaInstanceTypesListAllOf.md -docs/SupportedKafkaSize.md -docs/SupportedKafkaSizeBytesValueItem.md -docs/Values.md -docs/VersionMetadata.md -docs/VersionMetadataAllOf.md -git_push.sh -go.mod -go.sum -model_cloud_provider.go -model_cloud_provider_list.go -model_cloud_provider_list_all_of.go -model_cloud_region.go -model_cloud_region_list.go -model_cloud_region_list_all_of.go -model_error.go -model_error_list.go -model_error_list_all_of.go -model_instant_query.go -model_kafka_request.go -model_kafka_request_all_of.go -model_kafka_request_list.go -model_kafka_request_list_all_of.go -model_kafka_request_payload.go -model_kafka_update_request.go -model_list.go -model_metrics_instant_query_list.go -model_metrics_instant_query_list_all_of.go -model_metrics_range_query_list.go -model_metrics_range_query_list_all_of.go -model_object_reference.go -model_range_query.go -model_region_capacity_list_item.go -model_service_account.go -model_service_account_all_of.go -model_service_account_list.go -model_service_account_list_all_of.go -model_service_account_list_item.go -model_service_account_list_item_all_of.go -model_service_account_request.go -model_sso_provider.go -model_sso_provider_all_of.go -model_supported_kafka_billing_model.go -model_supported_kafka_instance_type.go -model_supported_kafka_instance_types_list.go -model_supported_kafka_instance_types_list_all_of.go -model_supported_kafka_size.go -model_supported_kafka_size_bytes_value_item.go -model_values.go -model_version_metadata.go -model_version_metadata_all_of.go -response.go -utils.go diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION b/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION deleted file mode 100644 index 7cbea073..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.2.0 \ No newline at end of file diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml b/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml deleted file mode 100644 index f5cb2ce9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/README.md b/app-services-sdk-go/kafkamgmt/apiv1/client/README.md deleted file mode 100644 index 9b239729..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/README.md +++ /dev/null @@ -1,184 +0,0 @@ -# Go API client for kafkamgmtclient - -Kafka Management API is a REST API to manage Kafka instances - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 1.13.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.GoClientCodegen - -## Installation - -Install the following dependencies: - -```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/oauth2 -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```golang -import sw "./kafkamgmtclient" -``` - -To use a proxy, set the environment variable `HTTP_PROXY`: - -```golang -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") -``` - -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. - -### Select Server Configuration - -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. - -```golang -ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) -``` - -### Templated Server URL - -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. - -```golang -ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. - -``` -ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.openshift.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**CreateKafka**](docs/DefaultApi.md#createkafka) | **Post** /api/kafkas_mgmt/v1/kafkas | -*DefaultApi* | [**DeleteKafkaById**](docs/DefaultApi.md#deletekafkabyid) | **Delete** /api/kafkas_mgmt/v1/kafkas/{id} | -*DefaultApi* | [**FederateMetrics**](docs/DefaultApi.md#federatemetrics) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate | -*DefaultApi* | [**GetCloudProviderRegions**](docs/DefaultApi.md#getcloudproviderregions) | **Get** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | -*DefaultApi* | [**GetCloudProviders**](docs/DefaultApi.md#getcloudproviders) | **Get** /api/kafkas_mgmt/v1/cloud_providers | -*DefaultApi* | [**GetInstanceTypesByCloudProviderAndRegion**](docs/DefaultApi.md#getinstancetypesbycloudproviderandregion) | **Get** /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} | -*DefaultApi* | [**GetKafkaById**](docs/DefaultApi.md#getkafkabyid) | **Get** /api/kafkas_mgmt/v1/kafkas/{id} | -*DefaultApi* | [**GetKafkas**](docs/DefaultApi.md#getkafkas) | **Get** /api/kafkas_mgmt/v1/kafkas | -*DefaultApi* | [**GetMetricsByInstantQuery**](docs/DefaultApi.md#getmetricsbyinstantquery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | -*DefaultApi* | [**GetMetricsByRangeQuery**](docs/DefaultApi.md#getmetricsbyrangequery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | -*DefaultApi* | [**GetVersionMetadata**](docs/DefaultApi.md#getversionmetadata) | **Get** /api/kafkas_mgmt/v1 | -*DefaultApi* | [**UpdateKafkaById**](docs/DefaultApi.md#updatekafkabyid) | **Patch** /api/kafkas_mgmt/v1/kafkas/{id} | -*ErrorsApi* | [**GetErrorById**](docs/ErrorsApi.md#geterrorbyid) | **Get** /api/kafkas_mgmt/v1/errors/{id} | -*ErrorsApi* | [**GetErrors**](docs/ErrorsApi.md#geterrors) | **Get** /api/kafkas_mgmt/v1/errors | -*SecurityApi* | [**CreateServiceAccount**](docs/SecurityApi.md#createserviceaccount) | **Post** /api/kafkas_mgmt/v1/service_accounts | -*SecurityApi* | [**DeleteServiceAccountById**](docs/SecurityApi.md#deleteserviceaccountbyid) | **Delete** /api/kafkas_mgmt/v1/service_accounts/{id} | -*SecurityApi* | [**GetServiceAccountById**](docs/SecurityApi.md#getserviceaccountbyid) | **Get** /api/kafkas_mgmt/v1/service_accounts/{id} | -*SecurityApi* | [**GetServiceAccounts**](docs/SecurityApi.md#getserviceaccounts) | **Get** /api/kafkas_mgmt/v1/service_accounts | -*SecurityApi* | [**GetSsoProviders**](docs/SecurityApi.md#getssoproviders) | **Get** /api/kafkas_mgmt/v1/sso_providers | -*SecurityApi* | [**ResetServiceAccountCreds**](docs/SecurityApi.md#resetserviceaccountcreds) | **Post** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | - - -## Documentation For Models - - - [CloudProvider](docs/CloudProvider.md) - - [CloudProviderList](docs/CloudProviderList.md) - - [CloudProviderListAllOf](docs/CloudProviderListAllOf.md) - - [CloudRegion](docs/CloudRegion.md) - - [CloudRegionList](docs/CloudRegionList.md) - - [CloudRegionListAllOf](docs/CloudRegionListAllOf.md) - - [Error](docs/Error.md) - - [ErrorList](docs/ErrorList.md) - - [ErrorListAllOf](docs/ErrorListAllOf.md) - - [InstantQuery](docs/InstantQuery.md) - - [KafkaRequest](docs/KafkaRequest.md) - - [KafkaRequestAllOf](docs/KafkaRequestAllOf.md) - - [KafkaRequestList](docs/KafkaRequestList.md) - - [KafkaRequestListAllOf](docs/KafkaRequestListAllOf.md) - - [KafkaRequestPayload](docs/KafkaRequestPayload.md) - - [KafkaUpdateRequest](docs/KafkaUpdateRequest.md) - - [List](docs/List.md) - - [MetricsInstantQueryList](docs/MetricsInstantQueryList.md) - - [MetricsInstantQueryListAllOf](docs/MetricsInstantQueryListAllOf.md) - - [MetricsRangeQueryList](docs/MetricsRangeQueryList.md) - - [MetricsRangeQueryListAllOf](docs/MetricsRangeQueryListAllOf.md) - - [ObjectReference](docs/ObjectReference.md) - - [RangeQuery](docs/RangeQuery.md) - - [RegionCapacityListItem](docs/RegionCapacityListItem.md) - - [ServiceAccount](docs/ServiceAccount.md) - - [ServiceAccountAllOf](docs/ServiceAccountAllOf.md) - - [ServiceAccountList](docs/ServiceAccountList.md) - - [ServiceAccountListAllOf](docs/ServiceAccountListAllOf.md) - - [ServiceAccountListItem](docs/ServiceAccountListItem.md) - - [ServiceAccountListItemAllOf](docs/ServiceAccountListItemAllOf.md) - - [ServiceAccountRequest](docs/ServiceAccountRequest.md) - - [SsoProvider](docs/SsoProvider.md) - - [SsoProviderAllOf](docs/SsoProviderAllOf.md) - - [SupportedKafkaBillingModel](docs/SupportedKafkaBillingModel.md) - - [SupportedKafkaInstanceType](docs/SupportedKafkaInstanceType.md) - - [SupportedKafkaInstanceTypesList](docs/SupportedKafkaInstanceTypesList.md) - - [SupportedKafkaInstanceTypesListAllOf](docs/SupportedKafkaInstanceTypesListAllOf.md) - - [SupportedKafkaSize](docs/SupportedKafkaSize.md) - - [SupportedKafkaSizeBytesValueItem](docs/SupportedKafkaSizeBytesValueItem.md) - - [Values](docs/Values.md) - - [VersionMetadata](docs/VersionMetadata.md) - - [VersionMetadataAllOf](docs/VersionMetadataAllOf.md) - - -## Documentation For Authorization - - - -### Bearer - -- **Type**: HTTP Bearer token authentication - -Example - -```golang -auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") -r, err := client.Service.Operation(auth, args) -``` - - -## Documentation for Utility Methods - -Due to the fact that model structure members are all pointers, this package contains -a number of utility functions to easily obtain pointers to values of basic types. -Each of these functions takes a value of the given basic type and returns a pointer to it: - -* `PtrBool` -* `PtrInt` -* `PtrInt32` -* `PtrInt64` -* `PtrFloat` -* `PtrFloat32` -* `PtrFloat64` -* `PtrString` -* `PtrTime` - -## Author - -rhosak-support@redhat.com - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml b/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml deleted file mode 100644 index 150ec9e6..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/api/openapi.yaml +++ /dev/null @@ -1,2383 +0,0 @@ -openapi: 3.0.0 -info: - contact: - email: rhosak-support@redhat.com - name: Red Hat OpenShift Streams for Apache Kafka Support - description: Kafka Management API is a REST API to manage Kafka instances - license: - name: Apache 2.0 - url: https://www.apache.org/licenses/LICENSE-2.0 - title: Kafka Management API - version: 1.13.0 -servers: -- description: Main (production) server - url: https://api.openshift.com -- description: Staging server - url: https://api.stage.openshift.com -- description: localhost - url: http://localhost:8000 -- description: current domain - url: / -tags: -- description: Errors returned by the API. - name: errors -- description: Security related endpoints. - name: security -paths: - /api/kafkas_mgmt/v1: - get: - description: Returns the kafka Service Fleet Manager API version metadata - operationId: getVersionMetadata - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/VersionMetadata' - description: Version metadata - /api/kafkas_mgmt/v1/errors/{id}: - get: - description: Returns the error by Id - operationId: getErrorById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Get error by Id - tags: - - errors - /api/kafkas_mgmt/v1/errors: - get: - description: Returns the list of possible API errors - operationId: getErrors - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorList' - description: List of possible errors - tags: - - errors - /api/kafkas_mgmt/v1/kafkas/{id}: - delete: - description: Deletes a Kafka request by ID - operationId: deleteKafkaById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: Perform the action in an asynchronous manner - explode: true - in: query - name: async - required: true - schema: - type: boolean - style: form - responses: - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Deleted - "400": - content: - application/json: - examples: - "400DeletionExample": - $ref: '#/components/examples/400DeletionExample' - schema: - $ref: '#/components/schemas/Error' - description: Validation errors occurred - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "404": - content: - application/json: - examples: - "404DeleteExample": - $ref: '#/components/examples/404DeleteExample' - schema: - $ref: '#/components/schemas/Error' - description: No Kafka request with specified ID exists - "500": - content: - application/json: - examples: - "500DeleteExample": - $ref: '#/components/examples/500DeleteExample' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - get: - description: Returns a Kafka request by ID - operationId: getKafkaById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - KafkaRequestGetResponseExample: - $ref: '#/components/examples/KafkaRequestExample' - KafkaRequestGetResponseWithFailedCreationStatusExample: - $ref: '#/components/examples/KafkaRequestFailedCreationStatusExample' - schema: - $ref: '#/components/schemas/KafkaRequest' - description: Kafka request found by ID - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "404": - content: - application/json: - examples: - "404Example": - $ref: '#/components/examples/404Example' - schema: - $ref: '#/components/schemas/Error' - description: No Kafka request with specified ID exists - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - patch: - description: Update a Kafka instance by id - operationId: updateKafkaById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/KafkaUpdateRequest' - description: Update owner of kafka - required: true - responses: - "200": - content: - application/json: - examples: - KafkaRequestPostResponseExample: - $ref: '#/components/examples/KafkaRequestExample' - schema: - $ref: '#/components/schemas/KafkaRequest' - description: Kafka updated by ID - "400": - content: - application/json: - examples: - MissingParameterExample: - $ref: '#/components/examples/400MissingParameterExample' - schema: - $ref: '#/components/schemas/Error' - description: Bad request - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User is not authorised to access the service - "404": - content: - application/json: - examples: - "404Example": - $ref: '#/components/examples/404Example' - schema: - $ref: '#/components/schemas/Error' - description: No Kafka found with the specified ID - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/kafkas: - get: - description: Returns a list of Kafka requests - operationId: getKafkas - parameters: - - description: Page index - examples: - page: - value: "1" - explode: true - in: query - name: page - required: false - schema: - type: string - style: form - - description: Number of items in each page - examples: - size: - value: "100" - explode: true - in: query - name: size - required: false - schema: - type: string - style: form - - description: |- - Specifies the order by criteria. The syntax of this parameter is - similar to the syntax of the `order by` clause of an SQL statement. - Each query can be ordered by any of the following `kafkaRequests` fields: - - * bootstrap_server_host - * admin_api_server_url - * cloud_provider - * cluster_id - * created_at - * href - * id - * instance_type - * multi_az - * name - * organisation_id - * owner - * reauthentication_enabled - * region - * status - * updated_at - * version - - For example, to return all Kafka instances ordered by their name, use the following syntax: - - ```sql - name asc - ``` - - To return all Kafka instances ordered by their name _and_ created date, use the following syntax: - - ```sql - name asc, created_at asc - ``` - - If the parameter isn't provided, or if the value is empty, then - the results are ordered by name. - examples: - orderBy: - value: name asc - explode: true - in: query - name: orderBy - required: false - schema: - type: string - style: form - - description: | - Search criteria. - - The syntax of this parameter is similar to the syntax of the `where` clause of an - SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. - Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. - - Examples: - - To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: - - ``` - name = my-kafka and cloud_provider = aws - ```[p-] - - To return a Kafka instance with a name that starts with `my`, use the following syntax: - - ``` - name like my%25 - ``` - - To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: - - ``` - name ilike %25test%25 - ``` - - If the parameter isn't provided, or if the value is empty, then all the Kafka instances - that the user has permission to see are returned. - - Note. If the query is invalid, an error is returned. - examples: - search: - value: name = my-kafka and cloud_provider = aws - explode: true - in: query - name: search - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/KafkaRequestList' - description: A list of Kafka requests - "400": - content: - application/json: - examples: - InvalidQueryExample: - $ref: '#/components/examples/400InvalidQueryExample' - schema: - $ref: '#/components/schemas/Error' - description: Bad request - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - post: - description: Creates a Kafka request - operationId: createKafka - parameters: - - description: Perform the action in an asynchronous manner - explode: true - in: query - name: async - required: true - schema: - type: boolean - style: form - requestBody: - content: - application/json: - examples: - USRegion: - $ref: '#/components/examples/USRegionExample' - EURegion: - $ref: '#/components/examples/EURegionExample' - ExplicitSizeExample: - $ref: '#/components/examples/ExplicitSizeExample' - schema: - $ref: '#/components/schemas/KafkaRequestPayload' - description: Kafka data - required: true - responses: - "202": - content: - application/json: - examples: - KafkaRequestPostResponseExample: - $ref: '#/components/examples/KafkaRequestExample' - schema: - $ref: '#/components/schemas/KafkaRequest' - description: Accepted - "400": - content: - application/json: - examples: - "400CreationExample": - $ref: '#/components/examples/400CreationExample' - schema: - $ref: '#/components/schemas/Error' - description: Validation errors occurred - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - "403MaxAllowedInstanceReachedExample": - $ref: '#/components/examples/403MaxAllowedInstanceReachedExample' - "403TermsNotAcceptedExample": - $ref: '#/components/examples/403TermsNotAcceptedExample' - schema: - $ref: '#/components/schemas/Error' - description: User forbidden either because the user is not authorized to - access the service or because the maximum number of instances that can - be created by this user has been reached. - "404": - content: - application/json: - examples: - "404Example": - $ref: '#/components/examples/404Example' - schema: - $ref: '#/components/schemas/Error' - description: The requested resource doesn't exist - "409": - content: - application/json: - examples: - "409NameConflictExample": - $ref: '#/components/examples/409NameConflictExample' - schema: - $ref: '#/components/schemas/Error' - description: A conflict has been detected in the creation of this resource - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: An unexpected error occurred while creating the Kafka request - security: - - Bearer: [] - /api/kafkas_mgmt/v1/cloud_providers: - get: - description: Returns the list of supported cloud providers - operationId: getCloudProviders - parameters: - - description: Page index - examples: - page: - value: "1" - explode: true - in: query - name: page - required: false - schema: - type: string - style: form - - description: Number of items in each page - examples: - size: - value: "100" - explode: true - in: query - name: size - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CloudProviderList' - description: Returned list of supported cloud providers - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/cloud_providers/{id}/regions: - get: - description: Returns the list of supported regions of the supported cloud provider - operationId: getCloudProviderRegions - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: Page index - examples: - page: - value: "1" - explode: true - in: query - name: page - required: false - schema: - type: string - style: form - - description: Number of items in each page - examples: - size: - value: "100" - explode: true - in: query - name: size - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CloudRegionList' - description: Returned list of supported cloud provider regions - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}: - get: - description: Returns the list of supported Kafka instance types and sizes filtered - by cloud provider and region - operationId: getInstanceTypesByCloudProviderAndRegion - parameters: - - description: ID of the supported cloud provider - explode: false - in: path - name: cloud_provider - required: true - schema: - type: string - style: simple - - description: Name of the supported cloud provider region - explode: false - in: path - name: cloud_region - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SupportedKafkaInstanceTypesList' - description: Returned list of supported Kafka instance types and sizes filtered - by cloud provider and region - "400": - content: - application/json: - examples: - "400UnsupportedRegionExample": - $ref: '#/components/examples/400UnsupportedRegionExample' - "400UnsupportedProviderExample": - $ref: '#/components/examples/400UnsupportedProviderExample' - schema: - $ref: '#/components/schemas/Error' - description: Cloud provider or region is not supported - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/service_accounts: - get: - description: Returns a list of service accounts - operationId: getServiceAccounts - parameters: - - description: client_id of the service account to be retrieved - explode: true - in: query - name: client_id - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ServiceAccountList' - description: Returned list of service accounts - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - tags: - - security - post: - description: Creates a service account - operationId: createServiceAccount - requestBody: - content: - application/json: - examples: - sa: - $ref: '#/components/examples/ServiceAccountRequestExample' - schema: - $ref: '#/components/schemas/ServiceAccountRequest' - description: Service account request - required: true - responses: - "200": - content: - application/json: - examples: - serviceaccount: - $ref: '#/components/examples/ServiceAccountExample' - schema: - $ref: '#/components/schemas/ServiceAccount' - description: Service account created - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "403Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: List of service accounts - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - tags: - - security - /api/kafkas_mgmt/v1/service_accounts/{id}: - delete: - description: Deletes a service account by ID - operationId: deleteServiceAccountById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "204": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Deleted - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: {} - description: Unexpected error occurred - security: - - Bearer: [] - tags: - - security - description: Get the service account with the given id - get: - description: Returned service account by ID - operationId: getServiceAccountById - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - sa: - $ref: '#/components/examples/ServiceAccountByIdExample' - schema: - $ref: '#/components/schemas/ServiceAccount' - description: Returns a service account by ID - security: - - Bearer: [] - tags: - - security - /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials: - post: - description: Resets the credentials for a service account by ID - operationId: resetServiceAccountCreds - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - sa-reset: - $ref: '#/components/examples/ServiceAccountExample' - schema: - $ref: '#/components/schemas/ServiceAccount' - description: Reset credentials - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "403": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/403Example' - schema: - $ref: '#/components/schemas/Error' - description: User not authorized to access the service - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: {} - description: Unexpected error occurred - security: - - Bearer: [] - tags: - - security - /api/kafkas_mgmt/v1/sso_providers: - get: - description: Return sso provider info - operationId: getSsoProviders - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SsoProvider' - description: Returned list of supported cloud providers - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - tags: - - security - /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range: - get: - description: Returns metrics with timeseries range query by Kafka ID - operationId: getMetricsByRangeQuery - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: The length of time in minutes for which to return the metrics - examples: - duration: - value: 5 - explode: true - in: query - name: duration - required: true - schema: - default: 5 - format: int64 - maximum: 4320 - minimum: 1 - type: integer - style: form - - description: The interval in seconds between data points - examples: - interval: - value: 30 - explode: true - in: query - name: interval - required: true - schema: - default: 30 - format: int64 - maximum: 10800 - minimum: 1 - type: integer - style: form - - description: List of metrics to fetch. Fetch all metrics when empty. List - entries are Kafka internal metric names. - explode: true - in: query - name: filters - required: false - schema: - default: [] - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MetricsRangeQueryList' - description: Returned JSON array of Prometheus metrics objects from observatorium - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query: - get: - description: Returns metrics with instant query by Kafka ID - operationId: getMetricsByInstantQuery - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - - description: List of metrics to fetch. Fetch all metrics when empty. List - entries are Kafka internal metric names. - explode: true - in: query - name: filters - required: false - schema: - default: [] - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MetricsInstantQueryList' - description: Returned JSON array of Prometheus metrics objects from observatorium - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] - /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate: - get: - description: Returns all metrics in scrapeable format for a given kafka id - operationId: federateMetrics - parameters: - - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - text/plain: - schema: - type: string - description: Returned Kafka metrics in a Prometheus text format - "400": - content: - application/json: - examples: - MissingParameterExample: - $ref: '#/components/examples/400MissingParameterExample' - schema: - $ref: '#/components/schemas/Error' - description: Bad request - "401": - content: - application/json: - examples: - "401Example": - $ref: '#/components/examples/401Example' - schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid - "404": - content: - application/json: - examples: - "404Example": - $ref: '#/components/examples/404Example' - schema: - $ref: '#/components/schemas/Error' - description: Kafka id not found - "500": - content: - application/json: - examples: - "500Example": - $ref: '#/components/examples/500Example' - schema: - $ref: '#/components/schemas/Error' - description: Unexpected error occurred - security: - - Bearer: [] -components: - examples: - USRegionExample: - value: - region: us-east-1 - cloud_provider: aws - name: serviceapitest - EURegionExample: - value: - region: eu-west-1 - cloud_provider: aws - name: serviceapitest - ExplicitSizeExample: - value: - region: us-east-1 - cloud_provider: aws - name: test_kafka - plan: standard.x1 - KafkaRequestExample: - value: - id: 1iSY6RQ3JKI8Q0OTmjQFd3ocFRg - kind: kafka - href: /api/kafkas_mgmt/v1/kafkas/1iSY6RQ3JKI8Q0OTmjQFd3ocFRg - status: ready - cloud_provider: aws - multi_az: true - region: us-east-1 - owner: api_kafka_service - name: serviceapi - bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org - admin_api_server_url: https://admin-server-mk-e-e-e-e-c---{}ld{-}-n-vp--bltg.rhcloud.com - created_at: 2020-10-05T12:51:24.053142Z - updated_at: 2020-10-05T12:56:36.362208Z - version: 2.6.0 - instance_type: standard - browser_url: https://console.redhat.com/application-services/streams/kafkas/1isy6rq3jki8q0otmjqfd3ocfrg/dashboard - reauthentication_enabled: true - max_data_retention_size: - bytes: 1073741824000 - size_id: x1 - ingress_throughput_per_sec: 2Mi - egress_throughput_per_sec: 2Mi - total_max_connections: 100 - max_partitions: 100 - max_data_retention_period: P14D - max_connection_attempts_per_sec: 100 - billing_cloud_account_id: "123456789012" - marketplace: aws - billing_model: marketplace - KafkaRequestFailedCreationStatusExample: - value: - id: 1iSY6RQ3JKI8Q0OTmjQFd3ocFRg - kind: kafka - href: /api/kafkas_mgmt/v1/kafkas/1iSY6RQ3JKI8Q0OTmjQFd3ocFRg - status: failed - cloud_provider: aws - multi_az: true - region: us-east-1 - owner: api_kafka_service - name: serviceapi - bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org - admin_api_server_url: https://admin-server-mk-e-e-e-e-c---{}ld{-}-n-vp--bltg.rhcloud.com - created_at: 2020-10-05T12:51:24.053142Z - updated_at: 2020-10-05T12:56:36.362208Z - failed_reason: a reason the Kafka request creation failed - instance_type: standard - reauthentication_enabled: true - SupportedKafkaInstanceTypeListExample: - value: - id: developer - display_name: Trial - supported_billing_models: - - id: trial - ams_resource: rhosak - ams_product: RHOSAKTrial - ams_billing_models: - - standard - sizes: - - id: x1 - display_name: "1" - ingress_throughput_per_sec: - bytes: 31457280 - egress_throughput_per_sec: - bytes: 31457280 - total_max_connections: 3000 - max_data_retention_size: - bytes: 1073741800000 - max_partitions: 1000 - max_data_retention_period: P14D - max_connection_attempts_per_sec: 100 - quota_consumed: 1 - quota_type: rhosak - capacity_consumed: 1 - max_message_size: - bytes: 1048576 - min_in_sync_replicas: 1 - replication_factor: 1 - supported_az_modes: - - single - - multi - maturity_status: stable - CloudProviderExample: - value: - kind: CloudProvider - id: aws - name: aws - display_name: Amazon Web Services - enabled: true - CloudRegionExample: - value: - kind: CloudRegion - id: us-east-1 - display_name: US East, N. Virginia - enabled: true - capacity: - - instance_type: standard - available_sizes: - - x1 - - x2 - ServiceAccountRequestExample: - value: - name: my-app-sa - description: service account for my app - ServiceAccountExample: - value: - id: "1" - kind: ServiceAccount - href: /api/kafkas_mgmt/v1/serviceaccounts/1 - name: my-app-sa - description: service account for my app - client_id: SA-121212 - client_secret: secret - owner: test-user - created_by: test-user - created_at: 2021-04-07T16:24:01+05:30 - SsoProviderExample: - value: - name: mas_sso - base_url: https://identity.api.redhat.com - jwks: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/certs - token_url: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/token - valid_issuer: https://identity.api.openshift.com/auth/realms/rhoas - ServiceAccountByIdExample: - value: - id: "1" - kind: ServiceAccount - href: /api/kafkas_mgmt/v1/serviceaccounts/1 - name: my-app-sa - description: service account for my app - client_id: SA-121212 - owner: test-user - created_by: test-user - created_at: 2021-04-07T16:24:01+05:30 - ServiceAccountListItemExample: - value: - id: "1" - kind: ServiceAccountListItem - href: /api/kafkas_mgmt/v1/serviceaccounts/1 - name: my-app-sa - description: service account for my app - client_id: SA-121212 - owner: test-user - created_by: test-user - created_at: 2021-04-07T16:24:01+05:30 - MetricsRangeQueryExample: - value: - metric: - __name__: kafka_server_brokertopicmetrics_bytes_in_total - strimzi_io_cluster: kafka-service - topic: __consumer_offsets - values: - - timestamp: 1611670230000 - value: 84154 - - timestamp: 1611670260000 - value: 85888 - - timestamp: 1611670290000 - value: 87622 - MetricsInstantQueryExample: - value: - metric: - __name__: kafka_server_brokertopicmetrics_bytes_in_total - strimzi_io_cluster: kafka-service - topic: __consumer_offsets - timestamp: 1611670230000 - value: 84154 - "400DeletionExample": - value: - id: "103" - kind: Error - href: /api/kafkas_mgmt/v1/errors/103 - code: KAFKAS-MGMT-103 - reason: Synchronous action is not supported, use async=true parameter - operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa - "400CreationExample": - value: - id: "103" - kind: Error - href: /api/kafkas_mgmt/v1/errors/103 - code: KAFKAS-MGMT-103 - reason: Synchronous action is not supported, use async=true parameter - operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa - "400InvalidQueryExample": - value: - id: "23" - kind: Error - href: /api/kafkas_mgmt/v1/errors/23 - code: KAFKAS-MGMT-23 - reason: 'Failed to parse search query: Unable to list Kafka requests for api_kafka_service: - KAFKAS-MGMT-23: Failed to parse search query: Unsupported column name for - search: ''id''. Supported column names are: region, name, cloud_provider, - name, status. Query invalid: id = 123' - operation_id: 1lWDGuybIrEnxrAem724gqkkiDv - "400UnsupportedProviderExample": - value: - id: "30" - kind: Error - href: /api/kafkas_mgmt/v1/errors/30 - code: KAFKAS-MGMT-30 - reason: Provider not supported - operation_id: c980htvgvcn9kf51d0n0 - "400UnsupportedRegionExample": - value: - id: "31" - kind: Error - href: /api/kafkas_mgmt/v1/errors/31 - code: KAFKAS-MGMT-31 - reason: Region not supported - operation_id: c980htvgvcn9kf51d0n0 - "400MissingParameterExample": - value: - id: "21" - kind: Error - href: /api/kafkas_mgmt/v1/errors/21 - code: KAFKAS-MGMT-21 - reason: 'missing path parameter: kafka id' - operation_id: 1lWDGuybIrEnxrAem724gqkkiDv - "404Example": - value: - id: "7" - kind: Error - href: /api/kafkas_mgmt/v1/errors/7 - code: KAFKAS-MGMT-7 - reason: The requested resource doesn't exist - "404DeleteExample": - value: - id: "7" - kind: Error - href: /api/kafkas_mgmt/v1/errors/7 - code: KAFKAS-MGMT-7 - reason: KafkaResource with id='1iK3duVYIvv5YvLlyz1mGR3JyqN' not found - operation_id: 1iYO7g2g6HTdUKUa2ksH82kQD3y - "401Example": - value: - id: "11" - kind: Error - href: /api/kafkas_mgmt/v1/errors/11 - code: KAFKAS-MGMT-11 - reason: 'Unable to verify JWT token: Required authorization token not found' - operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD - "403Example": - value: - id: "4" - kind: Error - href: /api/kafkas_mgmt/v1/errors/4 - code: KAFKAS-MGMT-4 - reason: User 'foo-bar' is not authorized to access the service. - operation_id: 1lY3UiEhznXBpWPfI2lNejpd4YC - "403MaxAllowedInstanceReachedExample": - value: - id: "5" - kind: Error - href: /api/kafkas_mgmt/v1/errors/5 - code: KAFKAS-MGMT-5 - reason: User 'foo-bar' has reached a maximum number of 6 allowed streaming - units. - operation_id: 1lY3UiEkxnXBpVPeI2oNejd3XB - "403TermsNotAcceptedExample": - value: - id: "12" - kind: Error - href: /api/kafkas_mgmt/v1/errors/12 - code: KAFKAS-MGMT-12 - reason: Required terms have not been accepted - operation_id: kXCzWPeI2oXBpVPeI2LvF9jMQY - "409NameConflictExample": - value: - id: "36" - kind: Error - href: /api/kafkas_mgmt/v1/errors/36 - code: KAFKAS-MGMT-36 - reason: Kafka cluster name is already used - operation_id: 6kY0UiEkzkXCzWPeI2oYehd3ED - "500Example": - value: - id: "9" - kind: Error - href: /api/kafkas_mgmt/v1/errors/9 - code: KAFKAS-MGMT-9 - reason: Unspecified error - operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW - "500DeleteExample": - value: - id: "9" - kind: Error - href: /api/kafkas_mgmt/v1/errors/9 - code: KAFKAS-MGMT-9 - reason: 'error deleting syncset: OCM-EX-9: failed to delete syncset: ext-serviceapi-1ix03lndlmq0qfc7sita5sljv8e - for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier - is ''404'', code is ''CLUSTERS-MGMT-404'' and operation identifier is ''1g5or50viu07oealuehrkc26dgftj1ac'': - Cluster ''1g5d88q0lrcdv4g7alb7slfgnj3dhbsj'' not found)' - operation_id: 1iYTsWry6nsqb2sNmFj5bXpD7Ca - parameters: - id: - description: The ID of record - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - duration: - description: The length of time in minutes for which to return the metrics - examples: - duration: - value: 5 - explode: true - in: query - name: duration - required: true - schema: - default: 5 - format: int64 - maximum: 4320 - minimum: 1 - type: integer - style: form - interval: - description: The interval in seconds between data points - examples: - interval: - value: 30 - explode: true - in: query - name: interval - required: true - schema: - default: 30 - format: int64 - maximum: 10800 - minimum: 1 - type: integer - style: form - filters: - description: List of metrics to fetch. Fetch all metrics when empty. List entries - are Kafka internal metric names. - explode: true - in: query - name: filters - required: false - schema: - default: [] - items: - type: string - type: array - style: form - page: - description: Page index - examples: - page: - value: "1" - explode: true - in: query - name: page - required: false - schema: - type: string - style: form - size: - description: Number of items in each page - examples: - size: - value: "100" - explode: true - in: query - name: size - required: false - schema: - type: string - style: form - orderBy: - description: |- - Specifies the order by criteria. The syntax of this parameter is - similar to the syntax of the `order by` clause of an SQL statement. - Each query can be ordered by any of the following `kafkaRequests` fields: - - * bootstrap_server_host - * admin_api_server_url - * cloud_provider - * cluster_id - * created_at - * href - * id - * instance_type - * multi_az - * name - * organisation_id - * owner - * reauthentication_enabled - * region - * status - * updated_at - * version - - For example, to return all Kafka instances ordered by their name, use the following syntax: - - ```sql - name asc - ``` - - To return all Kafka instances ordered by their name _and_ created date, use the following syntax: - - ```sql - name asc, created_at asc - ``` - - If the parameter isn't provided, or if the value is empty, then - the results are ordered by name. - examples: - orderBy: - value: name asc - explode: true - in: query - name: orderBy - required: false - schema: - type: string - style: form - search: - description: | - Search criteria. - - The syntax of this parameter is similar to the syntax of the `where` clause of an - SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. - Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. - - Examples: - - To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: - - ``` - name = my-kafka and cloud_provider = aws - ```[p-] - - To return a Kafka instance with a name that starts with `my`, use the following syntax: - - ``` - name like my%25 - ``` - - To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: - - ``` - name ilike %25test%25 - ``` - - If the parameter isn't provided, or if the value is empty, then all the Kafka instances - that the user has permission to see are returned. - - Note. If the query is invalid, an error is returned. - examples: - search: - value: name = my-kafka and cloud_provider = aws - explode: true - in: query - name: search - required: false - schema: - type: string - style: form - schemas: - ObjectReference: - properties: - id: - type: string - kind: - type: string - href: - type: string - required: - - href - - id - - kind - type: object - List: - properties: - kind: - type: string - page: - type: integer - size: - type: integer - total: - type: integer - items: - items: - $ref: '#/components/schemas/ObjectReference' - type: array - required: - - items - - kind - - page - - size - - total - type: object - Error: - example: - reason: reason - code: code - kind: kind - operation_id: operation_id - id: id - href: href - properties: - reason: - type: string - operation_id: - type: string - id: - type: string - kind: - type: string - href: - type: string - code: - type: string - required: - - code - - href - - id - - kind - - reason - type: object - ErrorList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/ErrorList_allOf' - KafkaRequest: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/KafkaRequest_allOf' - KafkaRequestList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/KafkaRequestList_allOf' - VersionMetadata: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/VersionMetadata_allOf' - KafkaRequestPayload: - description: Schema for the request body sent to /kafkas POST - example: - reauthentication_enabled: true - marketplace: marketplace - billing_model: billing_model - billing_cloud_account_id: billing_cloud_account_id - name: name - cloud_provider: cloud_provider - region: region - plan: plan - properties: - cloud_provider: - description: The cloud provider where the Kafka cluster will be created - in - type: string - name: - description: The name of the Kafka cluster. It must consist of lower-case - alphanumeric characters or '-', start with an alphabetic character, and - end with an alphanumeric character, and can not be longer than 32 characters. - type: string - region: - description: The region where the Kafka cluster will be created in - type: string - reauthentication_enabled: - description: Whether connection reauthentication is enabled or not. If set - to true, connection reauthentication on the Kafka instance will be required - every 5 minutes. The default value is true - nullable: true - type: boolean - plan: - description: kafka plan in a format of . - type: string - billing_cloud_account_id: - description: cloud account id used to purchase the instance - nullable: true - type: string - marketplace: - description: marketplace where the instance is purchased on - nullable: true - type: string - billing_model: - description: billing model to use - nullable: true - type: string - required: - - name - type: object - SupportedKafkaInstanceTypesList: - allOf: - - $ref: '#/components/schemas/SupportedKafkaInstanceTypesList_allOf' - SupportedKafkaInstanceType: - description: Supported Kafka instance type - properties: - id: - description: Unique identifier of the Kafka instance type. - type: string - display_name: - description: Human readable name of the supported Kafka instance type - type: string - supported_billing_models: - description: A list of available kafka billing models for the instance type. - Each kafka billing model item has a unique 'id' - items: - $ref: '#/components/schemas/SupportedKafkaBillingModel' - minItems: 1 - type: array - sizes: - description: A list of Kafka instance sizes available for this instance - type - items: - allOf: - - $ref: '#/components/schemas/SupportedKafkaSize' - type: array - required: - - supported_billing_models - type: object - SupportedKafkaBillingModel: - description: Supported Kafka Billing Model - properties: - id: - description: Identifier for the Kafka billing model - minLength: 1 - type: string - ams_resource: - description: 'AMS resource to be used. Accepted values: [''rhosak'']' - minLength: 1 - type: string - ams_product: - description: 'AMS product to be used. Accepted values: [''RHOSAK'', ''RHOSAKTrial'', - ''RHOSAKEval'']' - minLength: 1 - type: string - ams_billing_models: - description: 'List of AMS available billing models: Accepted values: [''marketplace'', - ''marketplace-rhm'', ''marketplace-aws'']' - items: - minLength: 1 - type: string - minItems: 1 - type: array - required: - - ams_billing_models - - ams_product - - ams_resource - - id - type: object - SupportedKafkaSize: - description: Supported Kafka Size - properties: - id: - description: Unique identifier of this Kafka instance size. - type: string - display_name: - description: Display name of this Kafka instance size. - type: string - ingress_throughput_per_sec: - $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' - egress_throughput_per_sec: - $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' - total_max_connections: - description: Maximum amount of total connections available to this Kafka - instance size. - type: integer - max_data_retention_size: - $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' - max_partitions: - description: Maximum amount of total partitions available to this Kafka - instance size. - type: integer - max_data_retention_period: - description: Maximum data retention period available to this Kafka instance - size. - type: string - max_connection_attempts_per_sec: - description: Maximium connection attempts per second available to this Kafka - instance size. - type: integer - max_message_size: - $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' - min_in_sync_replicas: - description: Minimum number of in-sync replicas. - type: integer - replication_factor: - description: Replication factor available to this Kafka instance size. - type: integer - supported_az_modes: - description: List of Availability Zone modes that this Kafka instance size - supports. The possible values are "single", "multi". - items: - type: string - type: array - lifespan_seconds: - description: The limit lifespan of the kafka instance in seconds. If not - specified then the instance never expires. - nullable: true - type: integer - quota_consumed: - description: Quota consumed by this Kafka instance size. - type: integer - quota_type: - deprecated: true - description: Quota type used by this Kafka instance size. This is now deprecated, - please refer to supported_billing_models at instance-type level instead. - type: string - capacity_consumed: - description: Data plane cluster capacity consumed by this Kafka instance - size. - type: integer - maturity_status: - description: Maturity level of the size. Can be "stable" or "preview". - type: string - type: object - SupportedKafkaSizeBytesValueItem: - properties: - bytes: - format: int64 - type: integer - type: object - CloudProviderList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/CloudProviderList_allOf' - CloudRegionList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/CloudRegionList_allOf' - CloudProvider: - description: Cloud provider. - properties: - kind: - description: Indicates the type of this object. Will be 'CloudProvider' - link. - type: string - id: - description: Unique identifier of the object. - type: string - display_name: - description: Name of the cloud provider for display purposes. - type: string - name: - description: Human friendly identifier of the cloud provider, for example - `aws`. - type: string - enabled: - description: Whether the cloud provider is enabled for deploying an OSD - cluster. - type: boolean - required: - - enabled - CloudRegion: - description: Description of a region of a cloud provider. - properties: - kind: - description: Indicates the type of this object. Will be 'CloudRegion'. - type: string - id: - description: Unique identifier of the object. - type: string - display_name: - description: Name of the region for display purposes, for example `N. Virginia`. - type: string - enabled: - default: false - description: Whether the region is enabled for deploying an OSD cluster. - type: boolean - capacity: - description: Indicates whether there is capacity left per instance type - items: - $ref: '#/components/schemas/RegionCapacityListItem' - type: array - required: - - capacity - - enabled - ServiceAccount: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/ServiceAccount_allOf' - description: Service Account created in MAS-SSO for the Kafka Cluster for authentication - ServiceAccountRequest: - description: Schema for the request to create a service account - example: - $ref: '#/components/examples/ServiceAccountRequestExample' - properties: - name: - description: The name of the service account - type: string - description: - description: A description for the service account - type: string - required: - - name - type: object - RegionCapacityListItem: - description: schema for a kafka instance type capacity in region - properties: - instance_type: - description: kafka instance type - type: string - available_sizes: - description: list of available Kafka instance sizes that can be created - in this region when taking account current capacity and regional limits - items: - type: string - type: array - required: - - available_sizes - - instance_type - type: object - ServiceAccountListItem: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/ServiceAccountListItem_allOf' - ServiceAccountList: - allOf: - - $ref: '#/components/schemas/ServiceAccountList_allOf' - SsoProvider: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/SsoProvider_allOf' - description: SSO Provider - MetricsRangeQueryList: - allOf: - - $ref: '#/components/schemas/MetricsRangeQueryList_allOf' - RangeQuery: - properties: - metric: - additionalProperties: - type: string - type: object - values: - items: - $ref: '#/components/schemas/Values' - type: array - type: object - Values: - properties: - timestamp: - format: int64 - type: integer - value: - format: double - type: number - required: - - value - type: object - MetricsInstantQueryList: - allOf: - - $ref: '#/components/schemas/MetricsInstantQueryList_allOf' - InstantQuery: - properties: - metric: - additionalProperties: - type: string - type: object - timestamp: - format: int64 - type: integer - value: - format: double - type: number - required: - - value - type: object - KafkaUpdateRequest: - example: - owner: owner - reauthentication_enabled: true - properties: - owner: - nullable: true - type: string - reauthentication_enabled: - description: Whether connection reauthentication is enabled or not. If set - to true, connection reauthentication on the Kafka instance will be required - every 5 minutes. - nullable: true - type: boolean - type: object - ErrorList_allOf: - properties: - items: - items: - $ref: '#/components/schemas/Error' - type: array - type: object - KafkaRequest_allOf: - example: - $ref: '#/components/examples/KafkaRequestExample' - properties: - status: - description: 'Values: [accepted, preparing, provisioning, ready, failed, - deprovision, deleting] ' - type: string - cloud_provider: - description: Name of Cloud used to deploy. For example AWS - type: string - multi_az: - type: boolean - region: - description: 'Values will be regions of specific cloud provider. For example: - us-east-1 for AWS' - type: string - owner: - type: string - name: - type: string - bootstrap_server_host: - type: string - admin_api_server_url: - description: The kafka admin server url to perform kafka admin operations - e.g acl management etc. The value will be available when the Kafka has - been fully provisioned i.e it reaches a 'ready' state - type: string - created_at: - format: date-time - type: string - expires_at: - format: date-time - nullable: true - type: string - updated_at: - format: date-time - type: string - failed_reason: - type: string - version: - type: string - instance_type: - type: string - instance_type_name: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: string - reauthentication_enabled: - type: boolean - kafka_storage_size: - deprecated: true - description: Maximum data storage available to this Kafka. This is now deprecated, - please use max_data_retention_size instead. - type: string - max_data_retention_size: - $ref: '#/components/schemas/SupportedKafkaSizeBytesValueItem' - browser_url: - type: string - size_id: - type: string - ingress_throughput_per_sec: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: string - egress_throughput_per_sec: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: string - total_max_connections: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: integer - max_partitions: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: integer - max_data_retention_period: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: string - max_connection_attempts_per_sec: - deprecated: true - description: This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} - endpoint to retrieve the field instead. - type: integer - billing_cloud_account_id: - type: string - marketplace: - type: string - billing_model: - type: string - required: - - multi_az - - reauthentication_enabled - type: object - KafkaRequestList_allOf: - example: - kind: KafkaRequestList - page: "1" - size: "1" - total: "1" - item: - $ref: '#/components/examples/KafkaRequestExample' - properties: - items: - items: - allOf: - - $ref: '#/components/schemas/KafkaRequest' - type: array - type: object - VersionMetadata_allOf: - example: - kind: APIVersion - id: v1 - href: /api/kafkas_mgmt/v1 - server_version: 24a263e8631d713b3104c1a70c143644ab91de6f - collections: - - id: kafkas - href: /api/kafkas_mgmt/v1/kafkas - kind: KafkaList - properties: - server_version: - type: string - collections: - items: - allOf: - - $ref: '#/components/schemas/ObjectReference' - type: array - type: object - SupportedKafkaInstanceTypesList_allOf: - example: - instance_types: - $ref: '#/components/examples/SupportedKafkaInstanceTypeListExample' - properties: - instance_types: - items: - allOf: - - $ref: '#/components/schemas/SupportedKafkaInstanceType' - type: array - type: object - CloudProviderList_allOf: - example: - kind: CloudProviderList - page: "1" - size: "1" - total: "1" - item: - $ref: '#/components/examples/CloudProviderExample' - properties: - items: - items: - allOf: - - $ref: '#/components/schemas/CloudProvider' - type: array - type: object - CloudRegionList_allOf: - example: - kind: CloudRegionList - page: "1" - size: "1" - total: "1" - item: - $ref: '#/components/examples/CloudRegionExample' - properties: - items: - items: - allOf: - - $ref: '#/components/schemas/CloudRegion' - type: array - type: object - ServiceAccount_allOf: - example: - $ref: '#/components/examples/ServiceAccountExample' - properties: - id: - description: server generated unique id of the service account - type: string - name: - type: string - description: - type: string - client_id: - type: string - client_secret: - type: string - owner: - deprecated: true - type: string - created_by: - type: string - created_at: - format: date-time - type: string - type: object - ServiceAccountListItem_allOf: - properties: - id: - description: server generated unique id of the service account - type: string - client_id: - description: client id of the service account - type: string - name: - description: name of the service account - type: string - owner: - deprecated: true - description: owner of the service account - type: string - created_by: - description: service account created by the user - type: string - created_at: - description: service account creation timestamp - format: date-time - type: string - description: - description: description of the service account - type: string - type: object - ServiceAccountList_allOf: - example: - kind: ServiceAccountList - items: - - $ref: '#/components/examples/ServiceAccountListItemExample' - properties: - kind: - type: string - items: - items: - allOf: - - $ref: '#/components/schemas/ServiceAccountListItem' - type: array - required: - - items - - kind - type: object - SsoProvider_allOf: - example: - $ref: '#/components/examples/SsoProviderExample' - properties: - name: - description: name of the sso provider - type: string - base_url: - description: base url - type: string - token_url: - type: string - jwks: - type: string - valid_issuer: - type: string - type: object - MetricsRangeQueryList_allOf: - example: - kind: MetricsRangeQueryList - id: 1nbpS70HduPe4l0to8jSg2CLzfu - items: - $ref: '#/components/examples/MetricsRangeQueryExample' - properties: - kind: - type: string - id: - type: string - items: - items: - allOf: - - $ref: '#/components/schemas/RangeQuery' - type: array - type: object - MetricsInstantQueryList_allOf: - example: - kind: MetricsInstantQueryList - id: 1nbpS70HduPe4l0to8jSg2CLzfu - items: - $ref: '#/components/examples/MetricsInstantQueryExample' - properties: - kind: - type: string - id: - type: string - items: - items: - allOf: - - $ref: '#/components/schemas/InstantQuery' - type: array - type: object - securitySchemes: - Bearer: - bearerFormat: JWT - scheme: bearer - type: http diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go deleted file mode 100644 index 6d7ea4fe..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/api_default.go +++ /dev/null @@ -1,2013 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" - "reflect" -) - -// Linger please -var ( - _ _context.Context -) - -type DefaultApi interface { - - /* - * CreateKafka Method for CreateKafka - * Creates a Kafka request - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateKafkaRequest - */ - CreateKafka(ctx _context.Context) ApiCreateKafkaRequest - - /* - * CreateKafkaExecute executes the request - * @return KafkaRequest - */ - CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) - - /* - * DeleteKafkaById Method for DeleteKafkaById - * Deletes a Kafka request by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiDeleteKafkaByIdRequest - */ - DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest - - /* - * DeleteKafkaByIdExecute executes the request - * @return Error - */ - DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) - - /* - * FederateMetrics Method for FederateMetrics - * Returns all metrics in scrapeable format for a given kafka id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiFederateMetricsRequest - */ - FederateMetrics(ctx _context.Context, id string) ApiFederateMetricsRequest - - /* - * FederateMetricsExecute executes the request - * @return string - */ - FederateMetricsExecute(r ApiFederateMetricsRequest) (string, *_nethttp.Response, error) - - /* - * GetCloudProviderRegions Method for GetCloudProviderRegions - * Returns the list of supported regions of the supported cloud provider - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetCloudProviderRegionsRequest - */ - GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest - - /* - * GetCloudProviderRegionsExecute executes the request - * @return CloudRegionList - */ - GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) - - /* - * GetCloudProviders Method for GetCloudProviders - * Returns the list of supported cloud providers - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetCloudProvidersRequest - */ - GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest - - /* - * GetCloudProvidersExecute executes the request - * @return CloudProviderList - */ - GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) - - /* - * GetInstanceTypesByCloudProviderAndRegion Method for GetInstanceTypesByCloudProviderAndRegion - * Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param cloudProvider ID of the supported cloud provider - * @param cloudRegion Name of the supported cloud provider region - * @return ApiGetInstanceTypesByCloudProviderAndRegionRequest - */ - GetInstanceTypesByCloudProviderAndRegion(ctx _context.Context, cloudProvider string, cloudRegion string) ApiGetInstanceTypesByCloudProviderAndRegionRequest - - /* - * GetInstanceTypesByCloudProviderAndRegionExecute executes the request - * @return SupportedKafkaInstanceTypesList - */ - GetInstanceTypesByCloudProviderAndRegionExecute(r ApiGetInstanceTypesByCloudProviderAndRegionRequest) (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) - - /* - * GetKafkaById Method for GetKafkaById - * Returns a Kafka request by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetKafkaByIdRequest - */ - GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest - - /* - * GetKafkaByIdExecute executes the request - * @return KafkaRequest - */ - GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) - - /* - * GetKafkas Method for GetKafkas - * Returns a list of Kafka requests - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetKafkasRequest - */ - GetKafkas(ctx _context.Context) ApiGetKafkasRequest - - /* - * GetKafkasExecute executes the request - * @return KafkaRequestList - */ - GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) - - /* - * GetMetricsByInstantQuery Method for GetMetricsByInstantQuery - * Returns metrics with instant query by Kafka ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetMetricsByInstantQueryRequest - */ - GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest - - /* - * GetMetricsByInstantQueryExecute executes the request - * @return MetricsInstantQueryList - */ - GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) - - /* - * GetMetricsByRangeQuery Method for GetMetricsByRangeQuery - * Returns metrics with timeseries range query by Kafka ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetMetricsByRangeQueryRequest - */ - GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest - - /* - * GetMetricsByRangeQueryExecute executes the request - * @return MetricsRangeQueryList - */ - GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) - - /* - * GetVersionMetadata Method for GetVersionMetadata - * Returns the kafka Service Fleet Manager API version metadata - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetVersionMetadataRequest - */ - GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest - - /* - * GetVersionMetadataExecute executes the request - * @return VersionMetadata - */ - GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) - - /* - * UpdateKafkaById Method for UpdateKafkaById - * Update a Kafka instance by id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiUpdateKafkaByIdRequest - */ - UpdateKafkaById(ctx _context.Context, id string) ApiUpdateKafkaByIdRequest - - /* - * UpdateKafkaByIdExecute executes the request - * @return KafkaRequest - */ - UpdateKafkaByIdExecute(r ApiUpdateKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) -} - -// DefaultApiService DefaultApi service -type DefaultApiService service - -type ApiCreateKafkaRequest struct { - ctx _context.Context - ApiService DefaultApi - async *bool - kafkaRequestPayload *KafkaRequestPayload -} - -func (r ApiCreateKafkaRequest) Async(async bool) ApiCreateKafkaRequest { - r.async = &async - return r -} -func (r ApiCreateKafkaRequest) KafkaRequestPayload(kafkaRequestPayload KafkaRequestPayload) ApiCreateKafkaRequest { - r.kafkaRequestPayload = &kafkaRequestPayload - return r -} - -func (r ApiCreateKafkaRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { - return r.ApiService.CreateKafkaExecute(r) -} - -/* - * CreateKafka Method for CreateKafka - * Creates a Kafka request - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateKafkaRequest - */ -func (a *DefaultApiService) CreateKafka(ctx _context.Context) ApiCreateKafkaRequest { - return ApiCreateKafkaRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return KafkaRequest - */ -func (a *DefaultApiService) CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue KafkaRequest - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateKafka") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.async == nil { - return localVarReturnValue, nil, reportError("async is required and must be specified") - } - if r.kafkaRequestPayload == nil { - return localVarReturnValue, nil, reportError("kafkaRequestPayload is required and must be specified") - } - - localVarQueryParams.Add("async", parameterToString(*r.async, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.kafkaRequestPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteKafkaByIdRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - async *bool -} - -func (r ApiDeleteKafkaByIdRequest) Async(async bool) ApiDeleteKafkaByIdRequest { - r.async = &async - return r -} - -func (r ApiDeleteKafkaByIdRequest) Execute() (Error, *_nethttp.Response, error) { - return r.ApiService.DeleteKafkaByIdExecute(r) -} - -/* - * DeleteKafkaById Method for DeleteKafkaById - * Deletes a Kafka request by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiDeleteKafkaByIdRequest - */ -func (a *DefaultApiService) DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest { - return ApiDeleteKafkaByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return Error - */ -func (a *DefaultApiService) DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue Error - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteKafkaById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.async == nil { - return localVarReturnValue, nil, reportError("async is required and must be specified") - } - - localVarQueryParams.Add("async", parameterToString(*r.async, "")) - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiFederateMetricsRequest struct { - ctx _context.Context - ApiService DefaultApi - id string -} - - -func (r ApiFederateMetricsRequest) Execute() (string, *_nethttp.Response, error) { - return r.ApiService.FederateMetricsExecute(r) -} - -/* - * FederateMetrics Method for FederateMetrics - * Returns all metrics in scrapeable format for a given kafka id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiFederateMetricsRequest - */ -func (a *DefaultApiService) FederateMetrics(ctx _context.Context, id string) ApiFederateMetricsRequest { - return ApiFederateMetricsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return string - */ -func (a *DefaultApiService) FederateMetricsExecute(r ApiFederateMetricsRequest) (string, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue string - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.FederateMetrics") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"text/plain", "application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetCloudProviderRegionsRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - page *string - size *string -} - -func (r ApiGetCloudProviderRegionsRequest) Page(page string) ApiGetCloudProviderRegionsRequest { - r.page = &page - return r -} -func (r ApiGetCloudProviderRegionsRequest) Size(size string) ApiGetCloudProviderRegionsRequest { - r.size = &size - return r -} - -func (r ApiGetCloudProviderRegionsRequest) Execute() (CloudRegionList, *_nethttp.Response, error) { - return r.ApiService.GetCloudProviderRegionsExecute(r) -} - -/* - * GetCloudProviderRegions Method for GetCloudProviderRegions - * Returns the list of supported regions of the supported cloud provider - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetCloudProviderRegionsRequest - */ -func (a *DefaultApiService) GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest { - return ApiGetCloudProviderRegionsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return CloudRegionList - */ -func (a *DefaultApiService) GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CloudRegionList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCloudProviderRegions") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/cloud_providers/{id}/regions" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } - if r.size != nil { - localVarQueryParams.Add("size", parameterToString(*r.size, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetCloudProvidersRequest struct { - ctx _context.Context - ApiService DefaultApi - page *string - size *string -} - -func (r ApiGetCloudProvidersRequest) Page(page string) ApiGetCloudProvidersRequest { - r.page = &page - return r -} -func (r ApiGetCloudProvidersRequest) Size(size string) ApiGetCloudProvidersRequest { - r.size = &size - return r -} - -func (r ApiGetCloudProvidersRequest) Execute() (CloudProviderList, *_nethttp.Response, error) { - return r.ApiService.GetCloudProvidersExecute(r) -} - -/* - * GetCloudProviders Method for GetCloudProviders - * Returns the list of supported cloud providers - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetCloudProvidersRequest - */ -func (a *DefaultApiService) GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest { - return ApiGetCloudProvidersRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return CloudProviderList - */ -func (a *DefaultApiService) GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue CloudProviderList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCloudProviders") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/cloud_providers" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } - if r.size != nil { - localVarQueryParams.Add("size", parameterToString(*r.size, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetInstanceTypesByCloudProviderAndRegionRequest struct { - ctx _context.Context - ApiService DefaultApi - cloudProvider string - cloudRegion string -} - - -func (r ApiGetInstanceTypesByCloudProviderAndRegionRequest) Execute() (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) { - return r.ApiService.GetInstanceTypesByCloudProviderAndRegionExecute(r) -} - -/* - * GetInstanceTypesByCloudProviderAndRegion Method for GetInstanceTypesByCloudProviderAndRegion - * Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param cloudProvider ID of the supported cloud provider - * @param cloudRegion Name of the supported cloud provider region - * @return ApiGetInstanceTypesByCloudProviderAndRegionRequest - */ -func (a *DefaultApiService) GetInstanceTypesByCloudProviderAndRegion(ctx _context.Context, cloudProvider string, cloudRegion string) ApiGetInstanceTypesByCloudProviderAndRegionRequest { - return ApiGetInstanceTypesByCloudProviderAndRegionRequest{ - ApiService: a, - ctx: ctx, - cloudProvider: cloudProvider, - cloudRegion: cloudRegion, - } -} - -/* - * Execute executes the request - * @return SupportedKafkaInstanceTypesList - */ -func (a *DefaultApiService) GetInstanceTypesByCloudProviderAndRegionExecute(r ApiGetInstanceTypesByCloudProviderAndRegionRequest) (SupportedKafkaInstanceTypesList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SupportedKafkaInstanceTypesList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetInstanceTypesByCloudProviderAndRegion") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}" - localVarPath = strings.Replace(localVarPath, "{"+"cloud_provider"+"}", _neturl.PathEscape(parameterToString(r.cloudProvider, "")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"cloud_region"+"}", _neturl.PathEscape(parameterToString(r.cloudRegion, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetKafkaByIdRequest struct { - ctx _context.Context - ApiService DefaultApi - id string -} - - -func (r ApiGetKafkaByIdRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { - return r.ApiService.GetKafkaByIdExecute(r) -} - -/* - * GetKafkaById Method for GetKafkaById - * Returns a Kafka request by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetKafkaByIdRequest - */ -func (a *DefaultApiService) GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest { - return ApiGetKafkaByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return KafkaRequest - */ -func (a *DefaultApiService) GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue KafkaRequest - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKafkaById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetKafkasRequest struct { - ctx _context.Context - ApiService DefaultApi - page *string - size *string - orderBy *string - search *string -} - -func (r ApiGetKafkasRequest) Page(page string) ApiGetKafkasRequest { - r.page = &page - return r -} -func (r ApiGetKafkasRequest) Size(size string) ApiGetKafkasRequest { - r.size = &size - return r -} -func (r ApiGetKafkasRequest) OrderBy(orderBy string) ApiGetKafkasRequest { - r.orderBy = &orderBy - return r -} -func (r ApiGetKafkasRequest) Search(search string) ApiGetKafkasRequest { - r.search = &search - return r -} - -func (r ApiGetKafkasRequest) Execute() (KafkaRequestList, *_nethttp.Response, error) { - return r.ApiService.GetKafkasExecute(r) -} - -/* - * GetKafkas Method for GetKafkas - * Returns a list of Kafka requests - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetKafkasRequest - */ -func (a *DefaultApiService) GetKafkas(ctx _context.Context) ApiGetKafkasRequest { - return ApiGetKafkasRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return KafkaRequestList - */ -func (a *DefaultApiService) GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue KafkaRequestList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetKafkas") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } - if r.size != nil { - localVarQueryParams.Add("size", parameterToString(*r.size, "")) - } - if r.orderBy != nil { - localVarQueryParams.Add("orderBy", parameterToString(*r.orderBy, "")) - } - if r.search != nil { - localVarQueryParams.Add("search", parameterToString(*r.search, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetMetricsByInstantQueryRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - filters *[]string -} - -func (r ApiGetMetricsByInstantQueryRequest) Filters(filters []string) ApiGetMetricsByInstantQueryRequest { - r.filters = &filters - return r -} - -func (r ApiGetMetricsByInstantQueryRequest) Execute() (MetricsInstantQueryList, *_nethttp.Response, error) { - return r.ApiService.GetMetricsByInstantQueryExecute(r) -} - -/* - * GetMetricsByInstantQuery Method for GetMetricsByInstantQuery - * Returns metrics with instant query by Kafka ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetMetricsByInstantQueryRequest - */ -func (a *DefaultApiService) GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest { - return ApiGetMetricsByInstantQueryRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return MetricsInstantQueryList - */ -func (a *DefaultApiService) GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue MetricsInstantQueryList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetMetricsByInstantQuery") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.filters != nil { - t := *r.filters - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - localVarQueryParams.Add("filters", parameterToString(s.Index(i), "multi")) - } - } else { - localVarQueryParams.Add("filters", parameterToString(t, "multi")) - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetMetricsByRangeQueryRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - duration *int64 - interval *int64 - filters *[]string -} - -func (r ApiGetMetricsByRangeQueryRequest) Duration(duration int64) ApiGetMetricsByRangeQueryRequest { - r.duration = &duration - return r -} -func (r ApiGetMetricsByRangeQueryRequest) Interval(interval int64) ApiGetMetricsByRangeQueryRequest { - r.interval = &interval - return r -} -func (r ApiGetMetricsByRangeQueryRequest) Filters(filters []string) ApiGetMetricsByRangeQueryRequest { - r.filters = &filters - return r -} - -func (r ApiGetMetricsByRangeQueryRequest) Execute() (MetricsRangeQueryList, *_nethttp.Response, error) { - return r.ApiService.GetMetricsByRangeQueryExecute(r) -} - -/* - * GetMetricsByRangeQuery Method for GetMetricsByRangeQuery - * Returns metrics with timeseries range query by Kafka ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetMetricsByRangeQueryRequest - */ -func (a *DefaultApiService) GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest { - return ApiGetMetricsByRangeQueryRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return MetricsRangeQueryList - */ -func (a *DefaultApiService) GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue MetricsRangeQueryList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetMetricsByRangeQuery") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.duration == nil { - return localVarReturnValue, nil, reportError("duration is required and must be specified") - } - if *r.duration < 1 { - return localVarReturnValue, nil, reportError("duration must be greater than 1") - } - if *r.duration > 4320 { - return localVarReturnValue, nil, reportError("duration must be less than 4320") - } - if r.interval == nil { - return localVarReturnValue, nil, reportError("interval is required and must be specified") - } - if *r.interval < 1 { - return localVarReturnValue, nil, reportError("interval must be greater than 1") - } - if *r.interval > 10800 { - return localVarReturnValue, nil, reportError("interval must be less than 10800") - } - - localVarQueryParams.Add("duration", parameterToString(*r.duration, "")) - localVarQueryParams.Add("interval", parameterToString(*r.interval, "")) - if r.filters != nil { - t := *r.filters - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - localVarQueryParams.Add("filters", parameterToString(s.Index(i), "multi")) - } - } else { - localVarQueryParams.Add("filters", parameterToString(t, "multi")) - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetVersionMetadataRequest struct { - ctx _context.Context - ApiService DefaultApi -} - - -func (r ApiGetVersionMetadataRequest) Execute() (VersionMetadata, *_nethttp.Response, error) { - return r.ApiService.GetVersionMetadataExecute(r) -} - -/* - * GetVersionMetadata Method for GetVersionMetadata - * Returns the kafka Service Fleet Manager API version metadata - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetVersionMetadataRequest - */ -func (a *DefaultApiService) GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest { - return ApiGetVersionMetadataRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return VersionMetadata - */ -func (a *DefaultApiService) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue VersionMetadata - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetVersionMetadata") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateKafkaByIdRequest struct { - ctx _context.Context - ApiService DefaultApi - id string - kafkaUpdateRequest *KafkaUpdateRequest -} - -func (r ApiUpdateKafkaByIdRequest) KafkaUpdateRequest(kafkaUpdateRequest KafkaUpdateRequest) ApiUpdateKafkaByIdRequest { - r.kafkaUpdateRequest = &kafkaUpdateRequest - return r -} - -func (r ApiUpdateKafkaByIdRequest) Execute() (KafkaRequest, *_nethttp.Response, error) { - return r.ApiService.UpdateKafkaByIdExecute(r) -} - -/* - * UpdateKafkaById Method for UpdateKafkaById - * Update a Kafka instance by id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiUpdateKafkaByIdRequest - */ -func (a *DefaultApiService) UpdateKafkaById(ctx _context.Context, id string) ApiUpdateKafkaByIdRequest { - return ApiUpdateKafkaByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return KafkaRequest - */ -func (a *DefaultApiService) UpdateKafkaByIdExecute(r ApiUpdateKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue KafkaRequest - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateKafkaById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/kafkas/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.kafkaUpdateRequest == nil { - return localVarReturnValue, nil, reportError("kafkaUpdateRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.kafkaUpdateRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go deleted file mode 100644 index 87cbc8f6..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/api_errors.go +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" -) - -// Linger please -var ( - _ _context.Context -) - -type ErrorsApi interface { - - /* - * GetErrorById Method for GetErrorById - * Returns the error by Id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetErrorByIdRequest - */ - GetErrorById(ctx _context.Context, id string) ApiGetErrorByIdRequest - - /* - * GetErrorByIdExecute executes the request - * @return Error - */ - GetErrorByIdExecute(r ApiGetErrorByIdRequest) (Error, *_nethttp.Response, error) - - /* - * GetErrors Method for GetErrors - * Returns the list of possible API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetErrorsRequest - */ - GetErrors(ctx _context.Context) ApiGetErrorsRequest - - /* - * GetErrorsExecute executes the request - * @return ErrorList - */ - GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) -} - -// ErrorsApiService ErrorsApi service -type ErrorsApiService service - -type ApiGetErrorByIdRequest struct { - ctx _context.Context - ApiService ErrorsApi - id string -} - - -func (r ApiGetErrorByIdRequest) Execute() (Error, *_nethttp.Response, error) { - return r.ApiService.GetErrorByIdExecute(r) -} - -/* - * GetErrorById Method for GetErrorById - * Returns the error by Id - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetErrorByIdRequest - */ -func (a *ErrorsApiService) GetErrorById(ctx _context.Context, id string) ApiGetErrorByIdRequest { - return ApiGetErrorByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return Error - */ -func (a *ErrorsApiService) GetErrorByIdExecute(r ApiGetErrorByIdRequest) (Error, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue Error - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrorById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/errors/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetErrorsRequest struct { - ctx _context.Context - ApiService ErrorsApi -} - - -func (r ApiGetErrorsRequest) Execute() (ErrorList, *_nethttp.Response, error) { - return r.ApiService.GetErrorsExecute(r) -} - -/* - * GetErrors Method for GetErrors - * Returns the list of possible API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetErrorsRequest - */ -func (a *ErrorsApiService) GetErrors(ctx _context.Context) ApiGetErrorsRequest { - return ApiGetErrorsRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return ErrorList - */ -func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ErrorList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ErrorsApiService.GetErrors") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/errors" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go b/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go deleted file mode 100644 index 6c539808..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/api_security.go +++ /dev/null @@ -1,896 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" -) - -// Linger please -var ( - _ _context.Context -) - -type SecurityApi interface { - - /* - * CreateServiceAccount Method for CreateServiceAccount - * Creates a service account - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateServiceAccountRequest - */ - CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest - - /* - * CreateServiceAccountExecute executes the request - * @return ServiceAccount - */ - CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccount, *_nethttp.Response, error) - - /* - * DeleteServiceAccountById Method for DeleteServiceAccountById - * Deletes a service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiDeleteServiceAccountByIdRequest - */ - DeleteServiceAccountById(ctx _context.Context, id string) ApiDeleteServiceAccountByIdRequest - - /* - * DeleteServiceAccountByIdExecute executes the request - * @return Error - */ - DeleteServiceAccountByIdExecute(r ApiDeleteServiceAccountByIdRequest) (Error, *_nethttp.Response, error) - - /* - * GetServiceAccountById Method for GetServiceAccountById - * Returned service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetServiceAccountByIdRequest - */ - GetServiceAccountById(ctx _context.Context, id string) ApiGetServiceAccountByIdRequest - - /* - * GetServiceAccountByIdExecute executes the request - * @return ServiceAccount - */ - GetServiceAccountByIdExecute(r ApiGetServiceAccountByIdRequest) (ServiceAccount, *_nethttp.Response, error) - - /* - * GetServiceAccounts Method for GetServiceAccounts - * Returns a list of service accounts - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetServiceAccountsRequest - */ - GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest - - /* - * GetServiceAccountsExecute executes the request - * @return ServiceAccountList - */ - GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) (ServiceAccountList, *_nethttp.Response, error) - - /* - * GetSsoProviders Method for GetSsoProviders - * Return sso provider info - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetSsoProvidersRequest - */ - GetSsoProviders(ctx _context.Context) ApiGetSsoProvidersRequest - - /* - * GetSsoProvidersExecute executes the request - * @return SsoProvider - */ - GetSsoProvidersExecute(r ApiGetSsoProvidersRequest) (SsoProvider, *_nethttp.Response, error) - - /* - * ResetServiceAccountCreds Method for ResetServiceAccountCreds - * Resets the credentials for a service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiResetServiceAccountCredsRequest - */ - ResetServiceAccountCreds(ctx _context.Context, id string) ApiResetServiceAccountCredsRequest - - /* - * ResetServiceAccountCredsExecute executes the request - * @return ServiceAccount - */ - ResetServiceAccountCredsExecute(r ApiResetServiceAccountCredsRequest) (ServiceAccount, *_nethttp.Response, error) -} - -// SecurityApiService SecurityApi service -type SecurityApiService service - -type ApiCreateServiceAccountRequest struct { - ctx _context.Context - ApiService SecurityApi - serviceAccountRequest *ServiceAccountRequest -} - -func (r ApiCreateServiceAccountRequest) ServiceAccountRequest(serviceAccountRequest ServiceAccountRequest) ApiCreateServiceAccountRequest { - r.serviceAccountRequest = &serviceAccountRequest - return r -} - -func (r ApiCreateServiceAccountRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { - return r.ApiService.CreateServiceAccountExecute(r) -} - -/* - * CreateServiceAccount Method for CreateServiceAccount - * Creates a service account - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateServiceAccountRequest - */ -func (a *SecurityApiService) CreateServiceAccount(ctx _context.Context) ApiCreateServiceAccountRequest { - return ApiCreateServiceAccountRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return ServiceAccount - */ -func (a *SecurityApiService) CreateServiceAccountExecute(r ApiCreateServiceAccountRequest) (ServiceAccount, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ServiceAccount - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.CreateServiceAccount") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.serviceAccountRequest == nil { - return localVarReturnValue, nil, reportError("serviceAccountRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.serviceAccountRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteServiceAccountByIdRequest struct { - ctx _context.Context - ApiService SecurityApi - id string -} - - -func (r ApiDeleteServiceAccountByIdRequest) Execute() (Error, *_nethttp.Response, error) { - return r.ApiService.DeleteServiceAccountByIdExecute(r) -} - -/* - * DeleteServiceAccountById Method for DeleteServiceAccountById - * Deletes a service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiDeleteServiceAccountByIdRequest - */ -func (a *SecurityApiService) DeleteServiceAccountById(ctx _context.Context, id string) ApiDeleteServiceAccountByIdRequest { - return ApiDeleteServiceAccountByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return Error - */ -func (a *SecurityApiService) DeleteServiceAccountByIdExecute(r ApiDeleteServiceAccountByIdRequest) (Error, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue Error - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.DeleteServiceAccountById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v interface{} - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetServiceAccountByIdRequest struct { - ctx _context.Context - ApiService SecurityApi - id string -} - - -func (r ApiGetServiceAccountByIdRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { - return r.ApiService.GetServiceAccountByIdExecute(r) -} - -/* - * GetServiceAccountById Method for GetServiceAccountById - * Returned service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiGetServiceAccountByIdRequest - */ -func (a *SecurityApiService) GetServiceAccountById(ctx _context.Context, id string) ApiGetServiceAccountByIdRequest { - return ApiGetServiceAccountByIdRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return ServiceAccount - */ -func (a *SecurityApiService) GetServiceAccountByIdExecute(r ApiGetServiceAccountByIdRequest) (ServiceAccount, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ServiceAccount - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetServiceAccountById") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetServiceAccountsRequest struct { - ctx _context.Context - ApiService SecurityApi - clientId *string -} - -func (r ApiGetServiceAccountsRequest) ClientId(clientId string) ApiGetServiceAccountsRequest { - r.clientId = &clientId - return r -} - -func (r ApiGetServiceAccountsRequest) Execute() (ServiceAccountList, *_nethttp.Response, error) { - return r.ApiService.GetServiceAccountsExecute(r) -} - -/* - * GetServiceAccounts Method for GetServiceAccounts - * Returns a list of service accounts - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetServiceAccountsRequest - */ -func (a *SecurityApiService) GetServiceAccounts(ctx _context.Context) ApiGetServiceAccountsRequest { - return ApiGetServiceAccountsRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return ServiceAccountList - */ -func (a *SecurityApiService) GetServiceAccountsExecute(r ApiGetServiceAccountsRequest) (ServiceAccountList, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ServiceAccountList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetServiceAccounts") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.clientId != nil { - localVarQueryParams.Add("client_id", parameterToString(*r.clientId, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSsoProvidersRequest struct { - ctx _context.Context - ApiService SecurityApi -} - - -func (r ApiGetSsoProvidersRequest) Execute() (SsoProvider, *_nethttp.Response, error) { - return r.ApiService.GetSsoProvidersExecute(r) -} - -/* - * GetSsoProviders Method for GetSsoProviders - * Return sso provider info - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetSsoProvidersRequest - */ -func (a *SecurityApiService) GetSsoProviders(ctx _context.Context) ApiGetSsoProvidersRequest { - return ApiGetSsoProvidersRequest{ - ApiService: a, - ctx: ctx, - } -} - -/* - * Execute executes the request - * @return SsoProvider - */ -func (a *SecurityApiService) GetSsoProvidersExecute(r ApiGetSsoProvidersRequest) (SsoProvider, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SsoProvider - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.GetSsoProviders") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/sso_providers" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiResetServiceAccountCredsRequest struct { - ctx _context.Context - ApiService SecurityApi - id string -} - - -func (r ApiResetServiceAccountCredsRequest) Execute() (ServiceAccount, *_nethttp.Response, error) { - return r.ApiService.ResetServiceAccountCredsExecute(r) -} - -/* - * ResetServiceAccountCreds Method for ResetServiceAccountCreds - * Resets the credentials for a service account by ID - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of record - * @return ApiResetServiceAccountCredsRequest - */ -func (a *SecurityApiService) ResetServiceAccountCreds(ctx _context.Context, id string) ApiResetServiceAccountCredsRequest { - return ApiResetServiceAccountCredsRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -/* - * Execute executes the request - * @return ServiceAccount - */ -func (a *SecurityApiService) ResetServiceAccountCredsExecute(r ApiResetServiceAccountCredsRequest) (ServiceAccount, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue ServiceAccount - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecurityApiService.ResetServiceAccountCreds") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v interface{} - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/client.go b/app-services-sdk-go/kafkamgmt/apiv1/client/client.go deleted file mode 100644 index e85b685f..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/client.go +++ /dev/null @@ -1,552 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "io/ioutil" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "golang.org/x/oauth2" -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) -) - -// APIClient manages communication with the Kafka Management API API v1.13.0 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - DefaultApi DefaultApi - - ErrorsApi ErrorsApi - - SecurityApi SecurityApi -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.DefaultApi = (*DefaultApiService)(&c.common) - c.ErrorsApi = (*ErrorsApiService)(&c.common) - c.SecurityApi = (*SecurityApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.ToLower(a) == strings.ToLower(needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. -func parameterToString(obj interface{}, collectionFormat string) string { - var delimiter string - - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," - } - - if reflect.TypeOf(obj).Kind() == reflect.Slice { - return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") - } else if t, ok := obj.(time.Time); ok { - return t.Format(time.RFC3339) - } - - return fmt.Sprintf("%v", obj) -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -func (c *APIClient) GetConfig() *Configuration { - return c.cfg -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFileName string, - fileName string, - fileBytes []byte) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - if len(fileBytes) > 0 && fileName != "" { - w.Boundary() - //_, fileNm := filepath.Split(fileName) - part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(fileBytes) - if err != nil { - return nil, err - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = query.Encode() - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers.Set(h, v) - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // OAuth2 authentication - if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { - // We were able to grab an oauth2 token from the context - var latestToken *oauth2.Token - if latestToken, err = tok.Token(); err != nil { - return nil, err - } - - latestToken.SetAuthHeader(localVarRequest) - } - - // Basic HTTP Authentication - if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { - localVarRequest.SetBasicAuth(auth.UserName, auth.Password) - } - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(**os.File); ok { - *f, err = ioutil.TempFile("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(path) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(**os.File); ok { - _, err = bodyBuf.ReadFrom(*fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("Invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go b/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go deleted file mode 100644 index a8643f92..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/configuration.go +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. - ContextOAuth2 = contextKey("token") - - // ContextBasicAuth takes BasicAuth as authentication for the request. - ContextBasicAuth = contextKey("basic") - - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") - - // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. - ContextHttpSignatureAuth = contextKey("httpsignature") - - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "https://api.openshift.com", - Description: "Main (production) server", - }, - { - URL: "https://api.stage.openshift.com", - Description: "Staging server", - }, - { - URL: "http://localhost:8000", - Description: "localhost", - }, - { - URL: "", - Description: "current domain", - }, - }, - OperationServers: map[string]ServerConfigurations{ - }, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md deleted file mode 100644 index c4e3770e..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProvider.md +++ /dev/null @@ -1,155 +0,0 @@ -# CloudProvider - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | Indicates the type of this object. Will be 'CloudProvider' link. | [optional] -**Id** | Pointer to **string** | Unique identifier of the object. | [optional] -**DisplayName** | Pointer to **string** | Name of the cloud provider for display purposes. | [optional] -**Name** | Pointer to **string** | Human friendly identifier of the cloud provider, for example `aws`. | [optional] -**Enabled** | **bool** | Whether the cloud provider is enabled for deploying an OSD cluster. | - -## Methods - -### NewCloudProvider - -`func NewCloudProvider(enabled bool, ) *CloudProvider` - -NewCloudProvider instantiates a new CloudProvider 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 - -### NewCloudProviderWithDefaults - -`func NewCloudProviderWithDefaults() *CloudProvider` - -NewCloudProviderWithDefaults instantiates a new CloudProvider 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 - -### GetKind - -`func (o *CloudProvider) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *CloudProvider) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *CloudProvider) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *CloudProvider) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *CloudProvider) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CloudProvider) 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 *CloudProvider) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *CloudProvider) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *CloudProvider) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *CloudProvider) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *CloudProvider) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *CloudProvider) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetName - -`func (o *CloudProvider) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *CloudProvider) 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 *CloudProvider) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *CloudProvider) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetEnabled - -`func (o *CloudProvider) GetEnabled() bool` - -GetEnabled returns the Enabled field if non-nil, zero value otherwise. - -### GetEnabledOk - -`func (o *CloudProvider) GetEnabledOk() (*bool, bool)` - -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnabled - -`func (o *CloudProvider) SetEnabled(v bool)` - -SetEnabled sets Enabled 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md deleted file mode 100644 index d3a6d065..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderList.md +++ /dev/null @@ -1,135 +0,0 @@ -# CloudProviderList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Page** | **int32** | | -**Size** | **int32** | | -**Total** | **int32** | | -**Items** | [**[]CloudProvider**](CloudProvider.md) | | - -## Methods - -### NewCloudProviderList - -`func NewCloudProviderList(kind string, page int32, size int32, total int32, items []CloudProvider, ) *CloudProviderList` - -NewCloudProviderList instantiates a new CloudProviderList 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 - -### NewCloudProviderListWithDefaults - -`func NewCloudProviderListWithDefaults() *CloudProviderList` - -NewCloudProviderListWithDefaults instantiates a new CloudProviderList 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 - -### GetKind - -`func (o *CloudProviderList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *CloudProviderList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *CloudProviderList) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetPage - -`func (o *CloudProviderList) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *CloudProviderList) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *CloudProviderList) SetPage(v int32)` - -SetPage sets Page field to given value. - - -### GetSize - -`func (o *CloudProviderList) GetSize() int32` - -GetSize returns the Size field if non-nil, zero value otherwise. - -### GetSizeOk - -`func (o *CloudProviderList) GetSizeOk() (*int32, bool)` - -GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSize - -`func (o *CloudProviderList) SetSize(v int32)` - -SetSize sets Size field to given value. - - -### GetTotal - -`func (o *CloudProviderList) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *CloudProviderList) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *CloudProviderList) SetTotal(v int32)` - -SetTotal sets Total field to given value. - - -### GetItems - -`func (o *CloudProviderList) GetItems() []CloudProvider` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *CloudProviderList) GetItemsOk() (*[]CloudProvider, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *CloudProviderList) SetItems(v []CloudProvider)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md deleted file mode 100644 index 1b3b1c02..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# CloudProviderListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]CloudProvider**](CloudProvider.md) | | [optional] - -## Methods - -### NewCloudProviderListAllOf - -`func NewCloudProviderListAllOf() *CloudProviderListAllOf` - -NewCloudProviderListAllOf instantiates a new CloudProviderListAllOf 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 - -### NewCloudProviderListAllOfWithDefaults - -`func NewCloudProviderListAllOfWithDefaults() *CloudProviderListAllOf` - -NewCloudProviderListAllOfWithDefaults instantiates a new CloudProviderListAllOf 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 - -### GetItems - -`func (o *CloudProviderListAllOf) GetItems() []CloudProvider` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *CloudProviderListAllOf) GetItemsOk() (*[]CloudProvider, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *CloudProviderListAllOf) SetItems(v []CloudProvider)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *CloudProviderListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md deleted file mode 100644 index 9de5e725..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegion.md +++ /dev/null @@ -1,150 +0,0 @@ -# CloudRegion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | Indicates the type of this object. Will be 'CloudRegion'. | [optional] -**Id** | Pointer to **string** | Unique identifier of the object. | [optional] -**DisplayName** | Pointer to **string** | Name of the region for display purposes, for example `N. Virginia`. | [optional] -**Enabled** | **bool** | Whether the region is enabled for deploying an OSD cluster. | [default to false] -**Capacity** | [**[]RegionCapacityListItem**](RegionCapacityListItem.md) | Indicates whether there is capacity left per instance type | - -## Methods - -### NewCloudRegion - -`func NewCloudRegion(enabled bool, capacity []RegionCapacityListItem, ) *CloudRegion` - -NewCloudRegion instantiates a new CloudRegion 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 - -### NewCloudRegionWithDefaults - -`func NewCloudRegionWithDefaults() *CloudRegion` - -NewCloudRegionWithDefaults instantiates a new CloudRegion 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 - -### GetKind - -`func (o *CloudRegion) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *CloudRegion) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *CloudRegion) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *CloudRegion) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *CloudRegion) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CloudRegion) 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 *CloudRegion) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *CloudRegion) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *CloudRegion) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *CloudRegion) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *CloudRegion) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *CloudRegion) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetEnabled - -`func (o *CloudRegion) GetEnabled() bool` - -GetEnabled returns the Enabled field if non-nil, zero value otherwise. - -### GetEnabledOk - -`func (o *CloudRegion) GetEnabledOk() (*bool, bool)` - -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnabled - -`func (o *CloudRegion) SetEnabled(v bool)` - -SetEnabled sets Enabled field to given value. - - -### GetCapacity - -`func (o *CloudRegion) GetCapacity() []RegionCapacityListItem` - -GetCapacity returns the Capacity field if non-nil, zero value otherwise. - -### GetCapacityOk - -`func (o *CloudRegion) GetCapacityOk() (*[]RegionCapacityListItem, bool)` - -GetCapacityOk returns a tuple with the Capacity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCapacity - -`func (o *CloudRegion) SetCapacity(v []RegionCapacityListItem)` - -SetCapacity sets Capacity 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md deleted file mode 100644 index 38cee096..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionList.md +++ /dev/null @@ -1,135 +0,0 @@ -# CloudRegionList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Page** | **int32** | | -**Size** | **int32** | | -**Total** | **int32** | | -**Items** | [**[]CloudRegion**](CloudRegion.md) | | - -## Methods - -### NewCloudRegionList - -`func NewCloudRegionList(kind string, page int32, size int32, total int32, items []CloudRegion, ) *CloudRegionList` - -NewCloudRegionList instantiates a new CloudRegionList 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 - -### NewCloudRegionListWithDefaults - -`func NewCloudRegionListWithDefaults() *CloudRegionList` - -NewCloudRegionListWithDefaults instantiates a new CloudRegionList 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 - -### GetKind - -`func (o *CloudRegionList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *CloudRegionList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *CloudRegionList) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetPage - -`func (o *CloudRegionList) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *CloudRegionList) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *CloudRegionList) SetPage(v int32)` - -SetPage sets Page field to given value. - - -### GetSize - -`func (o *CloudRegionList) GetSize() int32` - -GetSize returns the Size field if non-nil, zero value otherwise. - -### GetSizeOk - -`func (o *CloudRegionList) GetSizeOk() (*int32, bool)` - -GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSize - -`func (o *CloudRegionList) SetSize(v int32)` - -SetSize sets Size field to given value. - - -### GetTotal - -`func (o *CloudRegionList) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *CloudRegionList) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *CloudRegionList) SetTotal(v int32)` - -SetTotal sets Total field to given value. - - -### GetItems - -`func (o *CloudRegionList) GetItems() []CloudRegion` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *CloudRegionList) GetItemsOk() (*[]CloudRegion, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *CloudRegionList) SetItems(v []CloudRegion)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md deleted file mode 100644 index 8152ef15..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# CloudRegionListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]CloudRegion**](CloudRegion.md) | | [optional] - -## Methods - -### NewCloudRegionListAllOf - -`func NewCloudRegionListAllOf() *CloudRegionListAllOf` - -NewCloudRegionListAllOf instantiates a new CloudRegionListAllOf 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 - -### NewCloudRegionListAllOfWithDefaults - -`func NewCloudRegionListAllOfWithDefaults() *CloudRegionListAllOf` - -NewCloudRegionListAllOfWithDefaults instantiates a new CloudRegionListAllOf 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 - -### GetItems - -`func (o *CloudRegionListAllOf) GetItems() []CloudRegion` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *CloudRegionListAllOf) GetItemsOk() (*[]CloudRegion, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *CloudRegionListAllOf) SetItems(v []CloudRegion)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *CloudRegionListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md deleted file mode 100644 index 67264f32..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/DefaultApi.md +++ /dev/null @@ -1,868 +0,0 @@ -# \DefaultApi - -All URIs are relative to *https://api.openshift.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateKafka**](DefaultApi.md#CreateKafka) | **Post** /api/kafkas_mgmt/v1/kafkas | -[**DeleteKafkaById**](DefaultApi.md#DeleteKafkaById) | **Delete** /api/kafkas_mgmt/v1/kafkas/{id} | -[**FederateMetrics**](DefaultApi.md#FederateMetrics) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate | -[**GetCloudProviderRegions**](DefaultApi.md#GetCloudProviderRegions) | **Get** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | -[**GetCloudProviders**](DefaultApi.md#GetCloudProviders) | **Get** /api/kafkas_mgmt/v1/cloud_providers | -[**GetInstanceTypesByCloudProviderAndRegion**](DefaultApi.md#GetInstanceTypesByCloudProviderAndRegion) | **Get** /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} | -[**GetKafkaById**](DefaultApi.md#GetKafkaById) | **Get** /api/kafkas_mgmt/v1/kafkas/{id} | -[**GetKafkas**](DefaultApi.md#GetKafkas) | **Get** /api/kafkas_mgmt/v1/kafkas | -[**GetMetricsByInstantQuery**](DefaultApi.md#GetMetricsByInstantQuery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | -[**GetMetricsByRangeQuery**](DefaultApi.md#GetMetricsByRangeQuery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | -[**GetVersionMetadata**](DefaultApi.md#GetVersionMetadata) | **Get** /api/kafkas_mgmt/v1 | -[**UpdateKafkaById**](DefaultApi.md#UpdateKafkaById) | **Patch** /api/kafkas_mgmt/v1/kafkas/{id} | - - - -## CreateKafka - -> KafkaRequest CreateKafka(ctx).Async(async).KafkaRequestPayload(kafkaRequestPayload).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - async := true // bool | Perform the action in an asynchronous manner - kafkaRequestPayload := *openapiclient.NewKafkaRequestPayload("Name_example") // KafkaRequestPayload | Kafka data - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.CreateKafka(context.Background()).Async(async).KafkaRequestPayload(kafkaRequestPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateKafka``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateKafka`: KafkaRequest - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateKafka`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateKafkaRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **async** | **bool** | Perform the action in an asynchronous manner | - **kafkaRequestPayload** | [**KafkaRequestPayload**](KafkaRequestPayload.md) | Kafka data | - -### Return type - -[**KafkaRequest**](KafkaRequest.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteKafkaById - -> Error DeleteKafkaById(ctx, id).Async(async).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - async := true // bool | Perform the action in an asynchronous manner - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.DeleteKafkaById(context.Background(), id).Async(async).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteKafkaById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteKafkaById`: Error - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.DeleteKafkaById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteKafkaByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **async** | **bool** | Perform the action in an asynchronous manner | - -### Return type - -[**Error**](Error.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## FederateMetrics - -> string FederateMetrics(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.FederateMetrics(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.FederateMetrics``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `FederateMetrics`: string - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.FederateMetrics`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiFederateMetricsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -**string** - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: text/plain, application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetCloudProviderRegions - -> CloudRegionList GetCloudProviderRegions(ctx, id).Page(page).Size(size).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - page := "1" // string | Page index (optional) - size := "100" // string | Number of items in each page (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetCloudProviderRegions(context.Background(), id).Page(page).Size(size).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetCloudProviderRegions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCloudProviderRegions`: CloudRegionList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetCloudProviderRegions`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCloudProviderRegionsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **page** | **string** | Page index | - **size** | **string** | Number of items in each page | - -### Return type - -[**CloudRegionList**](CloudRegionList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetCloudProviders - -> CloudProviderList GetCloudProviders(ctx).Page(page).Size(size).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - page := "1" // string | Page index (optional) - size := "100" // string | Number of items in each page (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetCloudProviders(context.Background()).Page(page).Size(size).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetCloudProviders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCloudProviders`: CloudProviderList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetCloudProviders`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetCloudProvidersRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **string** | Page index | - **size** | **string** | Number of items in each page | - -### Return type - -[**CloudProviderList**](CloudProviderList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetInstanceTypesByCloudProviderAndRegion - -> SupportedKafkaInstanceTypesList GetInstanceTypesByCloudProviderAndRegion(ctx, cloudProvider, cloudRegion).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - cloudProvider := "cloudProvider_example" // string | ID of the supported cloud provider - cloudRegion := "cloudRegion_example" // string | Name of the supported cloud provider region - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetInstanceTypesByCloudProviderAndRegion(context.Background(), cloudProvider, cloudRegion).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetInstanceTypesByCloudProviderAndRegion``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetInstanceTypesByCloudProviderAndRegion`: SupportedKafkaInstanceTypesList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetInstanceTypesByCloudProviderAndRegion`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**cloudProvider** | **string** | ID of the supported cloud provider | -**cloudRegion** | **string** | Name of the supported cloud provider region | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetInstanceTypesByCloudProviderAndRegionRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - -### Return type - -[**SupportedKafkaInstanceTypesList**](SupportedKafkaInstanceTypesList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetKafkaById - -> KafkaRequest GetKafkaById(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetKafkaById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKafkaById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetKafkaById`: KafkaRequest - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKafkaById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetKafkaByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**KafkaRequest**](KafkaRequest.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetKafkas - -> KafkaRequestList GetKafkas(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - page := "1" // string | Page index (optional) - size := "100" // string | Number of items in each page (optional) - orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the following `kafkaRequests` fields: * bootstrap_server_host * admin_api_server_url * cloud_provider * cluster_id * created_at * href * id * instance_type * multi_az * name * organisation_id * owner * reauthentication_enabled * region * status * updated_at * version For example, to return all Kafka instances ordered by their name, use the following syntax: ```sql name asc ``` To return all Kafka instances ordered by their name _and_ created date, use the following syntax: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional) - search := "name = my-kafka and cloud_provider = aws" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of an SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. Examples: To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: ``` name = my-kafka and cloud_provider = aws ```[p-] To return a Kafka instance with a name that starts with `my`, use the following syntax: ``` name like my%25 ``` To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: ``` name ilike %25test%25 ``` If the parameter isn't provided, or if the value is empty, then all the Kafka instances that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetKafkas(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetKafkas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetKafkas`: KafkaRequestList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetKafkas`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetKafkasRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **string** | Page index | - **size** | **string** | Number of items in each page | - **orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the following `kafkaRequests` fields: * bootstrap_server_host * admin_api_server_url * cloud_provider * cluster_id * created_at * href * id * instance_type * multi_az * name * organisation_id * owner * reauthentication_enabled * region * status * updated_at * version For example, to return all Kafka instances ordered by their name, use the following syntax: ```sql name asc ``` To return all Kafka instances ordered by their name _and_ created date, use the following syntax: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. | - **search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of an SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query. Examples: To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax: ``` name = my-kafka and cloud_provider = aws ```[p-] To return a Kafka instance with a name that starts with `my`, use the following syntax: ``` name like my%25 ``` To return a Kafka instance with a name containing `test` matching any character case combinations, use the following syntax: ``` name ilike %25test%25 ``` If the parameter isn't provided, or if the value is empty, then all the Kafka instances that the user has permission to see are returned. Note. If the query is invalid, an error is returned. | - -### Return type - -[**KafkaRequestList**](KafkaRequestList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetMetricsByInstantQuery - -> MetricsInstantQueryList GetMetricsByInstantQuery(ctx, id).Filters(filters).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - filters := []string{"Inner_example"} // []string | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. (optional) (default to []) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetMetricsByInstantQuery(context.Background(), id).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetMetricsByInstantQuery``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMetricsByInstantQuery`: MetricsInstantQueryList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetMetricsByInstantQuery`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetMetricsByInstantQueryRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **filters** | **[]string** | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. | [default to []] - -### Return type - -[**MetricsInstantQueryList**](MetricsInstantQueryList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetMetricsByRangeQuery - -> MetricsRangeQueryList GetMetricsByRangeQuery(ctx, id).Duration(duration).Interval(interval).Filters(filters).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - duration := int64(5) // int64 | The length of time in minutes for which to return the metrics (default to 5) - interval := int64(30) // int64 | The interval in seconds between data points (default to 30) - filters := []string{"Inner_example"} // []string | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. (optional) (default to []) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetMetricsByRangeQuery(context.Background(), id).Duration(duration).Interval(interval).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetMetricsByRangeQuery``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMetricsByRangeQuery`: MetricsRangeQueryList - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetMetricsByRangeQuery`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetMetricsByRangeQueryRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **duration** | **int64** | The length of time in minutes for which to return the metrics | [default to 5] - **interval** | **int64** | The interval in seconds between data points | [default to 30] - **filters** | **[]string** | List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names. | [default to []] - -### Return type - -[**MetricsRangeQueryList**](MetricsRangeQueryList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetVersionMetadata - -> VersionMetadata GetVersionMetadata(ctx).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.GetVersionMetadata(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetVersionMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetVersionMetadata`: VersionMetadata - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetVersionMetadata`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetVersionMetadataRequest struct via the builder pattern - - -### Return type - -[**VersionMetadata**](VersionMetadata.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateKafkaById - -> KafkaRequest UpdateKafkaById(ctx, id).KafkaUpdateRequest(kafkaUpdateRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - kafkaUpdateRequest := *openapiclient.NewKafkaUpdateRequest() // KafkaUpdateRequest | Update owner of kafka - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.DefaultApi.UpdateKafkaById(context.Background(), id).KafkaUpdateRequest(kafkaUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateKafkaById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateKafkaById`: KafkaRequest - fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateKafkaById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateKafkaByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **kafkaUpdateRequest** | [**KafkaUpdateRequest**](KafkaUpdateRequest.md) | Update owner of kafka | - -### Return type - -[**KafkaRequest**](KafkaRequest.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md deleted file mode 100644 index 112031e0..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Error.md +++ /dev/null @@ -1,161 +0,0 @@ -# Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Reason** | **string** | | -**OperationId** | Pointer to **string** | | [optional] -**Id** | **string** | | -**Kind** | **string** | | -**Href** | **string** | | -**Code** | **string** | | - -## Methods - -### NewError - -`func NewError(reason string, id string, kind string, href string, code string, ) *Error` - -NewError instantiates a new Error 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 - -### NewErrorWithDefaults - -`func NewErrorWithDefaults() *Error` - -NewErrorWithDefaults instantiates a new Error 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 - -### GetReason - -`func (o *Error) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *Error) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *Error) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetOperationId - -`func (o *Error) GetOperationId() string` - -GetOperationId returns the OperationId field if non-nil, zero value otherwise. - -### GetOperationIdOk - -`func (o *Error) GetOperationIdOk() (*string, bool)` - -GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperationId - -`func (o *Error) SetOperationId(v string)` - -SetOperationId sets OperationId field to given value. - -### HasOperationId - -`func (o *Error) HasOperationId() bool` - -HasOperationId returns a boolean if a field has been set. - -### GetId - -`func (o *Error) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *Error) 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 *Error) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *Error) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *Error) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *Error) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *Error) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *Error) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *Error) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetCode - -`func (o *Error) GetCode() string` - -GetCode returns the Code field if non-nil, zero value otherwise. - -### GetCodeOk - -`func (o *Error) GetCodeOk() (*string, bool)` - -GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCode - -`func (o *Error) SetCode(v string)` - -SetCode sets Code 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md deleted file mode 100644 index 02e7e299..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorList.md +++ /dev/null @@ -1,135 +0,0 @@ -# ErrorList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Page** | **int32** | | -**Size** | **int32** | | -**Total** | **int32** | | -**Items** | [**[]Error**](Error.md) | | - -## Methods - -### NewErrorList - -`func NewErrorList(kind string, page int32, size int32, total int32, items []Error, ) *ErrorList` - -NewErrorList instantiates a new ErrorList 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 - -### NewErrorListWithDefaults - -`func NewErrorListWithDefaults() *ErrorList` - -NewErrorListWithDefaults instantiates a new ErrorList 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 - -### GetKind - -`func (o *ErrorList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ErrorList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ErrorList) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetPage - -`func (o *ErrorList) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *ErrorList) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *ErrorList) SetPage(v int32)` - -SetPage sets Page field to given value. - - -### GetSize - -`func (o *ErrorList) GetSize() int32` - -GetSize returns the Size field if non-nil, zero value otherwise. - -### GetSizeOk - -`func (o *ErrorList) GetSizeOk() (*int32, bool)` - -GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSize - -`func (o *ErrorList) SetSize(v int32)` - -SetSize sets Size field to given value. - - -### GetTotal - -`func (o *ErrorList) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *ErrorList) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *ErrorList) SetTotal(v int32)` - -SetTotal sets Total field to given value. - - -### GetItems - -`func (o *ErrorList) GetItems() []Error` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *ErrorList) SetItems(v []Error)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md deleted file mode 100644 index 5cd69e9b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# ErrorListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]Error**](Error.md) | | [optional] - -## Methods - -### NewErrorListAllOf - -`func NewErrorListAllOf() *ErrorListAllOf` - -NewErrorListAllOf instantiates a new ErrorListAllOf 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 - -### NewErrorListAllOfWithDefaults - -`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` - -NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 - -### GetItems - -`func (o *ErrorListAllOf) GetItems() []Error` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *ErrorListAllOf) SetItems(v []Error)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *ErrorListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md deleted file mode 100644 index 8ce2d28e..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ErrorsApi.md +++ /dev/null @@ -1,141 +0,0 @@ -# \ErrorsApi - -All URIs are relative to *https://api.openshift.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetErrorById**](ErrorsApi.md#GetErrorById) | **Get** /api/kafkas_mgmt/v1/errors/{id} | -[**GetErrors**](ErrorsApi.md#GetErrors) | **Get** /api/kafkas_mgmt/v1/errors | - - - -## GetErrorById - -> Error GetErrorById(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ErrorsApi.GetErrorById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrorById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetErrorById`: Error - fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrorById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetErrorByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**Error**](Error.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetErrors - -> ErrorList GetErrors(ctx).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ErrorsApi.GetErrors(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ErrorsApi.GetErrors``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetErrors`: ErrorList - fmt.Fprintf(os.Stdout, "Response from `ErrorsApi.GetErrors`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetErrorsRequest struct via the builder pattern - - -### Return type - -[**ErrorList**](ErrorList.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md deleted file mode 100644 index 6201f262..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/InstantQuery.md +++ /dev/null @@ -1,103 +0,0 @@ -# InstantQuery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Metric** | Pointer to **map[string]string** | | [optional] -**Timestamp** | Pointer to **int64** | | [optional] -**Value** | **float64** | | - -## Methods - -### NewInstantQuery - -`func NewInstantQuery(value float64, ) *InstantQuery` - -NewInstantQuery instantiates a new InstantQuery 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 - -### NewInstantQueryWithDefaults - -`func NewInstantQueryWithDefaults() *InstantQuery` - -NewInstantQueryWithDefaults instantiates a new InstantQuery 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 - -### GetMetric - -`func (o *InstantQuery) GetMetric() map[string]string` - -GetMetric returns the Metric field if non-nil, zero value otherwise. - -### GetMetricOk - -`func (o *InstantQuery) GetMetricOk() (*map[string]string, bool)` - -GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMetric - -`func (o *InstantQuery) SetMetric(v map[string]string)` - -SetMetric sets Metric field to given value. - -### HasMetric - -`func (o *InstantQuery) HasMetric() bool` - -HasMetric returns a boolean if a field has been set. - -### GetTimestamp - -`func (o *InstantQuery) GetTimestamp() int64` - -GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. - -### GetTimestampOk - -`func (o *InstantQuery) GetTimestampOk() (*int64, bool)` - -GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimestamp - -`func (o *InstantQuery) SetTimestamp(v int64)` - -SetTimestamp sets Timestamp field to given value. - -### HasTimestamp - -`func (o *InstantQuery) HasTimestamp() bool` - -HasTimestamp returns a boolean if a field has been set. - -### GetValue - -`func (o *InstantQuery) GetValue() float64` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *InstantQuery) GetValueOk() (*float64, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *InstantQuery) SetValue(v float64)` - -SetValue sets Value 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md deleted file mode 100644 index af4112e1..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequest.md +++ /dev/null @@ -1,847 +0,0 @@ -# KafkaRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | | -**Kind** | **string** | | -**Href** | **string** | | -**Status** | Pointer to **string** | Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] | [optional] -**CloudProvider** | Pointer to **string** | Name of Cloud used to deploy. For example AWS | [optional] -**MultiAz** | **bool** | | -**Region** | Pointer to **string** | Values will be regions of specific cloud provider. For example: us-east-1 for AWS | [optional] -**Owner** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**BootstrapServerHost** | Pointer to **string** | | [optional] -**AdminApiServerUrl** | Pointer to **string** | The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] -**ExpiresAt** | Pointer to **NullableTime** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] -**FailedReason** | Pointer to **string** | | [optional] -**Version** | Pointer to **string** | | [optional] -**InstanceType** | Pointer to **string** | | [optional] -**InstanceTypeName** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**ReauthenticationEnabled** | **bool** | | -**KafkaStorageSize** | Pointer to **string** | Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. | [optional] -**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**BrowserUrl** | Pointer to **string** | | [optional] -**SizeId** | Pointer to **string** | | [optional] -**IngressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**EgressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**TotalMaxConnections** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxPartitions** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxDataRetentionPeriod** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxConnectionAttemptsPerSec** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**BillingCloudAccountId** | Pointer to **string** | | [optional] -**Marketplace** | Pointer to **string** | | [optional] -**BillingModel** | Pointer to **string** | | [optional] - -## Methods - -### NewKafkaRequest - -`func NewKafkaRequest(id string, kind string, href string, multiAz bool, reauthenticationEnabled bool, ) *KafkaRequest` - -NewKafkaRequest instantiates a new KafkaRequest 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 - -### NewKafkaRequestWithDefaults - -`func NewKafkaRequestWithDefaults() *KafkaRequest` - -NewKafkaRequestWithDefaults instantiates a new KafkaRequest 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 *KafkaRequest) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *KafkaRequest) 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 *KafkaRequest) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *KafkaRequest) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *KafkaRequest) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *KafkaRequest) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *KafkaRequest) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *KafkaRequest) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *KafkaRequest) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetStatus - -`func (o *KafkaRequest) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *KafkaRequest) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *KafkaRequest) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *KafkaRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetCloudProvider - -`func (o *KafkaRequest) GetCloudProvider() string` - -GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. - -### GetCloudProviderOk - -`func (o *KafkaRequest) GetCloudProviderOk() (*string, bool)` - -GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCloudProvider - -`func (o *KafkaRequest) SetCloudProvider(v string)` - -SetCloudProvider sets CloudProvider field to given value. - -### HasCloudProvider - -`func (o *KafkaRequest) HasCloudProvider() bool` - -HasCloudProvider returns a boolean if a field has been set. - -### GetMultiAz - -`func (o *KafkaRequest) GetMultiAz() bool` - -GetMultiAz returns the MultiAz field if non-nil, zero value otherwise. - -### GetMultiAzOk - -`func (o *KafkaRequest) GetMultiAzOk() (*bool, bool)` - -GetMultiAzOk returns a tuple with the MultiAz field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMultiAz - -`func (o *KafkaRequest) SetMultiAz(v bool)` - -SetMultiAz sets MultiAz field to given value. - - -### GetRegion - -`func (o *KafkaRequest) GetRegion() string` - -GetRegion returns the Region field if non-nil, zero value otherwise. - -### GetRegionOk - -`func (o *KafkaRequest) GetRegionOk() (*string, bool)` - -GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegion - -`func (o *KafkaRequest) SetRegion(v string)` - -SetRegion sets Region field to given value. - -### HasRegion - -`func (o *KafkaRequest) HasRegion() bool` - -HasRegion returns a boolean if a field has been set. - -### GetOwner - -`func (o *KafkaRequest) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *KafkaRequest) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *KafkaRequest) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *KafkaRequest) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetName - -`func (o *KafkaRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *KafkaRequest) 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 *KafkaRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *KafkaRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetBootstrapServerHost - -`func (o *KafkaRequest) GetBootstrapServerHost() string` - -GetBootstrapServerHost returns the BootstrapServerHost field if non-nil, zero value otherwise. - -### GetBootstrapServerHostOk - -`func (o *KafkaRequest) GetBootstrapServerHostOk() (*string, bool)` - -GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBootstrapServerHost - -`func (o *KafkaRequest) SetBootstrapServerHost(v string)` - -SetBootstrapServerHost sets BootstrapServerHost field to given value. - -### HasBootstrapServerHost - -`func (o *KafkaRequest) HasBootstrapServerHost() bool` - -HasBootstrapServerHost returns a boolean if a field has been set. - -### GetAdminApiServerUrl - -`func (o *KafkaRequest) GetAdminApiServerUrl() string` - -GetAdminApiServerUrl returns the AdminApiServerUrl field if non-nil, zero value otherwise. - -### GetAdminApiServerUrlOk - -`func (o *KafkaRequest) GetAdminApiServerUrlOk() (*string, bool)` - -GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdminApiServerUrl - -`func (o *KafkaRequest) SetAdminApiServerUrl(v string)` - -SetAdminApiServerUrl sets AdminApiServerUrl field to given value. - -### HasAdminApiServerUrl - -`func (o *KafkaRequest) HasAdminApiServerUrl() bool` - -HasAdminApiServerUrl returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *KafkaRequest) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *KafkaRequest) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *KafkaRequest) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *KafkaRequest) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExpiresAt - -`func (o *KafkaRequest) GetExpiresAt() time.Time` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *KafkaRequest) GetExpiresAtOk() (*time.Time, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *KafkaRequest) SetExpiresAt(v time.Time)` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *KafkaRequest) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### SetExpiresAtNil - -`func (o *KafkaRequest) SetExpiresAtNil(b bool)` - - SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil - -### UnsetExpiresAt -`func (o *KafkaRequest) UnsetExpiresAt()` - -UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil -### GetUpdatedAt - -`func (o *KafkaRequest) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *KafkaRequest) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *KafkaRequest) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *KafkaRequest) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetFailedReason - -`func (o *KafkaRequest) GetFailedReason() string` - -GetFailedReason returns the FailedReason field if non-nil, zero value otherwise. - -### GetFailedReasonOk - -`func (o *KafkaRequest) GetFailedReasonOk() (*string, bool)` - -GetFailedReasonOk returns a tuple with the FailedReason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailedReason - -`func (o *KafkaRequest) SetFailedReason(v string)` - -SetFailedReason sets FailedReason field to given value. - -### HasFailedReason - -`func (o *KafkaRequest) HasFailedReason() bool` - -HasFailedReason returns a boolean if a field has been set. - -### GetVersion - -`func (o *KafkaRequest) GetVersion() string` - -GetVersion returns the Version field if non-nil, zero value otherwise. - -### GetVersionOk - -`func (o *KafkaRequest) GetVersionOk() (*string, bool)` - -GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVersion - -`func (o *KafkaRequest) SetVersion(v string)` - -SetVersion sets Version field to given value. - -### HasVersion - -`func (o *KafkaRequest) HasVersion() bool` - -HasVersion returns a boolean if a field has been set. - -### GetInstanceType - -`func (o *KafkaRequest) GetInstanceType() string` - -GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. - -### GetInstanceTypeOk - -`func (o *KafkaRequest) GetInstanceTypeOk() (*string, bool)` - -GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceType - -`func (o *KafkaRequest) SetInstanceType(v string)` - -SetInstanceType sets InstanceType field to given value. - -### HasInstanceType - -`func (o *KafkaRequest) HasInstanceType() bool` - -HasInstanceType returns a boolean if a field has been set. - -### GetInstanceTypeName - -`func (o *KafkaRequest) GetInstanceTypeName() string` - -GetInstanceTypeName returns the InstanceTypeName field if non-nil, zero value otherwise. - -### GetInstanceTypeNameOk - -`func (o *KafkaRequest) GetInstanceTypeNameOk() (*string, bool)` - -GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceTypeName - -`func (o *KafkaRequest) SetInstanceTypeName(v string)` - -SetInstanceTypeName sets InstanceTypeName field to given value. - -### HasInstanceTypeName - -`func (o *KafkaRequest) HasInstanceTypeName() bool` - -HasInstanceTypeName returns a boolean if a field has been set. - -### GetReauthenticationEnabled - -`func (o *KafkaRequest) GetReauthenticationEnabled() bool` - -GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. - -### GetReauthenticationEnabledOk - -`func (o *KafkaRequest) GetReauthenticationEnabledOk() (*bool, bool)` - -GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReauthenticationEnabled - -`func (o *KafkaRequest) SetReauthenticationEnabled(v bool)` - -SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. - - -### GetKafkaStorageSize - -`func (o *KafkaRequest) GetKafkaStorageSize() string` - -GetKafkaStorageSize returns the KafkaStorageSize field if non-nil, zero value otherwise. - -### GetKafkaStorageSizeOk - -`func (o *KafkaRequest) GetKafkaStorageSizeOk() (*string, bool)` - -GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKafkaStorageSize - -`func (o *KafkaRequest) SetKafkaStorageSize(v string)` - -SetKafkaStorageSize sets KafkaStorageSize field to given value. - -### HasKafkaStorageSize - -`func (o *KafkaRequest) HasKafkaStorageSize() bool` - -HasKafkaStorageSize returns a boolean if a field has been set. - -### GetMaxDataRetentionSize - -`func (o *KafkaRequest) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` - -GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. - -### GetMaxDataRetentionSizeOk - -`func (o *KafkaRequest) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionSize - -`func (o *KafkaRequest) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` - -SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. - -### HasMaxDataRetentionSize - -`func (o *KafkaRequest) HasMaxDataRetentionSize() bool` - -HasMaxDataRetentionSize returns a boolean if a field has been set. - -### GetBrowserUrl - -`func (o *KafkaRequest) GetBrowserUrl() string` - -GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. - -### GetBrowserUrlOk - -`func (o *KafkaRequest) GetBrowserUrlOk() (*string, bool)` - -GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBrowserUrl - -`func (o *KafkaRequest) SetBrowserUrl(v string)` - -SetBrowserUrl sets BrowserUrl field to given value. - -### HasBrowserUrl - -`func (o *KafkaRequest) HasBrowserUrl() bool` - -HasBrowserUrl returns a boolean if a field has been set. - -### GetSizeId - -`func (o *KafkaRequest) GetSizeId() string` - -GetSizeId returns the SizeId field if non-nil, zero value otherwise. - -### GetSizeIdOk - -`func (o *KafkaRequest) GetSizeIdOk() (*string, bool)` - -GetSizeIdOk returns a tuple with the SizeId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSizeId - -`func (o *KafkaRequest) SetSizeId(v string)` - -SetSizeId sets SizeId field to given value. - -### HasSizeId - -`func (o *KafkaRequest) HasSizeId() bool` - -HasSizeId returns a boolean if a field has been set. - -### GetIngressThroughputPerSec - -`func (o *KafkaRequest) GetIngressThroughputPerSec() string` - -GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. - -### GetIngressThroughputPerSecOk - -`func (o *KafkaRequest) GetIngressThroughputPerSecOk() (*string, bool)` - -GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIngressThroughputPerSec - -`func (o *KafkaRequest) SetIngressThroughputPerSec(v string)` - -SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. - -### HasIngressThroughputPerSec - -`func (o *KafkaRequest) HasIngressThroughputPerSec() bool` - -HasIngressThroughputPerSec returns a boolean if a field has been set. - -### GetEgressThroughputPerSec - -`func (o *KafkaRequest) GetEgressThroughputPerSec() string` - -GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. - -### GetEgressThroughputPerSecOk - -`func (o *KafkaRequest) GetEgressThroughputPerSecOk() (*string, bool)` - -GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEgressThroughputPerSec - -`func (o *KafkaRequest) SetEgressThroughputPerSec(v string)` - -SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. - -### HasEgressThroughputPerSec - -`func (o *KafkaRequest) HasEgressThroughputPerSec() bool` - -HasEgressThroughputPerSec returns a boolean if a field has been set. - -### GetTotalMaxConnections - -`func (o *KafkaRequest) GetTotalMaxConnections() int32` - -GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. - -### GetTotalMaxConnectionsOk - -`func (o *KafkaRequest) GetTotalMaxConnectionsOk() (*int32, bool)` - -GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalMaxConnections - -`func (o *KafkaRequest) SetTotalMaxConnections(v int32)` - -SetTotalMaxConnections sets TotalMaxConnections field to given value. - -### HasTotalMaxConnections - -`func (o *KafkaRequest) HasTotalMaxConnections() bool` - -HasTotalMaxConnections returns a boolean if a field has been set. - -### GetMaxPartitions - -`func (o *KafkaRequest) GetMaxPartitions() int32` - -GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. - -### GetMaxPartitionsOk - -`func (o *KafkaRequest) GetMaxPartitionsOk() (*int32, bool)` - -GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxPartitions - -`func (o *KafkaRequest) SetMaxPartitions(v int32)` - -SetMaxPartitions sets MaxPartitions field to given value. - -### HasMaxPartitions - -`func (o *KafkaRequest) HasMaxPartitions() bool` - -HasMaxPartitions returns a boolean if a field has been set. - -### GetMaxDataRetentionPeriod - -`func (o *KafkaRequest) GetMaxDataRetentionPeriod() string` - -GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. - -### GetMaxDataRetentionPeriodOk - -`func (o *KafkaRequest) GetMaxDataRetentionPeriodOk() (*string, bool)` - -GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionPeriod - -`func (o *KafkaRequest) SetMaxDataRetentionPeriod(v string)` - -SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. - -### HasMaxDataRetentionPeriod - -`func (o *KafkaRequest) HasMaxDataRetentionPeriod() bool` - -HasMaxDataRetentionPeriod returns a boolean if a field has been set. - -### GetMaxConnectionAttemptsPerSec - -`func (o *KafkaRequest) GetMaxConnectionAttemptsPerSec() int32` - -GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. - -### GetMaxConnectionAttemptsPerSecOk - -`func (o *KafkaRequest) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` - -GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxConnectionAttemptsPerSec - -`func (o *KafkaRequest) SetMaxConnectionAttemptsPerSec(v int32)` - -SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. - -### HasMaxConnectionAttemptsPerSec - -`func (o *KafkaRequest) HasMaxConnectionAttemptsPerSec() bool` - -HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. - -### GetBillingCloudAccountId - -`func (o *KafkaRequest) GetBillingCloudAccountId() string` - -GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. - -### GetBillingCloudAccountIdOk - -`func (o *KafkaRequest) GetBillingCloudAccountIdOk() (*string, bool)` - -GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingCloudAccountId - -`func (o *KafkaRequest) SetBillingCloudAccountId(v string)` - -SetBillingCloudAccountId sets BillingCloudAccountId field to given value. - -### HasBillingCloudAccountId - -`func (o *KafkaRequest) HasBillingCloudAccountId() bool` - -HasBillingCloudAccountId returns a boolean if a field has been set. - -### GetMarketplace - -`func (o *KafkaRequest) GetMarketplace() string` - -GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. - -### GetMarketplaceOk - -`func (o *KafkaRequest) GetMarketplaceOk() (*string, bool)` - -GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarketplace - -`func (o *KafkaRequest) SetMarketplace(v string)` - -SetMarketplace sets Marketplace field to given value. - -### HasMarketplace - -`func (o *KafkaRequest) HasMarketplace() bool` - -HasMarketplace returns a boolean if a field has been set. - -### GetBillingModel - -`func (o *KafkaRequest) GetBillingModel() string` - -GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. - -### GetBillingModelOk - -`func (o *KafkaRequest) GetBillingModelOk() (*string, bool)` - -GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingModel - -`func (o *KafkaRequest) SetBillingModel(v string)` - -SetBillingModel sets BillingModel field to given value. - -### HasBillingModel - -`func (o *KafkaRequest) HasBillingModel() bool` - -HasBillingModel 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md deleted file mode 100644 index 1edbb452..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md +++ /dev/null @@ -1,784 +0,0 @@ -# KafkaRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | Pointer to **string** | Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] | [optional] -**CloudProvider** | Pointer to **string** | Name of Cloud used to deploy. For example AWS | [optional] -**MultiAz** | **bool** | | -**Region** | Pointer to **string** | Values will be regions of specific cloud provider. For example: us-east-1 for AWS | [optional] -**Owner** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**BootstrapServerHost** | Pointer to **string** | | [optional] -**AdminApiServerUrl** | Pointer to **string** | The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] -**ExpiresAt** | Pointer to **NullableTime** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] -**FailedReason** | Pointer to **string** | | [optional] -**Version** | Pointer to **string** | | [optional] -**InstanceType** | Pointer to **string** | | [optional] -**InstanceTypeName** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**ReauthenticationEnabled** | **bool** | | -**KafkaStorageSize** | Pointer to **string** | Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. | [optional] -**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**BrowserUrl** | Pointer to **string** | | [optional] -**SizeId** | Pointer to **string** | | [optional] -**IngressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**EgressThroughputPerSec** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**TotalMaxConnections** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxPartitions** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxDataRetentionPeriod** | Pointer to **string** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**MaxConnectionAttemptsPerSec** | Pointer to **int32** | This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. | [optional] -**BillingCloudAccountId** | Pointer to **string** | | [optional] -**Marketplace** | Pointer to **string** | | [optional] -**BillingModel** | Pointer to **string** | | [optional] - -## Methods - -### NewKafkaRequestAllOf - -`func NewKafkaRequestAllOf(multiAz bool, reauthenticationEnabled bool, ) *KafkaRequestAllOf` - -NewKafkaRequestAllOf instantiates a new KafkaRequestAllOf 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 - -### NewKafkaRequestAllOfWithDefaults - -`func NewKafkaRequestAllOfWithDefaults() *KafkaRequestAllOf` - -NewKafkaRequestAllOfWithDefaults instantiates a new KafkaRequestAllOf 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 - -### GetStatus - -`func (o *KafkaRequestAllOf) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *KafkaRequestAllOf) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *KafkaRequestAllOf) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *KafkaRequestAllOf) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetCloudProvider - -`func (o *KafkaRequestAllOf) GetCloudProvider() string` - -GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. - -### GetCloudProviderOk - -`func (o *KafkaRequestAllOf) GetCloudProviderOk() (*string, bool)` - -GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCloudProvider - -`func (o *KafkaRequestAllOf) SetCloudProvider(v string)` - -SetCloudProvider sets CloudProvider field to given value. - -### HasCloudProvider - -`func (o *KafkaRequestAllOf) HasCloudProvider() bool` - -HasCloudProvider returns a boolean if a field has been set. - -### GetMultiAz - -`func (o *KafkaRequestAllOf) GetMultiAz() bool` - -GetMultiAz returns the MultiAz field if non-nil, zero value otherwise. - -### GetMultiAzOk - -`func (o *KafkaRequestAllOf) GetMultiAzOk() (*bool, bool)` - -GetMultiAzOk returns a tuple with the MultiAz field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMultiAz - -`func (o *KafkaRequestAllOf) SetMultiAz(v bool)` - -SetMultiAz sets MultiAz field to given value. - - -### GetRegion - -`func (o *KafkaRequestAllOf) GetRegion() string` - -GetRegion returns the Region field if non-nil, zero value otherwise. - -### GetRegionOk - -`func (o *KafkaRequestAllOf) GetRegionOk() (*string, bool)` - -GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegion - -`func (o *KafkaRequestAllOf) SetRegion(v string)` - -SetRegion sets Region field to given value. - -### HasRegion - -`func (o *KafkaRequestAllOf) HasRegion() bool` - -HasRegion returns a boolean if a field has been set. - -### GetOwner - -`func (o *KafkaRequestAllOf) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *KafkaRequestAllOf) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *KafkaRequestAllOf) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *KafkaRequestAllOf) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetName - -`func (o *KafkaRequestAllOf) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *KafkaRequestAllOf) 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 *KafkaRequestAllOf) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *KafkaRequestAllOf) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetBootstrapServerHost - -`func (o *KafkaRequestAllOf) GetBootstrapServerHost() string` - -GetBootstrapServerHost returns the BootstrapServerHost field if non-nil, zero value otherwise. - -### GetBootstrapServerHostOk - -`func (o *KafkaRequestAllOf) GetBootstrapServerHostOk() (*string, bool)` - -GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBootstrapServerHost - -`func (o *KafkaRequestAllOf) SetBootstrapServerHost(v string)` - -SetBootstrapServerHost sets BootstrapServerHost field to given value. - -### HasBootstrapServerHost - -`func (o *KafkaRequestAllOf) HasBootstrapServerHost() bool` - -HasBootstrapServerHost returns a boolean if a field has been set. - -### GetAdminApiServerUrl - -`func (o *KafkaRequestAllOf) GetAdminApiServerUrl() string` - -GetAdminApiServerUrl returns the AdminApiServerUrl field if non-nil, zero value otherwise. - -### GetAdminApiServerUrlOk - -`func (o *KafkaRequestAllOf) GetAdminApiServerUrlOk() (*string, bool)` - -GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAdminApiServerUrl - -`func (o *KafkaRequestAllOf) SetAdminApiServerUrl(v string)` - -SetAdminApiServerUrl sets AdminApiServerUrl field to given value. - -### HasAdminApiServerUrl - -`func (o *KafkaRequestAllOf) HasAdminApiServerUrl() bool` - -HasAdminApiServerUrl returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *KafkaRequestAllOf) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *KafkaRequestAllOf) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *KafkaRequestAllOf) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *KafkaRequestAllOf) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExpiresAt - -`func (o *KafkaRequestAllOf) GetExpiresAt() time.Time` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *KafkaRequestAllOf) GetExpiresAtOk() (*time.Time, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *KafkaRequestAllOf) SetExpiresAt(v time.Time)` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *KafkaRequestAllOf) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### SetExpiresAtNil - -`func (o *KafkaRequestAllOf) SetExpiresAtNil(b bool)` - - SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil - -### UnsetExpiresAt -`func (o *KafkaRequestAllOf) UnsetExpiresAt()` - -UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil -### GetUpdatedAt - -`func (o *KafkaRequestAllOf) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *KafkaRequestAllOf) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *KafkaRequestAllOf) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *KafkaRequestAllOf) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetFailedReason - -`func (o *KafkaRequestAllOf) GetFailedReason() string` - -GetFailedReason returns the FailedReason field if non-nil, zero value otherwise. - -### GetFailedReasonOk - -`func (o *KafkaRequestAllOf) GetFailedReasonOk() (*string, bool)` - -GetFailedReasonOk returns a tuple with the FailedReason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFailedReason - -`func (o *KafkaRequestAllOf) SetFailedReason(v string)` - -SetFailedReason sets FailedReason field to given value. - -### HasFailedReason - -`func (o *KafkaRequestAllOf) HasFailedReason() bool` - -HasFailedReason returns a boolean if a field has been set. - -### GetVersion - -`func (o *KafkaRequestAllOf) GetVersion() string` - -GetVersion returns the Version field if non-nil, zero value otherwise. - -### GetVersionOk - -`func (o *KafkaRequestAllOf) GetVersionOk() (*string, bool)` - -GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVersion - -`func (o *KafkaRequestAllOf) SetVersion(v string)` - -SetVersion sets Version field to given value. - -### HasVersion - -`func (o *KafkaRequestAllOf) HasVersion() bool` - -HasVersion returns a boolean if a field has been set. - -### GetInstanceType - -`func (o *KafkaRequestAllOf) GetInstanceType() string` - -GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. - -### GetInstanceTypeOk - -`func (o *KafkaRequestAllOf) GetInstanceTypeOk() (*string, bool)` - -GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceType - -`func (o *KafkaRequestAllOf) SetInstanceType(v string)` - -SetInstanceType sets InstanceType field to given value. - -### HasInstanceType - -`func (o *KafkaRequestAllOf) HasInstanceType() bool` - -HasInstanceType returns a boolean if a field has been set. - -### GetInstanceTypeName - -`func (o *KafkaRequestAllOf) GetInstanceTypeName() string` - -GetInstanceTypeName returns the InstanceTypeName field if non-nil, zero value otherwise. - -### GetInstanceTypeNameOk - -`func (o *KafkaRequestAllOf) GetInstanceTypeNameOk() (*string, bool)` - -GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceTypeName - -`func (o *KafkaRequestAllOf) SetInstanceTypeName(v string)` - -SetInstanceTypeName sets InstanceTypeName field to given value. - -### HasInstanceTypeName - -`func (o *KafkaRequestAllOf) HasInstanceTypeName() bool` - -HasInstanceTypeName returns a boolean if a field has been set. - -### GetReauthenticationEnabled - -`func (o *KafkaRequestAllOf) GetReauthenticationEnabled() bool` - -GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. - -### GetReauthenticationEnabledOk - -`func (o *KafkaRequestAllOf) GetReauthenticationEnabledOk() (*bool, bool)` - -GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReauthenticationEnabled - -`func (o *KafkaRequestAllOf) SetReauthenticationEnabled(v bool)` - -SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. - - -### GetKafkaStorageSize - -`func (o *KafkaRequestAllOf) GetKafkaStorageSize() string` - -GetKafkaStorageSize returns the KafkaStorageSize field if non-nil, zero value otherwise. - -### GetKafkaStorageSizeOk - -`func (o *KafkaRequestAllOf) GetKafkaStorageSizeOk() (*string, bool)` - -GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKafkaStorageSize - -`func (o *KafkaRequestAllOf) SetKafkaStorageSize(v string)` - -SetKafkaStorageSize sets KafkaStorageSize field to given value. - -### HasKafkaStorageSize - -`func (o *KafkaRequestAllOf) HasKafkaStorageSize() bool` - -HasKafkaStorageSize returns a boolean if a field has been set. - -### GetMaxDataRetentionSize - -`func (o *KafkaRequestAllOf) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` - -GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. - -### GetMaxDataRetentionSizeOk - -`func (o *KafkaRequestAllOf) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionSize - -`func (o *KafkaRequestAllOf) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` - -SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. - -### HasMaxDataRetentionSize - -`func (o *KafkaRequestAllOf) HasMaxDataRetentionSize() bool` - -HasMaxDataRetentionSize returns a boolean if a field has been set. - -### GetBrowserUrl - -`func (o *KafkaRequestAllOf) GetBrowserUrl() string` - -GetBrowserUrl returns the BrowserUrl field if non-nil, zero value otherwise. - -### GetBrowserUrlOk - -`func (o *KafkaRequestAllOf) GetBrowserUrlOk() (*string, bool)` - -GetBrowserUrlOk returns a tuple with the BrowserUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBrowserUrl - -`func (o *KafkaRequestAllOf) SetBrowserUrl(v string)` - -SetBrowserUrl sets BrowserUrl field to given value. - -### HasBrowserUrl - -`func (o *KafkaRequestAllOf) HasBrowserUrl() bool` - -HasBrowserUrl returns a boolean if a field has been set. - -### GetSizeId - -`func (o *KafkaRequestAllOf) GetSizeId() string` - -GetSizeId returns the SizeId field if non-nil, zero value otherwise. - -### GetSizeIdOk - -`func (o *KafkaRequestAllOf) GetSizeIdOk() (*string, bool)` - -GetSizeIdOk returns a tuple with the SizeId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSizeId - -`func (o *KafkaRequestAllOf) SetSizeId(v string)` - -SetSizeId sets SizeId field to given value. - -### HasSizeId - -`func (o *KafkaRequestAllOf) HasSizeId() bool` - -HasSizeId returns a boolean if a field has been set. - -### GetIngressThroughputPerSec - -`func (o *KafkaRequestAllOf) GetIngressThroughputPerSec() string` - -GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. - -### GetIngressThroughputPerSecOk - -`func (o *KafkaRequestAllOf) GetIngressThroughputPerSecOk() (*string, bool)` - -GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIngressThroughputPerSec - -`func (o *KafkaRequestAllOf) SetIngressThroughputPerSec(v string)` - -SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. - -### HasIngressThroughputPerSec - -`func (o *KafkaRequestAllOf) HasIngressThroughputPerSec() bool` - -HasIngressThroughputPerSec returns a boolean if a field has been set. - -### GetEgressThroughputPerSec - -`func (o *KafkaRequestAllOf) GetEgressThroughputPerSec() string` - -GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. - -### GetEgressThroughputPerSecOk - -`func (o *KafkaRequestAllOf) GetEgressThroughputPerSecOk() (*string, bool)` - -GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEgressThroughputPerSec - -`func (o *KafkaRequestAllOf) SetEgressThroughputPerSec(v string)` - -SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. - -### HasEgressThroughputPerSec - -`func (o *KafkaRequestAllOf) HasEgressThroughputPerSec() bool` - -HasEgressThroughputPerSec returns a boolean if a field has been set. - -### GetTotalMaxConnections - -`func (o *KafkaRequestAllOf) GetTotalMaxConnections() int32` - -GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. - -### GetTotalMaxConnectionsOk - -`func (o *KafkaRequestAllOf) GetTotalMaxConnectionsOk() (*int32, bool)` - -GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalMaxConnections - -`func (o *KafkaRequestAllOf) SetTotalMaxConnections(v int32)` - -SetTotalMaxConnections sets TotalMaxConnections field to given value. - -### HasTotalMaxConnections - -`func (o *KafkaRequestAllOf) HasTotalMaxConnections() bool` - -HasTotalMaxConnections returns a boolean if a field has been set. - -### GetMaxPartitions - -`func (o *KafkaRequestAllOf) GetMaxPartitions() int32` - -GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. - -### GetMaxPartitionsOk - -`func (o *KafkaRequestAllOf) GetMaxPartitionsOk() (*int32, bool)` - -GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxPartitions - -`func (o *KafkaRequestAllOf) SetMaxPartitions(v int32)` - -SetMaxPartitions sets MaxPartitions field to given value. - -### HasMaxPartitions - -`func (o *KafkaRequestAllOf) HasMaxPartitions() bool` - -HasMaxPartitions returns a boolean if a field has been set. - -### GetMaxDataRetentionPeriod - -`func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriod() string` - -GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. - -### GetMaxDataRetentionPeriodOk - -`func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriodOk() (*string, bool)` - -GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionPeriod - -`func (o *KafkaRequestAllOf) SetMaxDataRetentionPeriod(v string)` - -SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. - -### HasMaxDataRetentionPeriod - -`func (o *KafkaRequestAllOf) HasMaxDataRetentionPeriod() bool` - -HasMaxDataRetentionPeriod returns a boolean if a field has been set. - -### GetMaxConnectionAttemptsPerSec - -`func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSec() int32` - -GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. - -### GetMaxConnectionAttemptsPerSecOk - -`func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` - -GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxConnectionAttemptsPerSec - -`func (o *KafkaRequestAllOf) SetMaxConnectionAttemptsPerSec(v int32)` - -SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. - -### HasMaxConnectionAttemptsPerSec - -`func (o *KafkaRequestAllOf) HasMaxConnectionAttemptsPerSec() bool` - -HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. - -### GetBillingCloudAccountId - -`func (o *KafkaRequestAllOf) GetBillingCloudAccountId() string` - -GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. - -### GetBillingCloudAccountIdOk - -`func (o *KafkaRequestAllOf) GetBillingCloudAccountIdOk() (*string, bool)` - -GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingCloudAccountId - -`func (o *KafkaRequestAllOf) SetBillingCloudAccountId(v string)` - -SetBillingCloudAccountId sets BillingCloudAccountId field to given value. - -### HasBillingCloudAccountId - -`func (o *KafkaRequestAllOf) HasBillingCloudAccountId() bool` - -HasBillingCloudAccountId returns a boolean if a field has been set. - -### GetMarketplace - -`func (o *KafkaRequestAllOf) GetMarketplace() string` - -GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. - -### GetMarketplaceOk - -`func (o *KafkaRequestAllOf) GetMarketplaceOk() (*string, bool)` - -GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarketplace - -`func (o *KafkaRequestAllOf) SetMarketplace(v string)` - -SetMarketplace sets Marketplace field to given value. - -### HasMarketplace - -`func (o *KafkaRequestAllOf) HasMarketplace() bool` - -HasMarketplace returns a boolean if a field has been set. - -### GetBillingModel - -`func (o *KafkaRequestAllOf) GetBillingModel() string` - -GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. - -### GetBillingModelOk - -`func (o *KafkaRequestAllOf) GetBillingModelOk() (*string, bool)` - -GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingModel - -`func (o *KafkaRequestAllOf) SetBillingModel(v string)` - -SetBillingModel sets BillingModel field to given value. - -### HasBillingModel - -`func (o *KafkaRequestAllOf) HasBillingModel() bool` - -HasBillingModel 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md deleted file mode 100644 index 25e15d56..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestList.md +++ /dev/null @@ -1,135 +0,0 @@ -# KafkaRequestList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Page** | **int32** | | -**Size** | **int32** | | -**Total** | **int32** | | -**Items** | [**[]KafkaRequest**](KafkaRequest.md) | | - -## Methods - -### NewKafkaRequestList - -`func NewKafkaRequestList(kind string, page int32, size int32, total int32, items []KafkaRequest, ) *KafkaRequestList` - -NewKafkaRequestList instantiates a new KafkaRequestList 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 - -### NewKafkaRequestListWithDefaults - -`func NewKafkaRequestListWithDefaults() *KafkaRequestList` - -NewKafkaRequestListWithDefaults instantiates a new KafkaRequestList 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 - -### GetKind - -`func (o *KafkaRequestList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *KafkaRequestList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *KafkaRequestList) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetPage - -`func (o *KafkaRequestList) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *KafkaRequestList) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *KafkaRequestList) SetPage(v int32)` - -SetPage sets Page field to given value. - - -### GetSize - -`func (o *KafkaRequestList) GetSize() int32` - -GetSize returns the Size field if non-nil, zero value otherwise. - -### GetSizeOk - -`func (o *KafkaRequestList) GetSizeOk() (*int32, bool)` - -GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSize - -`func (o *KafkaRequestList) SetSize(v int32)` - -SetSize sets Size field to given value. - - -### GetTotal - -`func (o *KafkaRequestList) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *KafkaRequestList) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *KafkaRequestList) SetTotal(v int32)` - -SetTotal sets Total field to given value. - - -### GetItems - -`func (o *KafkaRequestList) GetItems() []KafkaRequest` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *KafkaRequestList) GetItemsOk() (*[]KafkaRequest, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *KafkaRequestList) SetItems(v []KafkaRequest)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md deleted file mode 100644 index 06bc4107..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# KafkaRequestListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]KafkaRequest**](KafkaRequest.md) | | [optional] - -## Methods - -### NewKafkaRequestListAllOf - -`func NewKafkaRequestListAllOf() *KafkaRequestListAllOf` - -NewKafkaRequestListAllOf instantiates a new KafkaRequestListAllOf 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 - -### NewKafkaRequestListAllOfWithDefaults - -`func NewKafkaRequestListAllOfWithDefaults() *KafkaRequestListAllOf` - -NewKafkaRequestListAllOfWithDefaults instantiates a new KafkaRequestListAllOf 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 - -### GetItems - -`func (o *KafkaRequestListAllOf) GetItems() []KafkaRequest` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *KafkaRequestListAllOf) GetItemsOk() (*[]KafkaRequest, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *KafkaRequestListAllOf) SetItems(v []KafkaRequest)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *KafkaRequestListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md deleted file mode 100644 index ff430c93..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md +++ /dev/null @@ -1,273 +0,0 @@ -# KafkaRequestPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CloudProvider** | Pointer to **string** | The cloud provider where the Kafka cluster will be created in | [optional] -**Name** | **string** | The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. | -**Region** | Pointer to **string** | The region where the Kafka cluster will be created in | [optional] -**ReauthenticationEnabled** | Pointer to **NullableBool** | Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. The default value is true | [optional] -**Plan** | Pointer to **string** | kafka plan in a format of <instance_type>.<size_id> | [optional] -**BillingCloudAccountId** | Pointer to **NullableString** | cloud account id used to purchase the instance | [optional] -**Marketplace** | Pointer to **NullableString** | marketplace where the instance is purchased on | [optional] -**BillingModel** | Pointer to **NullableString** | billing model to use | [optional] - -## Methods - -### NewKafkaRequestPayload - -`func NewKafkaRequestPayload(name string, ) *KafkaRequestPayload` - -NewKafkaRequestPayload instantiates a new KafkaRequestPayload 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 - -### NewKafkaRequestPayloadWithDefaults - -`func NewKafkaRequestPayloadWithDefaults() *KafkaRequestPayload` - -NewKafkaRequestPayloadWithDefaults instantiates a new KafkaRequestPayload 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 - -### GetCloudProvider - -`func (o *KafkaRequestPayload) GetCloudProvider() string` - -GetCloudProvider returns the CloudProvider field if non-nil, zero value otherwise. - -### GetCloudProviderOk - -`func (o *KafkaRequestPayload) GetCloudProviderOk() (*string, bool)` - -GetCloudProviderOk returns a tuple with the CloudProvider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCloudProvider - -`func (o *KafkaRequestPayload) SetCloudProvider(v string)` - -SetCloudProvider sets CloudProvider field to given value. - -### HasCloudProvider - -`func (o *KafkaRequestPayload) HasCloudProvider() bool` - -HasCloudProvider returns a boolean if a field has been set. - -### GetName - -`func (o *KafkaRequestPayload) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *KafkaRequestPayload) 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 *KafkaRequestPayload) SetName(v string)` - -SetName sets Name field to given value. - - -### GetRegion - -`func (o *KafkaRequestPayload) GetRegion() string` - -GetRegion returns the Region field if non-nil, zero value otherwise. - -### GetRegionOk - -`func (o *KafkaRequestPayload) GetRegionOk() (*string, bool)` - -GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegion - -`func (o *KafkaRequestPayload) SetRegion(v string)` - -SetRegion sets Region field to given value. - -### HasRegion - -`func (o *KafkaRequestPayload) HasRegion() bool` - -HasRegion returns a boolean if a field has been set. - -### GetReauthenticationEnabled - -`func (o *KafkaRequestPayload) GetReauthenticationEnabled() bool` - -GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. - -### GetReauthenticationEnabledOk - -`func (o *KafkaRequestPayload) GetReauthenticationEnabledOk() (*bool, bool)` - -GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReauthenticationEnabled - -`func (o *KafkaRequestPayload) SetReauthenticationEnabled(v bool)` - -SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. - -### HasReauthenticationEnabled - -`func (o *KafkaRequestPayload) HasReauthenticationEnabled() bool` - -HasReauthenticationEnabled returns a boolean if a field has been set. - -### SetReauthenticationEnabledNil - -`func (o *KafkaRequestPayload) SetReauthenticationEnabledNil(b bool)` - - SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil - -### UnsetReauthenticationEnabled -`func (o *KafkaRequestPayload) UnsetReauthenticationEnabled()` - -UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil -### GetPlan - -`func (o *KafkaRequestPayload) GetPlan() string` - -GetPlan returns the Plan field if non-nil, zero value otherwise. - -### GetPlanOk - -`func (o *KafkaRequestPayload) GetPlanOk() (*string, bool)` - -GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlan - -`func (o *KafkaRequestPayload) SetPlan(v string)` - -SetPlan sets Plan field to given value. - -### HasPlan - -`func (o *KafkaRequestPayload) HasPlan() bool` - -HasPlan returns a boolean if a field has been set. - -### GetBillingCloudAccountId - -`func (o *KafkaRequestPayload) GetBillingCloudAccountId() string` - -GetBillingCloudAccountId returns the BillingCloudAccountId field if non-nil, zero value otherwise. - -### GetBillingCloudAccountIdOk - -`func (o *KafkaRequestPayload) GetBillingCloudAccountIdOk() (*string, bool)` - -GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingCloudAccountId - -`func (o *KafkaRequestPayload) SetBillingCloudAccountId(v string)` - -SetBillingCloudAccountId sets BillingCloudAccountId field to given value. - -### HasBillingCloudAccountId - -`func (o *KafkaRequestPayload) HasBillingCloudAccountId() bool` - -HasBillingCloudAccountId returns a boolean if a field has been set. - -### SetBillingCloudAccountIdNil - -`func (o *KafkaRequestPayload) SetBillingCloudAccountIdNil(b bool)` - - SetBillingCloudAccountIdNil sets the value for BillingCloudAccountId to be an explicit nil - -### UnsetBillingCloudAccountId -`func (o *KafkaRequestPayload) UnsetBillingCloudAccountId()` - -UnsetBillingCloudAccountId ensures that no value is present for BillingCloudAccountId, not even an explicit nil -### GetMarketplace - -`func (o *KafkaRequestPayload) GetMarketplace() string` - -GetMarketplace returns the Marketplace field if non-nil, zero value otherwise. - -### GetMarketplaceOk - -`func (o *KafkaRequestPayload) GetMarketplaceOk() (*string, bool)` - -GetMarketplaceOk returns a tuple with the Marketplace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarketplace - -`func (o *KafkaRequestPayload) SetMarketplace(v string)` - -SetMarketplace sets Marketplace field to given value. - -### HasMarketplace - -`func (o *KafkaRequestPayload) HasMarketplace() bool` - -HasMarketplace returns a boolean if a field has been set. - -### SetMarketplaceNil - -`func (o *KafkaRequestPayload) SetMarketplaceNil(b bool)` - - SetMarketplaceNil sets the value for Marketplace to be an explicit nil - -### UnsetMarketplace -`func (o *KafkaRequestPayload) UnsetMarketplace()` - -UnsetMarketplace ensures that no value is present for Marketplace, not even an explicit nil -### GetBillingModel - -`func (o *KafkaRequestPayload) GetBillingModel() string` - -GetBillingModel returns the BillingModel field if non-nil, zero value otherwise. - -### GetBillingModelOk - -`func (o *KafkaRequestPayload) GetBillingModelOk() (*string, bool)` - -GetBillingModelOk returns a tuple with the BillingModel field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBillingModel - -`func (o *KafkaRequestPayload) SetBillingModel(v string)` - -SetBillingModel sets BillingModel field to given value. - -### HasBillingModel - -`func (o *KafkaRequestPayload) HasBillingModel() bool` - -HasBillingModel returns a boolean if a field has been set. - -### SetBillingModelNil - -`func (o *KafkaRequestPayload) SetBillingModelNil(b bool)` - - SetBillingModelNil sets the value for BillingModel to be an explicit nil - -### UnsetBillingModel -`func (o *KafkaRequestPayload) UnsetBillingModel()` - -UnsetBillingModel ensures that no value is present for BillingModel, not even an explicit nil - -[[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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md deleted file mode 100644 index 60f92268..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/KafkaUpdateRequest.md +++ /dev/null @@ -1,102 +0,0 @@ -# KafkaUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Owner** | Pointer to **NullableString** | | [optional] -**ReauthenticationEnabled** | Pointer to **NullableBool** | Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. | [optional] - -## Methods - -### NewKafkaUpdateRequest - -`func NewKafkaUpdateRequest() *KafkaUpdateRequest` - -NewKafkaUpdateRequest instantiates a new KafkaUpdateRequest 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 - -### NewKafkaUpdateRequestWithDefaults - -`func NewKafkaUpdateRequestWithDefaults() *KafkaUpdateRequest` - -NewKafkaUpdateRequestWithDefaults instantiates a new KafkaUpdateRequest 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 - -### GetOwner - -`func (o *KafkaUpdateRequest) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *KafkaUpdateRequest) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *KafkaUpdateRequest) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *KafkaUpdateRequest) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### SetOwnerNil - -`func (o *KafkaUpdateRequest) SetOwnerNil(b bool)` - - SetOwnerNil sets the value for Owner to be an explicit nil - -### UnsetOwner -`func (o *KafkaUpdateRequest) UnsetOwner()` - -UnsetOwner ensures that no value is present for Owner, not even an explicit nil -### GetReauthenticationEnabled - -`func (o *KafkaUpdateRequest) GetReauthenticationEnabled() bool` - -GetReauthenticationEnabled returns the ReauthenticationEnabled field if non-nil, zero value otherwise. - -### GetReauthenticationEnabledOk - -`func (o *KafkaUpdateRequest) GetReauthenticationEnabledOk() (*bool, bool)` - -GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReauthenticationEnabled - -`func (o *KafkaUpdateRequest) SetReauthenticationEnabled(v bool)` - -SetReauthenticationEnabled sets ReauthenticationEnabled field to given value. - -### HasReauthenticationEnabled - -`func (o *KafkaUpdateRequest) HasReauthenticationEnabled() bool` - -HasReauthenticationEnabled returns a boolean if a field has been set. - -### SetReauthenticationEnabledNil - -`func (o *KafkaUpdateRequest) SetReauthenticationEnabledNil(b bool)` - - SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil - -### UnsetReauthenticationEnabled -`func (o *KafkaUpdateRequest) UnsetReauthenticationEnabled()` - -UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil - -[[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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md deleted file mode 100644 index df93b0c7..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/List.md +++ /dev/null @@ -1,135 +0,0 @@ -# List - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Page** | **int32** | | -**Size** | **int32** | | -**Total** | **int32** | | -**Items** | [**[]ObjectReference**](ObjectReference.md) | | - -## Methods - -### NewList - -`func NewList(kind string, page int32, size int32, total int32, items []ObjectReference, ) *List` - -NewList instantiates a new List 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 - -### NewListWithDefaults - -`func NewListWithDefaults() *List` - -NewListWithDefaults instantiates a new List 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 - -### GetKind - -`func (o *List) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *List) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *List) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetPage - -`func (o *List) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *List) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *List) SetPage(v int32)` - -SetPage sets Page field to given value. - - -### GetSize - -`func (o *List) GetSize() int32` - -GetSize returns the Size field if non-nil, zero value otherwise. - -### GetSizeOk - -`func (o *List) GetSizeOk() (*int32, bool)` - -GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSize - -`func (o *List) SetSize(v int32)` - -SetSize sets Size field to given value. - - -### GetTotal - -`func (o *List) GetTotal() int32` - -GetTotal returns the Total field if non-nil, zero value otherwise. - -### GetTotalOk - -`func (o *List) GetTotalOk() (*int32, bool)` - -GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotal - -`func (o *List) SetTotal(v int32)` - -SetTotal sets Total field to given value. - - -### GetItems - -`func (o *List) GetItems() []ObjectReference` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *List) GetItemsOk() (*[]ObjectReference, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *List) SetItems(v []ObjectReference)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md deleted file mode 100644 index 8cd26d88..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md +++ /dev/null @@ -1,108 +0,0 @@ -# MetricsInstantQueryList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] - -## Methods - -### NewMetricsInstantQueryList - -`func NewMetricsInstantQueryList() *MetricsInstantQueryList` - -NewMetricsInstantQueryList instantiates a new MetricsInstantQueryList 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 - -### NewMetricsInstantQueryListWithDefaults - -`func NewMetricsInstantQueryListWithDefaults() *MetricsInstantQueryList` - -NewMetricsInstantQueryListWithDefaults instantiates a new MetricsInstantQueryList 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 - -### GetKind - -`func (o *MetricsInstantQueryList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *MetricsInstantQueryList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *MetricsInstantQueryList) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *MetricsInstantQueryList) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *MetricsInstantQueryList) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *MetricsInstantQueryList) 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 *MetricsInstantQueryList) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *MetricsInstantQueryList) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetItems - -`func (o *MetricsInstantQueryList) GetItems() []InstantQuery` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *MetricsInstantQueryList) GetItemsOk() (*[]InstantQuery, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *MetricsInstantQueryList) SetItems(v []InstantQuery)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *MetricsInstantQueryList) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md deleted file mode 100644 index 0195b076..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md +++ /dev/null @@ -1,108 +0,0 @@ -# MetricsInstantQueryListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] - -## Methods - -### NewMetricsInstantQueryListAllOf - -`func NewMetricsInstantQueryListAllOf() *MetricsInstantQueryListAllOf` - -NewMetricsInstantQueryListAllOf instantiates a new MetricsInstantQueryListAllOf 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 - -### NewMetricsInstantQueryListAllOfWithDefaults - -`func NewMetricsInstantQueryListAllOfWithDefaults() *MetricsInstantQueryListAllOf` - -NewMetricsInstantQueryListAllOfWithDefaults instantiates a new MetricsInstantQueryListAllOf 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 - -### GetKind - -`func (o *MetricsInstantQueryListAllOf) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *MetricsInstantQueryListAllOf) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *MetricsInstantQueryListAllOf) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *MetricsInstantQueryListAllOf) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *MetricsInstantQueryListAllOf) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *MetricsInstantQueryListAllOf) 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 *MetricsInstantQueryListAllOf) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *MetricsInstantQueryListAllOf) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetItems - -`func (o *MetricsInstantQueryListAllOf) GetItems() []InstantQuery` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *MetricsInstantQueryListAllOf) GetItemsOk() (*[]InstantQuery, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *MetricsInstantQueryListAllOf) SetItems(v []InstantQuery)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *MetricsInstantQueryListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md deleted file mode 100644 index 341963b4..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md +++ /dev/null @@ -1,108 +0,0 @@ -# MetricsRangeQueryList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] - -## Methods - -### NewMetricsRangeQueryList - -`func NewMetricsRangeQueryList() *MetricsRangeQueryList` - -NewMetricsRangeQueryList instantiates a new MetricsRangeQueryList 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 - -### NewMetricsRangeQueryListWithDefaults - -`func NewMetricsRangeQueryListWithDefaults() *MetricsRangeQueryList` - -NewMetricsRangeQueryListWithDefaults instantiates a new MetricsRangeQueryList 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 - -### GetKind - -`func (o *MetricsRangeQueryList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *MetricsRangeQueryList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *MetricsRangeQueryList) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *MetricsRangeQueryList) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *MetricsRangeQueryList) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *MetricsRangeQueryList) 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 *MetricsRangeQueryList) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *MetricsRangeQueryList) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetItems - -`func (o *MetricsRangeQueryList) GetItems() []RangeQuery` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *MetricsRangeQueryList) GetItemsOk() (*[]RangeQuery, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *MetricsRangeQueryList) SetItems(v []RangeQuery)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *MetricsRangeQueryList) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md deleted file mode 100644 index 34e1204b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md +++ /dev/null @@ -1,108 +0,0 @@ -# MetricsRangeQueryListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] - -## Methods - -### NewMetricsRangeQueryListAllOf - -`func NewMetricsRangeQueryListAllOf() *MetricsRangeQueryListAllOf` - -NewMetricsRangeQueryListAllOf instantiates a new MetricsRangeQueryListAllOf 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 - -### NewMetricsRangeQueryListAllOfWithDefaults - -`func NewMetricsRangeQueryListAllOfWithDefaults() *MetricsRangeQueryListAllOf` - -NewMetricsRangeQueryListAllOfWithDefaults instantiates a new MetricsRangeQueryListAllOf 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 - -### GetKind - -`func (o *MetricsRangeQueryListAllOf) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *MetricsRangeQueryListAllOf) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *MetricsRangeQueryListAllOf) SetKind(v string)` - -SetKind sets Kind field to given value. - -### HasKind - -`func (o *MetricsRangeQueryListAllOf) HasKind() bool` - -HasKind returns a boolean if a field has been set. - -### GetId - -`func (o *MetricsRangeQueryListAllOf) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *MetricsRangeQueryListAllOf) 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 *MetricsRangeQueryListAllOf) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *MetricsRangeQueryListAllOf) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetItems - -`func (o *MetricsRangeQueryListAllOf) GetItems() []RangeQuery` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *MetricsRangeQueryListAllOf) GetItemsOk() (*[]RangeQuery, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *MetricsRangeQueryListAllOf) SetItems(v []RangeQuery)` - -SetItems sets Items field to given value. - -### HasItems - -`func (o *MetricsRangeQueryListAllOf) HasItems() bool` - -HasItems 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md deleted file mode 100644 index 1d898d8a..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ObjectReference.md +++ /dev/null @@ -1,93 +0,0 @@ -# ObjectReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | | -**Kind** | **string** | | -**Href** | **string** | | - -## Methods - -### NewObjectReference - -`func NewObjectReference(id string, kind string, href string, ) *ObjectReference` - -NewObjectReference instantiates a new ObjectReference 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 - -### NewObjectReferenceWithDefaults - -`func NewObjectReferenceWithDefaults() *ObjectReference` - -NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 *ObjectReference) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ObjectReference) 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 *ObjectReference) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *ObjectReference) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ObjectReference) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ObjectReference) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *ObjectReference) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *ObjectReference) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *ObjectReference) SetHref(v string)` - -SetHref sets Href 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md deleted file mode 100644 index 96bd5170..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RangeQuery.md +++ /dev/null @@ -1,82 +0,0 @@ -# RangeQuery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Metric** | Pointer to **map[string]string** | | [optional] -**Values** | Pointer to [**[]Values**](Values.md) | | [optional] - -## Methods - -### NewRangeQuery - -`func NewRangeQuery() *RangeQuery` - -NewRangeQuery instantiates a new RangeQuery 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 - -### NewRangeQueryWithDefaults - -`func NewRangeQueryWithDefaults() *RangeQuery` - -NewRangeQueryWithDefaults instantiates a new RangeQuery 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 - -### GetMetric - -`func (o *RangeQuery) GetMetric() map[string]string` - -GetMetric returns the Metric field if non-nil, zero value otherwise. - -### GetMetricOk - -`func (o *RangeQuery) GetMetricOk() (*map[string]string, bool)` - -GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMetric - -`func (o *RangeQuery) SetMetric(v map[string]string)` - -SetMetric sets Metric field to given value. - -### HasMetric - -`func (o *RangeQuery) HasMetric() bool` - -HasMetric returns a boolean if a field has been set. - -### GetValues - -`func (o *RangeQuery) GetValues() []Values` - -GetValues returns the Values field if non-nil, zero value otherwise. - -### GetValuesOk - -`func (o *RangeQuery) GetValuesOk() (*[]Values, bool)` - -GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValues - -`func (o *RangeQuery) SetValues(v []Values)` - -SetValues sets Values field to given value. - -### HasValues - -`func (o *RangeQuery) HasValues() bool` - -HasValues 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md deleted file mode 100644 index 3488d580..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/RegionCapacityListItem.md +++ /dev/null @@ -1,72 +0,0 @@ -# RegionCapacityListItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**InstanceType** | **string** | kafka instance type | -**AvailableSizes** | **[]string** | list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits | - -## Methods - -### NewRegionCapacityListItem - -`func NewRegionCapacityListItem(instanceType string, availableSizes []string, ) *RegionCapacityListItem` - -NewRegionCapacityListItem instantiates a new RegionCapacityListItem 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 - -### NewRegionCapacityListItemWithDefaults - -`func NewRegionCapacityListItemWithDefaults() *RegionCapacityListItem` - -NewRegionCapacityListItemWithDefaults instantiates a new RegionCapacityListItem 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 - -### GetInstanceType - -`func (o *RegionCapacityListItem) GetInstanceType() string` - -GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. - -### GetInstanceTypeOk - -`func (o *RegionCapacityListItem) GetInstanceTypeOk() (*string, bool)` - -GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceType - -`func (o *RegionCapacityListItem) SetInstanceType(v string)` - -SetInstanceType sets InstanceType field to given value. - - -### GetAvailableSizes - -`func (o *RegionCapacityListItem) GetAvailableSizes() []string` - -GetAvailableSizes returns the AvailableSizes field if non-nil, zero value otherwise. - -### GetAvailableSizesOk - -`func (o *RegionCapacityListItem) GetAvailableSizesOk() (*[]string, bool)` - -GetAvailableSizesOk returns a tuple with the AvailableSizes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvailableSizes - -`func (o *RegionCapacityListItem) SetAvailableSizes(v []string)` - -SetAvailableSizes sets AvailableSizes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md deleted file mode 100644 index 76b38325..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SecurityApi.md +++ /dev/null @@ -1,417 +0,0 @@ -# \SecurityApi - -All URIs are relative to *https://api.openshift.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateServiceAccount**](SecurityApi.md#CreateServiceAccount) | **Post** /api/kafkas_mgmt/v1/service_accounts | -[**DeleteServiceAccountById**](SecurityApi.md#DeleteServiceAccountById) | **Delete** /api/kafkas_mgmt/v1/service_accounts/{id} | -[**GetServiceAccountById**](SecurityApi.md#GetServiceAccountById) | **Get** /api/kafkas_mgmt/v1/service_accounts/{id} | -[**GetServiceAccounts**](SecurityApi.md#GetServiceAccounts) | **Get** /api/kafkas_mgmt/v1/service_accounts | -[**GetSsoProviders**](SecurityApi.md#GetSsoProviders) | **Get** /api/kafkas_mgmt/v1/sso_providers | -[**ResetServiceAccountCreds**](SecurityApi.md#ResetServiceAccountCreds) | **Post** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | - - - -## CreateServiceAccount - -> ServiceAccount CreateServiceAccount(ctx).ServiceAccountRequest(serviceAccountRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - serviceAccountRequest := *openapiclient.NewServiceAccountRequest("Name_example") // ServiceAccountRequest | Service account request - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.CreateServiceAccount(context.Background()).ServiceAccountRequest(serviceAccountRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.CreateServiceAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceAccount`: ServiceAccount - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.CreateServiceAccount`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateServiceAccountRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **serviceAccountRequest** | [**ServiceAccountRequest**](ServiceAccountRequest.md) | Service account request | - -### Return type - -[**ServiceAccount**](ServiceAccount.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteServiceAccountById - -> Error DeleteServiceAccountById(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.DeleteServiceAccountById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.DeleteServiceAccountById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteServiceAccountById`: Error - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.DeleteServiceAccountById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteServiceAccountByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**Error**](Error.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetServiceAccountById - -> ServiceAccount GetServiceAccountById(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.GetServiceAccountById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetServiceAccountById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceAccountById`: ServiceAccount - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetServiceAccountById`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetServiceAccountByIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**ServiceAccount**](ServiceAccount.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetServiceAccounts - -> ServiceAccountList GetServiceAccounts(ctx).ClientId(clientId).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - clientId := "clientId_example" // string | client_id of the service account to be retrieved (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.GetServiceAccounts(context.Background()).ClientId(clientId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetServiceAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceAccounts`: ServiceAccountList - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetServiceAccounts`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetServiceAccountsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **clientId** | **string** | client_id of the service account to be retrieved | - -### Return type - -[**ServiceAccountList**](ServiceAccountList.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSsoProviders - -> SsoProvider GetSsoProviders(ctx).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.GetSsoProviders(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.GetSsoProviders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSsoProviders`: SsoProvider - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.GetSsoProviders`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSsoProvidersRequest struct via the builder pattern - - -### Return type - -[**SsoProvider**](SsoProvider.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ResetServiceAccountCreds - -> ServiceAccount ResetServiceAccountCreds(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - id := "id_example" // string | The ID of record - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SecurityApi.ResetServiceAccountCreds(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.ResetServiceAccountCreds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ResetServiceAccountCreds`: ServiceAccount - fmt.Fprintf(os.Stdout, "Response from `SecurityApi.ResetServiceAccountCreds`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The ID of record | - -### Other Parameters - -Other parameters are passed through a pointer to a apiResetServiceAccountCredsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**ServiceAccount**](ServiceAccount.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md deleted file mode 100644 index 9a415472..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccount.md +++ /dev/null @@ -1,275 +0,0 @@ -# ServiceAccount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | server generated unique id of the service account | -**Kind** | **string** | | -**Href** | **string** | | -**Name** | Pointer to **string** | | [optional] -**Description** | Pointer to **string** | | [optional] -**ClientId** | Pointer to **string** | | [optional] -**ClientSecret** | Pointer to **string** | | [optional] -**Owner** | Pointer to **string** | | [optional] -**CreatedBy** | Pointer to **string** | | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] - -## Methods - -### NewServiceAccount - -`func NewServiceAccount(id string, kind string, href string, ) *ServiceAccount` - -NewServiceAccount instantiates a new ServiceAccount 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 - -### NewServiceAccountWithDefaults - -`func NewServiceAccountWithDefaults() *ServiceAccount` - -NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 *ServiceAccount) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceAccount) 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 *ServiceAccount) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *ServiceAccount) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ServiceAccount) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ServiceAccount) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *ServiceAccount) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *ServiceAccount) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *ServiceAccount) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetName - -`func (o *ServiceAccount) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ServiceAccount) 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 *ServiceAccount) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ServiceAccount) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetDescription - -`func (o *ServiceAccount) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ServiceAccount) 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 *ServiceAccount) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ServiceAccount) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetClientId - -`func (o *ServiceAccount) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ServiceAccount) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ServiceAccount) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ServiceAccount) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### GetClientSecret - -`func (o *ServiceAccount) GetClientSecret() string` - -GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. - -### GetClientSecretOk - -`func (o *ServiceAccount) GetClientSecretOk() (*string, bool)` - -GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientSecret - -`func (o *ServiceAccount) SetClientSecret(v string)` - -SetClientSecret sets ClientSecret field to given value. - -### HasClientSecret - -`func (o *ServiceAccount) HasClientSecret() bool` - -HasClientSecret returns a boolean if a field has been set. - -### GetOwner - -`func (o *ServiceAccount) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *ServiceAccount) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *ServiceAccount) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *ServiceAccount) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetCreatedBy - -`func (o *ServiceAccount) GetCreatedBy() string` - -GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. - -### GetCreatedByOk - -`func (o *ServiceAccount) GetCreatedByOk() (*string, bool)` - -GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedBy - -`func (o *ServiceAccount) SetCreatedBy(v string)` - -SetCreatedBy sets CreatedBy field to given value. - -### HasCreatedBy - -`func (o *ServiceAccount) HasCreatedBy() bool` - -HasCreatedBy returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *ServiceAccount) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceAccount) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceAccount) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceAccount) HasCreatedAt() bool` - -HasCreatedAt 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md deleted file mode 100644 index 8a0af20b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md +++ /dev/null @@ -1,238 +0,0 @@ -# ServiceAccountAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | server generated unique id of the service account | [optional] -**Name** | Pointer to **string** | | [optional] -**Description** | Pointer to **string** | | [optional] -**ClientId** | Pointer to **string** | | [optional] -**ClientSecret** | Pointer to **string** | | [optional] -**Owner** | Pointer to **string** | | [optional] -**CreatedBy** | Pointer to **string** | | [optional] -**CreatedAt** | Pointer to **time.Time** | | [optional] - -## Methods - -### NewServiceAccountAllOf - -`func NewServiceAccountAllOf() *ServiceAccountAllOf` - -NewServiceAccountAllOf instantiates a new ServiceAccountAllOf 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 - -### NewServiceAccountAllOfWithDefaults - -`func NewServiceAccountAllOfWithDefaults() *ServiceAccountAllOf` - -NewServiceAccountAllOfWithDefaults instantiates a new ServiceAccountAllOf 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 *ServiceAccountAllOf) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceAccountAllOf) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetName - -`func (o *ServiceAccountAllOf) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ServiceAccountAllOf) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetDescription - -`func (o *ServiceAccountAllOf) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ServiceAccountAllOf) 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 *ServiceAccountAllOf) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ServiceAccountAllOf) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetClientId - -`func (o *ServiceAccountAllOf) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ServiceAccountAllOf) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ServiceAccountAllOf) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### GetClientSecret - -`func (o *ServiceAccountAllOf) GetClientSecret() string` - -GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. - -### GetClientSecretOk - -`func (o *ServiceAccountAllOf) GetClientSecretOk() (*string, bool)` - -GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientSecret - -`func (o *ServiceAccountAllOf) SetClientSecret(v string)` - -SetClientSecret sets ClientSecret field to given value. - -### HasClientSecret - -`func (o *ServiceAccountAllOf) HasClientSecret() bool` - -HasClientSecret returns a boolean if a field has been set. - -### GetOwner - -`func (o *ServiceAccountAllOf) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *ServiceAccountAllOf) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *ServiceAccountAllOf) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *ServiceAccountAllOf) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetCreatedBy - -`func (o *ServiceAccountAllOf) GetCreatedBy() string` - -GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. - -### GetCreatedByOk - -`func (o *ServiceAccountAllOf) GetCreatedByOk() (*string, bool)` - -GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedBy - -`func (o *ServiceAccountAllOf) SetCreatedBy(v string)` - -SetCreatedBy sets CreatedBy field to given value. - -### HasCreatedBy - -`func (o *ServiceAccountAllOf) HasCreatedBy() bool` - -HasCreatedBy returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *ServiceAccountAllOf) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceAccountAllOf) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceAccountAllOf) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceAccountAllOf) HasCreatedAt() bool` - -HasCreatedAt 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md deleted file mode 100644 index 6fbb63f9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountList.md +++ /dev/null @@ -1,72 +0,0 @@ -# ServiceAccountList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | - -## Methods - -### NewServiceAccountList - -`func NewServiceAccountList(kind string, items []ServiceAccountListItem, ) *ServiceAccountList` - -NewServiceAccountList instantiates a new ServiceAccountList 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 - -### NewServiceAccountListWithDefaults - -`func NewServiceAccountListWithDefaults() *ServiceAccountList` - -NewServiceAccountListWithDefaults instantiates a new ServiceAccountList 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 - -### GetKind - -`func (o *ServiceAccountList) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ServiceAccountList) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ServiceAccountList) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetItems - -`func (o *ServiceAccountList) GetItems() []ServiceAccountListItem` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *ServiceAccountList) GetItemsOk() (*[]ServiceAccountListItem, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *ServiceAccountList) SetItems(v []ServiceAccountListItem)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md deleted file mode 100644 index a00486cb..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md +++ /dev/null @@ -1,72 +0,0 @@ -# ServiceAccountListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | **string** | | -**Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | - -## Methods - -### NewServiceAccountListAllOf - -`func NewServiceAccountListAllOf(kind string, items []ServiceAccountListItem, ) *ServiceAccountListAllOf` - -NewServiceAccountListAllOf instantiates a new ServiceAccountListAllOf 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 - -### NewServiceAccountListAllOfWithDefaults - -`func NewServiceAccountListAllOfWithDefaults() *ServiceAccountListAllOf` - -NewServiceAccountListAllOfWithDefaults instantiates a new ServiceAccountListAllOf 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 - -### GetKind - -`func (o *ServiceAccountListAllOf) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ServiceAccountListAllOf) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ServiceAccountListAllOf) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetItems - -`func (o *ServiceAccountListAllOf) GetItems() []ServiceAccountListItem` - -GetItems returns the Items field if non-nil, zero value otherwise. - -### GetItemsOk - -`func (o *ServiceAccountListAllOf) GetItemsOk() (*[]ServiceAccountListItem, bool)` - -GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItems - -`func (o *ServiceAccountListAllOf) SetItems(v []ServiceAccountListItem)` - -SetItems sets Items 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md deleted file mode 100644 index 85593cfd..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md +++ /dev/null @@ -1,249 +0,0 @@ -# ServiceAccountListItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | server generated unique id of the service account | -**Kind** | **string** | | -**Href** | **string** | | -**ClientId** | Pointer to **string** | client id of the service account | [optional] -**Name** | Pointer to **string** | name of the service account | [optional] -**Owner** | Pointer to **string** | owner of the service account | [optional] -**CreatedBy** | Pointer to **string** | service account created by the user | [optional] -**CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] -**Description** | Pointer to **string** | description of the service account | [optional] - -## Methods - -### NewServiceAccountListItem - -`func NewServiceAccountListItem(id string, kind string, href string, ) *ServiceAccountListItem` - -NewServiceAccountListItem instantiates a new ServiceAccountListItem 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 - -### NewServiceAccountListItemWithDefaults - -`func NewServiceAccountListItemWithDefaults() *ServiceAccountListItem` - -NewServiceAccountListItemWithDefaults instantiates a new ServiceAccountListItem 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 *ServiceAccountListItem) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *ServiceAccountListItem) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *ServiceAccountListItem) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *ServiceAccountListItem) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *ServiceAccountListItem) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *ServiceAccountListItem) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *ServiceAccountListItem) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetClientId - -`func (o *ServiceAccountListItem) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ServiceAccountListItem) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ServiceAccountListItem) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### GetName - -`func (o *ServiceAccountListItem) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ServiceAccountListItem) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOwner - -`func (o *ServiceAccountListItem) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *ServiceAccountListItem) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *ServiceAccountListItem) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *ServiceAccountListItem) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetCreatedBy - -`func (o *ServiceAccountListItem) GetCreatedBy() string` - -GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. - -### GetCreatedByOk - -`func (o *ServiceAccountListItem) GetCreatedByOk() (*string, bool)` - -GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedBy - -`func (o *ServiceAccountListItem) SetCreatedBy(v string)` - -SetCreatedBy sets CreatedBy field to given value. - -### HasCreatedBy - -`func (o *ServiceAccountListItem) HasCreatedBy() bool` - -HasCreatedBy returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *ServiceAccountListItem) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceAccountListItem) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceAccountListItem) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceAccountListItem) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDescription - -`func (o *ServiceAccountListItem) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ServiceAccountListItem) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md deleted file mode 100644 index e860ea82..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md +++ /dev/null @@ -1,212 +0,0 @@ -# ServiceAccountListItemAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | server generated unique id of the service account | [optional] -**ClientId** | Pointer to **string** | client id of the service account | [optional] -**Name** | Pointer to **string** | name of the service account | [optional] -**Owner** | Pointer to **string** | owner of the service account | [optional] -**CreatedBy** | Pointer to **string** | service account created by the user | [optional] -**CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] -**Description** | Pointer to **string** | description of the service account | [optional] - -## Methods - -### NewServiceAccountListItemAllOf - -`func NewServiceAccountListItemAllOf() *ServiceAccountListItemAllOf` - -NewServiceAccountListItemAllOf instantiates a new ServiceAccountListItemAllOf 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 - -### NewServiceAccountListItemAllOfWithDefaults - -`func NewServiceAccountListItemAllOfWithDefaults() *ServiceAccountListItemAllOf` - -NewServiceAccountListItemAllOfWithDefaults instantiates a new ServiceAccountListItemAllOf 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 *ServiceAccountListItemAllOf) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceAccountListItemAllOf) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetClientId - -`func (o *ServiceAccountListItemAllOf) GetClientId() string` - -GetClientId returns the ClientId field if non-nil, zero value otherwise. - -### GetClientIdOk - -`func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool)` - -GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientId - -`func (o *ServiceAccountListItemAllOf) SetClientId(v string)` - -SetClientId sets ClientId field to given value. - -### HasClientId - -`func (o *ServiceAccountListItemAllOf) HasClientId() bool` - -HasClientId returns a boolean if a field has been set. - -### GetName - -`func (o *ServiceAccountListItemAllOf) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *ServiceAccountListItemAllOf) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetOwner - -`func (o *ServiceAccountListItemAllOf) GetOwner() string` - -GetOwner returns the Owner field if non-nil, zero value otherwise. - -### GetOwnerOk - -`func (o *ServiceAccountListItemAllOf) GetOwnerOk() (*string, bool)` - -GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwner - -`func (o *ServiceAccountListItemAllOf) SetOwner(v string)` - -SetOwner sets Owner field to given value. - -### HasOwner - -`func (o *ServiceAccountListItemAllOf) HasOwner() bool` - -HasOwner returns a boolean if a field has been set. - -### GetCreatedBy - -`func (o *ServiceAccountListItemAllOf) GetCreatedBy() string` - -GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. - -### GetCreatedByOk - -`func (o *ServiceAccountListItemAllOf) GetCreatedByOk() (*string, bool)` - -GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedBy - -`func (o *ServiceAccountListItemAllOf) SetCreatedBy(v string)` - -SetCreatedBy sets CreatedBy field to given value. - -### HasCreatedBy - -`func (o *ServiceAccountListItemAllOf) HasCreatedBy() bool` - -HasCreatedBy returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *ServiceAccountListItemAllOf) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceAccountListItemAllOf) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceAccountListItemAllOf) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceAccountListItemAllOf) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDescription - -`func (o *ServiceAccountListItemAllOf) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ServiceAccountListItemAllOf) 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 *ServiceAccountListItemAllOf) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ServiceAccountListItemAllOf) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md deleted file mode 100644 index ada96cef..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md +++ /dev/null @@ -1,77 +0,0 @@ -# ServiceAccountRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The name of the service account | -**Description** | Pointer to **string** | A description for the service account | [optional] - -## Methods - -### NewServiceAccountRequest - -`func NewServiceAccountRequest(name string, ) *ServiceAccountRequest` - -NewServiceAccountRequest instantiates a new ServiceAccountRequest 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 - -### NewServiceAccountRequestWithDefaults - -`func NewServiceAccountRequestWithDefaults() *ServiceAccountRequest` - -NewServiceAccountRequestWithDefaults instantiates a new ServiceAccountRequest 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 *ServiceAccountRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) SetName(v string)` - -SetName sets Name field to given value. - - -### GetDescription - -`func (o *ServiceAccountRequest) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ServiceAccountRequest) 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md deleted file mode 100644 index 5044f63f..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProvider.md +++ /dev/null @@ -1,223 +0,0 @@ -# SsoProvider - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | | -**Kind** | **string** | | -**Href** | **string** | | -**Name** | Pointer to **string** | name of the sso provider | [optional] -**BaseUrl** | Pointer to **string** | base url | [optional] -**TokenUrl** | Pointer to **string** | | [optional] -**Jwks** | Pointer to **string** | | [optional] -**ValidIssuer** | Pointer to **string** | | [optional] - -## Methods - -### NewSsoProvider - -`func NewSsoProvider(id string, kind string, href string, ) *SsoProvider` - -NewSsoProvider instantiates a new SsoProvider 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 - -### NewSsoProviderWithDefaults - -`func NewSsoProviderWithDefaults() *SsoProvider` - -NewSsoProviderWithDefaults instantiates a new SsoProvider 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 *SsoProvider) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SsoProvider) 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 *SsoProvider) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *SsoProvider) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *SsoProvider) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *SsoProvider) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *SsoProvider) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *SsoProvider) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *SsoProvider) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetName - -`func (o *SsoProvider) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SsoProvider) 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 *SsoProvider) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SsoProvider) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetBaseUrl - -`func (o *SsoProvider) GetBaseUrl() string` - -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. - -### GetBaseUrlOk - -`func (o *SsoProvider) GetBaseUrlOk() (*string, bool)` - -GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseUrl - -`func (o *SsoProvider) SetBaseUrl(v string)` - -SetBaseUrl sets BaseUrl field to given value. - -### HasBaseUrl - -`func (o *SsoProvider) HasBaseUrl() bool` - -HasBaseUrl returns a boolean if a field has been set. - -### GetTokenUrl - -`func (o *SsoProvider) GetTokenUrl() string` - -GetTokenUrl returns the TokenUrl field if non-nil, zero value otherwise. - -### GetTokenUrlOk - -`func (o *SsoProvider) GetTokenUrlOk() (*string, bool)` - -GetTokenUrlOk returns a tuple with the TokenUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenUrl - -`func (o *SsoProvider) SetTokenUrl(v string)` - -SetTokenUrl sets TokenUrl field to given value. - -### HasTokenUrl - -`func (o *SsoProvider) HasTokenUrl() bool` - -HasTokenUrl returns a boolean if a field has been set. - -### GetJwks - -`func (o *SsoProvider) GetJwks() string` - -GetJwks returns the Jwks field if non-nil, zero value otherwise. - -### GetJwksOk - -`func (o *SsoProvider) GetJwksOk() (*string, bool)` - -GetJwksOk returns a tuple with the Jwks field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetJwks - -`func (o *SsoProvider) SetJwks(v string)` - -SetJwks sets Jwks field to given value. - -### HasJwks - -`func (o *SsoProvider) HasJwks() bool` - -HasJwks returns a boolean if a field has been set. - -### GetValidIssuer - -`func (o *SsoProvider) GetValidIssuer() string` - -GetValidIssuer returns the ValidIssuer field if non-nil, zero value otherwise. - -### GetValidIssuerOk - -`func (o *SsoProvider) GetValidIssuerOk() (*string, bool)` - -GetValidIssuerOk returns a tuple with the ValidIssuer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValidIssuer - -`func (o *SsoProvider) SetValidIssuer(v string)` - -SetValidIssuer sets ValidIssuer field to given value. - -### HasValidIssuer - -`func (o *SsoProvider) HasValidIssuer() bool` - -HasValidIssuer 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md deleted file mode 100644 index 309eeaf4..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SsoProviderAllOf.md +++ /dev/null @@ -1,160 +0,0 @@ -# SsoProviderAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | name of the sso provider | [optional] -**BaseUrl** | Pointer to **string** | base url | [optional] -**TokenUrl** | Pointer to **string** | | [optional] -**Jwks** | Pointer to **string** | | [optional] -**ValidIssuer** | Pointer to **string** | | [optional] - -## Methods - -### NewSsoProviderAllOf - -`func NewSsoProviderAllOf() *SsoProviderAllOf` - -NewSsoProviderAllOf instantiates a new SsoProviderAllOf 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 - -### NewSsoProviderAllOfWithDefaults - -`func NewSsoProviderAllOfWithDefaults() *SsoProviderAllOf` - -NewSsoProviderAllOfWithDefaults instantiates a new SsoProviderAllOf 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 *SsoProviderAllOf) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SsoProviderAllOf) 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 *SsoProviderAllOf) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SsoProviderAllOf) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetBaseUrl - -`func (o *SsoProviderAllOf) GetBaseUrl() string` - -GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. - -### GetBaseUrlOk - -`func (o *SsoProviderAllOf) GetBaseUrlOk() (*string, bool)` - -GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBaseUrl - -`func (o *SsoProviderAllOf) SetBaseUrl(v string)` - -SetBaseUrl sets BaseUrl field to given value. - -### HasBaseUrl - -`func (o *SsoProviderAllOf) HasBaseUrl() bool` - -HasBaseUrl returns a boolean if a field has been set. - -### GetTokenUrl - -`func (o *SsoProviderAllOf) GetTokenUrl() string` - -GetTokenUrl returns the TokenUrl field if non-nil, zero value otherwise. - -### GetTokenUrlOk - -`func (o *SsoProviderAllOf) GetTokenUrlOk() (*string, bool)` - -GetTokenUrlOk returns a tuple with the TokenUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokenUrl - -`func (o *SsoProviderAllOf) SetTokenUrl(v string)` - -SetTokenUrl sets TokenUrl field to given value. - -### HasTokenUrl - -`func (o *SsoProviderAllOf) HasTokenUrl() bool` - -HasTokenUrl returns a boolean if a field has been set. - -### GetJwks - -`func (o *SsoProviderAllOf) GetJwks() string` - -GetJwks returns the Jwks field if non-nil, zero value otherwise. - -### GetJwksOk - -`func (o *SsoProviderAllOf) GetJwksOk() (*string, bool)` - -GetJwksOk returns a tuple with the Jwks field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetJwks - -`func (o *SsoProviderAllOf) SetJwks(v string)` - -SetJwks sets Jwks field to given value. - -### HasJwks - -`func (o *SsoProviderAllOf) HasJwks() bool` - -HasJwks returns a boolean if a field has been set. - -### GetValidIssuer - -`func (o *SsoProviderAllOf) GetValidIssuer() string` - -GetValidIssuer returns the ValidIssuer field if non-nil, zero value otherwise. - -### GetValidIssuerOk - -`func (o *SsoProviderAllOf) GetValidIssuerOk() (*string, bool)` - -GetValidIssuerOk returns a tuple with the ValidIssuer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValidIssuer - -`func (o *SsoProviderAllOf) SetValidIssuer(v string)` - -SetValidIssuer sets ValidIssuer field to given value. - -### HasValidIssuer - -`func (o *SsoProviderAllOf) HasValidIssuer() bool` - -HasValidIssuer 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md deleted file mode 100644 index d3ef2951..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaBillingModel.md +++ /dev/null @@ -1,114 +0,0 @@ -# SupportedKafkaBillingModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | Identifier for the Kafka billing model | -**AmsResource** | **string** | AMS resource to be used. Accepted values: ['rhosak'] | -**AmsProduct** | **string** | AMS product to be used. Accepted values: ['RHOSAK', 'RHOSAKTrial', 'RHOSAKEval'] | -**AmsBillingModels** | **[]string** | List of AMS available billing models: Accepted values: ['marketplace', 'marketplace-rhm', 'marketplace-aws'] | - -## Methods - -### NewSupportedKafkaBillingModel - -`func NewSupportedKafkaBillingModel(id string, amsResource string, amsProduct string, amsBillingModels []string, ) *SupportedKafkaBillingModel` - -NewSupportedKafkaBillingModel instantiates a new SupportedKafkaBillingModel 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 - -### NewSupportedKafkaBillingModelWithDefaults - -`func NewSupportedKafkaBillingModelWithDefaults() *SupportedKafkaBillingModel` - -NewSupportedKafkaBillingModelWithDefaults instantiates a new SupportedKafkaBillingModel 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 *SupportedKafkaBillingModel) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SupportedKafkaBillingModel) 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 *SupportedKafkaBillingModel) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAmsResource - -`func (o *SupportedKafkaBillingModel) GetAmsResource() string` - -GetAmsResource returns the AmsResource field if non-nil, zero value otherwise. - -### GetAmsResourceOk - -`func (o *SupportedKafkaBillingModel) GetAmsResourceOk() (*string, bool)` - -GetAmsResourceOk returns a tuple with the AmsResource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmsResource - -`func (o *SupportedKafkaBillingModel) SetAmsResource(v string)` - -SetAmsResource sets AmsResource field to given value. - - -### GetAmsProduct - -`func (o *SupportedKafkaBillingModel) GetAmsProduct() string` - -GetAmsProduct returns the AmsProduct field if non-nil, zero value otherwise. - -### GetAmsProductOk - -`func (o *SupportedKafkaBillingModel) GetAmsProductOk() (*string, bool)` - -GetAmsProductOk returns a tuple with the AmsProduct field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmsProduct - -`func (o *SupportedKafkaBillingModel) SetAmsProduct(v string)` - -SetAmsProduct sets AmsProduct field to given value. - - -### GetAmsBillingModels - -`func (o *SupportedKafkaBillingModel) GetAmsBillingModels() []string` - -GetAmsBillingModels returns the AmsBillingModels field if non-nil, zero value otherwise. - -### GetAmsBillingModelsOk - -`func (o *SupportedKafkaBillingModel) GetAmsBillingModelsOk() (*[]string, bool)` - -GetAmsBillingModelsOk returns a tuple with the AmsBillingModels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmsBillingModels - -`func (o *SupportedKafkaBillingModel) SetAmsBillingModels(v []string)` - -SetAmsBillingModels sets AmsBillingModels 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md deleted file mode 100644 index 77b939c1..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceType.md +++ /dev/null @@ -1,129 +0,0 @@ -# SupportedKafkaInstanceType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | Unique identifier of the Kafka instance type. | [optional] -**DisplayName** | Pointer to **string** | Human readable name of the supported Kafka instance type | [optional] -**SupportedBillingModels** | [**[]SupportedKafkaBillingModel**](SupportedKafkaBillingModel.md) | A list of available kafka billing models for the instance type. Each kafka billing model item has a unique 'id' | -**Sizes** | Pointer to [**[]SupportedKafkaSize**](SupportedKafkaSize.md) | A list of Kafka instance sizes available for this instance type | [optional] - -## Methods - -### NewSupportedKafkaInstanceType - -`func NewSupportedKafkaInstanceType(supportedBillingModels []SupportedKafkaBillingModel, ) *SupportedKafkaInstanceType` - -NewSupportedKafkaInstanceType instantiates a new SupportedKafkaInstanceType 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 - -### NewSupportedKafkaInstanceTypeWithDefaults - -`func NewSupportedKafkaInstanceTypeWithDefaults() *SupportedKafkaInstanceType` - -NewSupportedKafkaInstanceTypeWithDefaults instantiates a new SupportedKafkaInstanceType 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 *SupportedKafkaInstanceType) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SupportedKafkaInstanceType) 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 *SupportedKafkaInstanceType) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SupportedKafkaInstanceType) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *SupportedKafkaInstanceType) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *SupportedKafkaInstanceType) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *SupportedKafkaInstanceType) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *SupportedKafkaInstanceType) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetSupportedBillingModels - -`func (o *SupportedKafkaInstanceType) GetSupportedBillingModels() []SupportedKafkaBillingModel` - -GetSupportedBillingModels returns the SupportedBillingModels field if non-nil, zero value otherwise. - -### GetSupportedBillingModelsOk - -`func (o *SupportedKafkaInstanceType) GetSupportedBillingModelsOk() (*[]SupportedKafkaBillingModel, bool)` - -GetSupportedBillingModelsOk returns a tuple with the SupportedBillingModels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSupportedBillingModels - -`func (o *SupportedKafkaInstanceType) SetSupportedBillingModels(v []SupportedKafkaBillingModel)` - -SetSupportedBillingModels sets SupportedBillingModels field to given value. - - -### GetSizes - -`func (o *SupportedKafkaInstanceType) GetSizes() []SupportedKafkaSize` - -GetSizes returns the Sizes field if non-nil, zero value otherwise. - -### GetSizesOk - -`func (o *SupportedKafkaInstanceType) GetSizesOk() (*[]SupportedKafkaSize, bool)` - -GetSizesOk returns a tuple with the Sizes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSizes - -`func (o *SupportedKafkaInstanceType) SetSizes(v []SupportedKafkaSize)` - -SetSizes sets Sizes field to given value. - -### HasSizes - -`func (o *SupportedKafkaInstanceType) HasSizes() bool` - -HasSizes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md deleted file mode 100644 index 97e96562..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesList.md +++ /dev/null @@ -1,56 +0,0 @@ -# SupportedKafkaInstanceTypesList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**InstanceTypes** | Pointer to [**[]SupportedKafkaInstanceType**](SupportedKafkaInstanceType.md) | | [optional] - -## Methods - -### NewSupportedKafkaInstanceTypesList - -`func NewSupportedKafkaInstanceTypesList() *SupportedKafkaInstanceTypesList` - -NewSupportedKafkaInstanceTypesList instantiates a new SupportedKafkaInstanceTypesList 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 - -### NewSupportedKafkaInstanceTypesListWithDefaults - -`func NewSupportedKafkaInstanceTypesListWithDefaults() *SupportedKafkaInstanceTypesList` - -NewSupportedKafkaInstanceTypesListWithDefaults instantiates a new SupportedKafkaInstanceTypesList 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 - -### GetInstanceTypes - -`func (o *SupportedKafkaInstanceTypesList) GetInstanceTypes() []SupportedKafkaInstanceType` - -GetInstanceTypes returns the InstanceTypes field if non-nil, zero value otherwise. - -### GetInstanceTypesOk - -`func (o *SupportedKafkaInstanceTypesList) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool)` - -GetInstanceTypesOk returns a tuple with the InstanceTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceTypes - -`func (o *SupportedKafkaInstanceTypesList) SetInstanceTypes(v []SupportedKafkaInstanceType)` - -SetInstanceTypes sets InstanceTypes field to given value. - -### HasInstanceTypes - -`func (o *SupportedKafkaInstanceTypesList) HasInstanceTypes() bool` - -HasInstanceTypes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md deleted file mode 100644 index 77292c08..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaInstanceTypesListAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# SupportedKafkaInstanceTypesListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**InstanceTypes** | Pointer to [**[]SupportedKafkaInstanceType**](SupportedKafkaInstanceType.md) | | [optional] - -## Methods - -### NewSupportedKafkaInstanceTypesListAllOf - -`func NewSupportedKafkaInstanceTypesListAllOf() *SupportedKafkaInstanceTypesListAllOf` - -NewSupportedKafkaInstanceTypesListAllOf instantiates a new SupportedKafkaInstanceTypesListAllOf 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 - -### NewSupportedKafkaInstanceTypesListAllOfWithDefaults - -`func NewSupportedKafkaInstanceTypesListAllOfWithDefaults() *SupportedKafkaInstanceTypesListAllOf` - -NewSupportedKafkaInstanceTypesListAllOfWithDefaults instantiates a new SupportedKafkaInstanceTypesListAllOf 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 - -### GetInstanceTypes - -`func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypes() []SupportedKafkaInstanceType` - -GetInstanceTypes returns the InstanceTypes field if non-nil, zero value otherwise. - -### GetInstanceTypesOk - -`func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool)` - -GetInstanceTypesOk returns a tuple with the InstanceTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstanceTypes - -`func (o *SupportedKafkaInstanceTypesListAllOf) SetInstanceTypes(v []SupportedKafkaInstanceType)` - -SetInstanceTypes sets InstanceTypes field to given value. - -### HasInstanceTypes - -`func (o *SupportedKafkaInstanceTypesListAllOf) HasInstanceTypes() bool` - -HasInstanceTypes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md deleted file mode 100644 index 1241d275..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSize.md +++ /dev/null @@ -1,508 +0,0 @@ -# SupportedKafkaSize - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | Unique identifier of this Kafka instance size. | [optional] -**DisplayName** | Pointer to **string** | Display name of this Kafka instance size. | [optional] -**IngressThroughputPerSec** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**EgressThroughputPerSec** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**TotalMaxConnections** | Pointer to **int32** | Maximum amount of total connections available to this Kafka instance size. | [optional] -**MaxDataRetentionSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**MaxPartitions** | Pointer to **int32** | Maximum amount of total partitions available to this Kafka instance size. | [optional] -**MaxDataRetentionPeriod** | Pointer to **string** | Maximum data retention period available to this Kafka instance size. | [optional] -**MaxConnectionAttemptsPerSec** | Pointer to **int32** | Maximium connection attempts per second available to this Kafka instance size. | [optional] -**MaxMessageSize** | Pointer to [**SupportedKafkaSizeBytesValueItem**](SupportedKafkaSizeBytesValueItem.md) | | [optional] -**MinInSyncReplicas** | Pointer to **int32** | Minimum number of in-sync replicas. | [optional] -**ReplicationFactor** | Pointer to **int32** | Replication factor available to this Kafka instance size. | [optional] -**SupportedAzModes** | Pointer to **[]string** | List of Availability Zone modes that this Kafka instance size supports. The possible values are \"single\", \"multi\". | [optional] -**LifespanSeconds** | Pointer to **NullableInt32** | The limit lifespan of the kafka instance in seconds. If not specified then the instance never expires. | [optional] -**QuotaConsumed** | Pointer to **int32** | Quota consumed by this Kafka instance size. | [optional] -**QuotaType** | Pointer to **string** | Quota type used by this Kafka instance size. This is now deprecated, please refer to supported_billing_models at instance-type level instead. | [optional] -**CapacityConsumed** | Pointer to **int32** | Data plane cluster capacity consumed by this Kafka instance size. | [optional] -**MaturityStatus** | Pointer to **string** | Maturity level of the size. Can be \"stable\" or \"preview\". | [optional] - -## Methods - -### NewSupportedKafkaSize - -`func NewSupportedKafkaSize() *SupportedKafkaSize` - -NewSupportedKafkaSize instantiates a new SupportedKafkaSize 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 - -### NewSupportedKafkaSizeWithDefaults - -`func NewSupportedKafkaSizeWithDefaults() *SupportedKafkaSize` - -NewSupportedKafkaSizeWithDefaults instantiates a new SupportedKafkaSize 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 *SupportedKafkaSize) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SupportedKafkaSize) 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 *SupportedKafkaSize) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SupportedKafkaSize) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *SupportedKafkaSize) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *SupportedKafkaSize) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *SupportedKafkaSize) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *SupportedKafkaSize) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetIngressThroughputPerSec - -`func (o *SupportedKafkaSize) GetIngressThroughputPerSec() SupportedKafkaSizeBytesValueItem` - -GetIngressThroughputPerSec returns the IngressThroughputPerSec field if non-nil, zero value otherwise. - -### GetIngressThroughputPerSecOk - -`func (o *SupportedKafkaSize) GetIngressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIngressThroughputPerSec - -`func (o *SupportedKafkaSize) SetIngressThroughputPerSec(v SupportedKafkaSizeBytesValueItem)` - -SetIngressThroughputPerSec sets IngressThroughputPerSec field to given value. - -### HasIngressThroughputPerSec - -`func (o *SupportedKafkaSize) HasIngressThroughputPerSec() bool` - -HasIngressThroughputPerSec returns a boolean if a field has been set. - -### GetEgressThroughputPerSec - -`func (o *SupportedKafkaSize) GetEgressThroughputPerSec() SupportedKafkaSizeBytesValueItem` - -GetEgressThroughputPerSec returns the EgressThroughputPerSec field if non-nil, zero value otherwise. - -### GetEgressThroughputPerSecOk - -`func (o *SupportedKafkaSize) GetEgressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEgressThroughputPerSec - -`func (o *SupportedKafkaSize) SetEgressThroughputPerSec(v SupportedKafkaSizeBytesValueItem)` - -SetEgressThroughputPerSec sets EgressThroughputPerSec field to given value. - -### HasEgressThroughputPerSec - -`func (o *SupportedKafkaSize) HasEgressThroughputPerSec() bool` - -HasEgressThroughputPerSec returns a boolean if a field has been set. - -### GetTotalMaxConnections - -`func (o *SupportedKafkaSize) GetTotalMaxConnections() int32` - -GetTotalMaxConnections returns the TotalMaxConnections field if non-nil, zero value otherwise. - -### GetTotalMaxConnectionsOk - -`func (o *SupportedKafkaSize) GetTotalMaxConnectionsOk() (*int32, bool)` - -GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalMaxConnections - -`func (o *SupportedKafkaSize) SetTotalMaxConnections(v int32)` - -SetTotalMaxConnections sets TotalMaxConnections field to given value. - -### HasTotalMaxConnections - -`func (o *SupportedKafkaSize) HasTotalMaxConnections() bool` - -HasTotalMaxConnections returns a boolean if a field has been set. - -### GetMaxDataRetentionSize - -`func (o *SupportedKafkaSize) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem` - -GetMaxDataRetentionSize returns the MaxDataRetentionSize field if non-nil, zero value otherwise. - -### GetMaxDataRetentionSizeOk - -`func (o *SupportedKafkaSize) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionSize - -`func (o *SupportedKafkaSize) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem)` - -SetMaxDataRetentionSize sets MaxDataRetentionSize field to given value. - -### HasMaxDataRetentionSize - -`func (o *SupportedKafkaSize) HasMaxDataRetentionSize() bool` - -HasMaxDataRetentionSize returns a boolean if a field has been set. - -### GetMaxPartitions - -`func (o *SupportedKafkaSize) GetMaxPartitions() int32` - -GetMaxPartitions returns the MaxPartitions field if non-nil, zero value otherwise. - -### GetMaxPartitionsOk - -`func (o *SupportedKafkaSize) GetMaxPartitionsOk() (*int32, bool)` - -GetMaxPartitionsOk returns a tuple with the MaxPartitions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxPartitions - -`func (o *SupportedKafkaSize) SetMaxPartitions(v int32)` - -SetMaxPartitions sets MaxPartitions field to given value. - -### HasMaxPartitions - -`func (o *SupportedKafkaSize) HasMaxPartitions() bool` - -HasMaxPartitions returns a boolean if a field has been set. - -### GetMaxDataRetentionPeriod - -`func (o *SupportedKafkaSize) GetMaxDataRetentionPeriod() string` - -GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field if non-nil, zero value otherwise. - -### GetMaxDataRetentionPeriodOk - -`func (o *SupportedKafkaSize) GetMaxDataRetentionPeriodOk() (*string, bool)` - -GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxDataRetentionPeriod - -`func (o *SupportedKafkaSize) SetMaxDataRetentionPeriod(v string)` - -SetMaxDataRetentionPeriod sets MaxDataRetentionPeriod field to given value. - -### HasMaxDataRetentionPeriod - -`func (o *SupportedKafkaSize) HasMaxDataRetentionPeriod() bool` - -HasMaxDataRetentionPeriod returns a boolean if a field has been set. - -### GetMaxConnectionAttemptsPerSec - -`func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSec() int32` - -GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field if non-nil, zero value otherwise. - -### GetMaxConnectionAttemptsPerSecOk - -`func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSecOk() (*int32, bool)` - -GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxConnectionAttemptsPerSec - -`func (o *SupportedKafkaSize) SetMaxConnectionAttemptsPerSec(v int32)` - -SetMaxConnectionAttemptsPerSec sets MaxConnectionAttemptsPerSec field to given value. - -### HasMaxConnectionAttemptsPerSec - -`func (o *SupportedKafkaSize) HasMaxConnectionAttemptsPerSec() bool` - -HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. - -### GetMaxMessageSize - -`func (o *SupportedKafkaSize) GetMaxMessageSize() SupportedKafkaSizeBytesValueItem` - -GetMaxMessageSize returns the MaxMessageSize field if non-nil, zero value otherwise. - -### GetMaxMessageSizeOk - -`func (o *SupportedKafkaSize) GetMaxMessageSizeOk() (*SupportedKafkaSizeBytesValueItem, bool)` - -GetMaxMessageSizeOk returns a tuple with the MaxMessageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxMessageSize - -`func (o *SupportedKafkaSize) SetMaxMessageSize(v SupportedKafkaSizeBytesValueItem)` - -SetMaxMessageSize sets MaxMessageSize field to given value. - -### HasMaxMessageSize - -`func (o *SupportedKafkaSize) HasMaxMessageSize() bool` - -HasMaxMessageSize returns a boolean if a field has been set. - -### GetMinInSyncReplicas - -`func (o *SupportedKafkaSize) GetMinInSyncReplicas() int32` - -GetMinInSyncReplicas returns the MinInSyncReplicas field if non-nil, zero value otherwise. - -### GetMinInSyncReplicasOk - -`func (o *SupportedKafkaSize) GetMinInSyncReplicasOk() (*int32, bool)` - -GetMinInSyncReplicasOk returns a tuple with the MinInSyncReplicas field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinInSyncReplicas - -`func (o *SupportedKafkaSize) SetMinInSyncReplicas(v int32)` - -SetMinInSyncReplicas sets MinInSyncReplicas field to given value. - -### HasMinInSyncReplicas - -`func (o *SupportedKafkaSize) HasMinInSyncReplicas() bool` - -HasMinInSyncReplicas returns a boolean if a field has been set. - -### GetReplicationFactor - -`func (o *SupportedKafkaSize) GetReplicationFactor() int32` - -GetReplicationFactor returns the ReplicationFactor field if non-nil, zero value otherwise. - -### GetReplicationFactorOk - -`func (o *SupportedKafkaSize) GetReplicationFactorOk() (*int32, bool)` - -GetReplicationFactorOk returns a tuple with the ReplicationFactor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReplicationFactor - -`func (o *SupportedKafkaSize) SetReplicationFactor(v int32)` - -SetReplicationFactor sets ReplicationFactor field to given value. - -### HasReplicationFactor - -`func (o *SupportedKafkaSize) HasReplicationFactor() bool` - -HasReplicationFactor returns a boolean if a field has been set. - -### GetSupportedAzModes - -`func (o *SupportedKafkaSize) GetSupportedAzModes() []string` - -GetSupportedAzModes returns the SupportedAzModes field if non-nil, zero value otherwise. - -### GetSupportedAzModesOk - -`func (o *SupportedKafkaSize) GetSupportedAzModesOk() (*[]string, bool)` - -GetSupportedAzModesOk returns a tuple with the SupportedAzModes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSupportedAzModes - -`func (o *SupportedKafkaSize) SetSupportedAzModes(v []string)` - -SetSupportedAzModes sets SupportedAzModes field to given value. - -### HasSupportedAzModes - -`func (o *SupportedKafkaSize) HasSupportedAzModes() bool` - -HasSupportedAzModes returns a boolean if a field has been set. - -### GetLifespanSeconds - -`func (o *SupportedKafkaSize) GetLifespanSeconds() int32` - -GetLifespanSeconds returns the LifespanSeconds field if non-nil, zero value otherwise. - -### GetLifespanSecondsOk - -`func (o *SupportedKafkaSize) GetLifespanSecondsOk() (*int32, bool)` - -GetLifespanSecondsOk returns a tuple with the LifespanSeconds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLifespanSeconds - -`func (o *SupportedKafkaSize) SetLifespanSeconds(v int32)` - -SetLifespanSeconds sets LifespanSeconds field to given value. - -### HasLifespanSeconds - -`func (o *SupportedKafkaSize) HasLifespanSeconds() bool` - -HasLifespanSeconds returns a boolean if a field has been set. - -### SetLifespanSecondsNil - -`func (o *SupportedKafkaSize) SetLifespanSecondsNil(b bool)` - - SetLifespanSecondsNil sets the value for LifespanSeconds to be an explicit nil - -### UnsetLifespanSeconds -`func (o *SupportedKafkaSize) UnsetLifespanSeconds()` - -UnsetLifespanSeconds ensures that no value is present for LifespanSeconds, not even an explicit nil -### GetQuotaConsumed - -`func (o *SupportedKafkaSize) GetQuotaConsumed() int32` - -GetQuotaConsumed returns the QuotaConsumed field if non-nil, zero value otherwise. - -### GetQuotaConsumedOk - -`func (o *SupportedKafkaSize) GetQuotaConsumedOk() (*int32, bool)` - -GetQuotaConsumedOk returns a tuple with the QuotaConsumed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuotaConsumed - -`func (o *SupportedKafkaSize) SetQuotaConsumed(v int32)` - -SetQuotaConsumed sets QuotaConsumed field to given value. - -### HasQuotaConsumed - -`func (o *SupportedKafkaSize) HasQuotaConsumed() bool` - -HasQuotaConsumed returns a boolean if a field has been set. - -### GetQuotaType - -`func (o *SupportedKafkaSize) GetQuotaType() string` - -GetQuotaType returns the QuotaType field if non-nil, zero value otherwise. - -### GetQuotaTypeOk - -`func (o *SupportedKafkaSize) GetQuotaTypeOk() (*string, bool)` - -GetQuotaTypeOk returns a tuple with the QuotaType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuotaType - -`func (o *SupportedKafkaSize) SetQuotaType(v string)` - -SetQuotaType sets QuotaType field to given value. - -### HasQuotaType - -`func (o *SupportedKafkaSize) HasQuotaType() bool` - -HasQuotaType returns a boolean if a field has been set. - -### GetCapacityConsumed - -`func (o *SupportedKafkaSize) GetCapacityConsumed() int32` - -GetCapacityConsumed returns the CapacityConsumed field if non-nil, zero value otherwise. - -### GetCapacityConsumedOk - -`func (o *SupportedKafkaSize) GetCapacityConsumedOk() (*int32, bool)` - -GetCapacityConsumedOk returns a tuple with the CapacityConsumed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCapacityConsumed - -`func (o *SupportedKafkaSize) SetCapacityConsumed(v int32)` - -SetCapacityConsumed sets CapacityConsumed field to given value. - -### HasCapacityConsumed - -`func (o *SupportedKafkaSize) HasCapacityConsumed() bool` - -HasCapacityConsumed returns a boolean if a field has been set. - -### GetMaturityStatus - -`func (o *SupportedKafkaSize) GetMaturityStatus() string` - -GetMaturityStatus returns the MaturityStatus field if non-nil, zero value otherwise. - -### GetMaturityStatusOk - -`func (o *SupportedKafkaSize) GetMaturityStatusOk() (*string, bool)` - -GetMaturityStatusOk returns a tuple with the MaturityStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaturityStatus - -`func (o *SupportedKafkaSize) SetMaturityStatus(v string)` - -SetMaturityStatus sets MaturityStatus field to given value. - -### HasMaturityStatus - -`func (o *SupportedKafkaSize) HasMaturityStatus() bool` - -HasMaturityStatus 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md deleted file mode 100644 index dd92733b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/SupportedKafkaSizeBytesValueItem.md +++ /dev/null @@ -1,56 +0,0 @@ -# SupportedKafkaSizeBytesValueItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Bytes** | Pointer to **int64** | | [optional] - -## Methods - -### NewSupportedKafkaSizeBytesValueItem - -`func NewSupportedKafkaSizeBytesValueItem() *SupportedKafkaSizeBytesValueItem` - -NewSupportedKafkaSizeBytesValueItem instantiates a new SupportedKafkaSizeBytesValueItem 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 - -### NewSupportedKafkaSizeBytesValueItemWithDefaults - -`func NewSupportedKafkaSizeBytesValueItemWithDefaults() *SupportedKafkaSizeBytesValueItem` - -NewSupportedKafkaSizeBytesValueItemWithDefaults instantiates a new SupportedKafkaSizeBytesValueItem 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 - -### GetBytes - -`func (o *SupportedKafkaSizeBytesValueItem) GetBytes() int64` - -GetBytes returns the Bytes field if non-nil, zero value otherwise. - -### GetBytesOk - -`func (o *SupportedKafkaSizeBytesValueItem) GetBytesOk() (*int64, bool)` - -GetBytesOk returns a tuple with the Bytes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBytes - -`func (o *SupportedKafkaSizeBytesValueItem) SetBytes(v int64)` - -SetBytes sets Bytes field to given value. - -### HasBytes - -`func (o *SupportedKafkaSizeBytesValueItem) HasBytes() bool` - -HasBytes 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md deleted file mode 100644 index 87f4f9a0..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/Values.md +++ /dev/null @@ -1,77 +0,0 @@ -# Values - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Timestamp** | Pointer to **int64** | | [optional] -**Value** | **float64** | | - -## Methods - -### NewValues - -`func NewValues(value float64, ) *Values` - -NewValues instantiates a new Values 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 - -### NewValuesWithDefaults - -`func NewValuesWithDefaults() *Values` - -NewValuesWithDefaults instantiates a new Values 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 - -### GetTimestamp - -`func (o *Values) GetTimestamp() int64` - -GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. - -### GetTimestampOk - -`func (o *Values) GetTimestampOk() (*int64, bool)` - -GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimestamp - -`func (o *Values) SetTimestamp(v int64)` - -SetTimestamp sets Timestamp field to given value. - -### HasTimestamp - -`func (o *Values) HasTimestamp() bool` - -HasTimestamp returns a boolean if a field has been set. - -### GetValue - -`func (o *Values) GetValue() float64` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *Values) GetValueOk() (*float64, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *Values) SetValue(v float64)` - -SetValue sets Value 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md deleted file mode 100644 index 9bb0b899..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadata.md +++ /dev/null @@ -1,145 +0,0 @@ -# VersionMetadata - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | | -**Kind** | **string** | | -**Href** | **string** | | -**ServerVersion** | Pointer to **string** | | [optional] -**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] - -## Methods - -### NewVersionMetadata - -`func NewVersionMetadata(id string, kind string, href string, ) *VersionMetadata` - -NewVersionMetadata instantiates a new VersionMetadata 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 - -### NewVersionMetadataWithDefaults - -`func NewVersionMetadataWithDefaults() *VersionMetadata` - -NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 *VersionMetadata) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *VersionMetadata) 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 *VersionMetadata) SetId(v string)` - -SetId sets Id field to given value. - - -### GetKind - -`func (o *VersionMetadata) GetKind() string` - -GetKind returns the Kind field if non-nil, zero value otherwise. - -### GetKindOk - -`func (o *VersionMetadata) GetKindOk() (*string, bool)` - -GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKind - -`func (o *VersionMetadata) SetKind(v string)` - -SetKind sets Kind field to given value. - - -### GetHref - -`func (o *VersionMetadata) GetHref() string` - -GetHref returns the Href field if non-nil, zero value otherwise. - -### GetHrefOk - -`func (o *VersionMetadata) GetHrefOk() (*string, bool)` - -GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHref - -`func (o *VersionMetadata) SetHref(v string)` - -SetHref sets Href field to given value. - - -### GetServerVersion - -`func (o *VersionMetadata) GetServerVersion() string` - -GetServerVersion returns the ServerVersion field if non-nil, zero value otherwise. - -### GetServerVersionOk - -`func (o *VersionMetadata) GetServerVersionOk() (*string, bool)` - -GetServerVersionOk returns a tuple with the ServerVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServerVersion - -`func (o *VersionMetadata) SetServerVersion(v string)` - -SetServerVersion sets ServerVersion field to given value. - -### HasServerVersion - -`func (o *VersionMetadata) HasServerVersion() bool` - -HasServerVersion returns a boolean if a field has been set. - -### GetCollections - -`func (o *VersionMetadata) GetCollections() []ObjectReference` - -GetCollections returns the Collections field if non-nil, zero value otherwise. - -### GetCollectionsOk - -`func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool)` - -GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCollections - -`func (o *VersionMetadata) SetCollections(v []ObjectReference)` - -SetCollections sets Collections field to given value. - -### HasCollections - -`func (o *VersionMetadata) HasCollections() bool` - -HasCollections 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/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md b/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md deleted file mode 100644 index 97224fa9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md +++ /dev/null @@ -1,82 +0,0 @@ -# VersionMetadataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ServerVersion** | Pointer to **string** | | [optional] -**Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] - -## Methods - -### NewVersionMetadataAllOf - -`func NewVersionMetadataAllOf() *VersionMetadataAllOf` - -NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 - -### NewVersionMetadataAllOfWithDefaults - -`func NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf` - -NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 - -### GetServerVersion - -`func (o *VersionMetadataAllOf) GetServerVersion() string` - -GetServerVersion returns the ServerVersion field if non-nil, zero value otherwise. - -### GetServerVersionOk - -`func (o *VersionMetadataAllOf) GetServerVersionOk() (*string, bool)` - -GetServerVersionOk returns a tuple with the ServerVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServerVersion - -`func (o *VersionMetadataAllOf) SetServerVersion(v string)` - -SetServerVersion sets ServerVersion field to given value. - -### HasServerVersion - -`func (o *VersionMetadataAllOf) HasServerVersion() bool` - -HasServerVersion returns a boolean if a field has been set. - -### GetCollections - -`func (o *VersionMetadataAllOf) GetCollections() []ObjectReference` - -GetCollections returns the Collections field if non-nil, zero value otherwise. - -### GetCollectionsOk - -`func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool)` - -GetCollectionsOk returns a tuple with the Collections field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCollections - -`func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference)` - -SetCollections sets Collections field to given value. - -### HasCollections - -`func (o *VersionMetadataAllOf) HasCollections() bool` - -HasCollections 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/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod b/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod deleted file mode 100644 index 0f43de9e..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/go.mod +++ /dev/null @@ -1,7 +0,0 @@ -module github.com/GIT_USER_ID/GIT_REPO_ID - -go 1.13 - -require ( - golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 -) diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum b/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum deleted file mode 100644 index 734252e6..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/go.sum +++ /dev/null @@ -1,13 +0,0 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go deleted file mode 100644 index ef8560dd..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider.go +++ /dev/null @@ -1,258 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudProvider Cloud provider. -type CloudProvider struct { - // Indicates the type of this object. Will be 'CloudProvider' link. - Kind *string `json:"kind,omitempty"` - // Unique identifier of the object. - Id *string `json:"id,omitempty"` - // Name of the cloud provider for display purposes. - DisplayName *string `json:"display_name,omitempty"` - // Human friendly identifier of the cloud provider, for example `aws`. - Name *string `json:"name,omitempty"` - // Whether the cloud provider is enabled for deploying an OSD cluster. - Enabled bool `json:"enabled"` -} - -// NewCloudProvider instantiates a new CloudProvider 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 NewCloudProvider(enabled bool) *CloudProvider { - this := CloudProvider{} - this.Enabled = enabled - return &this -} - -// NewCloudProviderWithDefaults instantiates a new CloudProvider 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 NewCloudProviderWithDefaults() *CloudProvider { - this := CloudProvider{} - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *CloudProvider) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudProvider) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *CloudProvider) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *CloudProvider) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *CloudProvider) GetId() string { - if o == nil || o.Id == nil { - 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 *CloudProvider) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *CloudProvider) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *CloudProvider) SetId(v string) { - o.Id = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *CloudProvider) GetDisplayName() string { - if o == nil || o.DisplayName == nil { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudProvider) GetDisplayNameOk() (*string, bool) { - if o == nil || o.DisplayName == nil { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *CloudProvider) HasDisplayName() bool { - if o != nil && o.DisplayName != nil { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *CloudProvider) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *CloudProvider) GetName() string { - if o == nil || o.Name == nil { - 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 *CloudProvider) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *CloudProvider) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *CloudProvider) SetName(v string) { - o.Name = &v -} - -// GetEnabled returns the Enabled field value -func (o *CloudProvider) GetEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -func (o *CloudProvider) GetEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Enabled, true -} - -// SetEnabled sets field value -func (o *CloudProvider) SetEnabled(v bool) { - o.Enabled = v -} - -func (o CloudProvider) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.DisplayName != nil { - toSerialize["display_name"] = o.DisplayName - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if true { - toSerialize["enabled"] = o.Enabled - } - return json.Marshal(toSerialize) -} - -type NullableCloudProvider struct { - value *CloudProvider - isSet bool -} - -func (v NullableCloudProvider) Get() *CloudProvider { - return v.value -} - -func (v *NullableCloudProvider) Set(val *CloudProvider) { - v.value = val - v.isSet = true -} - -func (v NullableCloudProvider) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudProvider) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudProvider(val *CloudProvider) *NullableCloudProvider { - return &NullableCloudProvider{value: val, isSet: true} -} - -func (v NullableCloudProvider) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudProvider) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go deleted file mode 100644 index cc4ee938..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list.go +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudProviderList struct for CloudProviderList -type CloudProviderList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` - Items []CloudProvider `json:"items"` -} - -// NewCloudProviderList instantiates a new CloudProviderList 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 NewCloudProviderList(kind string, page int32, size int32, total int32, items []CloudProvider) *CloudProviderList { - this := CloudProviderList{} - this.Kind = kind - this.Page = page - this.Size = size - this.Total = total - this.Items = items - return &this -} - -// NewCloudProviderListWithDefaults instantiates a new CloudProviderList 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 NewCloudProviderListWithDefaults() *CloudProviderList { - this := CloudProviderList{} - return &this -} - -// GetKind returns the Kind field value -func (o *CloudProviderList) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *CloudProviderList) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *CloudProviderList) SetKind(v string) { - o.Kind = v -} - -// GetPage returns the Page field value -func (o *CloudProviderList) GetPage() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Page -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -func (o *CloudProviderList) GetPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Page, true -} - -// SetPage sets field value -func (o *CloudProviderList) SetPage(v int32) { - o.Page = v -} - -// GetSize returns the Size field value -func (o *CloudProviderList) GetSize() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -func (o *CloudProviderList) GetSizeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Size, true -} - -// SetSize sets field value -func (o *CloudProviderList) SetSize(v int32) { - o.Size = v -} - -// GetTotal returns the Total field value -func (o *CloudProviderList) GetTotal() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Total -} - -// GetTotalOk returns a tuple with the Total field value -// and a boolean to check if the value has been set. -func (o *CloudProviderList) GetTotalOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Total, true -} - -// SetTotal sets field value -func (o *CloudProviderList) SetTotal(v int32) { - o.Total = v -} - -// GetItems returns the Items field value -func (o *CloudProviderList) GetItems() []CloudProvider { - if o == nil { - var ret []CloudProvider - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *CloudProviderList) GetItemsOk() (*[]CloudProvider, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *CloudProviderList) SetItems(v []CloudProvider) { - o.Items = v -} - -func (o CloudProviderList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["page"] = o.Page - } - if true { - toSerialize["size"] = o.Size - } - if true { - toSerialize["total"] = o.Total - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableCloudProviderList struct { - value *CloudProviderList - isSet bool -} - -func (v NullableCloudProviderList) Get() *CloudProviderList { - return v.value -} - -func (v *NullableCloudProviderList) Set(val *CloudProviderList) { - v.value = val - v.isSet = true -} - -func (v NullableCloudProviderList) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudProviderList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudProviderList(val *CloudProviderList) *NullableCloudProviderList { - return &NullableCloudProviderList{value: val, isSet: true} -} - -func (v NullableCloudProviderList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudProviderList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go deleted file mode 100644 index 2ecd7517..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudProviderListAllOf struct for CloudProviderListAllOf -type CloudProviderListAllOf struct { - Items *[]CloudProvider `json:"items,omitempty"` -} - -// NewCloudProviderListAllOf instantiates a new CloudProviderListAllOf 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 NewCloudProviderListAllOf() *CloudProviderListAllOf { - this := CloudProviderListAllOf{} - return &this -} - -// NewCloudProviderListAllOfWithDefaults instantiates a new CloudProviderListAllOf 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 NewCloudProviderListAllOfWithDefaults() *CloudProviderListAllOf { - this := CloudProviderListAllOf{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *CloudProviderListAllOf) GetItems() []CloudProvider { - if o == nil || o.Items == nil { - var ret []CloudProvider - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudProviderListAllOf) GetItemsOk() (*[]CloudProvider, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *CloudProviderListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []CloudProvider and assigns it to the Items field. -func (o *CloudProviderListAllOf) SetItems(v []CloudProvider) { - o.Items = &v -} - -func (o CloudProviderListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableCloudProviderListAllOf struct { - value *CloudProviderListAllOf - isSet bool -} - -func (v NullableCloudProviderListAllOf) Get() *CloudProviderListAllOf { - return v.value -} - -func (v *NullableCloudProviderListAllOf) Set(val *CloudProviderListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableCloudProviderListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudProviderListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudProviderListAllOf(val *CloudProviderListAllOf) *NullableCloudProviderListAllOf { - return &NullableCloudProviderListAllOf{value: val, isSet: true} -} - -func (v NullableCloudProviderListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudProviderListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go deleted file mode 100644 index 2dbf8650..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region.go +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudRegion Description of a region of a cloud provider. -type CloudRegion struct { - // Indicates the type of this object. Will be 'CloudRegion'. - Kind *string `json:"kind,omitempty"` - // Unique identifier of the object. - Id *string `json:"id,omitempty"` - // Name of the region for display purposes, for example `N. Virginia`. - DisplayName *string `json:"display_name,omitempty"` - // Whether the region is enabled for deploying an OSD cluster. - Enabled bool `json:"enabled"` - // Indicates whether there is capacity left per instance type - Capacity []RegionCapacityListItem `json:"capacity"` -} - -// NewCloudRegion instantiates a new CloudRegion 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 NewCloudRegion(enabled bool, capacity []RegionCapacityListItem) *CloudRegion { - this := CloudRegion{} - this.Enabled = enabled - this.Capacity = capacity - return &this -} - -// NewCloudRegionWithDefaults instantiates a new CloudRegion 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 NewCloudRegionWithDefaults() *CloudRegion { - this := CloudRegion{} - var enabled bool = false - this.Enabled = enabled - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *CloudRegion) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudRegion) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *CloudRegion) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *CloudRegion) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *CloudRegion) GetId() string { - if o == nil || o.Id == nil { - 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 *CloudRegion) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *CloudRegion) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *CloudRegion) SetId(v string) { - o.Id = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *CloudRegion) GetDisplayName() string { - if o == nil || o.DisplayName == nil { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudRegion) GetDisplayNameOk() (*string, bool) { - if o == nil || o.DisplayName == nil { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *CloudRegion) HasDisplayName() bool { - if o != nil && o.DisplayName != nil { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *CloudRegion) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetEnabled returns the Enabled field value -func (o *CloudRegion) GetEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value -// and a boolean to check if the value has been set. -func (o *CloudRegion) GetEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Enabled, true -} - -// SetEnabled sets field value -func (o *CloudRegion) SetEnabled(v bool) { - o.Enabled = v -} - -// GetCapacity returns the Capacity field value -func (o *CloudRegion) GetCapacity() []RegionCapacityListItem { - if o == nil { - var ret []RegionCapacityListItem - return ret - } - - return o.Capacity -} - -// GetCapacityOk returns a tuple with the Capacity field value -// and a boolean to check if the value has been set. -func (o *CloudRegion) GetCapacityOk() (*[]RegionCapacityListItem, bool) { - if o == nil { - return nil, false - } - return &o.Capacity, true -} - -// SetCapacity sets field value -func (o *CloudRegion) SetCapacity(v []RegionCapacityListItem) { - o.Capacity = v -} - -func (o CloudRegion) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.DisplayName != nil { - toSerialize["display_name"] = o.DisplayName - } - if true { - toSerialize["enabled"] = o.Enabled - } - if true { - toSerialize["capacity"] = o.Capacity - } - return json.Marshal(toSerialize) -} - -type NullableCloudRegion struct { - value *CloudRegion - isSet bool -} - -func (v NullableCloudRegion) Get() *CloudRegion { - return v.value -} - -func (v *NullableCloudRegion) Set(val *CloudRegion) { - v.value = val - v.isSet = true -} - -func (v NullableCloudRegion) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudRegion) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudRegion(val *CloudRegion) *NullableCloudRegion { - return &NullableCloudRegion{value: val, isSet: true} -} - -func (v NullableCloudRegion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudRegion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go deleted file mode 100644 index 90c9796b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list.go +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudRegionList struct for CloudRegionList -type CloudRegionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` - Items []CloudRegion `json:"items"` -} - -// NewCloudRegionList instantiates a new CloudRegionList 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 NewCloudRegionList(kind string, page int32, size int32, total int32, items []CloudRegion) *CloudRegionList { - this := CloudRegionList{} - this.Kind = kind - this.Page = page - this.Size = size - this.Total = total - this.Items = items - return &this -} - -// NewCloudRegionListWithDefaults instantiates a new CloudRegionList 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 NewCloudRegionListWithDefaults() *CloudRegionList { - this := CloudRegionList{} - return &this -} - -// GetKind returns the Kind field value -func (o *CloudRegionList) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *CloudRegionList) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *CloudRegionList) SetKind(v string) { - o.Kind = v -} - -// GetPage returns the Page field value -func (o *CloudRegionList) GetPage() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Page -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -func (o *CloudRegionList) GetPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Page, true -} - -// SetPage sets field value -func (o *CloudRegionList) SetPage(v int32) { - o.Page = v -} - -// GetSize returns the Size field value -func (o *CloudRegionList) GetSize() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -func (o *CloudRegionList) GetSizeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Size, true -} - -// SetSize sets field value -func (o *CloudRegionList) SetSize(v int32) { - o.Size = v -} - -// GetTotal returns the Total field value -func (o *CloudRegionList) GetTotal() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Total -} - -// GetTotalOk returns a tuple with the Total field value -// and a boolean to check if the value has been set. -func (o *CloudRegionList) GetTotalOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Total, true -} - -// SetTotal sets field value -func (o *CloudRegionList) SetTotal(v int32) { - o.Total = v -} - -// GetItems returns the Items field value -func (o *CloudRegionList) GetItems() []CloudRegion { - if o == nil { - var ret []CloudRegion - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *CloudRegionList) GetItemsOk() (*[]CloudRegion, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *CloudRegionList) SetItems(v []CloudRegion) { - o.Items = v -} - -func (o CloudRegionList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["page"] = o.Page - } - if true { - toSerialize["size"] = o.Size - } - if true { - toSerialize["total"] = o.Total - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableCloudRegionList struct { - value *CloudRegionList - isSet bool -} - -func (v NullableCloudRegionList) Get() *CloudRegionList { - return v.value -} - -func (v *NullableCloudRegionList) Set(val *CloudRegionList) { - v.value = val - v.isSet = true -} - -func (v NullableCloudRegionList) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudRegionList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudRegionList(val *CloudRegionList) *NullableCloudRegionList { - return &NullableCloudRegionList{value: val, isSet: true} -} - -func (v NullableCloudRegionList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudRegionList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go deleted file mode 100644 index 0353f4d9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// CloudRegionListAllOf struct for CloudRegionListAllOf -type CloudRegionListAllOf struct { - Items *[]CloudRegion `json:"items,omitempty"` -} - -// NewCloudRegionListAllOf instantiates a new CloudRegionListAllOf 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 NewCloudRegionListAllOf() *CloudRegionListAllOf { - this := CloudRegionListAllOf{} - return &this -} - -// NewCloudRegionListAllOfWithDefaults instantiates a new CloudRegionListAllOf 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 NewCloudRegionListAllOfWithDefaults() *CloudRegionListAllOf { - this := CloudRegionListAllOf{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *CloudRegionListAllOf) GetItems() []CloudRegion { - if o == nil || o.Items == nil { - var ret []CloudRegion - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CloudRegionListAllOf) GetItemsOk() (*[]CloudRegion, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *CloudRegionListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []CloudRegion and assigns it to the Items field. -func (o *CloudRegionListAllOf) SetItems(v []CloudRegion) { - o.Items = &v -} - -func (o CloudRegionListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableCloudRegionListAllOf struct { - value *CloudRegionListAllOf - isSet bool -} - -func (v NullableCloudRegionListAllOf) Get() *CloudRegionListAllOf { - return v.value -} - -func (v *NullableCloudRegionListAllOf) Set(val *CloudRegionListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableCloudRegionListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableCloudRegionListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCloudRegionListAllOf(val *CloudRegionListAllOf) *NullableCloudRegionListAllOf { - return &NullableCloudRegionListAllOf{value: val, isSet: true} -} - -func (v NullableCloudRegionListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCloudRegionListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go deleted file mode 100644 index cb0cdef3..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error.go +++ /dev/null @@ -1,261 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// Error struct for Error -type Error struct { - Reason string `json:"reason"` - OperationId *string `json:"operation_id,omitempty"` - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - Code string `json:"code"` -} - -// NewError instantiates a new Error 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 NewError(reason string, id string, kind string, href string, code string) *Error { - this := Error{} - this.Reason = reason - this.Id = id - this.Kind = kind - this.Href = href - this.Code = code - return &this -} - -// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { - this := Error{} - return &this -} - -// GetReason returns the Reason field value -func (o *Error) GetReason() string { - if o == nil { - var ret string - return ret - } - - return o.Reason -} - -// GetReasonOk returns a tuple with the Reason field value -// and a boolean to check if the value has been set. -func (o *Error) GetReasonOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Reason, true -} - -// SetReason sets field value -func (o *Error) SetReason(v string) { - o.Reason = v -} - -// GetOperationId returns the OperationId field value if set, zero value otherwise. -func (o *Error) GetOperationId() string { - if o == nil || o.OperationId == nil { - var ret string - return ret - } - return *o.OperationId -} - -// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Error) GetOperationIdOk() (*string, bool) { - if o == nil || o.OperationId == nil { - return nil, false - } - return o.OperationId, true -} - -// HasOperationId returns a boolean if a field has been set. -func (o *Error) HasOperationId() bool { - if o != nil && o.OperationId != nil { - return true - } - - return false -} - -// SetOperationId gets a reference to the given string and assigns it to the OperationId field. -func (o *Error) SetOperationId(v string) { - o.OperationId = &v -} - -// GetId returns the Id field value -func (o *Error) 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 *Error) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *Error) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *Error) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *Error) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *Error) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *Error) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *Error) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *Error) SetHref(v string) { - o.Href = v -} - -// GetCode returns the Code field value -func (o *Error) GetCode() string { - if o == nil { - var ret string - return ret - } - - return o.Code -} - -// GetCodeOk returns a tuple with the Code field value -// and a boolean to check if the value has been set. -func (o *Error) GetCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Code, true -} - -// SetCode sets field value -func (o *Error) SetCode(v string) { - o.Code = v -} - -func (o Error) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["reason"] = o.Reason - } - if o.OperationId != nil { - toSerialize["operation_id"] = o.OperationId - } - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if true { - toSerialize["code"] = o.Code - } - return json.Marshal(toSerialize) -} - -type NullableError struct { - value *Error - isSet bool -} - -func (v NullableError) Get() *Error { - return v.value -} - -func (v *NullableError) Set(val *Error) { - v.value = val - v.isSet = true -} - -func (v NullableError) IsSet() bool { - return v.isSet -} - -func (v *NullableError) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableError(val *Error) *NullableError { - return &NullableError{value: val, isSet: true} -} - -func (v NullableError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go deleted file mode 100644 index ec54a321..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list.go +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ErrorList struct for ErrorList -type ErrorList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` - Items []Error `json:"items"` -} - -// NewErrorList instantiates a new ErrorList 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 NewErrorList(kind string, page int32, size int32, total int32, items []Error) *ErrorList { - this := ErrorList{} - this.Kind = kind - this.Page = page - this.Size = size - this.Total = total - this.Items = items - return &this -} - -// NewErrorListWithDefaults instantiates a new ErrorList 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 NewErrorListWithDefaults() *ErrorList { - this := ErrorList{} - return &this -} - -// GetKind returns the Kind field value -func (o *ErrorList) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ErrorList) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ErrorList) SetKind(v string) { - o.Kind = v -} - -// GetPage returns the Page field value -func (o *ErrorList) GetPage() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Page -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -func (o *ErrorList) GetPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Page, true -} - -// SetPage sets field value -func (o *ErrorList) SetPage(v int32) { - o.Page = v -} - -// GetSize returns the Size field value -func (o *ErrorList) GetSize() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -func (o *ErrorList) GetSizeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Size, true -} - -// SetSize sets field value -func (o *ErrorList) SetSize(v int32) { - o.Size = v -} - -// GetTotal returns the Total field value -func (o *ErrorList) GetTotal() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Total -} - -// GetTotalOk returns a tuple with the Total field value -// and a boolean to check if the value has been set. -func (o *ErrorList) GetTotalOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Total, true -} - -// SetTotal sets field value -func (o *ErrorList) SetTotal(v int32) { - o.Total = v -} - -// GetItems returns the Items field value -func (o *ErrorList) GetItems() []Error { - if o == nil { - var ret []Error - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *ErrorList) GetItemsOk() (*[]Error, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *ErrorList) SetItems(v []Error) { - o.Items = v -} - -func (o ErrorList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["page"] = o.Page - } - if true { - toSerialize["size"] = o.Size - } - if true { - toSerialize["total"] = o.Total - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableErrorList struct { - value *ErrorList - isSet bool -} - -func (v NullableErrorList) Get() *ErrorList { - return v.value -} - -func (v *NullableErrorList) Set(val *ErrorList) { - v.value = val - v.isSet = true -} - -func (v NullableErrorList) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorList(val *ErrorList) *NullableErrorList { - return &NullableErrorList{value: val, isSet: true} -} - -func (v NullableErrorList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableErrorList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go deleted file mode 100644 index bb3852c3..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_error_list_all_of.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ErrorListAllOf struct for ErrorListAllOf -type ErrorListAllOf struct { - Items *[]Error `json:"items,omitempty"` -} - -// NewErrorListAllOf instantiates a new ErrorListAllOf 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 NewErrorListAllOf() *ErrorListAllOf { - this := ErrorListAllOf{} - return &this -} - -// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { - this := ErrorListAllOf{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *ErrorListAllOf) GetItems() []Error { - if o == nil || o.Items == nil { - var ret []Error - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *ErrorListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []Error and assigns it to the Items field. -func (o *ErrorListAllOf) SetItems(v []Error) { - o.Items = &v -} - -func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableErrorListAllOf struct { - value *ErrorListAllOf - isSet bool -} - -func (v NullableErrorListAllOf) Get() *ErrorListAllOf { - return v.value -} - -func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableErrorListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { - return &NullableErrorListAllOf{value: val, isSet: true} -} - -func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go deleted file mode 100644 index b456dbf8..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_instant_query.go +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// InstantQuery struct for InstantQuery -type InstantQuery struct { - Metric *map[string]string `json:"metric,omitempty"` - Timestamp *int64 `json:"timestamp,omitempty"` - Value float64 `json:"value"` -} - -// NewInstantQuery instantiates a new InstantQuery 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 NewInstantQuery(value float64) *InstantQuery { - this := InstantQuery{} - this.Value = value - return &this -} - -// NewInstantQueryWithDefaults instantiates a new InstantQuery 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 NewInstantQueryWithDefaults() *InstantQuery { - this := InstantQuery{} - return &this -} - -// GetMetric returns the Metric field value if set, zero value otherwise. -func (o *InstantQuery) GetMetric() map[string]string { - if o == nil || o.Metric == nil { - var ret map[string]string - return ret - } - return *o.Metric -} - -// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstantQuery) GetMetricOk() (*map[string]string, bool) { - if o == nil || o.Metric == nil { - return nil, false - } - return o.Metric, true -} - -// HasMetric returns a boolean if a field has been set. -func (o *InstantQuery) HasMetric() bool { - if o != nil && o.Metric != nil { - return true - } - - return false -} - -// SetMetric gets a reference to the given map[string]string and assigns it to the Metric field. -func (o *InstantQuery) SetMetric(v map[string]string) { - o.Metric = &v -} - -// GetTimestamp returns the Timestamp field value if set, zero value otherwise. -func (o *InstantQuery) GetTimestamp() int64 { - if o == nil || o.Timestamp == nil { - var ret int64 - return ret - } - return *o.Timestamp -} - -// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *InstantQuery) GetTimestampOk() (*int64, bool) { - if o == nil || o.Timestamp == nil { - return nil, false - } - return o.Timestamp, true -} - -// HasTimestamp returns a boolean if a field has been set. -func (o *InstantQuery) HasTimestamp() bool { - if o != nil && o.Timestamp != nil { - return true - } - - return false -} - -// SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field. -func (o *InstantQuery) SetTimestamp(v int64) { - o.Timestamp = &v -} - -// GetValue returns the Value field value -func (o *InstantQuery) GetValue() float64 { - if o == nil { - var ret float64 - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *InstantQuery) GetValueOk() (*float64, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *InstantQuery) SetValue(v float64) { - o.Value = v -} - -func (o InstantQuery) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Metric != nil { - toSerialize["metric"] = o.Metric - } - if o.Timestamp != nil { - toSerialize["timestamp"] = o.Timestamp - } - if true { - toSerialize["value"] = o.Value - } - return json.Marshal(toSerialize) -} - -type NullableInstantQuery struct { - value *InstantQuery - isSet bool -} - -func (v NullableInstantQuery) Get() *InstantQuery { - return v.value -} - -func (v *NullableInstantQuery) Set(val *InstantQuery) { - v.value = val - v.isSet = true -} - -func (v NullableInstantQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableInstantQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInstantQuery(val *InstantQuery) *NullableInstantQuery { - return &NullableInstantQuery{value: val, isSet: true} -} - -func (v NullableInstantQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInstantQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go deleted file mode 100644 index 14e13a29..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request.go +++ /dev/null @@ -1,1220 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// KafkaRequest struct for KafkaRequest -type KafkaRequest struct { - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - // Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] - Status *string `json:"status,omitempty"` - // Name of Cloud used to deploy. For example AWS - CloudProvider *string `json:"cloud_provider,omitempty"` - MultiAz bool `json:"multi_az"` - // Values will be regions of specific cloud provider. For example: us-east-1 for AWS - Region *string `json:"region,omitempty"` - Owner *string `json:"owner,omitempty"` - Name *string `json:"name,omitempty"` - BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` - // The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state - AdminApiServerUrl *string `json:"admin_api_server_url,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - ExpiresAt NullableTime `json:"expires_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - FailedReason *string `json:"failed_reason,omitempty"` - Version *string `json:"version,omitempty"` - InstanceType *string `json:"instance_type,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - InstanceTypeName *string `json:"instance_type_name,omitempty"` - ReauthenticationEnabled bool `json:"reauthentication_enabled"` - // Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. - KafkaStorageSize *string `json:"kafka_storage_size,omitempty"` - MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` - BrowserUrl *string `json:"browser_url,omitempty"` - SizeId *string `json:"size_id,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - IngressThroughputPerSec *string `json:"ingress_throughput_per_sec,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - EgressThroughputPerSec *string `json:"egress_throughput_per_sec,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxPartitions *int32 `json:"max_partitions,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` - BillingCloudAccountId *string `json:"billing_cloud_account_id,omitempty"` - Marketplace *string `json:"marketplace,omitempty"` - BillingModel *string `json:"billing_model,omitempty"` -} - -// NewKafkaRequest instantiates a new KafkaRequest 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 NewKafkaRequest(id string, kind string, href string, multiAz bool, reauthenticationEnabled bool) *KafkaRequest { - this := KafkaRequest{} - this.Id = id - this.Kind = kind - this.Href = href - this.MultiAz = multiAz - this.ReauthenticationEnabled = reauthenticationEnabled - return &this -} - -// NewKafkaRequestWithDefaults instantiates a new KafkaRequest 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 NewKafkaRequestWithDefaults() *KafkaRequest { - this := KafkaRequest{} - return &this -} - -// GetId returns the Id field value -func (o *KafkaRequest) 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 *KafkaRequest) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *KafkaRequest) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *KafkaRequest) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *KafkaRequest) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *KafkaRequest) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *KafkaRequest) SetHref(v string) { - o.Href = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *KafkaRequest) GetStatus() string { - if o == nil || o.Status == nil { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetStatusOk() (*string, bool) { - if o == nil || o.Status == nil { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *KafkaRequest) HasStatus() bool { - if o != nil && o.Status != nil { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *KafkaRequest) SetStatus(v string) { - o.Status = &v -} - -// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. -func (o *KafkaRequest) GetCloudProvider() string { - if o == nil || o.CloudProvider == nil { - var ret string - return ret - } - return *o.CloudProvider -} - -// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetCloudProviderOk() (*string, bool) { - if o == nil || o.CloudProvider == nil { - return nil, false - } - return o.CloudProvider, true -} - -// HasCloudProvider returns a boolean if a field has been set. -func (o *KafkaRequest) HasCloudProvider() bool { - if o != nil && o.CloudProvider != nil { - return true - } - - return false -} - -// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. -func (o *KafkaRequest) SetCloudProvider(v string) { - o.CloudProvider = &v -} - -// GetMultiAz returns the MultiAz field value -func (o *KafkaRequest) GetMultiAz() bool { - if o == nil { - var ret bool - return ret - } - - return o.MultiAz -} - -// GetMultiAzOk returns a tuple with the MultiAz field value -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMultiAzOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.MultiAz, true -} - -// SetMultiAz sets field value -func (o *KafkaRequest) SetMultiAz(v bool) { - o.MultiAz = v -} - -// GetRegion returns the Region field value if set, zero value otherwise. -func (o *KafkaRequest) GetRegion() string { - if o == nil || o.Region == nil { - var ret string - return ret - } - return *o.Region -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetRegionOk() (*string, bool) { - if o == nil || o.Region == nil { - return nil, false - } - return o.Region, true -} - -// HasRegion returns a boolean if a field has been set. -func (o *KafkaRequest) HasRegion() bool { - if o != nil && o.Region != nil { - return true - } - - return false -} - -// SetRegion gets a reference to the given string and assigns it to the Region field. -func (o *KafkaRequest) SetRegion(v string) { - o.Region = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *KafkaRequest) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *KafkaRequest) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *KafkaRequest) SetOwner(v string) { - o.Owner = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *KafkaRequest) GetName() string { - if o == nil || o.Name == nil { - 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 *KafkaRequest) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *KafkaRequest) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *KafkaRequest) SetName(v string) { - o.Name = &v -} - -// GetBootstrapServerHost returns the BootstrapServerHost field value if set, zero value otherwise. -func (o *KafkaRequest) GetBootstrapServerHost() string { - if o == nil || o.BootstrapServerHost == nil { - var ret string - return ret - } - return *o.BootstrapServerHost -} - -// GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetBootstrapServerHostOk() (*string, bool) { - if o == nil || o.BootstrapServerHost == nil { - return nil, false - } - return o.BootstrapServerHost, true -} - -// HasBootstrapServerHost returns a boolean if a field has been set. -func (o *KafkaRequest) HasBootstrapServerHost() bool { - if o != nil && o.BootstrapServerHost != nil { - return true - } - - return false -} - -// SetBootstrapServerHost gets a reference to the given string and assigns it to the BootstrapServerHost field. -func (o *KafkaRequest) SetBootstrapServerHost(v string) { - o.BootstrapServerHost = &v -} - -// GetAdminApiServerUrl returns the AdminApiServerUrl field value if set, zero value otherwise. -func (o *KafkaRequest) GetAdminApiServerUrl() string { - if o == nil || o.AdminApiServerUrl == nil { - var ret string - return ret - } - return *o.AdminApiServerUrl -} - -// GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetAdminApiServerUrlOk() (*string, bool) { - if o == nil || o.AdminApiServerUrl == nil { - return nil, false - } - return o.AdminApiServerUrl, true -} - -// HasAdminApiServerUrl returns a boolean if a field has been set. -func (o *KafkaRequest) HasAdminApiServerUrl() bool { - if o != nil && o.AdminApiServerUrl != nil { - return true - } - - return false -} - -// SetAdminApiServerUrl gets a reference to the given string and assigns it to the AdminApiServerUrl field. -func (o *KafkaRequest) SetAdminApiServerUrl(v string) { - o.AdminApiServerUrl = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *KafkaRequest) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *KafkaRequest) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *KafkaRequest) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequest) GetExpiresAt() time.Time { - if o == nil || o.ExpiresAt.Get() == nil { - var ret time.Time - return ret - } - return *o.ExpiresAt.Get() -} - -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequest) GetExpiresAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() -} - -// HasExpiresAt returns a boolean if a field has been set. -func (o *KafkaRequest) HasExpiresAt() bool { - if o != nil && o.ExpiresAt.IsSet() { - return true - } - - return false -} - -// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. -func (o *KafkaRequest) SetExpiresAt(v time.Time) { - o.ExpiresAt.Set(&v) -} -// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil -func (o *KafkaRequest) SetExpiresAtNil() { - o.ExpiresAt.Set(nil) -} - -// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil -func (o *KafkaRequest) UnsetExpiresAt() { - o.ExpiresAt.Unset() -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *KafkaRequest) GetUpdatedAt() time.Time { - if o == nil || o.UpdatedAt == nil { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || o.UpdatedAt == nil { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *KafkaRequest) HasUpdatedAt() bool { - if o != nil && o.UpdatedAt != nil { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *KafkaRequest) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -// GetFailedReason returns the FailedReason field value if set, zero value otherwise. -func (o *KafkaRequest) GetFailedReason() string { - if o == nil || o.FailedReason == nil { - var ret string - return ret - } - return *o.FailedReason -} - -// GetFailedReasonOk returns a tuple with the FailedReason field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetFailedReasonOk() (*string, bool) { - if o == nil || o.FailedReason == nil { - return nil, false - } - return o.FailedReason, true -} - -// HasFailedReason returns a boolean if a field has been set. -func (o *KafkaRequest) HasFailedReason() bool { - if o != nil && o.FailedReason != nil { - return true - } - - return false -} - -// SetFailedReason gets a reference to the given string and assigns it to the FailedReason field. -func (o *KafkaRequest) SetFailedReason(v string) { - o.FailedReason = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *KafkaRequest) GetVersion() string { - if o == nil || o.Version == nil { - var ret string - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetVersionOk() (*string, bool) { - if o == nil || o.Version == nil { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *KafkaRequest) HasVersion() bool { - if o != nil && o.Version != nil { - return true - } - - return false -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *KafkaRequest) SetVersion(v string) { - o.Version = &v -} - -// GetInstanceType returns the InstanceType field value if set, zero value otherwise. -func (o *KafkaRequest) GetInstanceType() string { - if o == nil || o.InstanceType == nil { - var ret string - return ret - } - return *o.InstanceType -} - -// GetInstanceTypeOk returns a tuple with the InstanceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetInstanceTypeOk() (*string, bool) { - if o == nil || o.InstanceType == nil { - return nil, false - } - return o.InstanceType, true -} - -// HasInstanceType returns a boolean if a field has been set. -func (o *KafkaRequest) HasInstanceType() bool { - if o != nil && o.InstanceType != nil { - return true - } - - return false -} - -// SetInstanceType gets a reference to the given string and assigns it to the InstanceType field. -func (o *KafkaRequest) SetInstanceType(v string) { - o.InstanceType = &v -} - -// GetInstanceTypeName returns the InstanceTypeName field value if set, zero value otherwise. -func (o *KafkaRequest) GetInstanceTypeName() string { - if o == nil || o.InstanceTypeName == nil { - var ret string - return ret - } - return *o.InstanceTypeName -} - -// GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetInstanceTypeNameOk() (*string, bool) { - if o == nil || o.InstanceTypeName == nil { - return nil, false - } - return o.InstanceTypeName, true -} - -// HasInstanceTypeName returns a boolean if a field has been set. -func (o *KafkaRequest) HasInstanceTypeName() bool { - if o != nil && o.InstanceTypeName != nil { - return true - } - - return false -} - -// SetInstanceTypeName gets a reference to the given string and assigns it to the InstanceTypeName field. -func (o *KafkaRequest) SetInstanceTypeName(v string) { - o.InstanceTypeName = &v -} - -// GetReauthenticationEnabled returns the ReauthenticationEnabled field value -func (o *KafkaRequest) GetReauthenticationEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.ReauthenticationEnabled -} - -// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetReauthenticationEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.ReauthenticationEnabled, true -} - -// SetReauthenticationEnabled sets field value -func (o *KafkaRequest) SetReauthenticationEnabled(v bool) { - o.ReauthenticationEnabled = v -} - -// GetKafkaStorageSize returns the KafkaStorageSize field value if set, zero value otherwise. -func (o *KafkaRequest) GetKafkaStorageSize() string { - if o == nil || o.KafkaStorageSize == nil { - var ret string - return ret - } - return *o.KafkaStorageSize -} - -// GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetKafkaStorageSizeOk() (*string, bool) { - if o == nil || o.KafkaStorageSize == nil { - return nil, false - } - return o.KafkaStorageSize, true -} - -// HasKafkaStorageSize returns a boolean if a field has been set. -func (o *KafkaRequest) HasKafkaStorageSize() bool { - if o != nil && o.KafkaStorageSize != nil { - return true - } - - return false -} - -// SetKafkaStorageSize gets a reference to the given string and assigns it to the KafkaStorageSize field. -func (o *KafkaRequest) SetKafkaStorageSize(v string) { - o.KafkaStorageSize = &v -} - -// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. -func (o *KafkaRequest) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { - if o == nil || o.MaxDataRetentionSize == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.MaxDataRetentionSize -} - -// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.MaxDataRetentionSize == nil { - return nil, false - } - return o.MaxDataRetentionSize, true -} - -// HasMaxDataRetentionSize returns a boolean if a field has been set. -func (o *KafkaRequest) HasMaxDataRetentionSize() bool { - if o != nil && o.MaxDataRetentionSize != nil { - return true - } - - return false -} - -// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. -func (o *KafkaRequest) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { - o.MaxDataRetentionSize = &v -} - -// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. -func (o *KafkaRequest) GetBrowserUrl() string { - if o == nil || o.BrowserUrl == nil { - var ret string - return ret - } - return *o.BrowserUrl -} - -// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetBrowserUrlOk() (*string, bool) { - if o == nil || o.BrowserUrl == nil { - return nil, false - } - return o.BrowserUrl, true -} - -// HasBrowserUrl returns a boolean if a field has been set. -func (o *KafkaRequest) HasBrowserUrl() bool { - if o != nil && o.BrowserUrl != nil { - return true - } - - return false -} - -// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. -func (o *KafkaRequest) SetBrowserUrl(v string) { - o.BrowserUrl = &v -} - -// GetSizeId returns the SizeId field value if set, zero value otherwise. -func (o *KafkaRequest) GetSizeId() string { - if o == nil || o.SizeId == nil { - var ret string - return ret - } - return *o.SizeId -} - -// GetSizeIdOk returns a tuple with the SizeId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetSizeIdOk() (*string, bool) { - if o == nil || o.SizeId == nil { - return nil, false - } - return o.SizeId, true -} - -// HasSizeId returns a boolean if a field has been set. -func (o *KafkaRequest) HasSizeId() bool { - if o != nil && o.SizeId != nil { - return true - } - - return false -} - -// SetSizeId gets a reference to the given string and assigns it to the SizeId field. -func (o *KafkaRequest) SetSizeId(v string) { - o.SizeId = &v -} - -// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. -func (o *KafkaRequest) GetIngressThroughputPerSec() string { - if o == nil || o.IngressThroughputPerSec == nil { - var ret string - return ret - } - return *o.IngressThroughputPerSec -} - -// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetIngressThroughputPerSecOk() (*string, bool) { - if o == nil || o.IngressThroughputPerSec == nil { - return nil, false - } - return o.IngressThroughputPerSec, true -} - -// HasIngressThroughputPerSec returns a boolean if a field has been set. -func (o *KafkaRequest) HasIngressThroughputPerSec() bool { - if o != nil && o.IngressThroughputPerSec != nil { - return true - } - - return false -} - -// SetIngressThroughputPerSec gets a reference to the given string and assigns it to the IngressThroughputPerSec field. -func (o *KafkaRequest) SetIngressThroughputPerSec(v string) { - o.IngressThroughputPerSec = &v -} - -// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. -func (o *KafkaRequest) GetEgressThroughputPerSec() string { - if o == nil || o.EgressThroughputPerSec == nil { - var ret string - return ret - } - return *o.EgressThroughputPerSec -} - -// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetEgressThroughputPerSecOk() (*string, bool) { - if o == nil || o.EgressThroughputPerSec == nil { - return nil, false - } - return o.EgressThroughputPerSec, true -} - -// HasEgressThroughputPerSec returns a boolean if a field has been set. -func (o *KafkaRequest) HasEgressThroughputPerSec() bool { - if o != nil && o.EgressThroughputPerSec != nil { - return true - } - - return false -} - -// SetEgressThroughputPerSec gets a reference to the given string and assigns it to the EgressThroughputPerSec field. -func (o *KafkaRequest) SetEgressThroughputPerSec(v string) { - o.EgressThroughputPerSec = &v -} - -// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. -func (o *KafkaRequest) GetTotalMaxConnections() int32 { - if o == nil || o.TotalMaxConnections == nil { - var ret int32 - return ret - } - return *o.TotalMaxConnections -} - -// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetTotalMaxConnectionsOk() (*int32, bool) { - if o == nil || o.TotalMaxConnections == nil { - return nil, false - } - return o.TotalMaxConnections, true -} - -// HasTotalMaxConnections returns a boolean if a field has been set. -func (o *KafkaRequest) HasTotalMaxConnections() bool { - if o != nil && o.TotalMaxConnections != nil { - return true - } - - return false -} - -// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. -func (o *KafkaRequest) SetTotalMaxConnections(v int32) { - o.TotalMaxConnections = &v -} - -// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. -func (o *KafkaRequest) GetMaxPartitions() int32 { - if o == nil || o.MaxPartitions == nil { - var ret int32 - return ret - } - return *o.MaxPartitions -} - -// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMaxPartitionsOk() (*int32, bool) { - if o == nil || o.MaxPartitions == nil { - return nil, false - } - return o.MaxPartitions, true -} - -// HasMaxPartitions returns a boolean if a field has been set. -func (o *KafkaRequest) HasMaxPartitions() bool { - if o != nil && o.MaxPartitions != nil { - return true - } - - return false -} - -// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. -func (o *KafkaRequest) SetMaxPartitions(v int32) { - o.MaxPartitions = &v -} - -// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. -func (o *KafkaRequest) GetMaxDataRetentionPeriod() string { - if o == nil || o.MaxDataRetentionPeriod == nil { - var ret string - return ret - } - return *o.MaxDataRetentionPeriod -} - -// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMaxDataRetentionPeriodOk() (*string, bool) { - if o == nil || o.MaxDataRetentionPeriod == nil { - return nil, false - } - return o.MaxDataRetentionPeriod, true -} - -// HasMaxDataRetentionPeriod returns a boolean if a field has been set. -func (o *KafkaRequest) HasMaxDataRetentionPeriod() bool { - if o != nil && o.MaxDataRetentionPeriod != nil { - return true - } - - return false -} - -// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. -func (o *KafkaRequest) SetMaxDataRetentionPeriod(v string) { - o.MaxDataRetentionPeriod = &v -} - -// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. -func (o *KafkaRequest) GetMaxConnectionAttemptsPerSec() int32 { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - var ret int32 - return ret - } - return *o.MaxConnectionAttemptsPerSec -} - -// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - return nil, false - } - return o.MaxConnectionAttemptsPerSec, true -} - -// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. -func (o *KafkaRequest) HasMaxConnectionAttemptsPerSec() bool { - if o != nil && o.MaxConnectionAttemptsPerSec != nil { - return true - } - - return false -} - -// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. -func (o *KafkaRequest) SetMaxConnectionAttemptsPerSec(v int32) { - o.MaxConnectionAttemptsPerSec = &v -} - -// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise. -func (o *KafkaRequest) GetBillingCloudAccountId() string { - if o == nil || o.BillingCloudAccountId == nil { - var ret string - return ret - } - return *o.BillingCloudAccountId -} - -// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetBillingCloudAccountIdOk() (*string, bool) { - if o == nil || o.BillingCloudAccountId == nil { - return nil, false - } - return o.BillingCloudAccountId, true -} - -// HasBillingCloudAccountId returns a boolean if a field has been set. -func (o *KafkaRequest) HasBillingCloudAccountId() bool { - if o != nil && o.BillingCloudAccountId != nil { - return true - } - - return false -} - -// SetBillingCloudAccountId gets a reference to the given string and assigns it to the BillingCloudAccountId field. -func (o *KafkaRequest) SetBillingCloudAccountId(v string) { - o.BillingCloudAccountId = &v -} - -// GetMarketplace returns the Marketplace field value if set, zero value otherwise. -func (o *KafkaRequest) GetMarketplace() string { - if o == nil || o.Marketplace == nil { - var ret string - return ret - } - return *o.Marketplace -} - -// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetMarketplaceOk() (*string, bool) { - if o == nil || o.Marketplace == nil { - return nil, false - } - return o.Marketplace, true -} - -// HasMarketplace returns a boolean if a field has been set. -func (o *KafkaRequest) HasMarketplace() bool { - if o != nil && o.Marketplace != nil { - return true - } - - return false -} - -// SetMarketplace gets a reference to the given string and assigns it to the Marketplace field. -func (o *KafkaRequest) SetMarketplace(v string) { - o.Marketplace = &v -} - -// GetBillingModel returns the BillingModel field value if set, zero value otherwise. -func (o *KafkaRequest) GetBillingModel() string { - if o == nil || o.BillingModel == nil { - var ret string - return ret - } - return *o.BillingModel -} - -// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequest) GetBillingModelOk() (*string, bool) { - if o == nil || o.BillingModel == nil { - return nil, false - } - return o.BillingModel, true -} - -// HasBillingModel returns a boolean if a field has been set. -func (o *KafkaRequest) HasBillingModel() bool { - if o != nil && o.BillingModel != nil { - return true - } - - return false -} - -// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. -func (o *KafkaRequest) SetBillingModel(v string) { - o.BillingModel = &v -} - -func (o KafkaRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if o.Status != nil { - toSerialize["status"] = o.Status - } - if o.CloudProvider != nil { - toSerialize["cloud_provider"] = o.CloudProvider - } - if true { - toSerialize["multi_az"] = o.MultiAz - } - if o.Region != nil { - toSerialize["region"] = o.Region - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.BootstrapServerHost != nil { - toSerialize["bootstrap_server_host"] = o.BootstrapServerHost - } - if o.AdminApiServerUrl != nil { - toSerialize["admin_api_server_url"] = o.AdminApiServerUrl - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - if o.ExpiresAt.IsSet() { - toSerialize["expires_at"] = o.ExpiresAt.Get() - } - if o.UpdatedAt != nil { - toSerialize["updated_at"] = o.UpdatedAt - } - if o.FailedReason != nil { - toSerialize["failed_reason"] = o.FailedReason - } - if o.Version != nil { - toSerialize["version"] = o.Version - } - if o.InstanceType != nil { - toSerialize["instance_type"] = o.InstanceType - } - if o.InstanceTypeName != nil { - toSerialize["instance_type_name"] = o.InstanceTypeName - } - if true { - toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled - } - if o.KafkaStorageSize != nil { - toSerialize["kafka_storage_size"] = o.KafkaStorageSize - } - if o.MaxDataRetentionSize != nil { - toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize - } - if o.BrowserUrl != nil { - toSerialize["browser_url"] = o.BrowserUrl - } - if o.SizeId != nil { - toSerialize["size_id"] = o.SizeId - } - if o.IngressThroughputPerSec != nil { - toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec - } - if o.EgressThroughputPerSec != nil { - toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec - } - if o.TotalMaxConnections != nil { - toSerialize["total_max_connections"] = o.TotalMaxConnections - } - if o.MaxPartitions != nil { - toSerialize["max_partitions"] = o.MaxPartitions - } - if o.MaxDataRetentionPeriod != nil { - toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod - } - if o.MaxConnectionAttemptsPerSec != nil { - toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec - } - if o.BillingCloudAccountId != nil { - toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId - } - if o.Marketplace != nil { - toSerialize["marketplace"] = o.Marketplace - } - if o.BillingModel != nil { - toSerialize["billing_model"] = o.BillingModel - } - return json.Marshal(toSerialize) -} - -type NullableKafkaRequest struct { - value *KafkaRequest - isSet bool -} - -func (v NullableKafkaRequest) Get() *KafkaRequest { - return v.value -} - -func (v *NullableKafkaRequest) Set(val *KafkaRequest) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequest(val *KafkaRequest) *NullableKafkaRequest { - return &NullableKafkaRequest{value: val, isSet: true} -} - -func (v NullableKafkaRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go deleted file mode 100644 index 600d48de..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_all_of.go +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// KafkaRequestAllOf struct for KafkaRequestAllOf -type KafkaRequestAllOf struct { - // Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] - Status *string `json:"status,omitempty"` - // Name of Cloud used to deploy. For example AWS - CloudProvider *string `json:"cloud_provider,omitempty"` - MultiAz bool `json:"multi_az"` - // Values will be regions of specific cloud provider. For example: us-east-1 for AWS - Region *string `json:"region,omitempty"` - Owner *string `json:"owner,omitempty"` - Name *string `json:"name,omitempty"` - BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` - // The kafka admin server url to perform kafka admin operations e.g acl management etc. The value will be available when the Kafka has been fully provisioned i.e it reaches a 'ready' state - AdminApiServerUrl *string `json:"admin_api_server_url,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - ExpiresAt NullableTime `json:"expires_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - FailedReason *string `json:"failed_reason,omitempty"` - Version *string `json:"version,omitempty"` - InstanceType *string `json:"instance_type,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - InstanceTypeName *string `json:"instance_type_name,omitempty"` - ReauthenticationEnabled bool `json:"reauthentication_enabled"` - // Maximum data storage available to this Kafka. This is now deprecated, please use max_data_retention_size instead. - KafkaStorageSize *string `json:"kafka_storage_size,omitempty"` - MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` - BrowserUrl *string `json:"browser_url,omitempty"` - SizeId *string `json:"size_id,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - IngressThroughputPerSec *string `json:"ingress_throughput_per_sec,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - EgressThroughputPerSec *string `json:"egress_throughput_per_sec,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxPartitions *int32 `json:"max_partitions,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` - // This field is now deprecated, please use the /api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region} endpoint to retrieve the field instead. - MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` - BillingCloudAccountId *string `json:"billing_cloud_account_id,omitempty"` - Marketplace *string `json:"marketplace,omitempty"` - BillingModel *string `json:"billing_model,omitempty"` -} - -// NewKafkaRequestAllOf instantiates a new KafkaRequestAllOf 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 NewKafkaRequestAllOf(multiAz bool, reauthenticationEnabled bool) *KafkaRequestAllOf { - this := KafkaRequestAllOf{} - this.MultiAz = multiAz - this.ReauthenticationEnabled = reauthenticationEnabled - return &this -} - -// NewKafkaRequestAllOfWithDefaults instantiates a new KafkaRequestAllOf 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 NewKafkaRequestAllOfWithDefaults() *KafkaRequestAllOf { - this := KafkaRequestAllOf{} - return &this -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetStatus() string { - if o == nil || o.Status == nil { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetStatusOk() (*string, bool) { - if o == nil || o.Status == nil { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasStatus() bool { - if o != nil && o.Status != nil { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *KafkaRequestAllOf) SetStatus(v string) { - o.Status = &v -} - -// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetCloudProvider() string { - if o == nil || o.CloudProvider == nil { - var ret string - return ret - } - return *o.CloudProvider -} - -// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetCloudProviderOk() (*string, bool) { - if o == nil || o.CloudProvider == nil { - return nil, false - } - return o.CloudProvider, true -} - -// HasCloudProvider returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasCloudProvider() bool { - if o != nil && o.CloudProvider != nil { - return true - } - - return false -} - -// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. -func (o *KafkaRequestAllOf) SetCloudProvider(v string) { - o.CloudProvider = &v -} - -// GetMultiAz returns the MultiAz field value -func (o *KafkaRequestAllOf) GetMultiAz() bool { - if o == nil { - var ret bool - return ret - } - - return o.MultiAz -} - -// GetMultiAzOk returns a tuple with the MultiAz field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMultiAzOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.MultiAz, true -} - -// SetMultiAz sets field value -func (o *KafkaRequestAllOf) SetMultiAz(v bool) { - o.MultiAz = v -} - -// GetRegion returns the Region field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetRegion() string { - if o == nil || o.Region == nil { - var ret string - return ret - } - return *o.Region -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetRegionOk() (*string, bool) { - if o == nil || o.Region == nil { - return nil, false - } - return o.Region, true -} - -// HasRegion returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasRegion() bool { - if o != nil && o.Region != nil { - return true - } - - return false -} - -// SetRegion gets a reference to the given string and assigns it to the Region field. -func (o *KafkaRequestAllOf) SetRegion(v string) { - o.Region = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *KafkaRequestAllOf) SetOwner(v string) { - o.Owner = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetName() string { - if o == nil || o.Name == nil { - 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 *KafkaRequestAllOf) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *KafkaRequestAllOf) SetName(v string) { - o.Name = &v -} - -// GetBootstrapServerHost returns the BootstrapServerHost field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetBootstrapServerHost() string { - if o == nil || o.BootstrapServerHost == nil { - var ret string - return ret - } - return *o.BootstrapServerHost -} - -// GetBootstrapServerHostOk returns a tuple with the BootstrapServerHost field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetBootstrapServerHostOk() (*string, bool) { - if o == nil || o.BootstrapServerHost == nil { - return nil, false - } - return o.BootstrapServerHost, true -} - -// HasBootstrapServerHost returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasBootstrapServerHost() bool { - if o != nil && o.BootstrapServerHost != nil { - return true - } - - return false -} - -// SetBootstrapServerHost gets a reference to the given string and assigns it to the BootstrapServerHost field. -func (o *KafkaRequestAllOf) SetBootstrapServerHost(v string) { - o.BootstrapServerHost = &v -} - -// GetAdminApiServerUrl returns the AdminApiServerUrl field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetAdminApiServerUrl() string { - if o == nil || o.AdminApiServerUrl == nil { - var ret string - return ret - } - return *o.AdminApiServerUrl -} - -// GetAdminApiServerUrlOk returns a tuple with the AdminApiServerUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetAdminApiServerUrlOk() (*string, bool) { - if o == nil || o.AdminApiServerUrl == nil { - return nil, false - } - return o.AdminApiServerUrl, true -} - -// HasAdminApiServerUrl returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasAdminApiServerUrl() bool { - if o != nil && o.AdminApiServerUrl != nil { - return true - } - - return false -} - -// SetAdminApiServerUrl gets a reference to the given string and assigns it to the AdminApiServerUrl field. -func (o *KafkaRequestAllOf) SetAdminApiServerUrl(v string) { - o.AdminApiServerUrl = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *KafkaRequestAllOf) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequestAllOf) GetExpiresAt() time.Time { - if o == nil || o.ExpiresAt.Get() == nil { - var ret time.Time - return ret - } - return *o.ExpiresAt.Get() -} - -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequestAllOf) GetExpiresAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() -} - -// HasExpiresAt returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasExpiresAt() bool { - if o != nil && o.ExpiresAt.IsSet() { - return true - } - - return false -} - -// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. -func (o *KafkaRequestAllOf) SetExpiresAt(v time.Time) { - o.ExpiresAt.Set(&v) -} -// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil -func (o *KafkaRequestAllOf) SetExpiresAtNil() { - o.ExpiresAt.Set(nil) -} - -// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil -func (o *KafkaRequestAllOf) UnsetExpiresAt() { - o.ExpiresAt.Unset() -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetUpdatedAt() time.Time { - if o == nil || o.UpdatedAt == nil { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || o.UpdatedAt == nil { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasUpdatedAt() bool { - if o != nil && o.UpdatedAt != nil { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *KafkaRequestAllOf) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -// GetFailedReason returns the FailedReason field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetFailedReason() string { - if o == nil || o.FailedReason == nil { - var ret string - return ret - } - return *o.FailedReason -} - -// GetFailedReasonOk returns a tuple with the FailedReason field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetFailedReasonOk() (*string, bool) { - if o == nil || o.FailedReason == nil { - return nil, false - } - return o.FailedReason, true -} - -// HasFailedReason returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasFailedReason() bool { - if o != nil && o.FailedReason != nil { - return true - } - - return false -} - -// SetFailedReason gets a reference to the given string and assigns it to the FailedReason field. -func (o *KafkaRequestAllOf) SetFailedReason(v string) { - o.FailedReason = &v -} - -// GetVersion returns the Version field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetVersion() string { - if o == nil || o.Version == nil { - var ret string - return ret - } - return *o.Version -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetVersionOk() (*string, bool) { - if o == nil || o.Version == nil { - return nil, false - } - return o.Version, true -} - -// HasVersion returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasVersion() bool { - if o != nil && o.Version != nil { - return true - } - - return false -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *KafkaRequestAllOf) SetVersion(v string) { - o.Version = &v -} - -// GetInstanceType returns the InstanceType field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetInstanceType() string { - if o == nil || o.InstanceType == nil { - var ret string - return ret - } - return *o.InstanceType -} - -// GetInstanceTypeOk returns a tuple with the InstanceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetInstanceTypeOk() (*string, bool) { - if o == nil || o.InstanceType == nil { - return nil, false - } - return o.InstanceType, true -} - -// HasInstanceType returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasInstanceType() bool { - if o != nil && o.InstanceType != nil { - return true - } - - return false -} - -// SetInstanceType gets a reference to the given string and assigns it to the InstanceType field. -func (o *KafkaRequestAllOf) SetInstanceType(v string) { - o.InstanceType = &v -} - -// GetInstanceTypeName returns the InstanceTypeName field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetInstanceTypeName() string { - if o == nil || o.InstanceTypeName == nil { - var ret string - return ret - } - return *o.InstanceTypeName -} - -// GetInstanceTypeNameOk returns a tuple with the InstanceTypeName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetInstanceTypeNameOk() (*string, bool) { - if o == nil || o.InstanceTypeName == nil { - return nil, false - } - return o.InstanceTypeName, true -} - -// HasInstanceTypeName returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasInstanceTypeName() bool { - if o != nil && o.InstanceTypeName != nil { - return true - } - - return false -} - -// SetInstanceTypeName gets a reference to the given string and assigns it to the InstanceTypeName field. -func (o *KafkaRequestAllOf) SetInstanceTypeName(v string) { - o.InstanceTypeName = &v -} - -// GetReauthenticationEnabled returns the ReauthenticationEnabled field value -func (o *KafkaRequestAllOf) GetReauthenticationEnabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.ReauthenticationEnabled -} - -// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetReauthenticationEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.ReauthenticationEnabled, true -} - -// SetReauthenticationEnabled sets field value -func (o *KafkaRequestAllOf) SetReauthenticationEnabled(v bool) { - o.ReauthenticationEnabled = v -} - -// GetKafkaStorageSize returns the KafkaStorageSize field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetKafkaStorageSize() string { - if o == nil || o.KafkaStorageSize == nil { - var ret string - return ret - } - return *o.KafkaStorageSize -} - -// GetKafkaStorageSizeOk returns a tuple with the KafkaStorageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetKafkaStorageSizeOk() (*string, bool) { - if o == nil || o.KafkaStorageSize == nil { - return nil, false - } - return o.KafkaStorageSize, true -} - -// HasKafkaStorageSize returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasKafkaStorageSize() bool { - if o != nil && o.KafkaStorageSize != nil { - return true - } - - return false -} - -// SetKafkaStorageSize gets a reference to the given string and assigns it to the KafkaStorageSize field. -func (o *KafkaRequestAllOf) SetKafkaStorageSize(v string) { - o.KafkaStorageSize = &v -} - -// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { - if o == nil || o.MaxDataRetentionSize == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.MaxDataRetentionSize -} - -// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.MaxDataRetentionSize == nil { - return nil, false - } - return o.MaxDataRetentionSize, true -} - -// HasMaxDataRetentionSize returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasMaxDataRetentionSize() bool { - if o != nil && o.MaxDataRetentionSize != nil { - return true - } - - return false -} - -// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. -func (o *KafkaRequestAllOf) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { - o.MaxDataRetentionSize = &v -} - -// GetBrowserUrl returns the BrowserUrl field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetBrowserUrl() string { - if o == nil || o.BrowserUrl == nil { - var ret string - return ret - } - return *o.BrowserUrl -} - -// GetBrowserUrlOk returns a tuple with the BrowserUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetBrowserUrlOk() (*string, bool) { - if o == nil || o.BrowserUrl == nil { - return nil, false - } - return o.BrowserUrl, true -} - -// HasBrowserUrl returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasBrowserUrl() bool { - if o != nil && o.BrowserUrl != nil { - return true - } - - return false -} - -// SetBrowserUrl gets a reference to the given string and assigns it to the BrowserUrl field. -func (o *KafkaRequestAllOf) SetBrowserUrl(v string) { - o.BrowserUrl = &v -} - -// GetSizeId returns the SizeId field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetSizeId() string { - if o == nil || o.SizeId == nil { - var ret string - return ret - } - return *o.SizeId -} - -// GetSizeIdOk returns a tuple with the SizeId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetSizeIdOk() (*string, bool) { - if o == nil || o.SizeId == nil { - return nil, false - } - return o.SizeId, true -} - -// HasSizeId returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasSizeId() bool { - if o != nil && o.SizeId != nil { - return true - } - - return false -} - -// SetSizeId gets a reference to the given string and assigns it to the SizeId field. -func (o *KafkaRequestAllOf) SetSizeId(v string) { - o.SizeId = &v -} - -// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetIngressThroughputPerSec() string { - if o == nil || o.IngressThroughputPerSec == nil { - var ret string - return ret - } - return *o.IngressThroughputPerSec -} - -// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetIngressThroughputPerSecOk() (*string, bool) { - if o == nil || o.IngressThroughputPerSec == nil { - return nil, false - } - return o.IngressThroughputPerSec, true -} - -// HasIngressThroughputPerSec returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasIngressThroughputPerSec() bool { - if o != nil && o.IngressThroughputPerSec != nil { - return true - } - - return false -} - -// SetIngressThroughputPerSec gets a reference to the given string and assigns it to the IngressThroughputPerSec field. -func (o *KafkaRequestAllOf) SetIngressThroughputPerSec(v string) { - o.IngressThroughputPerSec = &v -} - -// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetEgressThroughputPerSec() string { - if o == nil || o.EgressThroughputPerSec == nil { - var ret string - return ret - } - return *o.EgressThroughputPerSec -} - -// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetEgressThroughputPerSecOk() (*string, bool) { - if o == nil || o.EgressThroughputPerSec == nil { - return nil, false - } - return o.EgressThroughputPerSec, true -} - -// HasEgressThroughputPerSec returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasEgressThroughputPerSec() bool { - if o != nil && o.EgressThroughputPerSec != nil { - return true - } - - return false -} - -// SetEgressThroughputPerSec gets a reference to the given string and assigns it to the EgressThroughputPerSec field. -func (o *KafkaRequestAllOf) SetEgressThroughputPerSec(v string) { - o.EgressThroughputPerSec = &v -} - -// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetTotalMaxConnections() int32 { - if o == nil || o.TotalMaxConnections == nil { - var ret int32 - return ret - } - return *o.TotalMaxConnections -} - -// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetTotalMaxConnectionsOk() (*int32, bool) { - if o == nil || o.TotalMaxConnections == nil { - return nil, false - } - return o.TotalMaxConnections, true -} - -// HasTotalMaxConnections returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasTotalMaxConnections() bool { - if o != nil && o.TotalMaxConnections != nil { - return true - } - - return false -} - -// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. -func (o *KafkaRequestAllOf) SetTotalMaxConnections(v int32) { - o.TotalMaxConnections = &v -} - -// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetMaxPartitions() int32 { - if o == nil || o.MaxPartitions == nil { - var ret int32 - return ret - } - return *o.MaxPartitions -} - -// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMaxPartitionsOk() (*int32, bool) { - if o == nil || o.MaxPartitions == nil { - return nil, false - } - return o.MaxPartitions, true -} - -// HasMaxPartitions returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasMaxPartitions() bool { - if o != nil && o.MaxPartitions != nil { - return true - } - - return false -} - -// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. -func (o *KafkaRequestAllOf) SetMaxPartitions(v int32) { - o.MaxPartitions = &v -} - -// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriod() string { - if o == nil || o.MaxDataRetentionPeriod == nil { - var ret string - return ret - } - return *o.MaxDataRetentionPeriod -} - -// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMaxDataRetentionPeriodOk() (*string, bool) { - if o == nil || o.MaxDataRetentionPeriod == nil { - return nil, false - } - return o.MaxDataRetentionPeriod, true -} - -// HasMaxDataRetentionPeriod returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasMaxDataRetentionPeriod() bool { - if o != nil && o.MaxDataRetentionPeriod != nil { - return true - } - - return false -} - -// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. -func (o *KafkaRequestAllOf) SetMaxDataRetentionPeriod(v string) { - o.MaxDataRetentionPeriod = &v -} - -// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSec() int32 { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - var ret int32 - return ret - } - return *o.MaxConnectionAttemptsPerSec -} - -// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - return nil, false - } - return o.MaxConnectionAttemptsPerSec, true -} - -// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasMaxConnectionAttemptsPerSec() bool { - if o != nil && o.MaxConnectionAttemptsPerSec != nil { - return true - } - - return false -} - -// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. -func (o *KafkaRequestAllOf) SetMaxConnectionAttemptsPerSec(v int32) { - o.MaxConnectionAttemptsPerSec = &v -} - -// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetBillingCloudAccountId() string { - if o == nil || o.BillingCloudAccountId == nil { - var ret string - return ret - } - return *o.BillingCloudAccountId -} - -// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetBillingCloudAccountIdOk() (*string, bool) { - if o == nil || o.BillingCloudAccountId == nil { - return nil, false - } - return o.BillingCloudAccountId, true -} - -// HasBillingCloudAccountId returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasBillingCloudAccountId() bool { - if o != nil && o.BillingCloudAccountId != nil { - return true - } - - return false -} - -// SetBillingCloudAccountId gets a reference to the given string and assigns it to the BillingCloudAccountId field. -func (o *KafkaRequestAllOf) SetBillingCloudAccountId(v string) { - o.BillingCloudAccountId = &v -} - -// GetMarketplace returns the Marketplace field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetMarketplace() string { - if o == nil || o.Marketplace == nil { - var ret string - return ret - } - return *o.Marketplace -} - -// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetMarketplaceOk() (*string, bool) { - if o == nil || o.Marketplace == nil { - return nil, false - } - return o.Marketplace, true -} - -// HasMarketplace returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasMarketplace() bool { - if o != nil && o.Marketplace != nil { - return true - } - - return false -} - -// SetMarketplace gets a reference to the given string and assigns it to the Marketplace field. -func (o *KafkaRequestAllOf) SetMarketplace(v string) { - o.Marketplace = &v -} - -// GetBillingModel returns the BillingModel field value if set, zero value otherwise. -func (o *KafkaRequestAllOf) GetBillingModel() string { - if o == nil || o.BillingModel == nil { - var ret string - return ret - } - return *o.BillingModel -} - -// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestAllOf) GetBillingModelOk() (*string, bool) { - if o == nil || o.BillingModel == nil { - return nil, false - } - return o.BillingModel, true -} - -// HasBillingModel returns a boolean if a field has been set. -func (o *KafkaRequestAllOf) HasBillingModel() bool { - if o != nil && o.BillingModel != nil { - return true - } - - return false -} - -// SetBillingModel gets a reference to the given string and assigns it to the BillingModel field. -func (o *KafkaRequestAllOf) SetBillingModel(v string) { - o.BillingModel = &v -} - -func (o KafkaRequestAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Status != nil { - toSerialize["status"] = o.Status - } - if o.CloudProvider != nil { - toSerialize["cloud_provider"] = o.CloudProvider - } - if true { - toSerialize["multi_az"] = o.MultiAz - } - if o.Region != nil { - toSerialize["region"] = o.Region - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.BootstrapServerHost != nil { - toSerialize["bootstrap_server_host"] = o.BootstrapServerHost - } - if o.AdminApiServerUrl != nil { - toSerialize["admin_api_server_url"] = o.AdminApiServerUrl - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - if o.ExpiresAt.IsSet() { - toSerialize["expires_at"] = o.ExpiresAt.Get() - } - if o.UpdatedAt != nil { - toSerialize["updated_at"] = o.UpdatedAt - } - if o.FailedReason != nil { - toSerialize["failed_reason"] = o.FailedReason - } - if o.Version != nil { - toSerialize["version"] = o.Version - } - if o.InstanceType != nil { - toSerialize["instance_type"] = o.InstanceType - } - if o.InstanceTypeName != nil { - toSerialize["instance_type_name"] = o.InstanceTypeName - } - if true { - toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled - } - if o.KafkaStorageSize != nil { - toSerialize["kafka_storage_size"] = o.KafkaStorageSize - } - if o.MaxDataRetentionSize != nil { - toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize - } - if o.BrowserUrl != nil { - toSerialize["browser_url"] = o.BrowserUrl - } - if o.SizeId != nil { - toSerialize["size_id"] = o.SizeId - } - if o.IngressThroughputPerSec != nil { - toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec - } - if o.EgressThroughputPerSec != nil { - toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec - } - if o.TotalMaxConnections != nil { - toSerialize["total_max_connections"] = o.TotalMaxConnections - } - if o.MaxPartitions != nil { - toSerialize["max_partitions"] = o.MaxPartitions - } - if o.MaxDataRetentionPeriod != nil { - toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod - } - if o.MaxConnectionAttemptsPerSec != nil { - toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec - } - if o.BillingCloudAccountId != nil { - toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId - } - if o.Marketplace != nil { - toSerialize["marketplace"] = o.Marketplace - } - if o.BillingModel != nil { - toSerialize["billing_model"] = o.BillingModel - } - return json.Marshal(toSerialize) -} - -type NullableKafkaRequestAllOf struct { - value *KafkaRequestAllOf - isSet bool -} - -func (v NullableKafkaRequestAllOf) Get() *KafkaRequestAllOf { - return v.value -} - -func (v *NullableKafkaRequestAllOf) Set(val *KafkaRequestAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequestAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequestAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequestAllOf(val *KafkaRequestAllOf) *NullableKafkaRequestAllOf { - return &NullableKafkaRequestAllOf{value: val, isSet: true} -} - -func (v NullableKafkaRequestAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequestAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go deleted file mode 100644 index 228b48ff..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list.go +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// KafkaRequestList struct for KafkaRequestList -type KafkaRequestList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` - Items []KafkaRequest `json:"items"` -} - -// NewKafkaRequestList instantiates a new KafkaRequestList 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 NewKafkaRequestList(kind string, page int32, size int32, total int32, items []KafkaRequest) *KafkaRequestList { - this := KafkaRequestList{} - this.Kind = kind - this.Page = page - this.Size = size - this.Total = total - this.Items = items - return &this -} - -// NewKafkaRequestListWithDefaults instantiates a new KafkaRequestList 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 NewKafkaRequestListWithDefaults() *KafkaRequestList { - this := KafkaRequestList{} - return &this -} - -// GetKind returns the Kind field value -func (o *KafkaRequestList) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestList) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *KafkaRequestList) SetKind(v string) { - o.Kind = v -} - -// GetPage returns the Page field value -func (o *KafkaRequestList) GetPage() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Page -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestList) GetPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Page, true -} - -// SetPage sets field value -func (o *KafkaRequestList) SetPage(v int32) { - o.Page = v -} - -// GetSize returns the Size field value -func (o *KafkaRequestList) GetSize() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestList) GetSizeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Size, true -} - -// SetSize sets field value -func (o *KafkaRequestList) SetSize(v int32) { - o.Size = v -} - -// GetTotal returns the Total field value -func (o *KafkaRequestList) GetTotal() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Total -} - -// GetTotalOk returns a tuple with the Total field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestList) GetTotalOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Total, true -} - -// SetTotal sets field value -func (o *KafkaRequestList) SetTotal(v int32) { - o.Total = v -} - -// GetItems returns the Items field value -func (o *KafkaRequestList) GetItems() []KafkaRequest { - if o == nil { - var ret []KafkaRequest - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *KafkaRequestList) GetItemsOk() (*[]KafkaRequest, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *KafkaRequestList) SetItems(v []KafkaRequest) { - o.Items = v -} - -func (o KafkaRequestList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["page"] = o.Page - } - if true { - toSerialize["size"] = o.Size - } - if true { - toSerialize["total"] = o.Total - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableKafkaRequestList struct { - value *KafkaRequestList - isSet bool -} - -func (v NullableKafkaRequestList) Get() *KafkaRequestList { - return v.value -} - -func (v *NullableKafkaRequestList) Set(val *KafkaRequestList) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequestList) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequestList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequestList(val *KafkaRequestList) *NullableKafkaRequestList { - return &NullableKafkaRequestList{value: val, isSet: true} -} - -func (v NullableKafkaRequestList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequestList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go deleted file mode 100644 index a16a168a..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// KafkaRequestListAllOf struct for KafkaRequestListAllOf -type KafkaRequestListAllOf struct { - Items *[]KafkaRequest `json:"items,omitempty"` -} - -// NewKafkaRequestListAllOf instantiates a new KafkaRequestListAllOf 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 NewKafkaRequestListAllOf() *KafkaRequestListAllOf { - this := KafkaRequestListAllOf{} - return &this -} - -// NewKafkaRequestListAllOfWithDefaults instantiates a new KafkaRequestListAllOf 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 NewKafkaRequestListAllOfWithDefaults() *KafkaRequestListAllOf { - this := KafkaRequestListAllOf{} - return &this -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *KafkaRequestListAllOf) GetItems() []KafkaRequest { - if o == nil || o.Items == nil { - var ret []KafkaRequest - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestListAllOf) GetItemsOk() (*[]KafkaRequest, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *KafkaRequestListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []KafkaRequest and assigns it to the Items field. -func (o *KafkaRequestListAllOf) SetItems(v []KafkaRequest) { - o.Items = &v -} - -func (o KafkaRequestListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableKafkaRequestListAllOf struct { - value *KafkaRequestListAllOf - isSet bool -} - -func (v NullableKafkaRequestListAllOf) Get() *KafkaRequestListAllOf { - return v.value -} - -func (v *NullableKafkaRequestListAllOf) Set(val *KafkaRequestListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequestListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequestListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequestListAllOf(val *KafkaRequestListAllOf) *NullableKafkaRequestListAllOf { - return &NullableKafkaRequestListAllOf{value: val, isSet: true} -} - -func (v NullableKafkaRequestListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequestListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go deleted file mode 100644 index 28965221..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_request_payload.go +++ /dev/null @@ -1,409 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// KafkaRequestPayload Schema for the request body sent to /kafkas POST -type KafkaRequestPayload struct { - // The cloud provider where the Kafka cluster will be created in - CloudProvider *string `json:"cloud_provider,omitempty"` - // The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. - Name string `json:"name"` - // The region where the Kafka cluster will be created in - Region *string `json:"region,omitempty"` - // Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. The default value is true - ReauthenticationEnabled NullableBool `json:"reauthentication_enabled,omitempty"` - // kafka plan in a format of . - Plan *string `json:"plan,omitempty"` - // cloud account id used to purchase the instance - BillingCloudAccountId NullableString `json:"billing_cloud_account_id,omitempty"` - // marketplace where the instance is purchased on - Marketplace NullableString `json:"marketplace,omitempty"` - // billing model to use - BillingModel NullableString `json:"billing_model,omitempty"` -} - -// NewKafkaRequestPayload instantiates a new KafkaRequestPayload 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 NewKafkaRequestPayload(name string) *KafkaRequestPayload { - this := KafkaRequestPayload{} - this.Name = name - return &this -} - -// NewKafkaRequestPayloadWithDefaults instantiates a new KafkaRequestPayload 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 NewKafkaRequestPayloadWithDefaults() *KafkaRequestPayload { - this := KafkaRequestPayload{} - return &this -} - -// GetCloudProvider returns the CloudProvider field value if set, zero value otherwise. -func (o *KafkaRequestPayload) GetCloudProvider() string { - if o == nil || o.CloudProvider == nil { - var ret string - return ret - } - return *o.CloudProvider -} - -// GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestPayload) GetCloudProviderOk() (*string, bool) { - if o == nil || o.CloudProvider == nil { - return nil, false - } - return o.CloudProvider, true -} - -// HasCloudProvider returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasCloudProvider() bool { - if o != nil && o.CloudProvider != nil { - return true - } - - return false -} - -// SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field. -func (o *KafkaRequestPayload) SetCloudProvider(v string) { - o.CloudProvider = &v -} - -// GetName returns the Name field value -func (o *KafkaRequestPayload) 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 *KafkaRequestPayload) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *KafkaRequestPayload) SetName(v string) { - o.Name = v -} - -// GetRegion returns the Region field value if set, zero value otherwise. -func (o *KafkaRequestPayload) GetRegion() string { - if o == nil || o.Region == nil { - var ret string - return ret - } - return *o.Region -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestPayload) GetRegionOk() (*string, bool) { - if o == nil || o.Region == nil { - return nil, false - } - return o.Region, true -} - -// HasRegion returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasRegion() bool { - if o != nil && o.Region != nil { - return true - } - - return false -} - -// SetRegion gets a reference to the given string and assigns it to the Region field. -func (o *KafkaRequestPayload) SetRegion(v string) { - o.Region = &v -} - -// GetReauthenticationEnabled returns the ReauthenticationEnabled field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequestPayload) GetReauthenticationEnabled() bool { - if o == nil || o.ReauthenticationEnabled.Get() == nil { - var ret bool - return ret - } - return *o.ReauthenticationEnabled.Get() -} - -// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequestPayload) GetReauthenticationEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return o.ReauthenticationEnabled.Get(), o.ReauthenticationEnabled.IsSet() -} - -// HasReauthenticationEnabled returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasReauthenticationEnabled() bool { - if o != nil && o.ReauthenticationEnabled.IsSet() { - return true - } - - return false -} - -// SetReauthenticationEnabled gets a reference to the given NullableBool and assigns it to the ReauthenticationEnabled field. -func (o *KafkaRequestPayload) SetReauthenticationEnabled(v bool) { - o.ReauthenticationEnabled.Set(&v) -} -// SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil -func (o *KafkaRequestPayload) SetReauthenticationEnabledNil() { - o.ReauthenticationEnabled.Set(nil) -} - -// UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil -func (o *KafkaRequestPayload) UnsetReauthenticationEnabled() { - o.ReauthenticationEnabled.Unset() -} - -// GetPlan returns the Plan field value if set, zero value otherwise. -func (o *KafkaRequestPayload) GetPlan() string { - if o == nil || o.Plan == nil { - var ret string - return ret - } - return *o.Plan -} - -// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *KafkaRequestPayload) GetPlanOk() (*string, bool) { - if o == nil || o.Plan == nil { - return nil, false - } - return o.Plan, true -} - -// HasPlan returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasPlan() bool { - if o != nil && o.Plan != nil { - return true - } - - return false -} - -// SetPlan gets a reference to the given string and assigns it to the Plan field. -func (o *KafkaRequestPayload) SetPlan(v string) { - o.Plan = &v -} - -// GetBillingCloudAccountId returns the BillingCloudAccountId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequestPayload) GetBillingCloudAccountId() string { - if o == nil || o.BillingCloudAccountId.Get() == nil { - var ret string - return ret - } - return *o.BillingCloudAccountId.Get() -} - -// GetBillingCloudAccountIdOk returns a tuple with the BillingCloudAccountId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequestPayload) GetBillingCloudAccountIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.BillingCloudAccountId.Get(), o.BillingCloudAccountId.IsSet() -} - -// HasBillingCloudAccountId returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasBillingCloudAccountId() bool { - if o != nil && o.BillingCloudAccountId.IsSet() { - return true - } - - return false -} - -// SetBillingCloudAccountId gets a reference to the given NullableString and assigns it to the BillingCloudAccountId field. -func (o *KafkaRequestPayload) SetBillingCloudAccountId(v string) { - o.BillingCloudAccountId.Set(&v) -} -// SetBillingCloudAccountIdNil sets the value for BillingCloudAccountId to be an explicit nil -func (o *KafkaRequestPayload) SetBillingCloudAccountIdNil() { - o.BillingCloudAccountId.Set(nil) -} - -// UnsetBillingCloudAccountId ensures that no value is present for BillingCloudAccountId, not even an explicit nil -func (o *KafkaRequestPayload) UnsetBillingCloudAccountId() { - o.BillingCloudAccountId.Unset() -} - -// GetMarketplace returns the Marketplace field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequestPayload) GetMarketplace() string { - if o == nil || o.Marketplace.Get() == nil { - var ret string - return ret - } - return *o.Marketplace.Get() -} - -// GetMarketplaceOk returns a tuple with the Marketplace field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequestPayload) GetMarketplaceOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Marketplace.Get(), o.Marketplace.IsSet() -} - -// HasMarketplace returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasMarketplace() bool { - if o != nil && o.Marketplace.IsSet() { - return true - } - - return false -} - -// SetMarketplace gets a reference to the given NullableString and assigns it to the Marketplace field. -func (o *KafkaRequestPayload) SetMarketplace(v string) { - o.Marketplace.Set(&v) -} -// SetMarketplaceNil sets the value for Marketplace to be an explicit nil -func (o *KafkaRequestPayload) SetMarketplaceNil() { - o.Marketplace.Set(nil) -} - -// UnsetMarketplace ensures that no value is present for Marketplace, not even an explicit nil -func (o *KafkaRequestPayload) UnsetMarketplace() { - o.Marketplace.Unset() -} - -// GetBillingModel returns the BillingModel field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaRequestPayload) GetBillingModel() string { - if o == nil || o.BillingModel.Get() == nil { - var ret string - return ret - } - return *o.BillingModel.Get() -} - -// GetBillingModelOk returns a tuple with the BillingModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaRequestPayload) GetBillingModelOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.BillingModel.Get(), o.BillingModel.IsSet() -} - -// HasBillingModel returns a boolean if a field has been set. -func (o *KafkaRequestPayload) HasBillingModel() bool { - if o != nil && o.BillingModel.IsSet() { - return true - } - - return false -} - -// SetBillingModel gets a reference to the given NullableString and assigns it to the BillingModel field. -func (o *KafkaRequestPayload) SetBillingModel(v string) { - o.BillingModel.Set(&v) -} -// SetBillingModelNil sets the value for BillingModel to be an explicit nil -func (o *KafkaRequestPayload) SetBillingModelNil() { - o.BillingModel.Set(nil) -} - -// UnsetBillingModel ensures that no value is present for BillingModel, not even an explicit nil -func (o *KafkaRequestPayload) UnsetBillingModel() { - o.BillingModel.Unset() -} - -func (o KafkaRequestPayload) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.CloudProvider != nil { - toSerialize["cloud_provider"] = o.CloudProvider - } - if true { - toSerialize["name"] = o.Name - } - if o.Region != nil { - toSerialize["region"] = o.Region - } - if o.ReauthenticationEnabled.IsSet() { - toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled.Get() - } - if o.Plan != nil { - toSerialize["plan"] = o.Plan - } - if o.BillingCloudAccountId.IsSet() { - toSerialize["billing_cloud_account_id"] = o.BillingCloudAccountId.Get() - } - if o.Marketplace.IsSet() { - toSerialize["marketplace"] = o.Marketplace.Get() - } - if o.BillingModel.IsSet() { - toSerialize["billing_model"] = o.BillingModel.Get() - } - return json.Marshal(toSerialize) -} - -type NullableKafkaRequestPayload struct { - value *KafkaRequestPayload - isSet bool -} - -func (v NullableKafkaRequestPayload) Get() *KafkaRequestPayload { - return v.value -} - -func (v *NullableKafkaRequestPayload) Set(val *KafkaRequestPayload) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaRequestPayload) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaRequestPayload) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaRequestPayload(val *KafkaRequestPayload) *NullableKafkaRequestPayload { - return &NullableKafkaRequestPayload{value: val, isSet: true} -} - -func (v NullableKafkaRequestPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaRequestPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go deleted file mode 100644 index 65ccd6ba..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_kafka_update_request.go +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// KafkaUpdateRequest struct for KafkaUpdateRequest -type KafkaUpdateRequest struct { - Owner NullableString `json:"owner,omitempty"` - // Whether connection reauthentication is enabled or not. If set to true, connection reauthentication on the Kafka instance will be required every 5 minutes. - ReauthenticationEnabled NullableBool `json:"reauthentication_enabled,omitempty"` -} - -// NewKafkaUpdateRequest instantiates a new KafkaUpdateRequest 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 NewKafkaUpdateRequest() *KafkaUpdateRequest { - this := KafkaUpdateRequest{} - return &this -} - -// NewKafkaUpdateRequestWithDefaults instantiates a new KafkaUpdateRequest 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 NewKafkaUpdateRequestWithDefaults() *KafkaUpdateRequest { - this := KafkaUpdateRequest{} - return &this -} - -// GetOwner returns the Owner field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaUpdateRequest) GetOwner() string { - if o == nil || o.Owner.Get() == nil { - var ret string - return ret - } - return *o.Owner.Get() -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaUpdateRequest) GetOwnerOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Owner.Get(), o.Owner.IsSet() -} - -// HasOwner returns a boolean if a field has been set. -func (o *KafkaUpdateRequest) HasOwner() bool { - if o != nil && o.Owner.IsSet() { - return true - } - - return false -} - -// SetOwner gets a reference to the given NullableString and assigns it to the Owner field. -func (o *KafkaUpdateRequest) SetOwner(v string) { - o.Owner.Set(&v) -} -// SetOwnerNil sets the value for Owner to be an explicit nil -func (o *KafkaUpdateRequest) SetOwnerNil() { - o.Owner.Set(nil) -} - -// UnsetOwner ensures that no value is present for Owner, not even an explicit nil -func (o *KafkaUpdateRequest) UnsetOwner() { - o.Owner.Unset() -} - -// GetReauthenticationEnabled returns the ReauthenticationEnabled field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *KafkaUpdateRequest) GetReauthenticationEnabled() bool { - if o == nil || o.ReauthenticationEnabled.Get() == nil { - var ret bool - return ret - } - return *o.ReauthenticationEnabled.Get() -} - -// GetReauthenticationEnabledOk returns a tuple with the ReauthenticationEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *KafkaUpdateRequest) GetReauthenticationEnabledOk() (*bool, bool) { - if o == nil { - return nil, false - } - return o.ReauthenticationEnabled.Get(), o.ReauthenticationEnabled.IsSet() -} - -// HasReauthenticationEnabled returns a boolean if a field has been set. -func (o *KafkaUpdateRequest) HasReauthenticationEnabled() bool { - if o != nil && o.ReauthenticationEnabled.IsSet() { - return true - } - - return false -} - -// SetReauthenticationEnabled gets a reference to the given NullableBool and assigns it to the ReauthenticationEnabled field. -func (o *KafkaUpdateRequest) SetReauthenticationEnabled(v bool) { - o.ReauthenticationEnabled.Set(&v) -} -// SetReauthenticationEnabledNil sets the value for ReauthenticationEnabled to be an explicit nil -func (o *KafkaUpdateRequest) SetReauthenticationEnabledNil() { - o.ReauthenticationEnabled.Set(nil) -} - -// UnsetReauthenticationEnabled ensures that no value is present for ReauthenticationEnabled, not even an explicit nil -func (o *KafkaUpdateRequest) UnsetReauthenticationEnabled() { - o.ReauthenticationEnabled.Unset() -} - -func (o KafkaUpdateRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Owner.IsSet() { - toSerialize["owner"] = o.Owner.Get() - } - if o.ReauthenticationEnabled.IsSet() { - toSerialize["reauthentication_enabled"] = o.ReauthenticationEnabled.Get() - } - return json.Marshal(toSerialize) -} - -type NullableKafkaUpdateRequest struct { - value *KafkaUpdateRequest - isSet bool -} - -func (v NullableKafkaUpdateRequest) Get() *KafkaUpdateRequest { - return v.value -} - -func (v *NullableKafkaUpdateRequest) Set(val *KafkaUpdateRequest) { - v.value = val - v.isSet = true -} - -func (v NullableKafkaUpdateRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableKafkaUpdateRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableKafkaUpdateRequest(val *KafkaUpdateRequest) *NullableKafkaUpdateRequest { - return &NullableKafkaUpdateRequest{value: val, isSet: true} -} - -func (v NullableKafkaUpdateRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableKafkaUpdateRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go deleted file mode 100644 index 7c5acb46..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_list.go +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// List struct for List -type List struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` - Items []ObjectReference `json:"items"` -} - -// NewList instantiates a new List 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 NewList(kind string, page int32, size int32, total int32, items []ObjectReference) *List { - this := List{} - this.Kind = kind - this.Page = page - this.Size = size - this.Total = total - this.Items = items - return &this -} - -// NewListWithDefaults instantiates a new List 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 NewListWithDefaults() *List { - this := List{} - return &this -} - -// GetKind returns the Kind field value -func (o *List) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *List) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *List) SetKind(v string) { - o.Kind = v -} - -// GetPage returns the Page field value -func (o *List) GetPage() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Page -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -func (o *List) GetPageOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Page, true -} - -// SetPage sets field value -func (o *List) SetPage(v int32) { - o.Page = v -} - -// GetSize returns the Size field value -func (o *List) GetSize() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Size -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -func (o *List) GetSizeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Size, true -} - -// SetSize sets field value -func (o *List) SetSize(v int32) { - o.Size = v -} - -// GetTotal returns the Total field value -func (o *List) GetTotal() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.Total -} - -// GetTotalOk returns a tuple with the Total field value -// and a boolean to check if the value has been set. -func (o *List) GetTotalOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Total, true -} - -// SetTotal sets field value -func (o *List) SetTotal(v int32) { - o.Total = v -} - -// GetItems returns the Items field value -func (o *List) GetItems() []ObjectReference { - if o == nil { - var ret []ObjectReference - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *List) GetItemsOk() (*[]ObjectReference, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *List) SetItems(v []ObjectReference) { - o.Items = v -} - -func (o List) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["page"] = o.Page - } - if true { - toSerialize["size"] = o.Size - } - if true { - toSerialize["total"] = o.Total - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableList struct { - value *List - isSet bool -} - -func (v NullableList) Get() *List { - return v.value -} - -func (v *NullableList) Set(val *List) { - v.value = val - v.isSet = true -} - -func (v NullableList) IsSet() bool { - return v.isSet -} - -func (v *NullableList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableList(val *List) *NullableList { - return &NullableList{value: val, isSet: true} -} - -func (v NullableList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go deleted file mode 100644 index f8507d45..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// MetricsInstantQueryList struct for MetricsInstantQueryList -type MetricsInstantQueryList struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` - Items *[]InstantQuery `json:"items,omitempty"` -} - -// NewMetricsInstantQueryList instantiates a new MetricsInstantQueryList 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 NewMetricsInstantQueryList() *MetricsInstantQueryList { - this := MetricsInstantQueryList{} - return &this -} - -// NewMetricsInstantQueryListWithDefaults instantiates a new MetricsInstantQueryList 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 NewMetricsInstantQueryListWithDefaults() *MetricsInstantQueryList { - this := MetricsInstantQueryList{} - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *MetricsInstantQueryList) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsInstantQueryList) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *MetricsInstantQueryList) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *MetricsInstantQueryList) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *MetricsInstantQueryList) GetId() string { - if o == nil || o.Id == nil { - 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 *MetricsInstantQueryList) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *MetricsInstantQueryList) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *MetricsInstantQueryList) SetId(v string) { - o.Id = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *MetricsInstantQueryList) GetItems() []InstantQuery { - if o == nil || o.Items == nil { - var ret []InstantQuery - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsInstantQueryList) GetItemsOk() (*[]InstantQuery, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *MetricsInstantQueryList) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []InstantQuery and assigns it to the Items field. -func (o *MetricsInstantQueryList) SetItems(v []InstantQuery) { - o.Items = &v -} - -func (o MetricsInstantQueryList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableMetricsInstantQueryList struct { - value *MetricsInstantQueryList - isSet bool -} - -func (v NullableMetricsInstantQueryList) Get() *MetricsInstantQueryList { - return v.value -} - -func (v *NullableMetricsInstantQueryList) Set(val *MetricsInstantQueryList) { - v.value = val - v.isSet = true -} - -func (v NullableMetricsInstantQueryList) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricsInstantQueryList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricsInstantQueryList(val *MetricsInstantQueryList) *NullableMetricsInstantQueryList { - return &NullableMetricsInstantQueryList{value: val, isSet: true} -} - -func (v NullableMetricsInstantQueryList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricsInstantQueryList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go deleted file mode 100644 index d906b834..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// MetricsInstantQueryListAllOf struct for MetricsInstantQueryListAllOf -type MetricsInstantQueryListAllOf struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` - Items *[]InstantQuery `json:"items,omitempty"` -} - -// NewMetricsInstantQueryListAllOf instantiates a new MetricsInstantQueryListAllOf 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 NewMetricsInstantQueryListAllOf() *MetricsInstantQueryListAllOf { - this := MetricsInstantQueryListAllOf{} - return &this -} - -// NewMetricsInstantQueryListAllOfWithDefaults instantiates a new MetricsInstantQueryListAllOf 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 NewMetricsInstantQueryListAllOfWithDefaults() *MetricsInstantQueryListAllOf { - this := MetricsInstantQueryListAllOf{} - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *MetricsInstantQueryListAllOf) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsInstantQueryListAllOf) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *MetricsInstantQueryListAllOf) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *MetricsInstantQueryListAllOf) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *MetricsInstantQueryListAllOf) GetId() string { - if o == nil || o.Id == nil { - 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 *MetricsInstantQueryListAllOf) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *MetricsInstantQueryListAllOf) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *MetricsInstantQueryListAllOf) SetId(v string) { - o.Id = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *MetricsInstantQueryListAllOf) GetItems() []InstantQuery { - if o == nil || o.Items == nil { - var ret []InstantQuery - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsInstantQueryListAllOf) GetItemsOk() (*[]InstantQuery, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *MetricsInstantQueryListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []InstantQuery and assigns it to the Items field. -func (o *MetricsInstantQueryListAllOf) SetItems(v []InstantQuery) { - o.Items = &v -} - -func (o MetricsInstantQueryListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableMetricsInstantQueryListAllOf struct { - value *MetricsInstantQueryListAllOf - isSet bool -} - -func (v NullableMetricsInstantQueryListAllOf) Get() *MetricsInstantQueryListAllOf { - return v.value -} - -func (v *NullableMetricsInstantQueryListAllOf) Set(val *MetricsInstantQueryListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableMetricsInstantQueryListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricsInstantQueryListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricsInstantQueryListAllOf(val *MetricsInstantQueryListAllOf) *NullableMetricsInstantQueryListAllOf { - return &NullableMetricsInstantQueryListAllOf{value: val, isSet: true} -} - -func (v NullableMetricsInstantQueryListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricsInstantQueryListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go deleted file mode 100644 index ee376876..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list.go +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// MetricsRangeQueryList struct for MetricsRangeQueryList -type MetricsRangeQueryList struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` - Items *[]RangeQuery `json:"items,omitempty"` -} - -// NewMetricsRangeQueryList instantiates a new MetricsRangeQueryList 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 NewMetricsRangeQueryList() *MetricsRangeQueryList { - this := MetricsRangeQueryList{} - return &this -} - -// NewMetricsRangeQueryListWithDefaults instantiates a new MetricsRangeQueryList 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 NewMetricsRangeQueryListWithDefaults() *MetricsRangeQueryList { - this := MetricsRangeQueryList{} - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *MetricsRangeQueryList) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsRangeQueryList) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *MetricsRangeQueryList) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *MetricsRangeQueryList) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *MetricsRangeQueryList) GetId() string { - if o == nil || o.Id == nil { - 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 *MetricsRangeQueryList) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *MetricsRangeQueryList) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *MetricsRangeQueryList) SetId(v string) { - o.Id = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *MetricsRangeQueryList) GetItems() []RangeQuery { - if o == nil || o.Items == nil { - var ret []RangeQuery - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsRangeQueryList) GetItemsOk() (*[]RangeQuery, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *MetricsRangeQueryList) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []RangeQuery and assigns it to the Items field. -func (o *MetricsRangeQueryList) SetItems(v []RangeQuery) { - o.Items = &v -} - -func (o MetricsRangeQueryList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableMetricsRangeQueryList struct { - value *MetricsRangeQueryList - isSet bool -} - -func (v NullableMetricsRangeQueryList) Get() *MetricsRangeQueryList { - return v.value -} - -func (v *NullableMetricsRangeQueryList) Set(val *MetricsRangeQueryList) { - v.value = val - v.isSet = true -} - -func (v NullableMetricsRangeQueryList) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricsRangeQueryList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricsRangeQueryList(val *MetricsRangeQueryList) *NullableMetricsRangeQueryList { - return &NullableMetricsRangeQueryList{value: val, isSet: true} -} - -func (v NullableMetricsRangeQueryList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricsRangeQueryList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go deleted file mode 100644 index 04080b7b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// MetricsRangeQueryListAllOf struct for MetricsRangeQueryListAllOf -type MetricsRangeQueryListAllOf struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` - Items *[]RangeQuery `json:"items,omitempty"` -} - -// NewMetricsRangeQueryListAllOf instantiates a new MetricsRangeQueryListAllOf 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 NewMetricsRangeQueryListAllOf() *MetricsRangeQueryListAllOf { - this := MetricsRangeQueryListAllOf{} - return &this -} - -// NewMetricsRangeQueryListAllOfWithDefaults instantiates a new MetricsRangeQueryListAllOf 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 NewMetricsRangeQueryListAllOfWithDefaults() *MetricsRangeQueryListAllOf { - this := MetricsRangeQueryListAllOf{} - return &this -} - -// GetKind returns the Kind field value if set, zero value otherwise. -func (o *MetricsRangeQueryListAllOf) GetKind() string { - if o == nil || o.Kind == nil { - var ret string - return ret - } - return *o.Kind -} - -// GetKindOk returns a tuple with the Kind field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsRangeQueryListAllOf) GetKindOk() (*string, bool) { - if o == nil || o.Kind == nil { - return nil, false - } - return o.Kind, true -} - -// HasKind returns a boolean if a field has been set. -func (o *MetricsRangeQueryListAllOf) HasKind() bool { - if o != nil && o.Kind != nil { - return true - } - - return false -} - -// SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *MetricsRangeQueryListAllOf) SetKind(v string) { - o.Kind = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *MetricsRangeQueryListAllOf) GetId() string { - if o == nil || o.Id == nil { - 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 *MetricsRangeQueryListAllOf) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *MetricsRangeQueryListAllOf) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *MetricsRangeQueryListAllOf) SetId(v string) { - o.Id = &v -} - -// GetItems returns the Items field value if set, zero value otherwise. -func (o *MetricsRangeQueryListAllOf) GetItems() []RangeQuery { - if o == nil || o.Items == nil { - var ret []RangeQuery - return ret - } - return *o.Items -} - -// GetItemsOk returns a tuple with the Items field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricsRangeQueryListAllOf) GetItemsOk() (*[]RangeQuery, bool) { - if o == nil || o.Items == nil { - return nil, false - } - return o.Items, true -} - -// HasItems returns a boolean if a field has been set. -func (o *MetricsRangeQueryListAllOf) HasItems() bool { - if o != nil && o.Items != nil { - return true - } - - return false -} - -// SetItems gets a reference to the given []RangeQuery and assigns it to the Items field. -func (o *MetricsRangeQueryListAllOf) SetItems(v []RangeQuery) { - o.Items = &v -} - -func (o MetricsRangeQueryListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Kind != nil { - toSerialize["kind"] = o.Kind - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.Items != nil { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableMetricsRangeQueryListAllOf struct { - value *MetricsRangeQueryListAllOf - isSet bool -} - -func (v NullableMetricsRangeQueryListAllOf) Get() *MetricsRangeQueryListAllOf { - return v.value -} - -func (v *NullableMetricsRangeQueryListAllOf) Set(val *MetricsRangeQueryListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableMetricsRangeQueryListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricsRangeQueryListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricsRangeQueryListAllOf(val *MetricsRangeQueryListAllOf) *NullableMetricsRangeQueryListAllOf { - return &NullableMetricsRangeQueryListAllOf{value: val, isSet: true} -} - -func (v NullableMetricsRangeQueryListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricsRangeQueryListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go deleted file mode 100644 index e4b979ef..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_object_reference.go +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ObjectReference struct for ObjectReference -type ObjectReference struct { - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` -} - -// NewObjectReference instantiates a new ObjectReference 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 NewObjectReference(id string, kind string, href string) *ObjectReference { - this := ObjectReference{} - this.Id = id - this.Kind = kind - this.Href = href - return &this -} - -// NewObjectReferenceWithDefaults instantiates a new ObjectReference 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 NewObjectReferenceWithDefaults() *ObjectReference { - this := ObjectReference{} - return &this -} - -// GetId returns the Id field value -func (o *ObjectReference) 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 *ObjectReference) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ObjectReference) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *ObjectReference) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ObjectReference) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ObjectReference) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *ObjectReference) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *ObjectReference) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *ObjectReference) SetHref(v string) { - o.Href = v -} - -func (o ObjectReference) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - return json.Marshal(toSerialize) -} - -type NullableObjectReference struct { - value *ObjectReference - isSet bool -} - -func (v NullableObjectReference) Get() *ObjectReference { - return v.value -} - -func (v *NullableObjectReference) Set(val *ObjectReference) { - v.value = val - v.isSet = true -} - -func (v NullableObjectReference) IsSet() bool { - return v.isSet -} - -func (v *NullableObjectReference) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { - return &NullableObjectReference{value: val, isSet: true} -} - -func (v NullableObjectReference) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go deleted file mode 100644 index 6270529c..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_range_query.go +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// RangeQuery struct for RangeQuery -type RangeQuery struct { - Metric *map[string]string `json:"metric,omitempty"` - Values *[]Values `json:"values,omitempty"` -} - -// NewRangeQuery instantiates a new RangeQuery 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 NewRangeQuery() *RangeQuery { - this := RangeQuery{} - return &this -} - -// NewRangeQueryWithDefaults instantiates a new RangeQuery 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 NewRangeQueryWithDefaults() *RangeQuery { - this := RangeQuery{} - return &this -} - -// GetMetric returns the Metric field value if set, zero value otherwise. -func (o *RangeQuery) GetMetric() map[string]string { - if o == nil || o.Metric == nil { - var ret map[string]string - return ret - } - return *o.Metric -} - -// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RangeQuery) GetMetricOk() (*map[string]string, bool) { - if o == nil || o.Metric == nil { - return nil, false - } - return o.Metric, true -} - -// HasMetric returns a boolean if a field has been set. -func (o *RangeQuery) HasMetric() bool { - if o != nil && o.Metric != nil { - return true - } - - return false -} - -// SetMetric gets a reference to the given map[string]string and assigns it to the Metric field. -func (o *RangeQuery) SetMetric(v map[string]string) { - o.Metric = &v -} - -// GetValues returns the Values field value if set, zero value otherwise. -func (o *RangeQuery) GetValues() []Values { - if o == nil || o.Values == nil { - var ret []Values - return ret - } - return *o.Values -} - -// GetValuesOk returns a tuple with the Values field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RangeQuery) GetValuesOk() (*[]Values, bool) { - if o == nil || o.Values == nil { - return nil, false - } - return o.Values, true -} - -// HasValues returns a boolean if a field has been set. -func (o *RangeQuery) HasValues() bool { - if o != nil && o.Values != nil { - return true - } - - return false -} - -// SetValues gets a reference to the given []Values and assigns it to the Values field. -func (o *RangeQuery) SetValues(v []Values) { - o.Values = &v -} - -func (o RangeQuery) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Metric != nil { - toSerialize["metric"] = o.Metric - } - if o.Values != nil { - toSerialize["values"] = o.Values - } - return json.Marshal(toSerialize) -} - -type NullableRangeQuery struct { - value *RangeQuery - isSet bool -} - -func (v NullableRangeQuery) Get() *RangeQuery { - return v.value -} - -func (v *NullableRangeQuery) Set(val *RangeQuery) { - v.value = val - v.isSet = true -} - -func (v NullableRangeQuery) IsSet() bool { - return v.isSet -} - -func (v *NullableRangeQuery) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRangeQuery(val *RangeQuery) *NullableRangeQuery { - return &NullableRangeQuery{value: val, isSet: true} -} - -func (v NullableRangeQuery) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRangeQuery) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go deleted file mode 100644 index 735aa59f..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_region_capacity_list_item.go +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// RegionCapacityListItem schema for a kafka instance type capacity in region -type RegionCapacityListItem struct { - // kafka instance type - InstanceType string `json:"instance_type"` - // list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits - AvailableSizes []string `json:"available_sizes"` -} - -// NewRegionCapacityListItem instantiates a new RegionCapacityListItem 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 NewRegionCapacityListItem(instanceType string, availableSizes []string) *RegionCapacityListItem { - this := RegionCapacityListItem{} - this.InstanceType = instanceType - this.AvailableSizes = availableSizes - return &this -} - -// NewRegionCapacityListItemWithDefaults instantiates a new RegionCapacityListItem 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 NewRegionCapacityListItemWithDefaults() *RegionCapacityListItem { - this := RegionCapacityListItem{} - return &this -} - -// GetInstanceType returns the InstanceType field value -func (o *RegionCapacityListItem) GetInstanceType() string { - if o == nil { - var ret string - return ret - } - - return o.InstanceType -} - -// GetInstanceTypeOk returns a tuple with the InstanceType field value -// and a boolean to check if the value has been set. -func (o *RegionCapacityListItem) GetInstanceTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.InstanceType, true -} - -// SetInstanceType sets field value -func (o *RegionCapacityListItem) SetInstanceType(v string) { - o.InstanceType = v -} - -// GetAvailableSizes returns the AvailableSizes field value -func (o *RegionCapacityListItem) GetAvailableSizes() []string { - if o == nil { - var ret []string - return ret - } - - return o.AvailableSizes -} - -// GetAvailableSizesOk returns a tuple with the AvailableSizes field value -// and a boolean to check if the value has been set. -func (o *RegionCapacityListItem) GetAvailableSizesOk() (*[]string, bool) { - if o == nil { - return nil, false - } - return &o.AvailableSizes, true -} - -// SetAvailableSizes sets field value -func (o *RegionCapacityListItem) SetAvailableSizes(v []string) { - o.AvailableSizes = v -} - -func (o RegionCapacityListItem) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["instance_type"] = o.InstanceType - } - if true { - toSerialize["available_sizes"] = o.AvailableSizes - } - return json.Marshal(toSerialize) -} - -type NullableRegionCapacityListItem struct { - value *RegionCapacityListItem - isSet bool -} - -func (v NullableRegionCapacityListItem) Get() *RegionCapacityListItem { - return v.value -} - -func (v *NullableRegionCapacityListItem) Set(val *RegionCapacityListItem) { - v.value = val - v.isSet = true -} - -func (v NullableRegionCapacityListItem) IsSet() bool { - return v.isSet -} - -func (v *NullableRegionCapacityListItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegionCapacityListItem(val *RegionCapacityListItem) *NullableRegionCapacityListItem { - return &NullableRegionCapacityListItem{value: val, isSet: true} -} - -func (v NullableRegionCapacityListItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegionCapacityListItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go deleted file mode 100644 index 6ac22781..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account.go +++ /dev/null @@ -1,421 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// ServiceAccount Service Account created in MAS-SSO for the Kafka Cluster for authentication -type ServiceAccount struct { - // server generated unique id of the service account - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ClientId *string `json:"client_id,omitempty"` - ClientSecret *string `json:"client_secret,omitempty"` - Owner *string `json:"owner,omitempty"` - CreatedBy *string `json:"created_by,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` -} - -// NewServiceAccount instantiates a new ServiceAccount 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 NewServiceAccount(id string, kind string, href string) *ServiceAccount { - this := ServiceAccount{} - this.Id = id - this.Kind = kind - this.Href = href - return &this -} - -// NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 NewServiceAccountWithDefaults() *ServiceAccount { - this := ServiceAccount{} - return &this -} - -// GetId returns the Id field value -func (o *ServiceAccount) 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 *ServiceAccount) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ServiceAccount) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *ServiceAccount) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ServiceAccount) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *ServiceAccount) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *ServiceAccount) SetHref(v string) { - o.Href = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ServiceAccount) GetName() string { - if o == nil || o.Name == nil { - 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 *ServiceAccount) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ServiceAccount) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ServiceAccount) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ServiceAccount) GetDescription() string { - if o == nil || o.Description == nil { - 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 *ServiceAccount) GetDescriptionOk() (*string, bool) { - if o == nil || o.Description == nil { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ServiceAccount) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ServiceAccount) SetDescription(v string) { - o.Description = &v -} - -// GetClientId returns the ClientId field value if set, zero value otherwise. -func (o *ServiceAccount) GetClientId() string { - if o == nil || o.ClientId == nil { - var ret string - return ret - } - return *o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetClientIdOk() (*string, bool) { - if o == nil || o.ClientId == nil { - return nil, false - } - return o.ClientId, true -} - -// HasClientId returns a boolean if a field has been set. -func (o *ServiceAccount) HasClientId() bool { - if o != nil && o.ClientId != nil { - return true - } - - return false -} - -// SetClientId gets a reference to the given string and assigns it to the ClientId field. -func (o *ServiceAccount) SetClientId(v string) { - o.ClientId = &v -} - -// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. -func (o *ServiceAccount) GetClientSecret() string { - if o == nil || o.ClientSecret == nil { - var ret string - return ret - } - return *o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetClientSecretOk() (*string, bool) { - if o == nil || o.ClientSecret == nil { - return nil, false - } - return o.ClientSecret, true -} - -// HasClientSecret returns a boolean if a field has been set. -func (o *ServiceAccount) HasClientSecret() bool { - if o != nil && o.ClientSecret != nil { - return true - } - - return false -} - -// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. -func (o *ServiceAccount) SetClientSecret(v string) { - o.ClientSecret = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *ServiceAccount) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *ServiceAccount) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *ServiceAccount) SetOwner(v string) { - o.Owner = &v -} - -// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. -func (o *ServiceAccount) GetCreatedBy() string { - if o == nil || o.CreatedBy == nil { - var ret string - return ret - } - return *o.CreatedBy -} - -// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetCreatedByOk() (*string, bool) { - if o == nil || o.CreatedBy == nil { - return nil, false - } - return o.CreatedBy, true -} - -// HasCreatedBy returns a boolean if a field has been set. -func (o *ServiceAccount) HasCreatedBy() bool { - if o != nil && o.CreatedBy != nil { - return true - } - - return false -} - -// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. -func (o *ServiceAccount) SetCreatedBy(v string) { - o.CreatedBy = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceAccount) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccount) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceAccount) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceAccount) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -func (o ServiceAccount) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - if o.ClientId != nil { - toSerialize["client_id"] = o.ClientId - } - if o.ClientSecret != nil { - toSerialize["client_secret"] = o.ClientSecret - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.CreatedBy != nil { - toSerialize["created_by"] = o.CreatedBy - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccount struct { - value *ServiceAccount - isSet bool -} - -func (v NullableServiceAccount) Get() *ServiceAccount { - return v.value -} - -func (v *NullableServiceAccount) Set(val *ServiceAccount) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccount(val *ServiceAccount) *NullableServiceAccount { - return &NullableServiceAccount{value: val, isSet: true} -} - -func (v NullableServiceAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go deleted file mode 100644 index 9f6c5eb0..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_all_of.go +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// ServiceAccountAllOf struct for ServiceAccountAllOf -type ServiceAccountAllOf struct { - // server generated unique id of the service account - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ClientId *string `json:"client_id,omitempty"` - ClientSecret *string `json:"client_secret,omitempty"` - Owner *string `json:"owner,omitempty"` - CreatedBy *string `json:"created_by,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` -} - -// NewServiceAccountAllOf instantiates a new ServiceAccountAllOf 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 NewServiceAccountAllOf() *ServiceAccountAllOf { - this := ServiceAccountAllOf{} - return &this -} - -// NewServiceAccountAllOfWithDefaults instantiates a new ServiceAccountAllOf 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 NewServiceAccountAllOfWithDefaults() *ServiceAccountAllOf { - this := ServiceAccountAllOf{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetId() string { - if o == nil || o.Id == nil { - 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 *ServiceAccountAllOf) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceAccountAllOf) SetId(v string) { - o.Id = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetName() string { - if o == nil || o.Name == nil { - 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 *ServiceAccountAllOf) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ServiceAccountAllOf) SetName(v string) { - o.Name = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetDescription() string { - if o == nil || o.Description == nil { - 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 *ServiceAccountAllOf) GetDescriptionOk() (*string, bool) { - if o == nil || o.Description == nil { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ServiceAccountAllOf) SetDescription(v string) { - o.Description = &v -} - -// GetClientId returns the ClientId field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetClientId() string { - if o == nil || o.ClientId == nil { - var ret string - return ret - } - return *o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool) { - if o == nil || o.ClientId == nil { - return nil, false - } - return o.ClientId, true -} - -// HasClientId returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasClientId() bool { - if o != nil && o.ClientId != nil { - return true - } - - return false -} - -// SetClientId gets a reference to the given string and assigns it to the ClientId field. -func (o *ServiceAccountAllOf) SetClientId(v string) { - o.ClientId = &v -} - -// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetClientSecret() string { - if o == nil || o.ClientSecret == nil { - var ret string - return ret - } - return *o.ClientSecret -} - -// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetClientSecretOk() (*string, bool) { - if o == nil || o.ClientSecret == nil { - return nil, false - } - return o.ClientSecret, true -} - -// HasClientSecret returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasClientSecret() bool { - if o != nil && o.ClientSecret != nil { - return true - } - - return false -} - -// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. -func (o *ServiceAccountAllOf) SetClientSecret(v string) { - o.ClientSecret = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *ServiceAccountAllOf) SetOwner(v string) { - o.Owner = &v -} - -// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetCreatedBy() string { - if o == nil || o.CreatedBy == nil { - var ret string - return ret - } - return *o.CreatedBy -} - -// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetCreatedByOk() (*string, bool) { - if o == nil || o.CreatedBy == nil { - return nil, false - } - return o.CreatedBy, true -} - -// HasCreatedBy returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasCreatedBy() bool { - if o != nil && o.CreatedBy != nil { - return true - } - - return false -} - -// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. -func (o *ServiceAccountAllOf) SetCreatedBy(v string) { - o.CreatedBy = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceAccountAllOf) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -func (o ServiceAccountAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - if o.ClientId != nil { - toSerialize["client_id"] = o.ClientId - } - if o.ClientSecret != nil { - toSerialize["client_secret"] = o.ClientSecret - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.CreatedBy != nil { - toSerialize["created_by"] = o.CreatedBy - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountAllOf struct { - value *ServiceAccountAllOf - isSet bool -} - -func (v NullableServiceAccountAllOf) Get() *ServiceAccountAllOf { - return v.value -} - -func (v *NullableServiceAccountAllOf) Set(val *ServiceAccountAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountAllOf(val *ServiceAccountAllOf) *NullableServiceAccountAllOf { - return &NullableServiceAccountAllOf{value: val, isSet: true} -} - -func (v NullableServiceAccountAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go deleted file mode 100644 index 9e5e0e57..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list.go +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ServiceAccountList struct for ServiceAccountList -type ServiceAccountList struct { - Kind string `json:"kind"` - Items []ServiceAccountListItem `json:"items"` -} - -// NewServiceAccountList instantiates a new ServiceAccountList 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 NewServiceAccountList(kind string, items []ServiceAccountListItem) *ServiceAccountList { - this := ServiceAccountList{} - this.Kind = kind - this.Items = items - return &this -} - -// NewServiceAccountListWithDefaults instantiates a new ServiceAccountList 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 NewServiceAccountListWithDefaults() *ServiceAccountList { - this := ServiceAccountList{} - return &this -} - -// GetKind returns the Kind field value -func (o *ServiceAccountList) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountList) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ServiceAccountList) SetKind(v string) { - o.Kind = v -} - -// GetItems returns the Items field value -func (o *ServiceAccountList) GetItems() []ServiceAccountListItem { - if o == nil { - var ret []ServiceAccountListItem - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountList) GetItemsOk() (*[]ServiceAccountListItem, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *ServiceAccountList) SetItems(v []ServiceAccountListItem) { - o.Items = v -} - -func (o ServiceAccountList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountList struct { - value *ServiceAccountList - isSet bool -} - -func (v NullableServiceAccountList) Get() *ServiceAccountList { - return v.value -} - -func (v *NullableServiceAccountList) Set(val *ServiceAccountList) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountList) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountList(val *ServiceAccountList) *NullableServiceAccountList { - return &NullableServiceAccountList{value: val, isSet: true} -} - -func (v NullableServiceAccountList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go deleted file mode 100644 index 7b4f5809..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_all_of.go +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ServiceAccountListAllOf struct for ServiceAccountListAllOf -type ServiceAccountListAllOf struct { - Kind string `json:"kind"` - Items []ServiceAccountListItem `json:"items"` -} - -// NewServiceAccountListAllOf instantiates a new ServiceAccountListAllOf 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 NewServiceAccountListAllOf(kind string, items []ServiceAccountListItem) *ServiceAccountListAllOf { - this := ServiceAccountListAllOf{} - this.Kind = kind - this.Items = items - return &this -} - -// NewServiceAccountListAllOfWithDefaults instantiates a new ServiceAccountListAllOf 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 NewServiceAccountListAllOfWithDefaults() *ServiceAccountListAllOf { - this := ServiceAccountListAllOf{} - return &this -} - -// GetKind returns the Kind field value -func (o *ServiceAccountListAllOf) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountListAllOf) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ServiceAccountListAllOf) SetKind(v string) { - o.Kind = v -} - -// GetItems returns the Items field value -func (o *ServiceAccountListAllOf) GetItems() []ServiceAccountListItem { - if o == nil { - var ret []ServiceAccountListItem - return ret - } - - return o.Items -} - -// GetItemsOk returns a tuple with the Items field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountListAllOf) GetItemsOk() (*[]ServiceAccountListItem, bool) { - if o == nil { - return nil, false - } - return &o.Items, true -} - -// SetItems sets field value -func (o *ServiceAccountListAllOf) SetItems(v []ServiceAccountListItem) { - o.Items = v -} - -func (o ServiceAccountListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["items"] = o.Items - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountListAllOf struct { - value *ServiceAccountListAllOf - isSet bool -} - -func (v NullableServiceAccountListAllOf) Get() *ServiceAccountListAllOf { - return v.value -} - -func (v *NullableServiceAccountListAllOf) Set(val *ServiceAccountListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountListAllOf(val *ServiceAccountListAllOf) *NullableServiceAccountListAllOf { - return &NullableServiceAccountListAllOf{value: val, isSet: true} -} - -func (v NullableServiceAccountListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go deleted file mode 100644 index 25a1a044..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item.go +++ /dev/null @@ -1,391 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// ServiceAccountListItem struct for ServiceAccountListItem -type ServiceAccountListItem struct { - // server generated unique id of the service account - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - // client id of the service account - ClientId *string `json:"client_id,omitempty"` - // name of the service account - Name *string `json:"name,omitempty"` - // owner of the service account - Owner *string `json:"owner,omitempty"` - // service account created by the user - CreatedBy *string `json:"created_by,omitempty"` - // service account creation timestamp - CreatedAt *time.Time `json:"created_at,omitempty"` - // description of the service account - Description *string `json:"description,omitempty"` -} - -// NewServiceAccountListItem instantiates a new ServiceAccountListItem 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 NewServiceAccountListItem(id string, kind string, href string) *ServiceAccountListItem { - this := ServiceAccountListItem{} - this.Id = id - this.Kind = kind - this.Href = href - return &this -} - -// NewServiceAccountListItemWithDefaults instantiates a new ServiceAccountListItem 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 NewServiceAccountListItemWithDefaults() *ServiceAccountListItem { - this := ServiceAccountListItem{} - return &this -} - -// GetId returns the Id field value -func (o *ServiceAccountListItem) 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 *ServiceAccountListItem) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ServiceAccountListItem) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *ServiceAccountListItem) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *ServiceAccountListItem) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *ServiceAccountListItem) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *ServiceAccountListItem) SetHref(v string) { - o.Href = v -} - -// GetClientId returns the ClientId field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetClientId() string { - if o == nil || o.ClientId == nil { - var ret string - return ret - } - return *o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool) { - if o == nil || o.ClientId == nil { - return nil, false - } - return o.ClientId, true -} - -// HasClientId returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasClientId() bool { - if o != nil && o.ClientId != nil { - return true - } - - return false -} - -// SetClientId gets a reference to the given string and assigns it to the ClientId field. -func (o *ServiceAccountListItem) SetClientId(v string) { - o.ClientId = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetName() string { - if o == nil || o.Name == nil { - 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 *ServiceAccountListItem) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ServiceAccountListItem) SetName(v string) { - o.Name = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *ServiceAccountListItem) SetOwner(v string) { - o.Owner = &v -} - -// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetCreatedBy() string { - if o == nil || o.CreatedBy == nil { - var ret string - return ret - } - return *o.CreatedBy -} - -// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetCreatedByOk() (*string, bool) { - if o == nil || o.CreatedBy == nil { - return nil, false - } - return o.CreatedBy, true -} - -// HasCreatedBy returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasCreatedBy() bool { - if o != nil && o.CreatedBy != nil { - return true - } - - return false -} - -// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. -func (o *ServiceAccountListItem) SetCreatedBy(v string) { - o.CreatedBy = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceAccountListItem) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetDescription() string { - if o == nil || o.Description == nil { - 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 *ServiceAccountListItem) GetDescriptionOk() (*string, bool) { - if o == nil || o.Description == nil { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ServiceAccountListItem) SetDescription(v string) { - o.Description = &v -} - -func (o ServiceAccountListItem) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if o.ClientId != nil { - toSerialize["client_id"] = o.ClientId - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.CreatedBy != nil { - toSerialize["created_by"] = o.CreatedBy - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountListItem struct { - value *ServiceAccountListItem - isSet bool -} - -func (v NullableServiceAccountListItem) Get() *ServiceAccountListItem { - return v.value -} - -func (v *NullableServiceAccountListItem) Set(val *ServiceAccountListItem) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountListItem) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountListItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountListItem(val *ServiceAccountListItem) *NullableServiceAccountListItem { - return &NullableServiceAccountListItem{value: val, isSet: true} -} - -func (v NullableServiceAccountListItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountListItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go deleted file mode 100644 index 8e443322..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go +++ /dev/null @@ -1,340 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// ServiceAccountListItemAllOf struct for ServiceAccountListItemAllOf -type ServiceAccountListItemAllOf struct { - // server generated unique id of the service account - Id *string `json:"id,omitempty"` - // client id of the service account - ClientId *string `json:"client_id,omitempty"` - // name of the service account - Name *string `json:"name,omitempty"` - // owner of the service account - Owner *string `json:"owner,omitempty"` - // service account created by the user - CreatedBy *string `json:"created_by,omitempty"` - // service account creation timestamp - CreatedAt *time.Time `json:"created_at,omitempty"` - // description of the service account - Description *string `json:"description,omitempty"` -} - -// NewServiceAccountListItemAllOf instantiates a new ServiceAccountListItemAllOf 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 NewServiceAccountListItemAllOf() *ServiceAccountListItemAllOf { - this := ServiceAccountListItemAllOf{} - return &this -} - -// NewServiceAccountListItemAllOfWithDefaults instantiates a new ServiceAccountListItemAllOf 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 NewServiceAccountListItemAllOfWithDefaults() *ServiceAccountListItemAllOf { - this := ServiceAccountListItemAllOf{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetId() string { - if o == nil || o.Id == nil { - 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 *ServiceAccountListItemAllOf) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceAccountListItemAllOf) SetId(v string) { - o.Id = &v -} - -// GetClientId returns the ClientId field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetClientId() string { - if o == nil || o.ClientId == nil { - var ret string - return ret - } - return *o.ClientId -} - -// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool) { - if o == nil || o.ClientId == nil { - return nil, false - } - return o.ClientId, true -} - -// HasClientId returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasClientId() bool { - if o != nil && o.ClientId != nil { - return true - } - - return false -} - -// SetClientId gets a reference to the given string and assigns it to the ClientId field. -func (o *ServiceAccountListItemAllOf) SetClientId(v string) { - o.ClientId = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetName() string { - if o == nil || o.Name == nil { - 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 *ServiceAccountListItemAllOf) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ServiceAccountListItemAllOf) SetName(v string) { - o.Name = &v -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetOwner() string { - if o == nil || o.Owner == nil { - var ret string - return ret - } - return *o.Owner -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItemAllOf) GetOwnerOk() (*string, bool) { - if o == nil || o.Owner == nil { - return nil, false - } - return o.Owner, true -} - -// HasOwner returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasOwner() bool { - if o != nil && o.Owner != nil { - return true - } - - return false -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -func (o *ServiceAccountListItemAllOf) SetOwner(v string) { - o.Owner = &v -} - -// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetCreatedBy() string { - if o == nil || o.CreatedBy == nil { - var ret string - return ret - } - return *o.CreatedBy -} - -// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItemAllOf) GetCreatedByOk() (*string, bool) { - if o == nil || o.CreatedBy == nil { - return nil, false - } - return o.CreatedBy, true -} - -// HasCreatedBy returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasCreatedBy() bool { - if o != nil && o.CreatedBy != nil { - return true - } - - return false -} - -// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. -func (o *ServiceAccountListItemAllOf) SetCreatedBy(v string) { - o.CreatedBy = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceAccountListItemAllOf) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceAccountListItemAllOf) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetDescription() string { - if o == nil || o.Description == nil { - 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 *ServiceAccountListItemAllOf) GetDescriptionOk() (*string, bool) { - if o == nil || o.Description == nil { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ServiceAccountListItemAllOf) SetDescription(v string) { - o.Description = &v -} - -func (o ServiceAccountListItemAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.ClientId != nil { - toSerialize["client_id"] = o.ClientId - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.Owner != nil { - toSerialize["owner"] = o.Owner - } - if o.CreatedBy != nil { - toSerialize["created_by"] = o.CreatedBy - } - if o.CreatedAt != nil { - toSerialize["created_at"] = o.CreatedAt - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountListItemAllOf struct { - value *ServiceAccountListItemAllOf - isSet bool -} - -func (v NullableServiceAccountListItemAllOf) Get() *ServiceAccountListItemAllOf { - return v.value -} - -func (v *NullableServiceAccountListItemAllOf) Set(val *ServiceAccountListItemAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountListItemAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountListItemAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountListItemAllOf(val *ServiceAccountListItemAllOf) *NullableServiceAccountListItemAllOf { - return &NullableServiceAccountListItemAllOf{value: val, isSet: true} -} - -func (v NullableServiceAccountListItemAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountListItemAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go deleted file mode 100644 index c968f8a9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_service_account_request.go +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// ServiceAccountRequest Schema for the request to create a service account -type ServiceAccountRequest struct { - // The name of the service account - Name string `json:"name"` - // A description for the service account - Description *string `json:"description,omitempty"` -} - -// NewServiceAccountRequest instantiates a new ServiceAccountRequest 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 NewServiceAccountRequest(name string) *ServiceAccountRequest { - this := ServiceAccountRequest{} - this.Name = name - return &this -} - -// NewServiceAccountRequestWithDefaults instantiates a new ServiceAccountRequest 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 NewServiceAccountRequestWithDefaults() *ServiceAccountRequest { - this := ServiceAccountRequest{} - return &this -} - -// GetName returns the Name field value -func (o *ServiceAccountRequest) 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 *ServiceAccountRequest) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ServiceAccountRequest) SetName(v string) { - o.Name = v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ServiceAccountRequest) GetDescription() string { - if o == nil || o.Description == nil { - 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 *ServiceAccountRequest) GetDescriptionOk() (*string, bool) { - if o == nil || o.Description == nil { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ServiceAccountRequest) HasDescription() bool { - if o != nil && o.Description != nil { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ServiceAccountRequest) SetDescription(v string) { - o.Description = &v -} - -func (o ServiceAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - return json.Marshal(toSerialize) -} - -type NullableServiceAccountRequest struct { - value *ServiceAccountRequest - isSet bool -} - -func (v NullableServiceAccountRequest) Get() *ServiceAccountRequest { - return v.value -} - -func (v *NullableServiceAccountRequest) Set(val *ServiceAccountRequest) { - v.value = val - v.isSet = true -} - -func (v NullableServiceAccountRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceAccountRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceAccountRequest(val *ServiceAccountRequest) *NullableServiceAccountRequest { - return &NullableServiceAccountRequest{value: val, isSet: true} -} - -func (v NullableServiceAccountRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceAccountRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go deleted file mode 100644 index 2832783c..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider.go +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SsoProvider SSO Provider -type SsoProvider struct { - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - // name of the sso provider - Name *string `json:"name,omitempty"` - // base url - BaseUrl *string `json:"base_url,omitempty"` - TokenUrl *string `json:"token_url,omitempty"` - Jwks *string `json:"jwks,omitempty"` - ValidIssuer *string `json:"valid_issuer,omitempty"` -} - -// NewSsoProvider instantiates a new SsoProvider 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 NewSsoProvider(id string, kind string, href string) *SsoProvider { - this := SsoProvider{} - this.Id = id - this.Kind = kind - this.Href = href - return &this -} - -// NewSsoProviderWithDefaults instantiates a new SsoProvider 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 NewSsoProviderWithDefaults() *SsoProvider { - this := SsoProvider{} - return &this -} - -// GetId returns the Id field value -func (o *SsoProvider) 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 *SsoProvider) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *SsoProvider) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *SsoProvider) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *SsoProvider) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *SsoProvider) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *SsoProvider) SetHref(v string) { - o.Href = v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SsoProvider) GetName() string { - if o == nil || o.Name == nil { - 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 *SsoProvider) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SsoProvider) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SsoProvider) SetName(v string) { - o.Name = &v -} - -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *SsoProvider) GetBaseUrl() string { - if o == nil || o.BaseUrl == nil { - var ret string - return ret - } - return *o.BaseUrl -} - -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetBaseUrlOk() (*string, bool) { - if o == nil || o.BaseUrl == nil { - return nil, false - } - return o.BaseUrl, true -} - -// HasBaseUrl returns a boolean if a field has been set. -func (o *SsoProvider) HasBaseUrl() bool { - if o != nil && o.BaseUrl != nil { - return true - } - - return false -} - -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *SsoProvider) SetBaseUrl(v string) { - o.BaseUrl = &v -} - -// GetTokenUrl returns the TokenUrl field value if set, zero value otherwise. -func (o *SsoProvider) GetTokenUrl() string { - if o == nil || o.TokenUrl == nil { - var ret string - return ret - } - return *o.TokenUrl -} - -// GetTokenUrlOk returns a tuple with the TokenUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetTokenUrlOk() (*string, bool) { - if o == nil || o.TokenUrl == nil { - return nil, false - } - return o.TokenUrl, true -} - -// HasTokenUrl returns a boolean if a field has been set. -func (o *SsoProvider) HasTokenUrl() bool { - if o != nil && o.TokenUrl != nil { - return true - } - - return false -} - -// SetTokenUrl gets a reference to the given string and assigns it to the TokenUrl field. -func (o *SsoProvider) SetTokenUrl(v string) { - o.TokenUrl = &v -} - -// GetJwks returns the Jwks field value if set, zero value otherwise. -func (o *SsoProvider) GetJwks() string { - if o == nil || o.Jwks == nil { - var ret string - return ret - } - return *o.Jwks -} - -// GetJwksOk returns a tuple with the Jwks field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetJwksOk() (*string, bool) { - if o == nil || o.Jwks == nil { - return nil, false - } - return o.Jwks, true -} - -// HasJwks returns a boolean if a field has been set. -func (o *SsoProvider) HasJwks() bool { - if o != nil && o.Jwks != nil { - return true - } - - return false -} - -// SetJwks gets a reference to the given string and assigns it to the Jwks field. -func (o *SsoProvider) SetJwks(v string) { - o.Jwks = &v -} - -// GetValidIssuer returns the ValidIssuer field value if set, zero value otherwise. -func (o *SsoProvider) GetValidIssuer() string { - if o == nil || o.ValidIssuer == nil { - var ret string - return ret - } - return *o.ValidIssuer -} - -// GetValidIssuerOk returns a tuple with the ValidIssuer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProvider) GetValidIssuerOk() (*string, bool) { - if o == nil || o.ValidIssuer == nil { - return nil, false - } - return o.ValidIssuer, true -} - -// HasValidIssuer returns a boolean if a field has been set. -func (o *SsoProvider) HasValidIssuer() bool { - if o != nil && o.ValidIssuer != nil { - return true - } - - return false -} - -// SetValidIssuer gets a reference to the given string and assigns it to the ValidIssuer field. -func (o *SsoProvider) SetValidIssuer(v string) { - o.ValidIssuer = &v -} - -func (o SsoProvider) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.BaseUrl != nil { - toSerialize["base_url"] = o.BaseUrl - } - if o.TokenUrl != nil { - toSerialize["token_url"] = o.TokenUrl - } - if o.Jwks != nil { - toSerialize["jwks"] = o.Jwks - } - if o.ValidIssuer != nil { - toSerialize["valid_issuer"] = o.ValidIssuer - } - return json.Marshal(toSerialize) -} - -type NullableSsoProvider struct { - value *SsoProvider - isSet bool -} - -func (v NullableSsoProvider) Get() *SsoProvider { - return v.value -} - -func (v *NullableSsoProvider) Set(val *SsoProvider) { - v.value = val - v.isSet = true -} - -func (v NullableSsoProvider) IsSet() bool { - return v.isSet -} - -func (v *NullableSsoProvider) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSsoProvider(val *SsoProvider) *NullableSsoProvider { - return &NullableSsoProvider{value: val, isSet: true} -} - -func (v NullableSsoProvider) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSsoProvider) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go deleted file mode 100644 index d25e2b65..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_sso_provider_all_of.go +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SsoProviderAllOf struct for SsoProviderAllOf -type SsoProviderAllOf struct { - // name of the sso provider - Name *string `json:"name,omitempty"` - // base url - BaseUrl *string `json:"base_url,omitempty"` - TokenUrl *string `json:"token_url,omitempty"` - Jwks *string `json:"jwks,omitempty"` - ValidIssuer *string `json:"valid_issuer,omitempty"` -} - -// NewSsoProviderAllOf instantiates a new SsoProviderAllOf 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 NewSsoProviderAllOf() *SsoProviderAllOf { - this := SsoProviderAllOf{} - return &this -} - -// NewSsoProviderAllOfWithDefaults instantiates a new SsoProviderAllOf 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 NewSsoProviderAllOfWithDefaults() *SsoProviderAllOf { - this := SsoProviderAllOf{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SsoProviderAllOf) GetName() string { - if o == nil || o.Name == nil { - 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 *SsoProviderAllOf) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SsoProviderAllOf) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SsoProviderAllOf) SetName(v string) { - o.Name = &v -} - -// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. -func (o *SsoProviderAllOf) GetBaseUrl() string { - if o == nil || o.BaseUrl == nil { - var ret string - return ret - } - return *o.BaseUrl -} - -// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProviderAllOf) GetBaseUrlOk() (*string, bool) { - if o == nil || o.BaseUrl == nil { - return nil, false - } - return o.BaseUrl, true -} - -// HasBaseUrl returns a boolean if a field has been set. -func (o *SsoProviderAllOf) HasBaseUrl() bool { - if o != nil && o.BaseUrl != nil { - return true - } - - return false -} - -// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. -func (o *SsoProviderAllOf) SetBaseUrl(v string) { - o.BaseUrl = &v -} - -// GetTokenUrl returns the TokenUrl field value if set, zero value otherwise. -func (o *SsoProviderAllOf) GetTokenUrl() string { - if o == nil || o.TokenUrl == nil { - var ret string - return ret - } - return *o.TokenUrl -} - -// GetTokenUrlOk returns a tuple with the TokenUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProviderAllOf) GetTokenUrlOk() (*string, bool) { - if o == nil || o.TokenUrl == nil { - return nil, false - } - return o.TokenUrl, true -} - -// HasTokenUrl returns a boolean if a field has been set. -func (o *SsoProviderAllOf) HasTokenUrl() bool { - if o != nil && o.TokenUrl != nil { - return true - } - - return false -} - -// SetTokenUrl gets a reference to the given string and assigns it to the TokenUrl field. -func (o *SsoProviderAllOf) SetTokenUrl(v string) { - o.TokenUrl = &v -} - -// GetJwks returns the Jwks field value if set, zero value otherwise. -func (o *SsoProviderAllOf) GetJwks() string { - if o == nil || o.Jwks == nil { - var ret string - return ret - } - return *o.Jwks -} - -// GetJwksOk returns a tuple with the Jwks field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProviderAllOf) GetJwksOk() (*string, bool) { - if o == nil || o.Jwks == nil { - return nil, false - } - return o.Jwks, true -} - -// HasJwks returns a boolean if a field has been set. -func (o *SsoProviderAllOf) HasJwks() bool { - if o != nil && o.Jwks != nil { - return true - } - - return false -} - -// SetJwks gets a reference to the given string and assigns it to the Jwks field. -func (o *SsoProviderAllOf) SetJwks(v string) { - o.Jwks = &v -} - -// GetValidIssuer returns the ValidIssuer field value if set, zero value otherwise. -func (o *SsoProviderAllOf) GetValidIssuer() string { - if o == nil || o.ValidIssuer == nil { - var ret string - return ret - } - return *o.ValidIssuer -} - -// GetValidIssuerOk returns a tuple with the ValidIssuer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SsoProviderAllOf) GetValidIssuerOk() (*string, bool) { - if o == nil || o.ValidIssuer == nil { - return nil, false - } - return o.ValidIssuer, true -} - -// HasValidIssuer returns a boolean if a field has been set. -func (o *SsoProviderAllOf) HasValidIssuer() bool { - if o != nil && o.ValidIssuer != nil { - return true - } - - return false -} - -// SetValidIssuer gets a reference to the given string and assigns it to the ValidIssuer field. -func (o *SsoProviderAllOf) SetValidIssuer(v string) { - o.ValidIssuer = &v -} - -func (o SsoProviderAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Name != nil { - toSerialize["name"] = o.Name - } - if o.BaseUrl != nil { - toSerialize["base_url"] = o.BaseUrl - } - if o.TokenUrl != nil { - toSerialize["token_url"] = o.TokenUrl - } - if o.Jwks != nil { - toSerialize["jwks"] = o.Jwks - } - if o.ValidIssuer != nil { - toSerialize["valid_issuer"] = o.ValidIssuer - } - return json.Marshal(toSerialize) -} - -type NullableSsoProviderAllOf struct { - value *SsoProviderAllOf - isSet bool -} - -func (v NullableSsoProviderAllOf) Get() *SsoProviderAllOf { - return v.value -} - -func (v *NullableSsoProviderAllOf) Set(val *SsoProviderAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSsoProviderAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSsoProviderAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSsoProviderAllOf(val *SsoProviderAllOf) *NullableSsoProviderAllOf { - return &NullableSsoProviderAllOf{value: val, isSet: true} -} - -func (v NullableSsoProviderAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSsoProviderAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go deleted file mode 100644 index e0140ce9..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_billing_model.go +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaBillingModel Supported Kafka Billing Model -type SupportedKafkaBillingModel struct { - // Identifier for the Kafka billing model - Id string `json:"id"` - // AMS resource to be used. Accepted values: ['rhosak'] - AmsResource string `json:"ams_resource"` - // AMS product to be used. Accepted values: ['RHOSAK', 'RHOSAKTrial', 'RHOSAKEval'] - AmsProduct string `json:"ams_product"` - // List of AMS available billing models: Accepted values: ['marketplace', 'marketplace-rhm', 'marketplace-aws'] - AmsBillingModels []string `json:"ams_billing_models"` -} - -// NewSupportedKafkaBillingModel instantiates a new SupportedKafkaBillingModel 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 NewSupportedKafkaBillingModel(id string, amsResource string, amsProduct string, amsBillingModels []string) *SupportedKafkaBillingModel { - this := SupportedKafkaBillingModel{} - this.Id = id - this.AmsResource = amsResource - this.AmsProduct = amsProduct - this.AmsBillingModels = amsBillingModels - return &this -} - -// NewSupportedKafkaBillingModelWithDefaults instantiates a new SupportedKafkaBillingModel 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 NewSupportedKafkaBillingModelWithDefaults() *SupportedKafkaBillingModel { - this := SupportedKafkaBillingModel{} - return &this -} - -// GetId returns the Id field value -func (o *SupportedKafkaBillingModel) 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 *SupportedKafkaBillingModel) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *SupportedKafkaBillingModel) SetId(v string) { - o.Id = v -} - -// GetAmsResource returns the AmsResource field value -func (o *SupportedKafkaBillingModel) GetAmsResource() string { - if o == nil { - var ret string - return ret - } - - return o.AmsResource -} - -// GetAmsResourceOk returns a tuple with the AmsResource field value -// and a boolean to check if the value has been set. -func (o *SupportedKafkaBillingModel) GetAmsResourceOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AmsResource, true -} - -// SetAmsResource sets field value -func (o *SupportedKafkaBillingModel) SetAmsResource(v string) { - o.AmsResource = v -} - -// GetAmsProduct returns the AmsProduct field value -func (o *SupportedKafkaBillingModel) GetAmsProduct() string { - if o == nil { - var ret string - return ret - } - - return o.AmsProduct -} - -// GetAmsProductOk returns a tuple with the AmsProduct field value -// and a boolean to check if the value has been set. -func (o *SupportedKafkaBillingModel) GetAmsProductOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AmsProduct, true -} - -// SetAmsProduct sets field value -func (o *SupportedKafkaBillingModel) SetAmsProduct(v string) { - o.AmsProduct = v -} - -// GetAmsBillingModels returns the AmsBillingModels field value -func (o *SupportedKafkaBillingModel) GetAmsBillingModels() []string { - if o == nil { - var ret []string - return ret - } - - return o.AmsBillingModels -} - -// GetAmsBillingModelsOk returns a tuple with the AmsBillingModels field value -// and a boolean to check if the value has been set. -func (o *SupportedKafkaBillingModel) GetAmsBillingModelsOk() (*[]string, bool) { - if o == nil { - return nil, false - } - return &o.AmsBillingModels, true -} - -// SetAmsBillingModels sets field value -func (o *SupportedKafkaBillingModel) SetAmsBillingModels(v []string) { - o.AmsBillingModels = v -} - -func (o SupportedKafkaBillingModel) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["ams_resource"] = o.AmsResource - } - if true { - toSerialize["ams_product"] = o.AmsProduct - } - if true { - toSerialize["ams_billing_models"] = o.AmsBillingModels - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaBillingModel struct { - value *SupportedKafkaBillingModel - isSet bool -} - -func (v NullableSupportedKafkaBillingModel) Get() *SupportedKafkaBillingModel { - return v.value -} - -func (v *NullableSupportedKafkaBillingModel) Set(val *SupportedKafkaBillingModel) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaBillingModel) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaBillingModel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaBillingModel(val *SupportedKafkaBillingModel) *NullableSupportedKafkaBillingModel { - return &NullableSupportedKafkaBillingModel{value: val, isSet: true} -} - -func (v NullableSupportedKafkaBillingModel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaBillingModel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go deleted file mode 100644 index 2bc42c72..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_type.go +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaInstanceType Supported Kafka instance type -type SupportedKafkaInstanceType struct { - // Unique identifier of the Kafka instance type. - Id *string `json:"id,omitempty"` - // Human readable name of the supported Kafka instance type - DisplayName *string `json:"display_name,omitempty"` - // A list of available kafka billing models for the instance type. Each kafka billing model item has a unique 'id' - SupportedBillingModels []SupportedKafkaBillingModel `json:"supported_billing_models"` - // A list of Kafka instance sizes available for this instance type - Sizes *[]SupportedKafkaSize `json:"sizes,omitempty"` -} - -// NewSupportedKafkaInstanceType instantiates a new SupportedKafkaInstanceType 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 NewSupportedKafkaInstanceType(supportedBillingModels []SupportedKafkaBillingModel) *SupportedKafkaInstanceType { - this := SupportedKafkaInstanceType{} - this.SupportedBillingModels = supportedBillingModels - return &this -} - -// NewSupportedKafkaInstanceTypeWithDefaults instantiates a new SupportedKafkaInstanceType 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 NewSupportedKafkaInstanceTypeWithDefaults() *SupportedKafkaInstanceType { - this := SupportedKafkaInstanceType{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SupportedKafkaInstanceType) GetId() string { - if o == nil || o.Id == nil { - 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 *SupportedKafkaInstanceType) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SupportedKafkaInstanceType) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SupportedKafkaInstanceType) SetId(v string) { - o.Id = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *SupportedKafkaInstanceType) GetDisplayName() string { - if o == nil || o.DisplayName == nil { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaInstanceType) GetDisplayNameOk() (*string, bool) { - if o == nil || o.DisplayName == nil { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *SupportedKafkaInstanceType) HasDisplayName() bool { - if o != nil && o.DisplayName != nil { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *SupportedKafkaInstanceType) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetSupportedBillingModels returns the SupportedBillingModels field value -func (o *SupportedKafkaInstanceType) GetSupportedBillingModels() []SupportedKafkaBillingModel { - if o == nil { - var ret []SupportedKafkaBillingModel - return ret - } - - return o.SupportedBillingModels -} - -// GetSupportedBillingModelsOk returns a tuple with the SupportedBillingModels field value -// and a boolean to check if the value has been set. -func (o *SupportedKafkaInstanceType) GetSupportedBillingModelsOk() (*[]SupportedKafkaBillingModel, bool) { - if o == nil { - return nil, false - } - return &o.SupportedBillingModels, true -} - -// SetSupportedBillingModels sets field value -func (o *SupportedKafkaInstanceType) SetSupportedBillingModels(v []SupportedKafkaBillingModel) { - o.SupportedBillingModels = v -} - -// GetSizes returns the Sizes field value if set, zero value otherwise. -func (o *SupportedKafkaInstanceType) GetSizes() []SupportedKafkaSize { - if o == nil || o.Sizes == nil { - var ret []SupportedKafkaSize - return ret - } - return *o.Sizes -} - -// GetSizesOk returns a tuple with the Sizes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaInstanceType) GetSizesOk() (*[]SupportedKafkaSize, bool) { - if o == nil || o.Sizes == nil { - return nil, false - } - return o.Sizes, true -} - -// HasSizes returns a boolean if a field has been set. -func (o *SupportedKafkaInstanceType) HasSizes() bool { - if o != nil && o.Sizes != nil { - return true - } - - return false -} - -// SetSizes gets a reference to the given []SupportedKafkaSize and assigns it to the Sizes field. -func (o *SupportedKafkaInstanceType) SetSizes(v []SupportedKafkaSize) { - o.Sizes = &v -} - -func (o SupportedKafkaInstanceType) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.DisplayName != nil { - toSerialize["display_name"] = o.DisplayName - } - if true { - toSerialize["supported_billing_models"] = o.SupportedBillingModels - } - if o.Sizes != nil { - toSerialize["sizes"] = o.Sizes - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaInstanceType struct { - value *SupportedKafkaInstanceType - isSet bool -} - -func (v NullableSupportedKafkaInstanceType) Get() *SupportedKafkaInstanceType { - return v.value -} - -func (v *NullableSupportedKafkaInstanceType) Set(val *SupportedKafkaInstanceType) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaInstanceType) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaInstanceType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaInstanceType(val *SupportedKafkaInstanceType) *NullableSupportedKafkaInstanceType { - return &NullableSupportedKafkaInstanceType{value: val, isSet: true} -} - -func (v NullableSupportedKafkaInstanceType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaInstanceType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go deleted file mode 100644 index a84a3d64..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaInstanceTypesList struct for SupportedKafkaInstanceTypesList -type SupportedKafkaInstanceTypesList struct { - InstanceTypes *[]SupportedKafkaInstanceType `json:"instance_types,omitempty"` -} - -// NewSupportedKafkaInstanceTypesList instantiates a new SupportedKafkaInstanceTypesList 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 NewSupportedKafkaInstanceTypesList() *SupportedKafkaInstanceTypesList { - this := SupportedKafkaInstanceTypesList{} - return &this -} - -// NewSupportedKafkaInstanceTypesListWithDefaults instantiates a new SupportedKafkaInstanceTypesList 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 NewSupportedKafkaInstanceTypesListWithDefaults() *SupportedKafkaInstanceTypesList { - this := SupportedKafkaInstanceTypesList{} - return &this -} - -// GetInstanceTypes returns the InstanceTypes field value if set, zero value otherwise. -func (o *SupportedKafkaInstanceTypesList) GetInstanceTypes() []SupportedKafkaInstanceType { - if o == nil || o.InstanceTypes == nil { - var ret []SupportedKafkaInstanceType - return ret - } - return *o.InstanceTypes -} - -// GetInstanceTypesOk returns a tuple with the InstanceTypes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaInstanceTypesList) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool) { - if o == nil || o.InstanceTypes == nil { - return nil, false - } - return o.InstanceTypes, true -} - -// HasInstanceTypes returns a boolean if a field has been set. -func (o *SupportedKafkaInstanceTypesList) HasInstanceTypes() bool { - if o != nil && o.InstanceTypes != nil { - return true - } - - return false -} - -// SetInstanceTypes gets a reference to the given []SupportedKafkaInstanceType and assigns it to the InstanceTypes field. -func (o *SupportedKafkaInstanceTypesList) SetInstanceTypes(v []SupportedKafkaInstanceType) { - o.InstanceTypes = &v -} - -func (o SupportedKafkaInstanceTypesList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.InstanceTypes != nil { - toSerialize["instance_types"] = o.InstanceTypes - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaInstanceTypesList struct { - value *SupportedKafkaInstanceTypesList - isSet bool -} - -func (v NullableSupportedKafkaInstanceTypesList) Get() *SupportedKafkaInstanceTypesList { - return v.value -} - -func (v *NullableSupportedKafkaInstanceTypesList) Set(val *SupportedKafkaInstanceTypesList) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaInstanceTypesList) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaInstanceTypesList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaInstanceTypesList(val *SupportedKafkaInstanceTypesList) *NullableSupportedKafkaInstanceTypesList { - return &NullableSupportedKafkaInstanceTypesList{value: val, isSet: true} -} - -func (v NullableSupportedKafkaInstanceTypesList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaInstanceTypesList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go deleted file mode 100644 index 9a360187..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_instance_types_list_all_of.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaInstanceTypesListAllOf struct for SupportedKafkaInstanceTypesListAllOf -type SupportedKafkaInstanceTypesListAllOf struct { - InstanceTypes *[]SupportedKafkaInstanceType `json:"instance_types,omitempty"` -} - -// NewSupportedKafkaInstanceTypesListAllOf instantiates a new SupportedKafkaInstanceTypesListAllOf 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 NewSupportedKafkaInstanceTypesListAllOf() *SupportedKafkaInstanceTypesListAllOf { - this := SupportedKafkaInstanceTypesListAllOf{} - return &this -} - -// NewSupportedKafkaInstanceTypesListAllOfWithDefaults instantiates a new SupportedKafkaInstanceTypesListAllOf 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 NewSupportedKafkaInstanceTypesListAllOfWithDefaults() *SupportedKafkaInstanceTypesListAllOf { - this := SupportedKafkaInstanceTypesListAllOf{} - return &this -} - -// GetInstanceTypes returns the InstanceTypes field value if set, zero value otherwise. -func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypes() []SupportedKafkaInstanceType { - if o == nil || o.InstanceTypes == nil { - var ret []SupportedKafkaInstanceType - return ret - } - return *o.InstanceTypes -} - -// GetInstanceTypesOk returns a tuple with the InstanceTypes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaInstanceTypesListAllOf) GetInstanceTypesOk() (*[]SupportedKafkaInstanceType, bool) { - if o == nil || o.InstanceTypes == nil { - return nil, false - } - return o.InstanceTypes, true -} - -// HasInstanceTypes returns a boolean if a field has been set. -func (o *SupportedKafkaInstanceTypesListAllOf) HasInstanceTypes() bool { - if o != nil && o.InstanceTypes != nil { - return true - } - - return false -} - -// SetInstanceTypes gets a reference to the given []SupportedKafkaInstanceType and assigns it to the InstanceTypes field. -func (o *SupportedKafkaInstanceTypesListAllOf) SetInstanceTypes(v []SupportedKafkaInstanceType) { - o.InstanceTypes = &v -} - -func (o SupportedKafkaInstanceTypesListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.InstanceTypes != nil { - toSerialize["instance_types"] = o.InstanceTypes - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaInstanceTypesListAllOf struct { - value *SupportedKafkaInstanceTypesListAllOf - isSet bool -} - -func (v NullableSupportedKafkaInstanceTypesListAllOf) Get() *SupportedKafkaInstanceTypesListAllOf { - return v.value -} - -func (v *NullableSupportedKafkaInstanceTypesListAllOf) Set(val *SupportedKafkaInstanceTypesListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaInstanceTypesListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaInstanceTypesListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaInstanceTypesListAllOf(val *SupportedKafkaInstanceTypesListAllOf) *NullableSupportedKafkaInstanceTypesListAllOf { - return &NullableSupportedKafkaInstanceTypesListAllOf{value: val, isSet: true} -} - -func (v NullableSupportedKafkaInstanceTypesListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaInstanceTypesListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go deleted file mode 100644 index 858c649b..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size.go +++ /dev/null @@ -1,752 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaSize Supported Kafka Size -type SupportedKafkaSize struct { - // Unique identifier of this Kafka instance size. - Id *string `json:"id,omitempty"` - // Display name of this Kafka instance size. - DisplayName *string `json:"display_name,omitempty"` - IngressThroughputPerSec *SupportedKafkaSizeBytesValueItem `json:"ingress_throughput_per_sec,omitempty"` - EgressThroughputPerSec *SupportedKafkaSizeBytesValueItem `json:"egress_throughput_per_sec,omitempty"` - // Maximum amount of total connections available to this Kafka instance size. - TotalMaxConnections *int32 `json:"total_max_connections,omitempty"` - MaxDataRetentionSize *SupportedKafkaSizeBytesValueItem `json:"max_data_retention_size,omitempty"` - // Maximum amount of total partitions available to this Kafka instance size. - MaxPartitions *int32 `json:"max_partitions,omitempty"` - // Maximum data retention period available to this Kafka instance size. - MaxDataRetentionPeriod *string `json:"max_data_retention_period,omitempty"` - // Maximium connection attempts per second available to this Kafka instance size. - MaxConnectionAttemptsPerSec *int32 `json:"max_connection_attempts_per_sec,omitempty"` - MaxMessageSize *SupportedKafkaSizeBytesValueItem `json:"max_message_size,omitempty"` - // Minimum number of in-sync replicas. - MinInSyncReplicas *int32 `json:"min_in_sync_replicas,omitempty"` - // Replication factor available to this Kafka instance size. - ReplicationFactor *int32 `json:"replication_factor,omitempty"` - // List of Availability Zone modes that this Kafka instance size supports. The possible values are \"single\", \"multi\". - SupportedAzModes *[]string `json:"supported_az_modes,omitempty"` - // The limit lifespan of the kafka instance in seconds. If not specified then the instance never expires. - LifespanSeconds NullableInt32 `json:"lifespan_seconds,omitempty"` - // Quota consumed by this Kafka instance size. - QuotaConsumed *int32 `json:"quota_consumed,omitempty"` - // Quota type used by this Kafka instance size. This is now deprecated, please refer to supported_billing_models at instance-type level instead. - QuotaType *string `json:"quota_type,omitempty"` - // Data plane cluster capacity consumed by this Kafka instance size. - CapacityConsumed *int32 `json:"capacity_consumed,omitempty"` - // Maturity level of the size. Can be \"stable\" or \"preview\". - MaturityStatus *string `json:"maturity_status,omitempty"` -} - -// NewSupportedKafkaSize instantiates a new SupportedKafkaSize 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 NewSupportedKafkaSize() *SupportedKafkaSize { - this := SupportedKafkaSize{} - return &this -} - -// NewSupportedKafkaSizeWithDefaults instantiates a new SupportedKafkaSize 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 NewSupportedKafkaSizeWithDefaults() *SupportedKafkaSize { - this := SupportedKafkaSize{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetId() string { - if o == nil || o.Id == nil { - 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 *SupportedKafkaSize) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasId() bool { - if o != nil && o.Id != nil { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SupportedKafkaSize) SetId(v string) { - o.Id = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetDisplayName() string { - if o == nil || o.DisplayName == nil { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetDisplayNameOk() (*string, bool) { - if o == nil || o.DisplayName == nil { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasDisplayName() bool { - if o != nil && o.DisplayName != nil { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *SupportedKafkaSize) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetIngressThroughputPerSec returns the IngressThroughputPerSec field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetIngressThroughputPerSec() SupportedKafkaSizeBytesValueItem { - if o == nil || o.IngressThroughputPerSec == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.IngressThroughputPerSec -} - -// GetIngressThroughputPerSecOk returns a tuple with the IngressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetIngressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.IngressThroughputPerSec == nil { - return nil, false - } - return o.IngressThroughputPerSec, true -} - -// HasIngressThroughputPerSec returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasIngressThroughputPerSec() bool { - if o != nil && o.IngressThroughputPerSec != nil { - return true - } - - return false -} - -// SetIngressThroughputPerSec gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the IngressThroughputPerSec field. -func (o *SupportedKafkaSize) SetIngressThroughputPerSec(v SupportedKafkaSizeBytesValueItem) { - o.IngressThroughputPerSec = &v -} - -// GetEgressThroughputPerSec returns the EgressThroughputPerSec field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetEgressThroughputPerSec() SupportedKafkaSizeBytesValueItem { - if o == nil || o.EgressThroughputPerSec == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.EgressThroughputPerSec -} - -// GetEgressThroughputPerSecOk returns a tuple with the EgressThroughputPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetEgressThroughputPerSecOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.EgressThroughputPerSec == nil { - return nil, false - } - return o.EgressThroughputPerSec, true -} - -// HasEgressThroughputPerSec returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasEgressThroughputPerSec() bool { - if o != nil && o.EgressThroughputPerSec != nil { - return true - } - - return false -} - -// SetEgressThroughputPerSec gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the EgressThroughputPerSec field. -func (o *SupportedKafkaSize) SetEgressThroughputPerSec(v SupportedKafkaSizeBytesValueItem) { - o.EgressThroughputPerSec = &v -} - -// GetTotalMaxConnections returns the TotalMaxConnections field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetTotalMaxConnections() int32 { - if o == nil || o.TotalMaxConnections == nil { - var ret int32 - return ret - } - return *o.TotalMaxConnections -} - -// GetTotalMaxConnectionsOk returns a tuple with the TotalMaxConnections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetTotalMaxConnectionsOk() (*int32, bool) { - if o == nil || o.TotalMaxConnections == nil { - return nil, false - } - return o.TotalMaxConnections, true -} - -// HasTotalMaxConnections returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasTotalMaxConnections() bool { - if o != nil && o.TotalMaxConnections != nil { - return true - } - - return false -} - -// SetTotalMaxConnections gets a reference to the given int32 and assigns it to the TotalMaxConnections field. -func (o *SupportedKafkaSize) SetTotalMaxConnections(v int32) { - o.TotalMaxConnections = &v -} - -// GetMaxDataRetentionSize returns the MaxDataRetentionSize field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaxDataRetentionSize() SupportedKafkaSizeBytesValueItem { - if o == nil || o.MaxDataRetentionSize == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.MaxDataRetentionSize -} - -// GetMaxDataRetentionSizeOk returns a tuple with the MaxDataRetentionSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaxDataRetentionSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.MaxDataRetentionSize == nil { - return nil, false - } - return o.MaxDataRetentionSize, true -} - -// HasMaxDataRetentionSize returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaxDataRetentionSize() bool { - if o != nil && o.MaxDataRetentionSize != nil { - return true - } - - return false -} - -// SetMaxDataRetentionSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxDataRetentionSize field. -func (o *SupportedKafkaSize) SetMaxDataRetentionSize(v SupportedKafkaSizeBytesValueItem) { - o.MaxDataRetentionSize = &v -} - -// GetMaxPartitions returns the MaxPartitions field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaxPartitions() int32 { - if o == nil || o.MaxPartitions == nil { - var ret int32 - return ret - } - return *o.MaxPartitions -} - -// GetMaxPartitionsOk returns a tuple with the MaxPartitions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaxPartitionsOk() (*int32, bool) { - if o == nil || o.MaxPartitions == nil { - return nil, false - } - return o.MaxPartitions, true -} - -// HasMaxPartitions returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaxPartitions() bool { - if o != nil && o.MaxPartitions != nil { - return true - } - - return false -} - -// SetMaxPartitions gets a reference to the given int32 and assigns it to the MaxPartitions field. -func (o *SupportedKafkaSize) SetMaxPartitions(v int32) { - o.MaxPartitions = &v -} - -// GetMaxDataRetentionPeriod returns the MaxDataRetentionPeriod field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaxDataRetentionPeriod() string { - if o == nil || o.MaxDataRetentionPeriod == nil { - var ret string - return ret - } - return *o.MaxDataRetentionPeriod -} - -// GetMaxDataRetentionPeriodOk returns a tuple with the MaxDataRetentionPeriod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaxDataRetentionPeriodOk() (*string, bool) { - if o == nil || o.MaxDataRetentionPeriod == nil { - return nil, false - } - return o.MaxDataRetentionPeriod, true -} - -// HasMaxDataRetentionPeriod returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaxDataRetentionPeriod() bool { - if o != nil && o.MaxDataRetentionPeriod != nil { - return true - } - - return false -} - -// SetMaxDataRetentionPeriod gets a reference to the given string and assigns it to the MaxDataRetentionPeriod field. -func (o *SupportedKafkaSize) SetMaxDataRetentionPeriod(v string) { - o.MaxDataRetentionPeriod = &v -} - -// GetMaxConnectionAttemptsPerSec returns the MaxConnectionAttemptsPerSec field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSec() int32 { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - var ret int32 - return ret - } - return *o.MaxConnectionAttemptsPerSec -} - -// GetMaxConnectionAttemptsPerSecOk returns a tuple with the MaxConnectionAttemptsPerSec field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaxConnectionAttemptsPerSecOk() (*int32, bool) { - if o == nil || o.MaxConnectionAttemptsPerSec == nil { - return nil, false - } - return o.MaxConnectionAttemptsPerSec, true -} - -// HasMaxConnectionAttemptsPerSec returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaxConnectionAttemptsPerSec() bool { - if o != nil && o.MaxConnectionAttemptsPerSec != nil { - return true - } - - return false -} - -// SetMaxConnectionAttemptsPerSec gets a reference to the given int32 and assigns it to the MaxConnectionAttemptsPerSec field. -func (o *SupportedKafkaSize) SetMaxConnectionAttemptsPerSec(v int32) { - o.MaxConnectionAttemptsPerSec = &v -} - -// GetMaxMessageSize returns the MaxMessageSize field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaxMessageSize() SupportedKafkaSizeBytesValueItem { - if o == nil || o.MaxMessageSize == nil { - var ret SupportedKafkaSizeBytesValueItem - return ret - } - return *o.MaxMessageSize -} - -// GetMaxMessageSizeOk returns a tuple with the MaxMessageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaxMessageSizeOk() (*SupportedKafkaSizeBytesValueItem, bool) { - if o == nil || o.MaxMessageSize == nil { - return nil, false - } - return o.MaxMessageSize, true -} - -// HasMaxMessageSize returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaxMessageSize() bool { - if o != nil && o.MaxMessageSize != nil { - return true - } - - return false -} - -// SetMaxMessageSize gets a reference to the given SupportedKafkaSizeBytesValueItem and assigns it to the MaxMessageSize field. -func (o *SupportedKafkaSize) SetMaxMessageSize(v SupportedKafkaSizeBytesValueItem) { - o.MaxMessageSize = &v -} - -// GetMinInSyncReplicas returns the MinInSyncReplicas field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMinInSyncReplicas() int32 { - if o == nil || o.MinInSyncReplicas == nil { - var ret int32 - return ret - } - return *o.MinInSyncReplicas -} - -// GetMinInSyncReplicasOk returns a tuple with the MinInSyncReplicas field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMinInSyncReplicasOk() (*int32, bool) { - if o == nil || o.MinInSyncReplicas == nil { - return nil, false - } - return o.MinInSyncReplicas, true -} - -// HasMinInSyncReplicas returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMinInSyncReplicas() bool { - if o != nil && o.MinInSyncReplicas != nil { - return true - } - - return false -} - -// SetMinInSyncReplicas gets a reference to the given int32 and assigns it to the MinInSyncReplicas field. -func (o *SupportedKafkaSize) SetMinInSyncReplicas(v int32) { - o.MinInSyncReplicas = &v -} - -// GetReplicationFactor returns the ReplicationFactor field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetReplicationFactor() int32 { - if o == nil || o.ReplicationFactor == nil { - var ret int32 - return ret - } - return *o.ReplicationFactor -} - -// GetReplicationFactorOk returns a tuple with the ReplicationFactor field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetReplicationFactorOk() (*int32, bool) { - if o == nil || o.ReplicationFactor == nil { - return nil, false - } - return o.ReplicationFactor, true -} - -// HasReplicationFactor returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasReplicationFactor() bool { - if o != nil && o.ReplicationFactor != nil { - return true - } - - return false -} - -// SetReplicationFactor gets a reference to the given int32 and assigns it to the ReplicationFactor field. -func (o *SupportedKafkaSize) SetReplicationFactor(v int32) { - o.ReplicationFactor = &v -} - -// GetSupportedAzModes returns the SupportedAzModes field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetSupportedAzModes() []string { - if o == nil || o.SupportedAzModes == nil { - var ret []string - return ret - } - return *o.SupportedAzModes -} - -// GetSupportedAzModesOk returns a tuple with the SupportedAzModes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetSupportedAzModesOk() (*[]string, bool) { - if o == nil || o.SupportedAzModes == nil { - return nil, false - } - return o.SupportedAzModes, true -} - -// HasSupportedAzModes returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasSupportedAzModes() bool { - if o != nil && o.SupportedAzModes != nil { - return true - } - - return false -} - -// SetSupportedAzModes gets a reference to the given []string and assigns it to the SupportedAzModes field. -func (o *SupportedKafkaSize) SetSupportedAzModes(v []string) { - o.SupportedAzModes = &v -} - -// GetLifespanSeconds returns the LifespanSeconds field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SupportedKafkaSize) GetLifespanSeconds() int32 { - if o == nil || o.LifespanSeconds.Get() == nil { - var ret int32 - return ret - } - return *o.LifespanSeconds.Get() -} - -// GetLifespanSecondsOk returns a tuple with the LifespanSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SupportedKafkaSize) GetLifespanSecondsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.LifespanSeconds.Get(), o.LifespanSeconds.IsSet() -} - -// HasLifespanSeconds returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasLifespanSeconds() bool { - if o != nil && o.LifespanSeconds.IsSet() { - return true - } - - return false -} - -// SetLifespanSeconds gets a reference to the given NullableInt32 and assigns it to the LifespanSeconds field. -func (o *SupportedKafkaSize) SetLifespanSeconds(v int32) { - o.LifespanSeconds.Set(&v) -} -// SetLifespanSecondsNil sets the value for LifespanSeconds to be an explicit nil -func (o *SupportedKafkaSize) SetLifespanSecondsNil() { - o.LifespanSeconds.Set(nil) -} - -// UnsetLifespanSeconds ensures that no value is present for LifespanSeconds, not even an explicit nil -func (o *SupportedKafkaSize) UnsetLifespanSeconds() { - o.LifespanSeconds.Unset() -} - -// GetQuotaConsumed returns the QuotaConsumed field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetQuotaConsumed() int32 { - if o == nil || o.QuotaConsumed == nil { - var ret int32 - return ret - } - return *o.QuotaConsumed -} - -// GetQuotaConsumedOk returns a tuple with the QuotaConsumed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetQuotaConsumedOk() (*int32, bool) { - if o == nil || o.QuotaConsumed == nil { - return nil, false - } - return o.QuotaConsumed, true -} - -// HasQuotaConsumed returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasQuotaConsumed() bool { - if o != nil && o.QuotaConsumed != nil { - return true - } - - return false -} - -// SetQuotaConsumed gets a reference to the given int32 and assigns it to the QuotaConsumed field. -func (o *SupportedKafkaSize) SetQuotaConsumed(v int32) { - o.QuotaConsumed = &v -} - -// GetQuotaType returns the QuotaType field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetQuotaType() string { - if o == nil || o.QuotaType == nil { - var ret string - return ret - } - return *o.QuotaType -} - -// GetQuotaTypeOk returns a tuple with the QuotaType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetQuotaTypeOk() (*string, bool) { - if o == nil || o.QuotaType == nil { - return nil, false - } - return o.QuotaType, true -} - -// HasQuotaType returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasQuotaType() bool { - if o != nil && o.QuotaType != nil { - return true - } - - return false -} - -// SetQuotaType gets a reference to the given string and assigns it to the QuotaType field. -func (o *SupportedKafkaSize) SetQuotaType(v string) { - o.QuotaType = &v -} - -// GetCapacityConsumed returns the CapacityConsumed field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetCapacityConsumed() int32 { - if o == nil || o.CapacityConsumed == nil { - var ret int32 - return ret - } - return *o.CapacityConsumed -} - -// GetCapacityConsumedOk returns a tuple with the CapacityConsumed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetCapacityConsumedOk() (*int32, bool) { - if o == nil || o.CapacityConsumed == nil { - return nil, false - } - return o.CapacityConsumed, true -} - -// HasCapacityConsumed returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasCapacityConsumed() bool { - if o != nil && o.CapacityConsumed != nil { - return true - } - - return false -} - -// SetCapacityConsumed gets a reference to the given int32 and assigns it to the CapacityConsumed field. -func (o *SupportedKafkaSize) SetCapacityConsumed(v int32) { - o.CapacityConsumed = &v -} - -// GetMaturityStatus returns the MaturityStatus field value if set, zero value otherwise. -func (o *SupportedKafkaSize) GetMaturityStatus() string { - if o == nil || o.MaturityStatus == nil { - var ret string - return ret - } - return *o.MaturityStatus -} - -// GetMaturityStatusOk returns a tuple with the MaturityStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSize) GetMaturityStatusOk() (*string, bool) { - if o == nil || o.MaturityStatus == nil { - return nil, false - } - return o.MaturityStatus, true -} - -// HasMaturityStatus returns a boolean if a field has been set. -func (o *SupportedKafkaSize) HasMaturityStatus() bool { - if o != nil && o.MaturityStatus != nil { - return true - } - - return false -} - -// SetMaturityStatus gets a reference to the given string and assigns it to the MaturityStatus field. -func (o *SupportedKafkaSize) SetMaturityStatus(v string) { - o.MaturityStatus = &v -} - -func (o SupportedKafkaSize) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Id != nil { - toSerialize["id"] = o.Id - } - if o.DisplayName != nil { - toSerialize["display_name"] = o.DisplayName - } - if o.IngressThroughputPerSec != nil { - toSerialize["ingress_throughput_per_sec"] = o.IngressThroughputPerSec - } - if o.EgressThroughputPerSec != nil { - toSerialize["egress_throughput_per_sec"] = o.EgressThroughputPerSec - } - if o.TotalMaxConnections != nil { - toSerialize["total_max_connections"] = o.TotalMaxConnections - } - if o.MaxDataRetentionSize != nil { - toSerialize["max_data_retention_size"] = o.MaxDataRetentionSize - } - if o.MaxPartitions != nil { - toSerialize["max_partitions"] = o.MaxPartitions - } - if o.MaxDataRetentionPeriod != nil { - toSerialize["max_data_retention_period"] = o.MaxDataRetentionPeriod - } - if o.MaxConnectionAttemptsPerSec != nil { - toSerialize["max_connection_attempts_per_sec"] = o.MaxConnectionAttemptsPerSec - } - if o.MaxMessageSize != nil { - toSerialize["max_message_size"] = o.MaxMessageSize - } - if o.MinInSyncReplicas != nil { - toSerialize["min_in_sync_replicas"] = o.MinInSyncReplicas - } - if o.ReplicationFactor != nil { - toSerialize["replication_factor"] = o.ReplicationFactor - } - if o.SupportedAzModes != nil { - toSerialize["supported_az_modes"] = o.SupportedAzModes - } - if o.LifespanSeconds.IsSet() { - toSerialize["lifespan_seconds"] = o.LifespanSeconds.Get() - } - if o.QuotaConsumed != nil { - toSerialize["quota_consumed"] = o.QuotaConsumed - } - if o.QuotaType != nil { - toSerialize["quota_type"] = o.QuotaType - } - if o.CapacityConsumed != nil { - toSerialize["capacity_consumed"] = o.CapacityConsumed - } - if o.MaturityStatus != nil { - toSerialize["maturity_status"] = o.MaturityStatus - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaSize struct { - value *SupportedKafkaSize - isSet bool -} - -func (v NullableSupportedKafkaSize) Get() *SupportedKafkaSize { - return v.value -} - -func (v *NullableSupportedKafkaSize) Set(val *SupportedKafkaSize) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaSize) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaSize) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaSize(val *SupportedKafkaSize) *NullableSupportedKafkaSize { - return &NullableSupportedKafkaSize{value: val, isSet: true} -} - -func (v NullableSupportedKafkaSize) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaSize) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go deleted file mode 100644 index ad7c9388..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_supported_kafka_size_bytes_value_item.go +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// SupportedKafkaSizeBytesValueItem struct for SupportedKafkaSizeBytesValueItem -type SupportedKafkaSizeBytesValueItem struct { - Bytes *int64 `json:"bytes,omitempty"` -} - -// NewSupportedKafkaSizeBytesValueItem instantiates a new SupportedKafkaSizeBytesValueItem 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 NewSupportedKafkaSizeBytesValueItem() *SupportedKafkaSizeBytesValueItem { - this := SupportedKafkaSizeBytesValueItem{} - return &this -} - -// NewSupportedKafkaSizeBytesValueItemWithDefaults instantiates a new SupportedKafkaSizeBytesValueItem 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 NewSupportedKafkaSizeBytesValueItemWithDefaults() *SupportedKafkaSizeBytesValueItem { - this := SupportedKafkaSizeBytesValueItem{} - return &this -} - -// GetBytes returns the Bytes field value if set, zero value otherwise. -func (o *SupportedKafkaSizeBytesValueItem) GetBytes() int64 { - if o == nil || o.Bytes == nil { - var ret int64 - return ret - } - return *o.Bytes -} - -// GetBytesOk returns a tuple with the Bytes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SupportedKafkaSizeBytesValueItem) GetBytesOk() (*int64, bool) { - if o == nil || o.Bytes == nil { - return nil, false - } - return o.Bytes, true -} - -// HasBytes returns a boolean if a field has been set. -func (o *SupportedKafkaSizeBytesValueItem) HasBytes() bool { - if o != nil && o.Bytes != nil { - return true - } - - return false -} - -// SetBytes gets a reference to the given int64 and assigns it to the Bytes field. -func (o *SupportedKafkaSizeBytesValueItem) SetBytes(v int64) { - o.Bytes = &v -} - -func (o SupportedKafkaSizeBytesValueItem) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Bytes != nil { - toSerialize["bytes"] = o.Bytes - } - return json.Marshal(toSerialize) -} - -type NullableSupportedKafkaSizeBytesValueItem struct { - value *SupportedKafkaSizeBytesValueItem - isSet bool -} - -func (v NullableSupportedKafkaSizeBytesValueItem) Get() *SupportedKafkaSizeBytesValueItem { - return v.value -} - -func (v *NullableSupportedKafkaSizeBytesValueItem) Set(val *SupportedKafkaSizeBytesValueItem) { - v.value = val - v.isSet = true -} - -func (v NullableSupportedKafkaSizeBytesValueItem) IsSet() bool { - return v.isSet -} - -func (v *NullableSupportedKafkaSizeBytesValueItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSupportedKafkaSizeBytesValueItem(val *SupportedKafkaSizeBytesValueItem) *NullableSupportedKafkaSizeBytesValueItem { - return &NullableSupportedKafkaSizeBytesValueItem{value: val, isSet: true} -} - -func (v NullableSupportedKafkaSizeBytesValueItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSupportedKafkaSizeBytesValueItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go deleted file mode 100644 index a391517d..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_values.go +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// Values struct for Values -type Values struct { - Timestamp *int64 `json:"timestamp,omitempty"` - Value float64 `json:"value"` -} - -// NewValues instantiates a new Values 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 NewValues(value float64) *Values { - this := Values{} - this.Value = value - return &this -} - -// NewValuesWithDefaults instantiates a new Values 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 NewValuesWithDefaults() *Values { - this := Values{} - return &this -} - -// GetTimestamp returns the Timestamp field value if set, zero value otherwise. -func (o *Values) GetTimestamp() int64 { - if o == nil || o.Timestamp == nil { - var ret int64 - return ret - } - return *o.Timestamp -} - -// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Values) GetTimestampOk() (*int64, bool) { - if o == nil || o.Timestamp == nil { - return nil, false - } - return o.Timestamp, true -} - -// HasTimestamp returns a boolean if a field has been set. -func (o *Values) HasTimestamp() bool { - if o != nil && o.Timestamp != nil { - return true - } - - return false -} - -// SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field. -func (o *Values) SetTimestamp(v int64) { - o.Timestamp = &v -} - -// GetValue returns the Value field value -func (o *Values) GetValue() float64 { - if o == nil { - var ret float64 - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *Values) GetValueOk() (*float64, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *Values) SetValue(v float64) { - o.Value = v -} - -func (o Values) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Timestamp != nil { - toSerialize["timestamp"] = o.Timestamp - } - if true { - toSerialize["value"] = o.Value - } - return json.Marshal(toSerialize) -} - -type NullableValues struct { - value *Values - isSet bool -} - -func (v NullableValues) Get() *Values { - return v.value -} - -func (v *NullableValues) Set(val *Values) { - v.value = val - v.isSet = true -} - -func (v NullableValues) IsSet() bool { - return v.isSet -} - -func (v *NullableValues) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableValues(val *Values) *NullableValues { - return &NullableValues{value: val, isSet: true} -} - -func (v NullableValues) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableValues) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go deleted file mode 100644 index 316b1c5f..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata.go +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// VersionMetadata struct for VersionMetadata -type VersionMetadata struct { - Id string `json:"id"` - Kind string `json:"kind"` - Href string `json:"href"` - ServerVersion *string `json:"server_version,omitempty"` - Collections *[]ObjectReference `json:"collections,omitempty"` -} - -// NewVersionMetadata instantiates a new VersionMetadata 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 NewVersionMetadata(id string, kind string, href string) *VersionMetadata { - this := VersionMetadata{} - this.Id = id - this.Kind = kind - this.Href = href - return &this -} - -// NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 NewVersionMetadataWithDefaults() *VersionMetadata { - this := VersionMetadata{} - return &this -} - -// GetId returns the Id field value -func (o *VersionMetadata) 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 *VersionMetadata) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *VersionMetadata) SetId(v string) { - o.Id = v -} - -// GetKind returns the Kind field value -func (o *VersionMetadata) GetKind() string { - if o == nil { - var ret string - return ret - } - - return o.Kind -} - -// GetKindOk returns a tuple with the Kind field value -// and a boolean to check if the value has been set. -func (o *VersionMetadata) GetKindOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Kind, true -} - -// SetKind sets field value -func (o *VersionMetadata) SetKind(v string) { - o.Kind = v -} - -// GetHref returns the Href field value -func (o *VersionMetadata) GetHref() string { - if o == nil { - var ret string - return ret - } - - return o.Href -} - -// GetHrefOk returns a tuple with the Href field value -// and a boolean to check if the value has been set. -func (o *VersionMetadata) GetHrefOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Href, true -} - -// SetHref sets field value -func (o *VersionMetadata) SetHref(v string) { - o.Href = v -} - -// GetServerVersion returns the ServerVersion field value if set, zero value otherwise. -func (o *VersionMetadata) GetServerVersion() string { - if o == nil || o.ServerVersion == nil { - var ret string - return ret - } - return *o.ServerVersion -} - -// GetServerVersionOk returns a tuple with the ServerVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VersionMetadata) GetServerVersionOk() (*string, bool) { - if o == nil || o.ServerVersion == nil { - return nil, false - } - return o.ServerVersion, true -} - -// HasServerVersion returns a boolean if a field has been set. -func (o *VersionMetadata) HasServerVersion() bool { - if o != nil && o.ServerVersion != nil { - return true - } - - return false -} - -// SetServerVersion gets a reference to the given string and assigns it to the ServerVersion field. -func (o *VersionMetadata) SetServerVersion(v string) { - o.ServerVersion = &v -} - -// GetCollections returns the Collections field value if set, zero value otherwise. -func (o *VersionMetadata) GetCollections() []ObjectReference { - if o == nil || o.Collections == nil { - var ret []ObjectReference - return ret - } - return *o.Collections -} - -// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VersionMetadata) GetCollectionsOk() (*[]ObjectReference, bool) { - if o == nil || o.Collections == nil { - return nil, false - } - return o.Collections, true -} - -// HasCollections returns a boolean if a field has been set. -func (o *VersionMetadata) HasCollections() bool { - if o != nil && o.Collections != nil { - return true - } - - return false -} - -// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. -func (o *VersionMetadata) SetCollections(v []ObjectReference) { - o.Collections = &v -} - -func (o VersionMetadata) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } - if true { - toSerialize["kind"] = o.Kind - } - if true { - toSerialize["href"] = o.Href - } - if o.ServerVersion != nil { - toSerialize["server_version"] = o.ServerVersion - } - if o.Collections != nil { - toSerialize["collections"] = o.Collections - } - return json.Marshal(toSerialize) -} - -type NullableVersionMetadata struct { - value *VersionMetadata - isSet bool -} - -func (v NullableVersionMetadata) Get() *VersionMetadata { - return v.value -} - -func (v *NullableVersionMetadata) Set(val *VersionMetadata) { - v.value = val - v.isSet = true -} - -func (v NullableVersionMetadata) IsSet() bool { - return v.isSet -} - -func (v *NullableVersionMetadata) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVersionMetadata(val *VersionMetadata) *NullableVersionMetadata { - return &NullableVersionMetadata{value: val, isSet: true} -} - -func (v NullableVersionMetadata) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVersionMetadata) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go b/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go deleted file mode 100644 index bb33ea43..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/model_version_metadata_all_of.go +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" -) - -// VersionMetadataAllOf struct for VersionMetadataAllOf -type VersionMetadataAllOf struct { - ServerVersion *string `json:"server_version,omitempty"` - Collections *[]ObjectReference `json:"collections,omitempty"` -} - -// NewVersionMetadataAllOf instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOf() *VersionMetadataAllOf { - this := VersionMetadataAllOf{} - return &this -} - -// NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf 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 NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf { - this := VersionMetadataAllOf{} - return &this -} - -// GetServerVersion returns the ServerVersion field value if set, zero value otherwise. -func (o *VersionMetadataAllOf) GetServerVersion() string { - if o == nil || o.ServerVersion == nil { - var ret string - return ret - } - return *o.ServerVersion -} - -// GetServerVersionOk returns a tuple with the ServerVersion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VersionMetadataAllOf) GetServerVersionOk() (*string, bool) { - if o == nil || o.ServerVersion == nil { - return nil, false - } - return o.ServerVersion, true -} - -// HasServerVersion returns a boolean if a field has been set. -func (o *VersionMetadataAllOf) HasServerVersion() bool { - if o != nil && o.ServerVersion != nil { - return true - } - - return false -} - -// SetServerVersion gets a reference to the given string and assigns it to the ServerVersion field. -func (o *VersionMetadataAllOf) SetServerVersion(v string) { - o.ServerVersion = &v -} - -// GetCollections returns the Collections field value if set, zero value otherwise. -func (o *VersionMetadataAllOf) GetCollections() []ObjectReference { - if o == nil || o.Collections == nil { - var ret []ObjectReference - return ret - } - return *o.Collections -} - -// GetCollectionsOk returns a tuple with the Collections field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VersionMetadataAllOf) GetCollectionsOk() (*[]ObjectReference, bool) { - if o == nil || o.Collections == nil { - return nil, false - } - return o.Collections, true -} - -// HasCollections returns a boolean if a field has been set. -func (o *VersionMetadataAllOf) HasCollections() bool { - if o != nil && o.Collections != nil { - return true - } - - return false -} - -// SetCollections gets a reference to the given []ObjectReference and assigns it to the Collections field. -func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference) { - o.Collections = &v -} - -func (o VersionMetadataAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.ServerVersion != nil { - toSerialize["server_version"] = o.ServerVersion - } - if o.Collections != nil { - toSerialize["collections"] = o.Collections - } - return json.Marshal(toSerialize) -} - -type NullableVersionMetadataAllOf struct { - value *VersionMetadataAllOf - isSet bool -} - -func (v NullableVersionMetadataAllOf) Get() *VersionMetadataAllOf { - return v.value -} - -func (v *NullableVersionMetadataAllOf) Set(val *VersionMetadataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableVersionMetadataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableVersionMetadataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVersionMetadataAllOf(val *VersionMetadataAllOf) *NullableVersionMetadataAllOf { - return &NullableVersionMetadataAllOf{value: val, isSet: true} -} - -func (v NullableVersionMetadataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVersionMetadataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/response.go b/app-services-sdk-go/kafkamgmt/apiv1/client/response.go deleted file mode 100644 index 5cf36a67..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/response.go +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go b/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go deleted file mode 100644 index 0d000357..00000000 --- a/app-services-sdk-go/kafkamgmt/apiv1/client/utils.go +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Kafka Management API - * - * Kafka Management API is a REST API to manage Kafka instances - * - * API version: 1.13.0 - * Contact: rhosak-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package kafkamgmtclient - -import ( - "encoding/json" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go b/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go index bd23c799..4c2752cd 100644 --- a/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go +++ b/app-services-sdk-go/kafkamgmt/apiv1/error/errors.go @@ -126,7 +126,7 @@ const ( // Failed to check quota ERROR_121 string = "KAFKAS-MGMT-121" - // Too Many requests + // Too many requests ERROR_429 string = "KAFKAS-MGMT-429" // An unexpected error happened, please check the log of the service for details diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/.gitignore b/app-services-sdk-js/packages/account-management-sdk/src/generated/.gitignore new file mode 100644 index 00000000..149b5765 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/.npmignore b/app-services-sdk-js/packages/account-management-sdk/src/generated/.npmignore new file mode 100644 index 00000000..999d88df --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore b/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator-ignore similarity index 100% rename from app-services-sdk-go/kafkamgmt/apiv1/client/.openapi-generator-ignore rename to app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator-ignore diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/FILES b/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/FILES new file mode 100644 index 00000000..f2f94696 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/FILES @@ -0,0 +1,209 @@ +.gitignore +.npmignore +.openapi-generator-ignore +README.md +api.ts +api/app-services-api.ts +api/default-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +model/access-review-response.ts +model/access-review.ts +model/access-token-cfg.ts +model/account-all-of.ts +model/account-group-all-of.ts +model/account-group-assignment-all-of.ts +model/account-group-assignment-list-all-of.ts +model/account-group-assignment-list.ts +model/account-group-assignment.ts +model/account-group-list-all-of.ts +model/account-group-list.ts +model/account-group-request-all-of.ts +model/account-group-request.ts +model/account-group.ts +model/account-list-all-of.ts +model/account-list.ts +model/account-patch-request.ts +model/account-reference-all-of.ts +model/account-reference.ts +model/account.ts +model/capability-all-of.ts +model/capability-review-request.ts +model/capability-review.ts +model/capability.ts +model/certificate-serial.ts +model/certificate.ts +model/certificates-request.ts +model/cloud-account.ts +model/cloud-resource-all-of.ts +model/cloud-resource-list-all-of.ts +model/cloud-resource-list.ts +model/cloud-resource.ts +model/cluster-authorization-request.ts +model/cluster-authorization-response.ts +model/cluster-metrics-nodes.ts +model/cluster-registration-request.ts +model/cluster-registration-response.ts +model/cluster-resource-total.ts +model/cluster-resource.ts +model/cluster-transfer-all-of.ts +model/cluster-transfer-list-all-of.ts +model/cluster-transfer-list.ts +model/cluster-transfer-patch-request.ts +model/cluster-transfer-request.ts +model/cluster-transfer.ts +model/cluster-upgrade.ts +model/consumed-quota-all-of.ts +model/consumed-quota-list-all-of.ts +model/consumed-quota-list.ts +model/consumed-quota.ts +model/deleted-subscription-all-of.ts +model/deleted-subscription-list-all-of.ts +model/deleted-subscription-list.ts +model/deleted-subscription.ts +model/ephemeral-resource-quota.ts +model/error-all-of.ts +model/error-list-all-of.ts +model/error-list.ts +model/excess-resource-all-of.ts +model/excess-resource.ts +model/export-control-review-request.ts +model/export-control-review.ts +model/feature-review-response.ts +model/feature-review.ts +model/feature-toggle-all-of.ts +model/feature-toggle-query-request-all-of.ts +model/feature-toggle-query-request.ts +model/feature-toggle.ts +model/index.ts +model/label-all-of.ts +model/label-list-all-of.ts +model/label-list.ts +model/label.ts +model/landing-page-ctlitem-shape.ts +model/landing-page-ctlitem.ts +model/landing-page-estate-item.ts +model/landing-page-link-shape.ts +model/list.ts +model/metric-all-of.ts +model/metric.ts +model/metrics-list-all-of.ts +model/metrics-list.ts +model/model-error.ts +model/notification-contact-create-request.ts +model/notification-request.ts +model/object-reference.ts +model/one-metric.ts +model/organization-all-of.ts +model/organization-list-all-of.ts +model/organization-list.ts +model/organization-patch-request.ts +model/organization.ts +model/permission-all-of.ts +model/permission-list-all-of.ts +model/permission-list.ts +model/permission.ts +model/plan-all-of.ts +model/plan-list-all-of.ts +model/plan-list.ts +model/plan.ts +model/pull-secret-request.ts +model/quota-all-of.ts +model/quota-cost-all-of.ts +model/quota-cost-list-all-of.ts +model/quota-cost-list.ts +model/quota-cost.ts +model/quota-list-all-of.ts +model/quota-list.ts +model/quota-rules-all-of.ts +model/quota-rules-list-all-of.ts +model/quota-rules-list.ts +model/quota-rules.ts +model/quota.ts +model/registry-all-of.ts +model/registry-create-request.ts +model/registry-credential-all-of.ts +model/registry-credential-list-all-of.ts +model/registry-credential-list.ts +model/registry-credential-patch-request.ts +model/registry-credential.ts +model/registry-list-all-of.ts +model/registry-list.ts +model/registry-request.ts +model/registry.ts +model/related-resource-all-of.ts +model/related-resource.ts +model/reserved-resource-all-of.ts +model/reserved-resource-list-all-of.ts +model/reserved-resource-list.ts +model/reserved-resource-patch-request.ts +model/reserved-resource.ts +model/resource-quota-all-of.ts +model/resource-quota-list-all-of.ts +model/resource-quota-list.ts +model/resource-quota-request.ts +model/resource-quota.ts +model/resource-review-request.ts +model/resource-review.ts +model/role-all-of.ts +model/role-binding-all-of.ts +model/role-binding-create-request.ts +model/role-binding-list-all-of.ts +model/role-binding-list.ts +model/role-binding-request.ts +model/role-binding.ts +model/role-list-all-of.ts +model/role-list.ts +model/role.ts +model/self-access-review.ts +model/self-entitlement-status.ts +model/self-feature-review.ts +model/self-resource-review-request.ts +model/self-resource-review.ts +model/self-service-landing-page-schema-config-try-learn.ts +model/self-service-landing-page-schema-estate.ts +model/self-service-landing-page-schema.ts +model/self-terms-review.ts +model/sku-list-all-of.ts +model/sku-list.ts +model/sku-rules-all-of.ts +model/sku-rules-list-all-of.ts +model/sku-rules-list.ts +model/sku-rules.ts +model/sku.ts +model/skuall-of.ts +model/subscription-all-of.ts +model/subscription-common-fields-all-of.ts +model/subscription-common-fields.ts +model/subscription-create-request.ts +model/subscription-list-all-of.ts +model/subscription-list.ts +model/subscription-metric-all-of.ts +model/subscription-metric-list-all-of.ts +model/subscription-metric-list.ts +model/subscription-metric.ts +model/subscription-patch-request.ts +model/subscription-role-binding-all-of.ts +model/subscription-role-binding-create-request.ts +model/subscription-role-binding-list-all-of.ts +model/subscription-role-binding-list.ts +model/subscription-role-binding.ts +model/subscription.ts +model/summary-all-of.ts +model/summary-metrics-all-of.ts +model/summary-metrics.ts +model/summary-vector-all-of.ts +model/summary-vector.ts +model/summary.ts +model/support-cases-created-response.ts +model/support-cases-request.ts +model/template-parameter.ts +model/terms-review-response.ts +model/terms-review.ts +model/token-authorization-request.ts +model/token-authorization-response.ts +package.json +tsconfig.json diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/VERSION b/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/VERSION new file mode 100644 index 00000000..1e20ec35 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.4.0 \ No newline at end of file diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/README.md b/app-services-sdk-js/packages/account-management-sdk/src/generated/README.md new file mode 100644 index 00000000..e7075933 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/README.md @@ -0,0 +1,45 @@ +## @0.0.1 + +This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: + +Environment +* Node.js +* Webpack +* Browserify + +Language level +* ES5 - you must have a Promises/A+ library installed +* ES6 + +Module system +* CommonJS +* ES6 module system + +It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)) + +### Building + +To build and compile the typescript sources to javascript use: +``` +npm install +npm run build +``` + +### Publishing + +First build the package then run ```npm publish``` + +### Consuming + +navigate to the folder of your consuming project and run one of the following commands. + +_published:_ + +``` +npm install @0.0.1 --save +``` + +_unPublished (not recommended):_ + +``` +npm install PATH_TO_GENERATED_PACKAGE --save diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/api.ts b/app-services-sdk-js/packages/account-management-sdk/src/generated/api.ts new file mode 100644 index 00000000..2812ce90 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/api.ts @@ -0,0 +1,19 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Account Management Service API + * Manage user subscriptions and clusters + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * from './api/app-services-api'; +export * from './api/default-api'; + diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/api/app-services-api.ts b/app-services-sdk-js/packages/account-management-sdk/src/generated/api/app-services-api.ts new file mode 100644 index 00000000..25ed4275 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/api/app-services-api.ts @@ -0,0 +1,434 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Account Management Service API + * Manage user subscriptions and clusters + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AccessTokenCfg } from '../model'; +// @ts-ignore +import { Account } from '../model'; +// @ts-ignore +import { QuotaCostList } from '../model'; +// @ts-ignore +import { SelfTermsReview } from '../model'; +// @ts-ignore +import { TermsReviewResponse } from '../model'; +/** + * AppServicesApi - axios parameter creator + * @export + */ +export const AppServicesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Return access token generated from registries in docker format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccessTokenPost: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/access_token`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get the authenticated account + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CurrentAccountGet: async (fetchLabels?: boolean, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/current_account`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication AccessToken required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a summary of quota cost + * @param {string} orgId The id of organization + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet: async (orgId: string, search?: string, fetchRelatedResources?: boolean, forceRecalc?: boolean, fetchCloudAccounts?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet', 'orgId', orgId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/quota_cost` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (fetchRelatedResources !== undefined) { + localVarQueryParameter['fetchRelatedResources'] = fetchRelatedResources; + } + + if (forceRecalc !== undefined) { + localVarQueryParameter['forceRecalc'] = forceRecalc; + } + + if (fetchCloudAccounts !== undefined) { + localVarQueryParameter['fetchCloudAccounts'] = fetchCloudAccounts; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review your status of Terms + * @param {SelfTermsReview} selfTermsReview Data to check self terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1SelfTermsReviewPost: async (selfTermsReview: SelfTermsReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'selfTermsReview' is not null or undefined + assertParamExists('apiAuthorizationsV1SelfTermsReviewPost', 'selfTermsReview', selfTermsReview) + const localVarPath = `/api/authorizations/v1/self_terms_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(selfTermsReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * AppServicesApi - functional programming interface + * @export + */ +export const AppServicesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = AppServicesApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Return access token generated from registries in docker format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccessTokenPost(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Get the authenticated account + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1CurrentAccountGet(fetchLabels, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Returns a summary of quota cost + * @param {string} orgId The id of organization + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, forceRecalc?: boolean, fetchCloudAccounts?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId, search, fetchRelatedResources, forceRecalc, fetchCloudAccounts, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Review your status of Terms + * @param {SelfTermsReview} selfTermsReview Data to check self terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * AppServicesApi - factory interface + * @export + */ +export const AppServicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = AppServicesApiFp(configuration) + return { + /** + * + * @summary Return access token generated from registries in docker format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccessTokenPost(options?: any): AxiosPromise { + return localVarFp.apiAccountsMgmtV1AccessTokenPost(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get the authenticated account + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: any): AxiosPromise { + return localVarFp.apiAccountsMgmtV1CurrentAccountGet(fetchLabels, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Returns a summary of quota cost + * @param {string} orgId The id of organization + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, forceRecalc?: boolean, fetchCloudAccounts?: boolean, options?: any): AxiosPromise { + return localVarFp.apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId, search, fetchRelatedResources, forceRecalc, fetchCloudAccounts, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Review your status of Terms + * @param {SelfTermsReview} selfTermsReview Data to check self terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: any): AxiosPromise { + return localVarFp.apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * AppServicesApi - interface + * @export + * @interface AppServicesApi + */ +export interface AppServicesApiInterface { + /** + * + * @summary Return access token generated from registries in docker format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApiInterface + */ + apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Get the authenticated account + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApiInterface + */ + apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Returns a summary of quota cost + * @param {string} orgId The id of organization + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApiInterface + */ + apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, forceRecalc?: boolean, fetchCloudAccounts?: boolean, options?: AxiosRequestConfig): AxiosPromise; + + /** + * + * @summary Review your status of Terms + * @param {SelfTermsReview} selfTermsReview Data to check self terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApiInterface + */ + apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig): AxiosPromise; + +} + +/** + * AppServicesApi - object-oriented interface + * @export + * @class AppServicesApi + * @extends {BaseAPI} + */ +export class AppServicesApi extends BaseAPI implements AppServicesApiInterface { + /** + * + * @summary Return access token generated from registries in docker format + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApi + */ + public apiAccountsMgmtV1AccessTokenPost(options?: AxiosRequestConfig) { + return AppServicesApiFp(this.configuration).apiAccountsMgmtV1AccessTokenPost(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get the authenticated account + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApi + */ + public apiAccountsMgmtV1CurrentAccountGet(fetchLabels?: boolean, options?: AxiosRequestConfig) { + return AppServicesApiFp(this.configuration).apiAccountsMgmtV1CurrentAccountGet(fetchLabels, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Returns a summary of quota cost + * @param {string} orgId The id of organization + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApi + */ + public apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId: string, search?: string, fetchRelatedResources?: boolean, forceRecalc?: boolean, fetchCloudAccounts?: boolean, options?: AxiosRequestConfig) { + return AppServicesApiFp(this.configuration).apiAccountsMgmtV1OrganizationsOrgIdQuotaCostGet(orgId, search, fetchRelatedResources, forceRecalc, fetchCloudAccounts, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Review your status of Terms + * @param {SelfTermsReview} selfTermsReview Data to check self terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AppServicesApi + */ + public apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview: SelfTermsReview, options?: AxiosRequestConfig) { + return AppServicesApiFp(this.configuration).apiAuthorizationsV1SelfTermsReviewPost(selfTermsReview, options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/app-services-sdk-js/packages/account-management-sdk/src/generated/api/default-api.ts b/app-services-sdk-js/packages/account-management-sdk/src/generated/api/default-api.ts new file mode 100644 index 00000000..5217eb26 --- /dev/null +++ b/app-services-sdk-js/packages/account-management-sdk/src/generated/api/default-api.ts @@ -0,0 +1,12269 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Account Management Service API + * Manage user subscriptions and clusters + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AccessReview } from '../model'; +// @ts-ignore +import { AccessReviewResponse } from '../model'; +// @ts-ignore +import { AccessTokenCfg } from '../model'; +// @ts-ignore +import { Account } from '../model'; +// @ts-ignore +import { AccountGroup } from '../model'; +// @ts-ignore +import { AccountGroupAssignment } from '../model'; +// @ts-ignore +import { AccountGroupAssignmentList } from '../model'; +// @ts-ignore +import { AccountGroupList } from '../model'; +// @ts-ignore +import { AccountGroupRequest } from '../model'; +// @ts-ignore +import { AccountList } from '../model'; +// @ts-ignore +import { AccountPatchRequest } from '../model'; +// @ts-ignore +import { CapabilityReview } from '../model'; +// @ts-ignore +import { CapabilityReviewRequest } from '../model'; +// @ts-ignore +import { Certificate } from '../model'; +// @ts-ignore +import { CertificatesRequest } from '../model'; +// @ts-ignore +import { CloudResource } from '../model'; +// @ts-ignore +import { CloudResourceList } from '../model'; +// @ts-ignore +import { ClusterAuthorizationRequest } from '../model'; +// @ts-ignore +import { ClusterAuthorizationResponse } from '../model'; +// @ts-ignore +import { ClusterRegistrationRequest } from '../model'; +// @ts-ignore +import { ClusterRegistrationResponse } from '../model'; +// @ts-ignore +import { ClusterTransfer } from '../model'; +// @ts-ignore +import { ClusterTransferList } from '../model'; +// @ts-ignore +import { ClusterTransferPatchRequest } from '../model'; +// @ts-ignore +import { ClusterTransferRequest } from '../model'; +// @ts-ignore +import { ConsumedQuotaList } from '../model'; +// @ts-ignore +import { DeletedSubscriptionList } from '../model'; +// @ts-ignore +import { ErrorList } from '../model'; +// @ts-ignore +import { ExportControlReview } from '../model'; +// @ts-ignore +import { ExportControlReviewRequest } from '../model'; +// @ts-ignore +import { FeatureReview } from '../model'; +// @ts-ignore +import { FeatureReviewResponse } from '../model'; +// @ts-ignore +import { FeatureToggle } from '../model'; +// @ts-ignore +import { FeatureToggleQueryRequest } from '../model'; +// @ts-ignore +import { Label } from '../model'; +// @ts-ignore +import { LabelList } from '../model'; +// @ts-ignore +import { MetricsList } from '../model'; +// @ts-ignore +import { NotificationContactCreateRequest } from '../model'; +// @ts-ignore +import { NotificationRequest } from '../model'; +// @ts-ignore +import { Organization } from '../model'; +// @ts-ignore +import { OrganizationList } from '../model'; +// @ts-ignore +import { OrganizationPatchRequest } from '../model'; +// @ts-ignore +import { Plan } from '../model'; +// @ts-ignore +import { PlanList } from '../model'; +// @ts-ignore +import { PullSecretRequest } from '../model'; +// @ts-ignore +import { Quota } from '../model'; +// @ts-ignore +import { QuotaCostList } from '../model'; +// @ts-ignore +import { QuotaList } from '../model'; +// @ts-ignore +import { QuotaRulesList } from '../model'; +// @ts-ignore +import { Registry } from '../model'; +// @ts-ignore +import { RegistryCredential } from '../model'; +// @ts-ignore +import { RegistryCredentialList } from '../model'; +// @ts-ignore +import { RegistryCredentialPatchRequest } from '../model'; +// @ts-ignore +import { RegistryList } from '../model'; +// @ts-ignore +import { ReservedResource } from '../model'; +// @ts-ignore +import { ReservedResourceList } from '../model'; +// @ts-ignore +import { ReservedResourcePatchRequest } from '../model'; +// @ts-ignore +import { ResourceQuota } from '../model'; +// @ts-ignore +import { ResourceQuotaList } from '../model'; +// @ts-ignore +import { ResourceQuotaRequest } from '../model'; +// @ts-ignore +import { ResourceReview } from '../model'; +// @ts-ignore +import { ResourceReviewRequest } from '../model'; +// @ts-ignore +import { Role } from '../model'; +// @ts-ignore +import { RoleBinding } from '../model'; +// @ts-ignore +import { RoleBindingCreateRequest } from '../model'; +// @ts-ignore +import { RoleBindingList } from '../model'; +// @ts-ignore +import { RoleBindingRequest } from '../model'; +// @ts-ignore +import { RoleList } from '../model'; +// @ts-ignore +import { SKU } from '../model'; +// @ts-ignore +import { SelfAccessReview } from '../model'; +// @ts-ignore +import { SelfEntitlementStatus } from '../model'; +// @ts-ignore +import { SelfFeatureReview } from '../model'; +// @ts-ignore +import { SelfResourceReview } from '../model'; +// @ts-ignore +import { SelfResourceReviewRequest } from '../model'; +// @ts-ignore +import { SelfServiceLandingPageSchema } from '../model'; +// @ts-ignore +import { SkuList } from '../model'; +// @ts-ignore +import { SkuRules } from '../model'; +// @ts-ignore +import { SkuRulesList } from '../model'; +// @ts-ignore +import { Subscription } from '../model'; +// @ts-ignore +import { SubscriptionCreateRequest } from '../model'; +// @ts-ignore +import { SubscriptionList } from '../model'; +// @ts-ignore +import { SubscriptionMetricList } from '../model'; +// @ts-ignore +import { SubscriptionPatchRequest } from '../model'; +// @ts-ignore +import { SubscriptionRoleBinding } from '../model'; +// @ts-ignore +import { SubscriptionRoleBindingCreateRequest } from '../model'; +// @ts-ignore +import { SubscriptionRoleBindingList } from '../model'; +// @ts-ignore +import { Summary } from '../model'; +// @ts-ignore +import { SupportCasesCreatedResponse } from '../model'; +// @ts-ignore +import { SupportCasesRequest } from '../model'; +// @ts-ignore +import { TermsReview } from '../model'; +// @ts-ignore +import { TermsReviewResponse } from '../model'; +// @ts-ignore +import { TokenAuthorizationRequest } from '../model'; +// @ts-ignore +import { TokenAuthorizationResponse } from '../model'; +/** + * DefaultApi - axios parameter creator + * @export + */ +export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Returns a list of accounts + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsGet: async (page?: number, size?: number, search?: string, orderBy?: string, fields?: string, fetchLabels?: boolean, fetchCapabilities?: boolean, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/accounts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get an account by id + * @param {string} id The id of record + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {boolean} [fetchRhit] If true, includes the RHIT account_id in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdGet: async (id: string, fetchLabels?: boolean, fetchCapabilities?: boolean, fetchRhit?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + if (fetchRhit !== undefined) { + localVarQueryParameter['fetchRhit'] = fetchRhit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of labels + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdLabelsGet: async (id: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdLabelsKeyDelete: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyDelete', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyDelete', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get subscription labels by label key + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdLabelsKeyGet: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyGet', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyGet', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdLabelsKeyPatch: async (id: string, key: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyPatch', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyPatch', 'key', key) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsKeyPatch', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdLabelsPost: async (id: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsPost', 'id', id) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdLabelsPost', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update an account + * @param {string} id The id of record + * @param {AccountPatchRequest} accountPatchRequest Updated account data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsIdPatch: async (id: string, accountPatchRequest: AccountPatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdPatch', 'id', id) + // verify required parameter 'accountPatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsIdPatch', 'accountPatchRequest', accountPatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/accounts/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(accountPatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new account + * @param {Account} account Account data + * @param {boolean} [dryRun] If true, instructs API to avoid making any changes, but rather run through validations only. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1AccountsPost: async (account: Account, dryRun?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'account' is not null or undefined + assertParamExists('apiAccountsMgmtV1AccountsPost', 'account', account) + const localVarPath = `/api/accounts_mgmt/v1/accounts`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (dryRun !== undefined) { + localVarQueryParameter['dryRun'] = dryRun; + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(account, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Fetch certificates of a particular type + * @param {CertificatesRequest} certificatesRequest # The payload depends on the type of the requested certificate The examples for supported types: * {\"type\": \"sca\", \"arch\": \"x86_64\"} + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CertificatesPost: async (certificatesRequest: CertificatesRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'certificatesRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1CertificatesPost', 'certificatesRequest', certificatesRequest) + const localVarPath = `/api/accounts_mgmt/v1/certificates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication AccessToken required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(certificatesRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of cloud resources + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CloudResourcesGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/cloud_resources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a cloud resource + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CloudResourcesIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1CloudResourcesIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/cloud_resources/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a cloud resource + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CloudResourcesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1CloudResourcesIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/cloud_resources/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a cloud resource + * @param {string} id The id of record + * @param {CloudResource} cloudResource Updated cloud resource data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CloudResourcesIdPatch: async (id: string, cloudResource: CloudResource, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1CloudResourcesIdPatch', 'id', id) + // verify required parameter 'cloudResource' is not null or undefined + assertParamExists('apiAccountsMgmtV1CloudResourcesIdPatch', 'cloudResource', cloudResource) + const localVarPath = `/api/accounts_mgmt/v1/cloud_resources/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(cloudResource, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new cloud resource + * @param {CloudResource} cloudResource Cloud resource data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1CloudResourcesPost: async (cloudResource: CloudResource, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'cloudResource' is not null or undefined + assertParamExists('apiAccountsMgmtV1CloudResourcesPost', 'cloudResource', cloudResource) + const localVarPath = `/api/accounts_mgmt/v1/cloud_resources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(cloudResource, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Authorizes new cluster creation against an exsiting RH Subscription. + * @param {ClusterAuthorizationRequest} clusterAuthorizationRequest Cluster and authorization data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ClusterAuthorizationsPost: async (clusterAuthorizationRequest: ClusterAuthorizationRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'clusterAuthorizationRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1ClusterAuthorizationsPost', 'clusterAuthorizationRequest', clusterAuthorizationRequest) + const localVarPath = `/api/accounts_mgmt/v1/cluster_authorizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(clusterAuthorizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Finds or creates a cluster registration with a registy credential token and cluster ID + * @param {ClusterRegistrationRequest} clusterRegistrationRequest Cluster and authorization data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ClusterRegistrationsPost: async (clusterRegistrationRequest: ClusterRegistrationRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'clusterRegistrationRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1ClusterRegistrationsPost', 'clusterRegistrationRequest', clusterRegistrationRequest) + const localVarPath = `/api/accounts_mgmt/v1/cluster_registrations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(clusterRegistrationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List cluster transfers - returns either an empty result set or a valid ClusterTransfer instance that is within a valid transfer window. + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ClusterTransfersGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/cluster_transfers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication AccessToken required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update specific cluster transfer + * @param {string} id The id of record + * @param {ClusterTransferPatchRequest} clusterTransferPatchRequest Updated cluster transfer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ClusterTransfersIdPatch: async (id: string, clusterTransferPatchRequest: ClusterTransferPatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1ClusterTransfersIdPatch', 'id', id) + // verify required parameter 'clusterTransferPatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1ClusterTransfersIdPatch', 'clusterTransferPatchRequest', clusterTransferPatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/cluster_transfers/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(clusterTransferPatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Initiate cluster transfer. + * @param {ClusterTransferRequest} clusterTransferRequest The contents of the cluster transfer creation request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ClusterTransfersPost: async (clusterTransferRequest: ClusterTransferRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'clusterTransferRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1ClusterTransfersPost', 'clusterTransferRequest', clusterTransferRequest) + const localVarPath = `/api/accounts_mgmt/v1/cluster_transfers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(clusterTransferRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of skus + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ConfigSkusGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/config/skus`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a sku + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ConfigSkusIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1ConfigSkusIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/config/skus/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a sku + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ConfigSkusIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1ConfigSkusIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/config/skus/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a Sku + * @param {string} id The id of record + * @param {SKU} sKU Updated sku data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ConfigSkusIdPatch: async (id: string, sKU: SKU, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1ConfigSkusIdPatch', 'id', id) + // verify required parameter 'sKU' is not null or undefined + assertParamExists('apiAccountsMgmtV1ConfigSkusIdPatch', 'sKU', sKU) + const localVarPath = `/api/accounts_mgmt/v1/config/skus/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(sKU, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new sku + * @param {SKU} sKU Sku data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ConfigSkusPost: async (sKU: SKU, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'sKU' is not null or undefined + assertParamExists('apiAccountsMgmtV1ConfigSkusPost', 'sKU', sKU) + const localVarPath = `/api/accounts_mgmt/v1/config/skus`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(sKU, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of deleted subscriptions + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1DeletedSubscriptionsGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/deleted_subscriptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication AccessToken required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of errors + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ErrorsGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/errors`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get an error by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ErrorsIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1ErrorsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/errors/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Query a feature toggle by id + * @param {string} id The id of record + * @param {FeatureToggleQueryRequest} featureToggleQueryRequest The context of the query + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + apiAccountsMgmtV1FeatureTogglesIdQueryPost: async (id: string, featureToggleQueryRequest: FeatureToggleQueryRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1FeatureTogglesIdQueryPost', 'id', id) + // verify required parameter 'featureToggleQueryRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1FeatureTogglesIdQueryPost', 'featureToggleQueryRequest', featureToggleQueryRequest) + const localVarPath = `/api/accounts_mgmt/v1/feature_toggles/{id}/query` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(featureToggleQueryRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of labels + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1LabelsGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/labels`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a console.redhat.com landing page content JSON schema + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1LandingPageSelfServiceGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/landing_page/self_service`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of metrics + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1MetricsGet: async (search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/metrics`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Notify the owner of cluster/subscription + * @param {NotificationRequest} notificationRequest The contents of the notification to send to the owner of a cluster/subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1NotifyPost: async (notificationRequest: NotificationRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'notificationRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1NotifyPost', 'notificationRequest', notificationRequest) + const localVarPath = `/api/accounts_mgmt/v1/notify`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notificationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of organizations + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsGet: async (page?: number, size?: number, search?: string, orderBy?: string, fetchLabels?: boolean, fetchCapabilities?: boolean, fields?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get an organization by id + * @param {string} id The id of record + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdGet: async (id: string, fetchLabels?: boolean, fetchCapabilities?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of labels + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdLabelsGet: async (id: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdLabelsKeyDelete: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyDelete', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyDelete', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get subscription labels by label key + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdLabelsKeyGet: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyGet', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyGet', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdLabelsKeyPatch: async (id: string, key: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyPatch', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyPatch', 'key', key) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsKeyPatch', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdLabelsPost: async (id: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsPost', 'id', id) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdLabelsPost', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update an organization + * @param {string} id The id of record + * @param {OrganizationPatchRequest} organizationPatchRequest Updated organization data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdPatch: async (id: string, organizationPatchRequest: OrganizationPatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdPatch', 'id', id) + // verify required parameter 'organizationPatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdPatch', 'organizationPatchRequest', organizationPatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(organizationPatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a summary of organizations clusters based on metrics + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsIdSummaryDashboardGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsIdSummaryDashboardGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{id}/summary_dashboard` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete an account group assignment + * @param {string} orgId The id of organization + * @param {string} acctGrpAsgnId The id of account group assignment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete: async (orgId: string, acctGrpAsgnId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete', 'orgId', orgId) + // verify required parameter 'acctGrpAsgnId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdDelete', 'acctGrpAsgnId', acctGrpAsgnId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"acctGrpAsgnId"}}`, encodeURIComponent(String(acctGrpAsgnId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get account group assignment by id + * @param {string} orgId The id of organization + * @param {string} acctGrpAsgnId The id of account group assignment + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet: async (orgId: string, acctGrpAsgnId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet', 'orgId', orgId) + // verify required parameter 'acctGrpAsgnId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsAcctGrpAsgnIdGet', 'acctGrpAsgnId', acctGrpAsgnId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments/{acctGrpAsgnId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"acctGrpAsgnId"}}`, encodeURIComponent(String(acctGrpAsgnId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of account group assignments for the given org + * @param {string} orgId The id of organization + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet: async (orgId: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsGet', 'orgId', orgId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new AccountGroupAssignment + * @param {string} orgId The id of organization + * @param {AccountGroupAssignment} accountGroupAssignment New AccountGroup data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost: async (orgId: string, accountGroupAssignment: AccountGroupAssignment, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost', 'orgId', orgId) + // verify required parameter 'accountGroupAssignment' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupAssignmentsPost', 'accountGroupAssignment', accountGroupAssignment) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_group_assignments` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(accountGroupAssignment, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete an account group + * @param {string} orgId The id of organization + * @param {string} acctGrpId The id of account group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete: async (orgId: string, acctGrpId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete', 'orgId', orgId) + // verify required parameter 'acctGrpId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdDelete', 'acctGrpId', acctGrpId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"acctGrpId"}}`, encodeURIComponent(String(acctGrpId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get account group by id + * @param {string} orgId The id of organization + * @param {string} acctGrpId The id of account group + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet: async (orgId: string, acctGrpId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet', 'orgId', orgId) + // verify required parameter 'acctGrpId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdGet', 'acctGrpId', acctGrpId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"acctGrpId"}}`, encodeURIComponent(String(acctGrpId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update an account group + * @param {string} orgId The id of organization + * @param {string} acctGrpId The id of account group + * @param {AccountGroupRequest} accountGroupRequest Updated account group data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch: async (orgId: string, acctGrpId: string, accountGroupRequest: AccountGroupRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch', 'orgId', orgId) + // verify required parameter 'acctGrpId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch', 'acctGrpId', acctGrpId) + // verify required parameter 'accountGroupRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsAcctGrpIdPatch', 'accountGroupRequest', accountGroupRequest) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_groups/{acctGrpId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"acctGrpId"}}`, encodeURIComponent(String(acctGrpId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(accountGroupRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of account groups for the given org + * @param {string} orgId The id of organization + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet: async (orgId: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsGet', 'orgId', orgId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_groups` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new AccountGroup + * @param {string} orgId The id of organization + * @param {AccountGroupRequest} accountGroupRequest New AccountGroup data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost: async (orgId: string, accountGroupRequest: AccountGroupRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost', 'orgId', orgId) + // verify required parameter 'accountGroupRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdAccountGroupsPost', 'accountGroupRequest', accountGroupRequest) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/account_groups` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(accountGroupRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of consumed quota for an organization + * @param {string} orgId The id of organization + * @param {boolean} [forceRecalc] If true, includes that ConsumedQuota should be recalculated. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet: async (orgId: string, forceRecalc?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdConsumedQuotaGet', 'orgId', orgId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/consumed_quota` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (forceRecalc !== undefined) { + localVarQueryParameter['forceRecalc'] = forceRecalc; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of resource quota objects + * @param {string} orgId The id of organization + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet: async (orgId: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaGet', 'orgId', orgId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new resource quota + * @param {string} orgId The id of organization + * @param {ResourceQuotaRequest} resourceQuotaRequest Resource quota data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost: async (orgId: string, resourceQuotaRequest: ResourceQuotaRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost', 'orgId', orgId) + // verify required parameter 'resourceQuotaRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaPost', 'resourceQuotaRequest', resourceQuotaRequest) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(resourceQuotaRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a resource quota + * @param {string} orgId The id of organization + * @param {string} quotaId The id of quota + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete: async (orgId: string, quotaId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete', 'orgId', orgId) + // verify required parameter 'quotaId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdDelete', 'quotaId', quotaId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"quotaId"}}`, encodeURIComponent(String(quotaId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a resource quota by id + * @param {string} orgId The id of organization + * @param {string} quotaId The id of quota + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet: async (orgId: string, quotaId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet', 'orgId', orgId) + // verify required parameter 'quotaId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdGet', 'quotaId', quotaId) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"quotaId"}}`, encodeURIComponent(String(quotaId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a resource quota + * @param {string} orgId The id of organization + * @param {string} quotaId The id of quota + * @param {ResourceQuotaRequest} resourceQuotaRequest Updated resource quota data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch: async (orgId: string, quotaId: string, resourceQuotaRequest: ResourceQuotaRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'orgId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch', 'orgId', orgId) + // verify required parameter 'quotaId' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch', 'quotaId', quotaId) + // verify required parameter 'resourceQuotaRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsOrgIdResourceQuotaQuotaIdPatch', 'resourceQuotaRequest', resourceQuotaRequest) + const localVarPath = `/api/accounts_mgmt/v1/organizations/{orgId}/resource_quota/{quotaId}` + .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId))) + .replace(`{${"quotaId"}}`, encodeURIComponent(String(quotaId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(resourceQuotaRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new organization + * @param {Organization} organization Organization data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1OrganizationsPost: async (organization: Organization, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'organization' is not null or undefined + assertParamExists('apiAccountsMgmtV1OrganizationsPost', 'organization', organization) + const localVarPath = `/api/accounts_mgmt/v1/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(organization, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get all plans + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1PlansGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/plans`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a plan by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1PlansIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1PlansIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/plans/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a pull secret + * @param {string} externalResourceId The external resource id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1PullSecretsExternalResourceIdDelete: async (externalResourceId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'externalResourceId' is not null or undefined + assertParamExists('apiAccountsMgmtV1PullSecretsExternalResourceIdDelete', 'externalResourceId', externalResourceId) + const localVarPath = `/api/accounts_mgmt/v1/pull_secrets/{externalResourceId}` + .replace(`{${"externalResourceId"}}`, encodeURIComponent(String(externalResourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Return access token generated from registries in docker format + * @param {PullSecretRequest} pullSecretRequest Identifier of the resource in the external service that this pull secret relates to + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1PullSecretsPost: async (pullSecretRequest: PullSecretRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'pullSecretRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1PullSecretsPost', 'pullSecretRequest', pullSecretRequest) + const localVarPath = `/api/accounts_mgmt/v1/pull_secrets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(pullSecretRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a summary of quota cost for the authenticated user + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchRelatedResources] If true, includes the related resources in the output. Could slow request response time. + * @param {boolean} [fetchCloudAccounts] If true, includes the marketplace cloud accounts in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotaCostGet: async (search?: string, fetchRelatedResources?: boolean, fetchCloudAccounts?: boolean, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/quota_cost`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (fetchRelatedResources !== undefined) { + localVarQueryParameter['fetchRelatedResources'] = fetchRelatedResources; + } + + if (fetchCloudAccounts !== undefined) { + localVarQueryParameter['fetchCloudAccounts'] = fetchCloudAccounts; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of UHC product Quota Rules + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotaRulesGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/quota_rules`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of quotas + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotasGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/quotas`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a quota + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotasIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1QuotasIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/quotas/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a quota + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotasIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1QuotasIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/quotas/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a quota + * @param {string} id The id of record + * @param {Quota} quota Updated quota data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotasIdPatch: async (id: string, quota: Quota, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1QuotasIdPatch', 'id', id) + // verify required parameter 'quota' is not null or undefined + assertParamExists('apiAccountsMgmtV1QuotasIdPatch', 'quota', quota) + const localVarPath = `/api/accounts_mgmt/v1/quotas/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(quota, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new quota + * @param {Quota} quota Quota data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1QuotasPost: async (quota: Quota, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'quota' is not null or undefined + assertParamExists('apiAccountsMgmtV1QuotasPost', 'quota', quota) + const localVarPath = `/api/accounts_mgmt/v1/quotas`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(quota, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of registries + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistriesGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/registries`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get an registry by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistriesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistriesIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/registries/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List Registry Credentials + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistryCredentialsGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/registry_credentials`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a registry credential by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistryCredentialsIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistryCredentialsIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/registry_credentials/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a registry credentials by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistryCredentialsIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistryCredentialsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/registry_credentials/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a registry credential + * @param {string} id The id of record + * @param {RegistryCredentialPatchRequest} registryCredentialPatchRequest Updated registry credential data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistryCredentialsIdPatch: async (id: string, registryCredentialPatchRequest: RegistryCredentialPatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistryCredentialsIdPatch', 'id', id) + // verify required parameter 'registryCredentialPatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistryCredentialsIdPatch', 'registryCredentialPatchRequest', registryCredentialPatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/registry_credentials/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(registryCredentialPatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Request the creation of a registry credential + * @param {RegistryCredential} registryCredential Registry credential data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RegistryCredentialsPost: async (registryCredential: RegistryCredential, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'registryCredential' is not null or undefined + assertParamExists('apiAccountsMgmtV1RegistryCredentialsPost', 'registryCredential', registryCredential) + const localVarPath = `/api/accounts_mgmt/v1/registry_credentials`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(registryCredential, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of reserved resources + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ReservedResourcesGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/reserved_resources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of resource quota objects + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1ResourceQuotaGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/resource_quota`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of role bindings + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RoleBindingsGet: async (page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/role_bindings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a role binding + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RoleBindingsIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RoleBindingsIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/role_bindings/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a role binding + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RoleBindingsIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RoleBindingsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/role_bindings/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a role binding + * @param {string} id The id of record + * @param {RoleBindingRequest} roleBindingRequest Updated role binding data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RoleBindingsIdPatch: async (id: string, roleBindingRequest: RoleBindingRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RoleBindingsIdPatch', 'id', id) + // verify required parameter 'roleBindingRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1RoleBindingsIdPatch', 'roleBindingRequest', roleBindingRequest) + const localVarPath = `/api/accounts_mgmt/v1/role_bindings/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(roleBindingRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new role binding + * @param {RoleBindingCreateRequest} roleBindingCreateRequest Role binding data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RoleBindingsPost: async (roleBindingCreateRequest: RoleBindingCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'roleBindingCreateRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1RoleBindingsPost', 'roleBindingCreateRequest', roleBindingCreateRequest) + const localVarPath = `/api/accounts_mgmt/v1/role_bindings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(roleBindingCreateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of roles + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RolesGet: async (page?: number, size?: number, search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/roles`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a role by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1RolesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1RolesIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/roles/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create or renew the entitlement to support a product for the user\'s organization. + * @param {string} product The product for self_entitlement. The supported products are [rosa]. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SelfEntitlementProductPost: async (product: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'product' is not null or undefined + assertParamExists('apiAccountsMgmtV1SelfEntitlementProductPost', 'product', product) + const localVarPath = `/api/accounts_mgmt/v1/self_entitlement/{product}` + .replace(`{${"product"}}`, encodeURIComponent(String(product))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of UHC product SKU Rules + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkuRulesGet: async (search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/sku_rules`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a sku rule + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkuRulesIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkuRulesIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/sku_rules/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a sku rules by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkuRulesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkuRulesIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/sku_rules/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a sku rule + * @param {string} id The id of record + * @param {SkuRules} skuRules Updated sku rule data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkuRulesIdPatch: async (id: string, skuRules: SkuRules, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkuRulesIdPatch', 'id', id) + // verify required parameter 'skuRules' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkuRulesIdPatch', 'skuRules', skuRules) + const localVarPath = `/api/accounts_mgmt/v1/sku_rules/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(skuRules, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new sku rule + * @param {SkuRules} skuRules Sku rule data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkuRulesPost: async (skuRules: SkuRules, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'skuRules' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkuRulesPost', 'skuRules', skuRules) + const localVarPath = `/api/accounts_mgmt/v1/sku_rules`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(skuRules, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of UHC product SKUs + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkusGet: async (search?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/skus`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a sku by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + apiAccountsMgmtV1SkusIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SkusIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/skus/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of subscriptions + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {boolean} [fetchAccounts] If true, includes the account reference information in the output. Could slow request response time. + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {string} [labels] Specifies the criteria to filter the subscription resource based on their labels. A label is represented as a `key=value` pair, ``` labels = \"foo=bar\" ``` and multiple labels are separated by comma, ``` labels = \"foo=bar,fooz=barz\" ``` + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsGet: async (page?: number, size?: number, search?: string, fetchAccounts?: boolean, fetchLabels?: boolean, fetchCapabilities?: boolean, fields?: string, orderBy?: string, labels?: string, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/accounts_mgmt/v1/subscriptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication AccessToken required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (fetchAccounts !== undefined) { + localVarQueryParameter['fetchAccounts'] = fetchAccounts; + } + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + if (labels !== undefined) { + localVarQueryParameter['labels'] = labels; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Deletes a subscription by id + * @param {string} id The id of record + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdDelete', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a subscription by id + * @param {string} id The id of record + * @param {boolean} [fetchAccounts] If true, includes the account reference information in the output. Could slow request response time. + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {boolean} [fetchCpuAndSocket] If true, fetches, from the clusters service, the total numbers of CPU\'s and sockets under an obligation, and includes in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdGet: async (id: string, fetchAccounts?: boolean, fetchLabels?: boolean, fetchCapabilities?: boolean, fetchCpuAndSocket?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (fetchAccounts !== undefined) { + localVarQueryParameter['fetchAccounts'] = fetchAccounts; + } + + if (fetchLabels !== undefined) { + localVarQueryParameter['fetchLabels'] = fetchLabels; + } + + if (fetchCapabilities !== undefined) { + localVarQueryParameter['fetchCapabilities'] = fetchCapabilities; + } + + if (fetchCpuAndSocket !== undefined) { + localVarQueryParameter['fetchCpuAndSocket'] = fetchCpuAndSocket; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of labels + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdLabelsGet: async (id: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyDelete', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get subscription labels by label key + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdLabelsKeyGet: async (id: string, key: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyGet', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyGet', 'key', key) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch: async (id: string, key: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch', 'id', id) + // verify required parameter 'key' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch', 'key', key) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsKeyPatch', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/labels/{key}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"key"}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new label or update an existing label + * @param {string} id The id of record + * @param {Label} label Label data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdLabelsPost: async (id: string, label: Label, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsPost', 'id', id) + // verify required parameter 'label' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdLabelsPost', 'label', label) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/labels` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(label, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get subscription\'s metrics by metric name + * @param {string} id The id of record + * @param {string} metricName The name of the metric + * @param {string} [search] The `search` paramter specifies the PromQL selector. The syntax is defined by Prometheus at https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors. It only supports simple selections as shown in https://prometheus.io/docs/prometheus/latest/querying/examples/#simple-time-series-selection. For example, in order to retrieve subscription_sync_total with names starting with `managed` and with a channel = `production`: ``` name=~\'managed.*\',channel=\'production\' ``` If the parameter isn\'t provided, or if the value is empty, then all the records will be returned. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet: async (id: string, metricName: string, search?: string, fields?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet', 'id', id) + // verify required parameter 'metricName' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdMetricsMetricNameGet', 'metricName', metricName) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/metrics/{metric_name}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"metric_name"}}`, encodeURIComponent(String(metricName))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Notify the owner of a subscription + * @param {string} id The id of record + * @param {NotificationRequest} notificationRequest The contents of the notification to send to the owner of a subscription in addition to the set of template parameters which are sent automatically ACCOUNT_USERNAME, FIRST_NAME, LAST_NAME, ORGANIZATION_NAME, ORGANIZATION_EXTERNAL_ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdNotifyPost: async (id: string, notificationRequest: NotificationRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdNotifyPost', 'id', id) + // verify required parameter 'notificationRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdNotifyPost', 'notificationRequest', notificationRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/notify` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notificationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a subscription + * @param {string} id The id of record + * @param {SubscriptionPatchRequest} subscriptionPatchRequest Updated subscription data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdPatch: async (id: string, subscriptionPatchRequest: SubscriptionPatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdPatch', 'id', id) + // verify required parameter 'subscriptionPatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdPatch', 'subscriptionPatchRequest', subscriptionPatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(subscriptionPatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of reserved resources + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdReservedResourcesGet: async (id: string, page?: number, size?: number, search?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdReservedResourcesGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/reserved_resources` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of open support creates opened against the external cluster id of this subscrption + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsIdSupportCasesGet: async (id: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsIdSupportCasesGet', 'id', id) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{id}/support_cases` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new subscription + * @param {SubscriptionCreateRequest} subscriptionCreateRequest Subscription Creation data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsPost: async (subscriptionCreateRequest: SubscriptionCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subscriptionCreateRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsPost', 'subscriptionCreateRequest', subscriptionCreateRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(subscriptionCreateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Deletes a notification contact by subscription and account id + * @param {string} subId The id of subscription + * @param {string} accountId The id of account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete: async (subId: string, accountId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete', 'subId', subId) + // verify required parameter 'accountId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsAccountIdDelete', 'accountId', accountId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts/{accountId}` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))) + .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a list of notification contacts for the given subscription + * @param {string} subId The id of subscription + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet: async (subId: string, page?: number, size?: number, search?: string, fields?: string, orderBy?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsGet', 'subId', subId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Add an account as a notification contact to this subscription + * @param {string} subId The id of subscription + * @param {NotificationContactCreateRequest} notificationContactCreateRequest Add a notification contact by an account\'s username + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost: async (subId: string, notificationContactCreateRequest: NotificationContactCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost', 'subId', subId) + // verify required parameter 'notificationContactCreateRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdNotificationContactsPost', 'notificationContactCreateRequest', notificationContactCreateRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/notification_contacts` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(notificationContactCreateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete reserved resources by id + * @param {string} subId The id of subscription + * @param {string} reservedResourceId The id of reserved resource + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete: async (subId: string, reservedResourceId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete', 'subId', subId) + // verify required parameter 'reservedResourceId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdDelete', 'reservedResourceId', reservedResourceId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))) + .replace(`{${"reservedResourceId"}}`, encodeURIComponent(String(reservedResourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get reserved resources by id + * @param {string} subId The id of subscription + * @param {string} reservedResourceId The id of reserved resource + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet: async (subId: string, reservedResourceId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet', 'subId', subId) + // verify required parameter 'reservedResourceId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdGet', 'reservedResourceId', reservedResourceId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))) + .replace(`{${"reservedResourceId"}}`, encodeURIComponent(String(reservedResourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update a reserved resource + * @param {string} subId The id of subscription + * @param {string} reservedResourceId The id of reserved resource + * @param {ReservedResourcePatchRequest} reservedResourcePatchRequest Updated reserved resource data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch: async (subId: string, reservedResourceId: string, reservedResourcePatchRequest: ReservedResourcePatchRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch', 'subId', subId) + // verify required parameter 'reservedResourceId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch', 'reservedResourceId', reservedResourceId) + // verify required parameter 'reservedResourcePatchRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdReservedResourcesReservedResourceIdPatch', 'reservedResourcePatchRequest', reservedResourcePatchRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/reserved_resources/{reservedResourceId}` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))) + .replace(`{${"reservedResourceId"}}`, encodeURIComponent(String(reservedResourceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(reservedResourcePatchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get subscription role bindings + * @param {string} subId The id of subscription + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {boolean} [fetchAccounts] If true, includes the account reference information in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet: async (subId: string, page?: number, size?: number, search?: string, orderBy?: string, fetchAccounts?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsGet', 'subId', subId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (size !== undefined) { + localVarQueryParameter['size'] = size; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + if (fetchAccounts !== undefined) { + localVarQueryParameter['fetchAccounts'] = fetchAccounts; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a subscription role binding + * @param {string} id The id of record + * @param {string} subId The id of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete: async (id: string, subId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete', 'id', id) + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdDelete', 'subId', subId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get a Subscription Role Binding by id + * @param {string} id The id of record + * @param {string} subId The id of subscription + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet: async (id: string, subId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet', 'id', id) + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsIdGet', 'subId', subId) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create a new subscription role binding + * @param {string} subId The id of subscription + * @param {SubscriptionRoleBindingCreateRequest} subscriptionRoleBindingCreateRequest Subscription role binding data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost: async (subId: string, subscriptionRoleBindingCreateRequest: SubscriptionRoleBindingCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'subId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost', 'subId', subId) + // verify required parameter 'subscriptionRoleBindingCreateRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SubscriptionsSubIdRoleBindingsPost', 'subscriptionRoleBindingCreateRequest', subscriptionRoleBindingCreateRequest) + const localVarPath = `/api/accounts_mgmt/v1/subscriptions/{subId}/role_bindings` + .replace(`{${"subId"}}`, encodeURIComponent(String(subId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(subscriptionRoleBindingCreateRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Delete a support case + * @param {string} caseId The id of a support case + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SupportCasesCaseIdDelete: async (caseId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'caseId' is not null or undefined + assertParamExists('apiAccountsMgmtV1SupportCasesCaseIdDelete', 'caseId', caseId) + const localVarPath = `/api/accounts_mgmt/v1/support_cases/{caseId}` + .replace(`{${"caseId"}}`, encodeURIComponent(String(caseId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary create a support case for the subscription + * @param {SupportCasesRequest} supportCasesRequest The contents of the support case to be created + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1SupportCasesPost: async (supportCasesRequest: SupportCasesRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'supportCasesRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1SupportCasesPost', 'supportCasesRequest', supportCasesRequest) + const localVarPath = `/api/accounts_mgmt/v1/support_cases`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(supportCasesRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Finds the account owner of the provided token + * @param {TokenAuthorizationRequest} tokenAuthorizationRequest Token authorization data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccountsMgmtV1TokenAuthorizationPost: async (tokenAuthorizationRequest: TokenAuthorizationRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'tokenAuthorizationRequest' is not null or undefined + assertParamExists('apiAccountsMgmtV1TokenAuthorizationPost', 'tokenAuthorizationRequest', tokenAuthorizationRequest) + const localVarPath = `/api/accounts_mgmt/v1/token_authorization`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(tokenAuthorizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review an account\'s access to perform an action on a particular resource or resource type + * @param {AccessReview} accessReview Access review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1AccessReviewPost: async (accessReview: AccessReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'accessReview' is not null or undefined + assertParamExists('apiAuthorizationsV1AccessReviewPost', 'accessReview', accessReview) + const localVarPath = `/api/authorizations/v1/access_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(accessReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review an account\'s capabilities + * @param {CapabilityReviewRequest} capabilityReviewRequest Capability review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1CapabilityReviewPost: async (capabilityReviewRequest: CapabilityReviewRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'capabilityReviewRequest' is not null or undefined + assertParamExists('apiAuthorizationsV1CapabilityReviewPost', 'capabilityReviewRequest', capabilityReviewRequest) + const localVarPath = `/api/authorizations/v1/capability_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(capabilityReviewRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Determine whether a user is restricted from downloading Red Hat software based on export control compliance. + * @param {ExportControlReviewRequest} exportControlReviewRequest Export control review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1ExportControlReviewPost: async (exportControlReviewRequest: ExportControlReviewRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'exportControlReviewRequest' is not null or undefined + assertParamExists('apiAuthorizationsV1ExportControlReviewPost', 'exportControlReviewRequest', exportControlReviewRequest) + const localVarPath = `/api/authorizations/v1/export_control_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(exportControlReviewRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review feature to perform an action on it such as toggle a feature on/off + * @param {FeatureReview} featureReview Feature review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1FeatureReviewPost: async (featureReview: FeatureReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'featureReview' is not null or undefined + assertParamExists('apiAuthorizationsV1FeatureReviewPost', 'featureReview', featureReview) + const localVarPath = `/api/authorizations/v1/feature_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(featureReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Obtain resource ids for resources an account may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param {ResourceReviewRequest} resourceReviewRequest Resource review data + * @param {boolean} [reduceClusterList] If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + apiAuthorizationsV1ResourceReviewPost: async (resourceReviewRequest: ResourceReviewRequest, reduceClusterList?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'resourceReviewRequest' is not null or undefined + assertParamExists('apiAuthorizationsV1ResourceReviewPost', 'resourceReviewRequest', resourceReviewRequest) + const localVarPath = `/api/authorizations/v1/resource_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (reduceClusterList !== undefined) { + localVarQueryParameter['reduceClusterList'] = reduceClusterList; + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(resourceReviewRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review your ability to perform an action on a particular resource or resource type + * @param {SelfAccessReview} selfAccessReview Self access review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1SelfAccessReviewPost: async (selfAccessReview: SelfAccessReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'selfAccessReview' is not null or undefined + assertParamExists('apiAuthorizationsV1SelfAccessReviewPost', 'selfAccessReview', selfAccessReview) + const localVarPath = `/api/authorizations/v1/self_access_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(selfAccessReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review your ability to toggle a feature + * @param {SelfFeatureReview} selfFeatureReview Self feature review data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1SelfFeatureReviewPost: async (selfFeatureReview: SelfFeatureReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'selfFeatureReview' is not null or undefined + assertParamExists('apiAuthorizationsV1SelfFeatureReviewPost', 'selfFeatureReview', selfFeatureReview) + const localVarPath = `/api/authorizations/v1/self_feature_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(selfFeatureReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Obtain resource ids for resources you may perform the specified action upon. Resource ids returned as [\"*\"] is shorthand for all ids. + * @param {SelfResourceReviewRequest} selfResourceReviewRequest Self resource review data + * @param {boolean} [reduceClusterList] If true, When returning a list of cluster_ids/cluster_uuids/subscription_ids, if those are already included in one of the organizations provided in organization_ids, do not include it in the list. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1SelfResourceReviewPost: async (selfResourceReviewRequest: SelfResourceReviewRequest, reduceClusterList?: boolean, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'selfResourceReviewRequest' is not null or undefined + assertParamExists('apiAuthorizationsV1SelfResourceReviewPost', 'selfResourceReviewRequest', selfResourceReviewRequest) + const localVarPath = `/api/authorizations/v1/self_resource_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (reduceClusterList !== undefined) { + localVarQueryParameter['reduceClusterList'] = reduceClusterList; + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(selfResourceReviewRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Review an account\'s status of Terms + * @param {TermsReview} termsReview Data to check terms for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAuthorizationsV1TermsReviewPost: async (termsReview: TermsReview, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'termsReview' is not null or undefined + assertParamExists('apiAuthorizationsV1TermsReviewPost', 'termsReview', termsReview) + const localVarPath = `/api/authorizations/v1/terms_review`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(termsReview, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DefaultApi - functional programming interface + * @export + */ +export const DefaultApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Returns a list of accounts + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {string} [fields] Supplies a comma-separated list of fields to be returned. Fields of sub-structures and of arrays use <structure>.<field> notation. <stucture>.* means all field of a structure Example: For each Subscription to get id, href, plan(id and kind) and labels (all fields) ``` ocm get subscriptions --parameter fields=id,href,plan.id,plan.kind,labels.* --parameter fetchLabels=true ``` + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccountsGet(page?: number, size?: number, search?: string, orderBy?: string, fields?: string, fetchLabels?: boolean, fetchCapabilities?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccountsGet(page, size, search, orderBy, fields, fetchLabels, fetchCapabilities, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Get an account by id + * @param {string} id The id of record + * @param {boolean} [fetchLabels] If true, includes the labels on a subscription/organization/account in the output. Could slow request response time. + * @param {boolean} [fetchCapabilities] If true, includes the capabilities on a subscription in the output. Could slow request response time. + * @param {boolean} [fetchRhit] If true, includes the RHIT account_id in the output. Could slow request response time. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccountsIdGet(id: string, fetchLabels?: boolean, fetchCapabilities?: boolean, fetchRhit?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccountsIdGet(id, fetchLabels, fetchCapabilities, fetchRhit, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Returns a list of labels + * @param {string} id The id of record + * @param {number} [page] Page number of record list when record list exceeds specified page size + * @param {number} [size] Maximum number of records to return + * @param {string} [search] Specifies the search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, using the names of the json attributes / column names of the account. For example, in order to retrieve all the accounts with a username starting with `my`: ```sql username like \'my%\' ``` The search criteria can also be applied on related resource. For example, in order to retrieve all the subscriptions labeled by `foo=bar`, ```sql labels.key = \'foo\' and labels.value = \'bar\' ``` If the parameter isn\'t provided, or if the value is empty, then all the accounts that the user has permission to see will be returned. + * @param {string} [orderBy] Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement, but using the names of the json attributes / column of the account. For example, in order to retrieve all accounts ordered by username: ```sql username asc ``` Or in order to retrieve all accounts ordered by username _and_ first name: ```sql username asc, firstName asc ``` If the parameter isn\'t provided, or if the value is empty, then no explicit ordering will be applied. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccountsIdLabelsGet(id: string, page?: number, size?: number, search?: string, orderBy?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccountsIdLabelsGet(id, page, size, search, orderBy, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Delete a label + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccountsIdLabelsKeyDelete(id: string, key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccountsMgmtV1AccountsIdLabelsKeyDelete(id, key, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary Get subscription labels by label key + * @param {string} id The id of record + * @param {string} key The key of the label + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAccountsMgmtV1AccountsIdLabelsKeyGet(id: string, key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise